:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #111827;
  --bg-card-soft: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --primary: #0ea5e9;
  --primary-deep: #0369a1;
  --primary-soft: rgba(14, 165, 233, 0.16);
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --radius-sm: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 34rem),
    radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.10), transparent 32rem),
    var(--bg);
}

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

img {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-logo__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.34);
}

.site-logo__text {
  font-size: 1.12rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted-strong);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: white;
  background: rgba(14, 165, 233, 0.15);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: white;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 16px 18px;
  background: rgba(2, 6, 23, 0.96);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel__links,
.mobile-panel__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.mobile-panel__categories {
  margin-top: 12px;
}

.mobile-sub-link {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(148, 163, 184, 0.10);
}

.hero-section {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-section__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.88) 44%, rgba(2, 6, 23, 0.32) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, transparent 38%);
}

.hero-section__glow {
  position: absolute;
  width: 36rem;
  height: 36rem;
  right: 8%;
  bottom: -18rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.22);
  filter: blur(80px);
}

.hero-section__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 56px;
  padding: 84px 0;
}

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

.hero-badge,
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 9px 16px;
  border-radius: 999px;
  color: white;
  background: rgba(14, 165, 233, 0.82);
  box-shadow: 0 16px 35px rgba(14, 165, 233, 0.22);
}

.hero-kicker {
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.22rem;
  line-height: 1.7;
}

.hero-tags,
.detail-tags,
.movie-card__chips,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 28px;
}

.hero-tags a,
.hero-tags span,
.detail-tags span,
.movie-card__chips a,
.movie-card__chips span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.72);
}

.hero-tags a,
.movie-card__chips a {
  color: white;
  border-color: rgba(14, 165, 233, 0.38);
  background: var(--primary-soft);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.button--primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 18px 35px rgba(14, 165, 233, 0.34);
}

.button--ghost {
  color: white;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.74);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(14, 165, 233, 0.84);
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: start;
  margin-top: -42px;
  position: relative;
  z-index: 4;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-panel h2,
.section-heading h2,
.ranking-sidebar h2,
.article-panel h2,
.category-overview-card h2,
.site-footer h2 {
  margin: 0;
  color: white;
}

.intro-panel p,
.section-heading p,
.page-hero p,
.category-overview-card p,
.article-panel p,
.site-footer p {
  color: var(--muted-strong);
  line-height: 1.8;
}

.content-section {
  padding: 64px 0;
}

.content-band {
  background: rgba(15, 23, 42, 0.52);
  border-block: 1px solid rgba(148, 163, 184, 0.10);
}

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

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-heading p {
  margin: 8px 0 0;
}

.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 800;
}

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

.movie-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: var(--shadow);
}

.movie-card__cover {
  position: relative;
  display: block;
  overflow: hidden;
}

.movie-card__cover img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .movie-card__cover img {
  transform: scale(1.08);
}

.movie-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 45%);
  opacity: 0.92;
}

.movie-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: white;
  background: rgba(14, 165, 233, 0.86);
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .movie-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: #111827;
  font-weight: 900;
  background: linear-gradient(135deg, #fde68a, var(--accent));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.36);
}

.movie-card__body {
  padding: 14px;
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.movie-card__body h3 {
  margin: 10px 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card__body h3 a:hover {
  color: var(--primary);
}

.movie-card__body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.movie-card__chips {
  gap: 6px;
}

.movie-card__chips a,
.movie-card__chips span {
  min-height: 26px;
  padding: 4px 9px;
  font-size: 0.75rem;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.category-tile img {
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 75%);
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
}

.category-tile strong {
  bottom: 52px;
  font-size: 1.22rem;
}

.category-tile em {
  bottom: 18px;
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.45;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.18), transparent 40%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.96));
}

.page-hero--compact h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.page-hero--compact p:not(.page-eyebrow) {
  max-width: 760px;
}

.filter-bar {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
}

.filter-bar--compact {
  margin-bottom: 0;
}

.filter-bar label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.filter-bar__search {
  margin-bottom: 14px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: white;
  background: rgba(2, 6, 23, 0.66);
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(14, 165, 233, 0.65);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.filter-bar__selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.filter-empty {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  color: var(--muted-strong);
  background: rgba(148, 163, 184, 0.08);
}

.filter-empty.is-visible {
  display: block;
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.84);
}

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

.category-overview-card__image img {
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.category-overview-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.category-overview-card__links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(148, 163, 184, 0.10);
}

.ranking-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  padding: 64px 0;
}

.ranking-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
}

.ranking-sidebar ol {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ranking-sidebar a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
}

.ranking-sidebar span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #111827;
  font-weight: 900;
  background: var(--accent);
}

.ranking-sidebar strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-sidebar em {
  color: var(--primary);
  font-style: normal;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 38px 0 70px;
}

.detail-hero__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(1.08);
  transform: scale(1.03);
}

.detail-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.82)),
    linear-gradient(0deg, rgba(2, 6, 23, 1), transparent 45%);
}

.detail-hero__content {
  position: relative;
  z-index: 2;
}

.breadcrumb,
.breadcrumb-sep {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--muted-strong);
}

.breadcrumb:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  padding: 0 10px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 860px;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.18rem;
  line-height: 1.75;
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-tags {
  margin-bottom: 28px;
}

.detail-tags--wide {
  margin-top: 18px;
}

.watch-section {
  margin-top: -48px;
  position: relative;
  z-index: 5;
}

.watch-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.32);
  border-radius: 28px;
  background: black;
  box-shadow: var(--shadow);
}

.watch-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.watch-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.32));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.watch-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.watch-overlay__icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 20px 45px rgba(14, 165, 233, 0.38);
  font-size: 1.8rem;
}

.watch-overlay span:last-child {
  font-size: 1.18rem;
  font-weight: 800;
}

.watch-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  margin: 0;
  color: #fee2e2;
  text-align: center;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 54px 0 18px;
}

.article-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.82);
}

.article-panel p {
  margin-bottom: 0;
  font-size: 1.02rem;
}

.article-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}

.article-panel dl div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.08);
}

.article-panel dt {
  color: var(--muted);
  font-size: 0.86rem;
}

.article-panel dd {
  margin: 6px 0 0;
  color: white;
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.74);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.7fr;
  gap: 36px;
  padding: 44px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.footer-links--stacked {
  display: grid;
}

.footer-links a {
  color: var(--muted-strong);
}

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .hero-section__content,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .ranking-sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-section__content {
    padding: 76px 0 96px;
  }

  .hero-summary,
  .detail-one-line {
    font-size: 1rem;
  }

  .intro-panel,
  .detail-layout,
  .category-overview-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

@media (max-width: 520px) {
  .container,
  .site-header__inner {
    width: min(100% - 24px, 1180px);
  }

  .site-logo__text {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card__body {
    padding: 12px;
  }

  .watch-overlay__icon {
    width: 68px;
    height: 68px;
  }
}
