:root {
  --amber-50: #fffbeb;
  --rose-50: #fff1f2;
  --sky-50: #f0f9ff;
  --amber: #f59e0b;
  --rose: #e11d48;
  --sky: #0284c7;
  --ink: #111827;
  --muted: #64748b;
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(148, 163, 184, 0.25);
  --shadow: 0 24px 65px rgba(15, 23, 42, 0.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.22), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(2, 132, 199, 0.18), transparent 32%),
    linear-gradient(135deg, var(--amber-50), var(--rose-50) 48%, var(--sky-50));
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.9), rgba(255, 241, 242, 0.9), rgba(240, 249, 255, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  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.03em;
}

.brand-text {
  max-width: 380px;
  overflow: hidden;
  color: transparent;
  font-size: clamp(18px, 2vw, 26px);
  white-space: nowrap;
  text-overflow: ellipsis;
  background: linear-gradient(90deg, #b45309, #e11d48, #0284c7);
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.25);
}

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

.nav-link {
  padding: 10px 15px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #be123c;
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-slides,
.hero-slide {
  min-height: 640px;
}

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

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

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

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

.hero-media img.is-missing,
.detail-backdrop img.is-missing,
.poster-frame img.is-missing {
  opacity: 0;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(120, 53, 15, 0.92), rgba(136, 19, 55, 0.82), rgba(12, 74, 110, 0.8)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.7), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 120px 0 80px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(36px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin: 22px 0 10px;
  font-size: clamp(24px, 3vw, 40px);
}

.hero-content p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

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

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

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 18px 40px rgba(225, 29, 72, 0.28);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.btn.soft {
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.84);
}

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

.hero-dot {
  width: 38px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.search-band,
.content-section,
.page-hero-inner,
.detail-inner,
.footer-grid,
.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.search-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: -54px;
  padding: 30px;
  position: relative;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-band h2,
.section-heading h2,
.category-strip h2,
.detail-text h2,
.detail-side h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.04em;
}

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

.glass-section {
  width: 100%;
  padding: 72px max(16px, calc((100% - 1180px) / 2)) 0;
  background: rgba(255, 255, 255, 0.46);
}

.section-heading {
  margin-bottom: 28px;
}

.inline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: #be123c;
  font-weight: 900;
}

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

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-card.is-hidden,
.empty-state {
  display: none;
}

.empty-state.is-visible {
  display: block;
  padding: 30px;
  text-align: center;
  color: #64748b;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 120px;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.38), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(2, 132, 199, 0.34), transparent 32%),
    linear-gradient(135deg, #1f2937, #881337 52%, #0c4a6e);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

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

.movie-card.grid .poster-frame,
.movie-card.feature .poster-frame {
  aspect-ratio: 3 / 4;
}

.movie-card.wide .poster-frame,
.movie-card.rank .poster-frame {
  aspect-ratio: 16 / 9;
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.92);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.3);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--rose));
}

.card-content {
  padding: 18px;
}

.card-title {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.card-title:hover {
  color: #be123c;
}

.card-meta,
.card-desc {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.card-meta {
  font-size: 13px;
  font-weight: 700;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  color: #9f1239;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(255, 228, 230, 0.92);
}

.tag-row.large span {
  min-height: 30px;
  font-size: 13px;
}

.category-strip {
  margin-top: 34px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.page-hero {
  padding: 88px 0 38px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(120, 53, 15, 0.92), rgba(136, 19, 55, 0.86), rgba(12, 74, 110, 0.9)),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.25), transparent 30%);
}

.page-hero-inner p:last-child {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 180px));
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: #111827;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12);
}

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

.category-card {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-card p {
  color: #64748b;
  line-height: 1.7;
}

.compact-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.compact-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.compact-poster {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  font-size: 15px;
  line-height: 1.4;
}

.compact-card em {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 132px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-index {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber), var(--rose));
}

.rank-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

.rank-score {
  text-align: right;
}

.rank-score strong {
  display: block;
  color: #be123c;
  font-size: 28px;
}

.rank-score span {
  color: #64748b;
  font-size: 12px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.32;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.2);
  transform: scale(1.05);
}

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.95), rgba(136, 19, 55, 0.86), rgba(12, 74, 110, 0.88));
}

.detail-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 42px;
  align-items: center;
  padding: 82px 0 56px;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.breadcrumb {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

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

.detail-copy .lead {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.player-section {
  padding-top: 54px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #020617;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.44), rgba(2, 6, 23, 0.18));
  cursor: pointer;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  font-size: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 18px 40px rgba(225, 29, 72, 0.36);
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
}

.detail-text,
.detail-side {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.detail-text p {
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.detail-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: #64748b;
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.detail-list a {
  color: #be123c;
}

.site-footer {
  margin-top: 80px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #111827, #1e293b, #111827);
}

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

.footer-brand {
  color: #ffffff;
  font-size: 20px;
}

.site-footer p {
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 17px;
}

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

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

.footer-bottom {
  padding: 18px 0 28px;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

  .menu-toggle {
    display: flex;
  }

  .movie-grid.three,
  .movie-grid.four,
  .rank-grid,
  .category-grid,
  .detail-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-inner {
    grid-template-columns: 220px 1fr;
  }

  .rank-row {
    grid-template-columns: 50px 100px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .header-inner {
    height: 64px;
  }

  .brand-text {
    max-width: 240px;
    font-size: 17px;
  }

  .hero-slider,
  .hero-slides,
  .hero-slide {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 90px;
  }

  .search-band,
  .inline-heading,
  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid.three,
  .movie-grid.four,
  .rank-grid,
  .category-grid,
  .detail-grid,
  .footer-grid,
  .detail-inner,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 92px 1fr;
    gap: 12px;
  }

  .rank-score {
    grid-column: 2 / -1;
  }

  .content-section {
    padding-top: 48px;
  }

  .detail-inner {
    padding-top: 54px;
  }

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