* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #fef3c7;
  background: #020617;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 12%, rgba(245, 158, 11, 0.18), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(147, 51, 234, 0.24), transparent 32%),
    linear-gradient(180deg, #0f172a 0%, #020617 48%, #0f172a 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 80%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(88, 28, 135, 0.92), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1200px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 999px;
  box-shadow: 0 0 34px rgba(245, 158, 11, 0.28);
}

.brand-text,
.footer-brand {
  font-size: 20px;
  background: linear-gradient(90deg, #fde68a, #f59e0b, #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: rgba(254, 243, 199, 0.86);
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

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

.nav-search input,
.mobile-search input,
.search-panel input,
.filter-panel input {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  width: 220px;
  padding: 10px 16px;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.filter-panel input:focus {
  border-color: rgba(251, 191, 36, 0.8);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
  background: rgba(255, 255, 255, 0.12);
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.search-panel input::placeholder,
.filter-panel input::placeholder {
  color: rgba(253, 230, 138, 0.52);
}

.nav-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.section-link,
.filter-chip {
  border: 0;
  cursor: pointer;
}

.nav-search button,
.mobile-search button {
  padding: 10px 14px;
  color: #111827;
  background: #f59e0b;
  border-radius: 999px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  color: #fde68a;
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 22px 18px;
  border-top: 1px solid rgba(245, 158, 11, 0.15);
}

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

.mobile-link {
  display: block;
  padding: 12px 0;
  color: #fde68a;
}

.mobile-search input {
  width: 100%;
  padding: 11px 16px;
}

.hero {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 158, 11, 0.14);
}

.hero-slider {
  position: relative;
  min-height: 76vh;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.42) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.22) 45%, rgba(2, 6, 23, 0.72) 100%);
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  min-height: 76vh;
  margin: 0 auto;
  padding: 72px 22px 110px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 56px;
  align-items: center;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow b {
  padding: 4px 9px;
  color: #111827;
  background: #fbbf24;
  border-radius: 999px;
}

.hero h1,
.page-hero h1,
.detail-heading h1 {
  margin: 0;
  color: #fff7ed;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(42px, 7vw, 82px);
}

.hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(253, 230, 138, 0.82);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.filter-chips,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  padding: 7px 12px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
}

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

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.24);
}

.ghost-btn,
.section-link {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  align-self: center;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-poster:hover img {
  transform: scale(1.08);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  text-align: center;
  padding: 11px 12px;
  border-radius: 999px;
  color: #111827;
  background: rgba(251, 191, 36, 0.92);
  font-weight: 900;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(253, 230, 138, 0.42);
  border: 0;
  cursor: pointer;
}

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

.hero-category-bar {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  width: min(1156px, calc(100% - 44px));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 22px;
  backdrop-filter: blur(18px);
}

.hero-category-bar a {
  flex: 0 0 auto;
  padding: 10px 16px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.content-section,
.page-hero,
.detail-top,
.detail-layout {
  width: min(1200px, calc(100% - 44px));
  margin: 0 auto;
}

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

.section-head,
.category-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2,
.category-title-row h2,
.spotlight-panel h2,
.side-card h2,
.text-card h2 {
  margin: 0;
  color: #fff7ed;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-head p,
.category-title-row p,
.spotlight-panel p,
.page-hero p,
.text-card p,
.lead-text {
  color: rgba(253, 230, 138, 0.72);
  line-height: 1.85;
}

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

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

.movie-card {
  min-width: 0;
}

.card-link {
  display: grid;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.12);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 26px 80px rgba(245, 158, 11, 0.12);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  display: block;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(88, 28, 135, 0.24));
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 2 / 2.85;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.card-link:hover .poster-wrap img {
  transform: scale(1.08);
}

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

.score-badge,
.duration-badge {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.score-badge {
  top: 10px;
  left: 10px;
  color: #111827;
  background: #fbbf24;
}

.duration-badge {
  right: 10px;
  bottom: 10px;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.74);
}

.card-body {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.card-meta {
  color: rgba(253, 230, 138, 0.55);
  font-size: 12px;
}

.card-body strong {
  color: #fff7ed;
  line-height: 1.35;
  font-size: 16px;
}

.card-desc {
  color: rgba(253, 230, 138, 0.66);
  font-size: 13px;
  line-height: 1.6;
}

.tag-row span {
  padding: 5px 8px;
  font-size: 12px;
}

.large-tags span {
  font-size: 13px;
}

.rank-grid,
.rank-page-list {
  display: grid;
  gap: 14px;
}

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

.rank-link {
  display: grid;
  grid-template-columns: 48px 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 126px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-link:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.42);
}

.rank-num {
  color: #fbbf24;
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.rank-link img {
  width: 96px;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.rank-copy strong {
  color: #fff7ed;
  font-size: 18px;
}

.rank-copy span,
.rank-copy em {
  color: rgba(253, 230, 138, 0.66);
  font-style: normal;
  line-height: 1.5;
}

.rank-score {
  padding: 8px 11px;
  color: #111827;
  background: #fbbf24;
  border-radius: 999px;
  font-weight: 950;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: stretch;
}

.spotlight-panel,
.category-mini-grid a,
.category-block,
.search-panel,
.filter-panel,
.text-card,
.side-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.13);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.spotlight-panel {
  padding: 32px;
}

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

.category-mini-grid a {
  display: grid;
  gap: 8px;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-mini-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.42);
}

.category-mini-grid strong {
  color: #fff7ed;
  font-size: 18px;
}

.category-mini-grid span {
  color: rgba(253, 230, 138, 0.65);
  line-height: 1.65;
}

.page-hero {
  padding: 70px 0 26px;
}

.small-hero > div {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(88, 28, 135, 0.74), rgba(15, 23, 42, 0.86)),
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.28), transparent 32%);
  border: 1px solid rgba(245, 158, 11, 0.17);
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
}

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

.category-block {
  padding: 24px;
}

.search-panel,
.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
}

.search-panel label {
  color: #fff7ed;
  font-weight: 900;
  font-size: 20px;
}

.search-panel input,
.filter-panel input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 18px;
}

.filter-chip {
  padding: 9px 13px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.14);
}

.filter-chip.active,
.filter-chip:hover {
  color: #111827;
  background: #fbbf24;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 42px;
  text-align: center;
  color: rgba(253, 230, 138, 0.72);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.13);
  border-radius: 24px;
}

.empty-state.show {
  display: block;
}

.detail-top {
  padding: 34px 0 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(253, 230, 138, 0.68);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.44);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: #fff7ed;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.18)),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.18), transparent 42%);
  border: 0;
  cursor: pointer;
  z-index: 5;
}

.play-cover.hidden {
  display: none;
}

.play-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: #111827;
  background: #fbbf24;
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 18px 70px rgba(245, 158, 11, 0.32);
}

.play-cover strong {
  font-size: clamp(24px, 4vw, 44px);
  max-width: 80%;
  text-align: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  padding: 34px 0 90px;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.detail-heading {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.13);
  border-radius: 28px;
}

.detail-heading > img {
  width: 220px;
  border-radius: 22px;
  aspect-ratio: 2 / 2.85;
  object-fit: cover;
}

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

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

.text-card {
  padding: 26px;
}

.text-card h2,
.side-card h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.text-card p {
  margin: 0;
  font-size: 16px;
}

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

.side-card {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.related-item img {
  width: 112px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.related-item span {
  display: grid;
  gap: 5px;
}

.related-item strong {
  color: #fff7ed;
  line-height: 1.35;
}

.related-item em {
  color: rgba(253, 230, 138, 0.62);
  font-size: 13px;
  font-style: normal;
}

.site-footer {
  margin-top: 72px;
  padding: 42px 22px 22px;
  color: rgba(253, 230, 138, 0.68);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(2, 6, 23, 0.96));
  border-top: 1px solid rgba(245, 158, 11, 0.14);
}

.footer-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 28px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #fbbf24;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  width: min(1200px, 100%);
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 158, 11, 0.12);
}

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

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

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

  .side-card {
    position: static;
  }
}

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

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

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .detail-heading > img {
    width: 180px;
  }

  .section-head,
  .category-title-row {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .content-section,
  .page-hero,
  .detail-top,
  .detail-layout {
    width: min(100% - 28px, 1200px);
  }

  .hero,
  .hero-slider,
  .hero-inner {
    min-height: 72vh;
  }

  .hero-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

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

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

  .rank-link {
    grid-template-columns: 42px 78px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 2 / 4;
    width: max-content;
  }

  .rank-link img {
    width: 78px;
    height: 90px;
  }

  .small-hero > div,
  .spotlight-panel,
  .category-block,
  .text-card,
  .detail-heading {
    padding: 20px;
    border-radius: 22px;
  }

  .related-item {
    grid-template-columns: 96px 1fr;
  }

  .related-item img {
    width: 96px;
  }
}
