:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.78);
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #f59e0b;
  --accent-strong: #ea580c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 5%, rgba(245, 158, 11, 0.14), transparent 32rem),
    radial-gradient(circle at 86% 12%, rgba(234, 88, 12, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  min-height: 70vh;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.scrolled,
.site-header.menu-open {
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.26);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-icon,
.footer-brand span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent);
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.28);
}

.brand-name,
.footer-brand {
  font-size: 1.28rem;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fbbf24;
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 8px 11px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
}

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

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

.mobile-link:hover,
.mobile-link.active {
  background: rgba(245, 158, 11, 0.12);
}

.hero {
  position: relative;
  height: 78vh;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.82) 24%, rgba(2, 6, 23, 0.2) 68%, rgba(2, 6, 23, 0.7) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.52) 44%, transparent 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  bottom: 15%;
  width: min(720px, calc(100% - 48px));
}

.hero-kicker,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-kicker span,
.detail-meta span {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid var(--line);
  color: #dbeafe;
  font-size: 0.86rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-kicker span:first-child,
.detail-meta span:first-child {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border: 0;
  color: white;
}

.hero h1,
.hero h2 {
  margin: 20px 0 16px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-shadow: 0 20px 70px rgba(0, 0, 0, 0.58);
}

.hero p {
  max-width: 660px;
  margin: 0 0 28px;
  color: #d1d5db;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.hero-actions,
.quick-chips,
.page-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary-button,
.ghost-button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button,
.hero-search button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 48px rgba(245, 158, 11, 0.26);
}

.ghost-button {
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(14px);
}

.primary-button:hover,
.ghost-button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: #f59e0b;
}

.hero-search-panel {
  width: min(1180px, calc(100% - 32px));
  margin: -58px auto 0;
  position: relative;
  z-index: 4;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 0 16px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.68);
  outline: none;
}

.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.quick-chips {
  margin-top: 14px;
}

.quick-chips a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 800;
}

.quick-chips a:hover {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.section-title span {
  color: var(--accent);
  font-size: 1.35rem;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
}

.section-title a {
  margin-left: auto;
  color: #fbbf24;
  font-weight: 800;
}

.section-title.compact {
  margin-bottom: 20px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

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

.all-grid {
  align-items: start;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 19px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 20px 54px rgba(245, 158, 11, 0.14);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

.movie-card.wide .movie-cover {
  aspect-ratio: 16 / 9;
}

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

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

.cover-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 56%);
}

.play-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: rgba(245, 158, 11, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.corner-label,
.duration-label {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 9px;
  color: white;
  font-size: 0.76rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(12px);
}

.corner-label {
  left: 10px;
  top: 10px;
  background: rgba(245, 158, 11, 0.92);
}

.duration-label {
  right: 10px;
  bottom: 10px;
}

.movie-info {
  padding: 14px;
}

.movie-info h3 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 1.02rem;
  line-height: 1.35;
}

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

.movie-info p {
  margin: 0 0 12px;
  min-height: 42px;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  color: #cbd5e1;
  font-size: 0.78rem;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: start;
}

.ranking-panel,
.category-panel,
.copy-card,
.side-card,
.category-overview-card,
.ranking-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.ranking-panel,
.category-panel {
  padding: 24px;
}

.rank-list,
.mini-list {
  display: grid;
  gap: 12px;
}

.rank-item,
.mini-card {
  display: grid;
  grid-template-columns: auto 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.rank-item:hover,
.mini-card:hover {
  background: rgba(148, 163, 184, 0.1);
}

.rank-number {
  color: #fbbf24;
  font-size: 1.2rem;
  font-weight: 900;
}

.rank-item img,
.mini-card img {
  width: 78px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-copy strong,
.mini-card strong {
  display: block;
  color: #f8fafc;
  line-height: 1.35;
}

.rank-copy em,
.mini-card em {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 0.82rem;
  font-style: normal;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

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

.category-tile,
.category-overview-main {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.62));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-overview-main:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.34);
}

.category-tile strong,
.category-overview-main strong {
  display: block;
  margin-bottom: 8px;
  color: #f8fafc;
  font-size: 1.1rem;
}

.category-tile span,
.category-overview-main span {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.65;
}

.rail-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.page-hero {
  min-height: 360px;
  padding: 132px max(24px, calc((100% - 1180px) / 2)) 70px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), transparent 42%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(2, 6, 23, 0.96)),
    #0f172a;
}

.small-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.small-hero p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 1.08rem;
}

.eyebrow {
  margin-bottom: 12px !important;
  color: #fbbf24 !important;
  font-weight: 900;
  letter-spacing: 0.12em;
}

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

.category-overview-card {
  overflow: hidden;
}

.category-overview-main {
  border: 0;
  border-radius: 24px 24px 0 0;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.category-samples a {
  color: #cbd5e1;
  font-size: 0.92rem;
}

.category-samples a:hover {
  color: #fbbf24;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, 0.22fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
}

.searchable-grid .movie-card.is-hidden {
  display: none;
}

.ranking-page-list {
  display: grid;
  gap: 16px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
}

.ranking-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 17px;
}

.ranking-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 10px;
  background: #f59e0b;
  color: white;
  font-weight: 900;
}

.ranking-card h2 {
  margin: 8px 0 10px;
  font-size: 1.35rem;
}

.ranking-card h2 a:hover {
  color: #fbbf24;
}

.ranking-card p {
  color: #cbd5e1;
  line-height: 1.75;
}

.player-shell {
  padding-top: 68px;
  background: #000;
}

.player-wrap {
  position: relative;
  width: min(1180px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 52%);
  opacity: 1;
  transition: opacity 0.2s ease;
  pointer-events: auto;
}

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

.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.round-control,
.soft-control {
  border: 0;
  color: white;
  cursor: pointer;
}

.round-control {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-size: 1.3rem;
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.34);
}

.soft-control {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.player-spacer {
  flex: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.88fr);
  gap: 28px;
  align-items: start;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 0.92rem;
}

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

.detail-main h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.tag {
  padding: 7px 12px;
  border-radius: 12px;
  color: #dbeafe;
  background: rgba(148, 163, 184, 0.1);
}

.copy-card {
  padding: 24px;
  margin-bottom: 20px;
}

.copy-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 1.28rem;
}

.copy-card p {
  margin: 0 0 12px;
  color: #cbd5e1;
  line-height: 1.9;
}

.copy-card p:last-child {
  margin-bottom: 0;
}

.glow-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.78));
}

.detail-side {
  position: sticky;
  top: 88px;
}

.side-card {
  padding: 20px;
}

.side-card .mini-card {
  grid-template-columns: 86px minmax(0, 1fr);
}

.side-card .mini-card img {
  width: 86px;
  height: 58px;
}

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

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

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

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

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

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

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

  .split-layout,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

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

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

  .mobile-nav.open {
    display: block;
  }

  .hero {
    min-height: 620px;
    height: 76vh;
  }

  .hero-content {
    bottom: 16%;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .section-wrap {
    padding-top: 44px;
  }

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

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

  .ranking-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .ranking-card p {
    display: none;
  }

  .player-overlay {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .header-inner,
  .mobile-nav,
  .section-wrap,
  .hero-search-panel,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .hero h1,
  .hero h2 {
    font-size: 2.45rem;
  }

  .poster-grid,
  .featured-grid,
  .overview-grid,
  .category-grid {
    gap: 12px;
  }

  .movie-info {
    padding: 11px;
  }

  .movie-info p {
    display: none;
  }
}
