* {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.74);
  --panel-solid: #111827;
  --line: rgba(245, 158, 11, 0.18);
  --line-strong: rgba(245, 158, 11, 0.38);
  --text: #fff7ed;
  --muted: rgba(253, 230, 138, 0.72);
  --soft: rgba(253, 230, 138, 0.52);
  --accent: #f59e0b;
  --accent-bright: #fbbf24;
  --accent-deep: #92400e;
  --purple: #7c3aed;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 5%, rgba(245, 158, 11, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(124, 58, 237, 0.2), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

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

.nav-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fde68a, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  color: #0f172a;
  background: linear-gradient(135deg, #fef3c7, #f59e0b 62%, #7c2d12);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.32);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-panel a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: #fff;
  background: rgba(245, 158, 11, 0.14);
}

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

.top-search input,
.mobile-search input,
.hero-search input,
.filter-bar input {
  width: 240px;
  border: 1px solid var(--line-strong);
  outline: none;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  padding: 11px 16px;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-bar input:focus {
  border-color: rgba(251, 191, 36, 0.72);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.top-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  color: #111827;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fde68a;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.hero {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 0;
  position: relative;
}

.hero-stage {
  position: relative;
  height: min(72vh, 690px);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #0f172a;
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.68) 44%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.1) 48%, rgba(2, 6, 23, 0.35) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 48px;
  padding: clamp(28px, 6vw, 72px);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--accent-bright);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-desc,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

.hero-meta span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  font-size: 13px;
}

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

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

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

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.28);
}

.btn-ghost {
  color: #fde68a;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.hero-poster {
  position: relative;
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.36);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  text-align: center;
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 900;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(10px);
}

.hero-dots {
  position: absolute;
  left: 40px;
  bottom: 34px;
  display: flex;
  gap: 10px;
  z-index: 4;
}

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

.hero-dots button.is-active {
  width: 54px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-quick a,
.search-chips button,
.filter-bar a,
.panel-link,
.section-more {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.72);
  padding: 10px 14px;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero-quick a:hover,
.search-chips button:hover,
.filter-bar a:hover,
.panel-link:hover,
.section-more:hover {
  color: #fff;
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.content-section,
.page-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

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

.no-top-padding {
  padding-top: 28px;
}

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

.section-head h2,
.side-panel h2,
.detail-article h2,
.player-title-row h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.18);
}

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.82) 100%);
}

.play-pill,
.rank-num {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.play-pill {
  right: 12px;
  bottom: 12px;
  min-height: 34px;
  padding: 0 13px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.rank-num {
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  color: #111827;
  background: #fbbf24;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.34);
}

.movie-card-body {
  padding: 18px;
}

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

.movie-card h3 a:hover {
  color: #fbbf24;
}

.movie-meta {
  color: var(--soft);
  font-size: 13px;
  margin: 8px 0 10px;
}

.movie-desc {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-compact .movie-card-body {
  padding: 15px;
}

.card-compact h3 {
  font-size: 17px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.category-tile {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(124, 58, 237, 0.12)),
    rgba(15, 23, 42, 0.78);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.side-panel,
.category-overview-card,
.detail-article,
.player-section {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.side-panel {
  padding: 24px;
  position: sticky;
  top: 92px;
}

.rank-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mini-link {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  border-radius: 18px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.25s ease, transform 0.25s ease;
}

.mini-link:hover {
  background: rgba(245, 158, 11, 0.1);
  transform: translateX(3px);
}

.mini-link img {
  width: 92px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 13px;
}

.mini-link strong,
.mini-link em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-link strong {
  color: #fff7ed;
}

.mini-link em {
  margin-top: 6px;
  color: var(--soft);
  font-size: 13px;
  font-style: normal;
}

.panel-link {
  display: inline-flex;
  margin-top: 18px;
}

.page-main {
  padding-top: 34px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: clamp(32px, 5vw, 64px);
  background:
    radial-gradient(circle at 82% 8%, rgba(245, 158, 11, 0.22), transparent 22rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.95));
  box-shadow: var(--shadow);
}

.small-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.category-overview-list {
  display: grid;
  gap: 22px;
  padding-top: 28px;
}

.category-overview-card {
  padding: 24px;
}

.category-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}

.category-title-row h2 {
  margin: 0;
  font-size: 30px;
}

.category-title-row p {
  margin: 9px 0 0;
  color: var(--muted);
}

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

.filter-bar {
  justify-content: space-between;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-bar input {
  width: min(520px, 100%);
}

.search-hero .hero-search {
  max-width: 720px;
  margin-top: 24px;
}

.search-hero .hero-search input {
  flex: 1;
  width: auto;
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.search-chips button {
  cursor: pointer;
}

.detail-main {
  padding-top: 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--soft);
  margin: 0 0 18px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: clamp(22px, 4vw, 44px);
  background:
    radial-gradient(circle at 5% 0%, rgba(245, 158, 11, 0.16), transparent 22rem),
    rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

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

.detail-tags {
  margin-top: 20px;
}

.player-section {
  margin-top: 28px;
  padding: clamp(18px, 3vw, 28px);
}

.player-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 28px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background:
    radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 20rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.video-play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  font-size: 32px;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 22px 60px rgba(245, 158, 11, 0.38);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.detail-article {
  padding: clamp(22px, 4vw, 36px);
}

.detail-article h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.95;
}

.detail-nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.detail-nav-links a {
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.detail-nav-links a:hover {
  color: #fff;
  border-color: var(--line-strong);
}

.related-section {
  padding-top: 34px;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.68);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 34px;
  color: var(--muted);
}

.footer-grid p {
  max-width: 560px;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #fbbf24;
  font-size: 18px;
}

.footer-grid a:not(.logo) {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

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

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1080px) {
  .top-search {
    display: none;
  }

  .hero-content,
  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

  .side-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-stage {
    min-height: 560px;
    height: 74vh;
    border-radius: 24px;
  }

  .hero-content {
    padding: 28px;
  }

  .hero-dots {
    left: 28px;
    bottom: 24px;
  }

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

  .hero-quick {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .section-head,
  .category-title-row,
  .filter-bar,
  .player-title-row {
    display: grid;
    align-items: start;
  }

  .three-col,
  .four-col,
  .mini-grid,
  .category-grid,
  .footer-grid,
  .detail-hero,
  .detail-nav-links {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 16px;
  }

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

  .search-hero .hero-search,
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }

  .mobile-search input,
  .hero-search input,
  .filter-bar input {
    width: 100%;
  }

  .footer-grid {
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .nav-wrap,
  .hero,
  .content-section,
  .page-main,
  .footer-grid,
  .mobile-panel {
    width: min(100% - 22px, 1240px);
  }

  .logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
  }

  .hero-stage,
  .page-hero,
  .detail-hero,
  .player-section,
  .detail-article,
  .side-panel,
  .category-overview-card {
    border-radius: 20px;
  }
}
