:root {
  --rose: #e11d48;
  --rose-deep: #be123c;
  --pink: #ec4899;
  --orange: #fb923c;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink), var(--orange));
  box-shadow: 0 16px 35px rgba(225, 29, 72, 0.24);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

.brand-text {
  font-size: 21px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 650;
}

.desktop-nav a {
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input {
  width: 220px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.top-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  color: var(--rose-deep);
  background: #ffffff;
  border-radius: 999px;
  padding: 10px 17px;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 12px 20px 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #ffffff;
  background: var(--slate);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-bg,
.detail-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.hero-bg::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 25%), radial-gradient(circle at 80% 30%, rgba(251, 146, 60, 0.28), transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 650px;
  margin: 0 auto;
  padding: 70px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.55fr);
  gap: 52px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-head span,
.rank-panel-head span,
.page-hero span,
.watch-head span,
.category-overview-card span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--rose-deep);
  background: #ffe4e6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-copy .eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-light {
  color: var(--rose-deep);
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.hero-poster {
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.36);
  transform: rotate(1deg);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 13px;
  height: 13px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.quick-panel,
.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.quick-panel {
  margin-top: -46px;
  position: relative;
  z-index: 8;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head.centered {
  display: grid;
  justify-items: center;
  text-align: center;
}

.section-head h2,
.rank-panel-head h2,
.watch-head h2,
.article-card h2,
.side-card h2,
.search-result-head h2 {
  margin: 10px 0 0;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-link {
  color: var(--rose-deep);
  font-weight: 800;
}

.category-chip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.category-chip {
  min-height: 150px;
  padding: 22px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink) 56%, var(--orange));
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-chip strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.category-chip span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.latest-grid,
.rank-grid,
.search-grid,
.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fb7185, #fb923c);
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.07);
}

.poster-year,
.poster-play {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.poster-year {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  background: rgba(225, 29, 72, 0.88);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta a {
  color: var(--rose-deep);
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 9px;
  font-size: 19px;
  line-height: 1.3;
}

.movie-card p {
  min-height: 54px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--rose-deep);
  background: #fff1f2;
  font-size: 12px;
  font-weight: 700;
}

.two-column-layout,
.rank-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.rank-layout {
  grid-template-columns: 360px minmax(0, 1fr);
}

.rank-panel,
.side-card,
.article-card,
.watch-card,
.filter-panel,
.search-result-head {
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.rank-panel-head {
  margin-bottom: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-num {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 850;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-info {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  color: #ffffff;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.18), transparent 28%), linear-gradient(120deg, var(--rose), var(--pink), var(--orange));
  border-radius: 0 0 34px 34px;
  box-shadow: 0 25px 60px rgba(225, 29, 72, 0.18);
}

.page-hero span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.hero-search {
  min-width: min(420px, 100%);
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(15px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  color: #ffffff;
  background: transparent;
  padding: 10px 14px;
  outline: none;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.hero-mini-posters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-mini-posters a {
  width: 94px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
  margin-left: -22px;
  transform: rotate(-4deg);
}

.hero-mini-posters a:nth-child(even) {
  transform: rotate(5deg);
}

.hero-mini-posters img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  background: #ffffff;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover {
  overflow: hidden;
  border-radius: 18px;
}

.category-cover img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 12px 0 8px;
  font-size: 26px;
}

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-list a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--rose-deep);
  background: #fff1f2;
  font-size: 13px;
  font-weight: 750;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: #ffffff;
  background: var(--slate);
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.45);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.detail-main {
  min-width: 0;
}

.watch-card,
.article-card,
.side-card,
.search-result-head {
  padding: 24px;
}

.watch-card {
  margin-bottom: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 24px;
  background: #020617;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.26), rgba(15, 23, 42, 0.32));
  cursor: pointer;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--rose-deep);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
}

.article-card {
  margin-bottom: 24px;
}

.article-card p {
  color: #334155;
  font-size: 17px;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 20px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 18px 0 0;
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  margin: 0;
  font-weight: 750;
}

.side-link {
  display: inline-flex;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--rose-deep);
  background: #fff1f2;
  font-weight: 850;
}

.site-footer {
  margin-top: 48px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b 56%, #0f172a);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-grid p {
  margin: 0 0 14px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-badge {
  color: #ffffff;
  font-weight: 700;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #94a3b8;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 16px;
  }

  .top-search input {
    width: 170px;
  }

  .category-chip-grid,
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured-grid,
  .latest-grid,
  .rank-grid,
  .search-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content,
  .detail-inner,
  .two-column-layout,
  .rank-layout,
  .detail-layout,
  .footer-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    min-height: 760px;
    gap: 28px;
    padding-top: 46px;
  }

  .hero-poster {
    max-width: 270px;
    margin: 0 auto;
  }

  .page-hero {
    display: grid;
    border-radius: 0 0 26px 26px;
  }

  .hero-mini-posters {
    justify-content: flex-start;
  }

  .rank-panel,
  .detail-side {
    position: static;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 62px;
    padding: 0 16px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .quick-panel,
  .content-section,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .category-chip-grid,
  .movie-grid,
  .featured-grid,
  .latest-grid,
  .rank-grid,
  .search-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .category-overview-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .hero-search {
    border-radius: 22px;
    display: grid;
  }

  .detail-inner {
    padding-top: 42px;
  }

  .detail-poster {
    max-width: 240px;
  }
}
