:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --text-main: #162033;
  --text-soft: #64748b;
  --amber: #f59e0b;
  --orange: #ea580c;
  --gold: #fbbf24;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 14px 32px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 52%, #e2e8f0 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  color: var(--white);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong,
.footer-brand strong {
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, #fcd34d, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: #cbd5e1;
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.24);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-nav {
  padding: 10px 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(245, 158, 11, 0.32), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.28) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  color: var(--white);
  padding: 72px 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 7px 13px;
  box-shadow: 0 10px 20px rgba(234, 88, 12, 0.20);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  color: #e2e8f0;
}

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

.hero-tags span,
.detail-tags a,
.tag-list span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.detail-tags a,
.tag-list span {
  background: #fff7ed;
  color: #c2410c;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button,
.quick-card a,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-button,
.quick-card a {
  min-height: 46px;
  padding: 0 22px;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.ghost-button {
  min-height: 46px;
  padding: 0 20px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.quick-card a:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.54);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--white);
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -58px;
  position: relative;
  z-index: 4;
}

.quick-card,
.category-overview-card,
.side-panel,
.detail-article,
.filter-panel,
.podium-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.quick-card {
  padding: 24px;
}

.quick-card span {
  color: var(--orange);
  font-weight: 900;
  font-size: 13px;
}

.quick-card h2,
.section-head h2,
.category-overview-card h2,
.detail-article h2,
.side-panel h2 {
  margin: 8px 0 10px;
  color: var(--slate-800);
}

.quick-card p,
.category-overview-card p,
.detail-article p,
.side-panel a {
  color: var(--text-soft);
  line-height: 1.75;
}

.highlight-card {
  color: var(--white);
  background:
    radial-gradient(circle at 85% 0%, rgba(251, 191, 36, 0.4), transparent 34%),
    linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.highlight-card h2,
.highlight-card p {
  color: var(--white);
}

.content-section,
.category-strip,
.stacked-sections {
  margin-top: 58px;
}

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

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
}

.section-more,
.text-link {
  color: #d97706;
  padding: 10px 0;
}

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

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

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

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(255px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x proximity;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #cbd5e1, #64748b);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.06);
}

.card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), transparent 55%);
  opacity: 0.86;
}

.card-category,
.card-duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.card-category {
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.card-duration {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(2, 6, 23, 0.72);
}

.rank-badge {
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-body {
  padding: 16px;
}

.movie-card-small .card-body {
  padding: 12px;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.35;
  color: var(--slate-800);
}

.movie-card-small .card-body h3 {
  font-size: 15px;
}

.card-body h3 a:hover {
  color: var(--orange);
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
}

.score {
  color: #d97706;
  font-weight: 900;
}

.tag-list {
  margin-top: 12px;
}

.tag-list span {
  font-size: 11px;
}

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

.category-chip-grid a,
.category-tabs a {
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: 0.2s ease;
}

.category-chip-grid a {
  padding: 18px;
}

.category-chip-grid strong,
.category-chip-grid span {
  display: block;
}

.category-chip-grid span {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.category-chip-grid a:hover,
.category-tabs a:hover,
.category-tabs a.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
  transform: translateY(-3px);
}

.discovery-section {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.82), rgba(241, 245, 249, 0.92));
}

.page-hero {
  padding: 82px 0 68px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.36), transparent 26%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.compact-hero {
  padding: 70px 0 58px;
}

.page-hero p {
  max-width: 780px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.hero-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-inline-list a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 8px 12px;
  font-weight: 700;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.category-tabs a {
  padding: 10px 14px;
  font-weight: 800;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
  margin-bottom: 60px;
}

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

.mini-poster-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.mini-poster-row img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}

.filter-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px;
}

.filter-search {
  display: grid;
  gap: 8px;
  width: min(520px, 100%);
  color: var(--text-soft);
  font-weight: 800;
}

.filter-search input,
.search-box-large input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  outline: none;
  padding: 13px 15px;
  background: var(--white);
  color: var(--text-main);
}

.filter-search input:focus,
.search-box-large input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-actions button,
.search-box-large button {
  border: 0;
  border-radius: 12px;
  background: var(--slate-900);
  color: var(--white);
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: -38px;
  position: relative;
  z-index: 4;
}

.podium-card {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 16px;
  padding: 16px;
  align-items: center;
}

.podium-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
}

.podium-card span {
  color: var(--orange);
  font-weight: 900;
}

.podium-card h2 {
  margin: 8px 0;
  font-size: 22px;
}

.podium-card p {
  color: var(--text-soft);
  line-height: 1.65;
}

.detail-hero {
  padding: 58px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 12%, rgba(245, 158, 11, 0.32), transparent 30%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 330px) 1fr;
  gap: 36px;
  align-items: center;
}

.poster-panel {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

.poster-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
}

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

.detail-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
  font-weight: 800;
}

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

.player-section {
  margin-top: 46px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  text-align: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.28));
  cursor: pointer;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-pulse {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 28px;
  box-shadow: 0 0 0 12px rgba(245, 158, 11, 0.16);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  margin-top: 36px;
}

.detail-article,
.side-panel {
  padding: 24px;
}

.detail-article h2:first-child {
  margin-top: 0;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-list div {
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px;
}

.info-list dt {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.info-list dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.side-panel {
  align-self: start;
  display: grid;
  gap: 12px;
}

.side-panel a {
  display: block;
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px;
  font-weight: 800;
}

.search-box-large {
  display: flex;
  gap: 10px;
  width: min(760px, 100%);
  margin-top: 22px;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-grid p {
  color: #94a3b8;
  line-height: 1.75;
}

.footer-grid h2 {
  color: var(--white);
  font-size: 18px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #fcd34d;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.no-result {
  grid-column: 1 / -1;
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 28px;
  text-align: center;
  color: var(--text-soft);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1040px) {
  .four-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .quick-panel,
  .podium-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-content-grid {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .brand {
    min-width: auto;
  }

  .brand-text small {
    display: none;
  }

  .hero-carousel,
  .hero-content {
    min-height: 610px;
  }

  .hero-copy {
    padding: 86px 0 74px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-panel {
    margin-top: 18px;
  }

  .four-grid,
  .six-grid,
  .overview-grid,
  .category-chip-grid,
  .detail-layout,
  .info-list {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .section-head,
  .search-box-large {
    align-items: stretch;
    flex-direction: column;
  }

  .podium-card {
    grid-template-columns: 105px 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
