:root {
  --bg: #0f172a;
  --bg-deep: #020617;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-solid: #111827;
  --text: #fff7ed;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --amber: #f59e0b;
  --amber-light: #fcd34d;
  --orange: #ea580c;
  --rose: #e11d48;
  --teal: #14b8a6;
  --line: rgba(251, 191, 36, 0.18);
  --shadow: 0 28px 70px rgba(2, 6, 23, 0.42);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  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(245, 158, 11, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 0, rgba(225, 29, 72, 0.16), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #111827 48%, #431407 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  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 75%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

.shell,
.nav-wrap,
.footer-grid,
.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.96), rgba(67, 20, 7, 0.9));
  border-bottom: 1px solid rgba(251, 191, 36, 0.22);
  box-shadow: 0 16px 45px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #451a03;
  background: linear-gradient(135deg, #fde68a, #f59e0b, #fb7185);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.35);
}

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

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

.nav-link,
.mobile-nav-link {
  position: relative;
  color: #fffbeb;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: #fcd34d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(253, 230, 138, 0.28);
  background: rgba(120, 53, 15, 0.4);
  border-radius: 14px;
  padding: 9px;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(120, 53, 15, 0.34);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-bottom: 1px solid rgba(251, 191, 36, 0.12);
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 42px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  padding: 118px 0 92px;
}

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

.hero-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 20%, rgba(253, 230, 138, 0.24), transparent 28rem),
    linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.66));
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.hero-kicker,
.eyebrow,
.card-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fcd34d;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.hero p {
  margin: 0;
  max-width: 690px;
  color: #fed7aa;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(253, 230, 138, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #451a03;
  background: linear-gradient(135deg, #fde68a, #f59e0b, #fb7185);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.36);
}

.btn-ghost {
  color: #fffbeb;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  background: rgba(15, 23, 42, 0.7);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(253, 230, 138, 0.3);
  border-radius: inherit;
  z-index: 2;
}

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

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #451a03;
  font-weight: 900;
  background: #fde68a;
  z-index: 3;
}

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

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

.hero-dot.is-active {
  background: #fcd34d;
}

.section {
  padding: 74px 0;
}

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

.section-heading span {
  color: #fcd34d;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 900;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.detail-one-line,
.detail-article p,
.footer-grid p,
.category-panel p {
  color: var(--muted);
  line-height: 1.85;
}

.section-link,
.text-link {
  color: #fcd34d;
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
}

.category-tile img,
.category-panel-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile::after,
.category-panel-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.82));
}

.category-tile:hover img,
.category-panel:hover img {
  opacity: 0.55;
  transform: scale(1.06);
}

.category-tile span,
.category-tile strong {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 1.25rem;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 8px;
  color: #fed7aa;
  font-size: 0.88rem;
  line-height: 1.6;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.95), rgba(255, 247, 237, 0.9));
  color: #1f2937;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 65px rgba(2, 6, 23, 0.32);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.card-cover img {
  width: 100%;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.cover-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(2, 6, 23, 0.62));
}

.play-chip,
.rank-badge {
  position: absolute;
  color: #451a03;
  background: #fcd34d;
  font-weight: 900;
  border-radius: 999px;
  z-index: 3;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  font-size: 0.78rem;
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 8px 0 10px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #b45309;
}

.card-desc {
  margin: 0 0 14px;
  color: #475569;
  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;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  color: #fffbeb;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(253, 230, 138, 0.22);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(150px, 210px);
  align-items: end;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(16px);
}

.search-box,
.year-select {
  display: grid;
  gap: 8px;
  color: #fde68a;
  font-weight: 800;
}

.search-box input,
.year-select select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(253, 230, 138, 0.22);
  outline: none;
  border-radius: 14px;
  padding: 0 14px;
  color: #fff7ed;
  background: rgba(2, 6, 23, 0.54);
}

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

.filter-actions button {
  min-height: 42px;
  border: 1px solid rgba(253, 230, 138, 0.22);
  border-radius: 999px;
  padding: 0 14px;
  color: #fffbeb;
  background: rgba(120, 53, 15, 0.35);
  cursor: pointer;
}

.filter-actions button.is-active,
.filter-actions button:hover {
  color: #451a03;
  background: #fcd34d;
}

.empty-state {
  padding: 18px;
  border-radius: var(--radius-md);
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 72px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(253, 230, 138, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.56);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: rgba(120, 53, 15, 0.42);
}

.rank-num {
  color: #fcd34d;
  font-size: 1.3rem;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 72px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-copy {
  display: grid;
  gap: 8px;
}

.rank-copy strong {
  font-size: 1.05rem;
}

.rank-copy em {
  color: var(--soft);
  font-style: normal;
  line-height: 1.6;
}

.rank-action {
  color: #451a03;
  background: #fde68a;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
}

.page-hero,
.detail-hero {
  padding: 118px 0 42px;
}

.page-hero {
  min-height: 320px;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--soft);
}

.crumb a {
  color: #fde68a;
}

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

.category-panel {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 240px;
  padding: 20px;
  border: 1px solid rgba(253, 230, 138, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.58);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.category-panel-cover {
  position: relative;
  display: block;
  width: 180px;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  background: #111827;
}

.mini-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.mini-title-row span {
  color: #451a03;
  background: #fde68a;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.detail-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(15, 23, 42, 0.7);
}

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

.detail-copy h1 {
  font-size: clamp(2.6rem, 7vw, 6rem);
}

.detail-one-line {
  font-size: 1.15rem;
  max-width: 820px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #020617;
  box-shadow: var(--shadow);
  border: 1px solid rgba(253, 230, 138, 0.18);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff7ed;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.48), rgba(120, 53, 15, 0.72));
  cursor: pointer;
  z-index: 5;
}

.player-shell.is-playing .play-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #451a03;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-size: 2rem;
  box-shadow: 0 16px 45px rgba(245, 158, 11, 0.36);
}

.play-cover strong {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(253, 230, 138, 0.2);
}

.detail-article article {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 235, 0.95);
  color: #1f2937;
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.24);
}

.detail-article h2 {
  margin: 0 0 12px;
  color: #78350f;
  font-size: 1.55rem;
}

.detail-article p + h2 {
  margin-top: 28px;
}

.movie-card-compact .card-desc {
  -webkit-line-clamp: 2;
}

.site-footer {
  margin-top: 70px;
  padding: 58px 0 26px;
  background: linear-gradient(135deg, #020617, #111827 58%, #431407);
  border-top: 1px solid rgba(253, 230, 138, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}

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

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

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

.footer-bottom {
  margin-top: 38px;
  padding-top: 18px;
  color: var(--soft);
  border-top: 1px solid rgba(253, 230, 138, 0.12);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1020px) {
  .hero-slide,
  .detail-grid,
  .footer-grid,
  .category-grid,
  .movie-grid,
  .category-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 840px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .hero-poster {
    max-width: 320px;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide,
  .detail-grid,
  .footer-grid,
  .category-grid,
  .movie-grid,
  .category-panel-grid,
  .category-panel {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 15vw, 4.2rem);
  }

  .hero-poster {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .category-tile {
    min-height: 180px;
  }

  .category-panel-cover {
    width: 100%;
    height: 260px;
  }

  .rank-row {
    grid-template-columns: 44px 60px 1fr;
  }

  .rank-action {
    display: none;
  }

  .page-hero,
  .detail-hero {
    padding-top: 96px;
  }

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

@media (max-width: 460px) {
  .shell,
  .nav-wrap,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .brand-text {
    font-size: 1.08rem;
  }

  .hero-actions,
  .detail-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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