:root {
  color-scheme: light;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: rgba(148, 163, 184, 0.26);
  --amber: #d97706;
  --amber-dark: #b45309;
  --rose: #e11d48;
  --orange: #f97316;
  --cream: #fff7ed;
  --shadow: 0 20px 55px rgba(146, 64, 14, 0.12);
  --shadow-strong: 0 30px 70px rgba(146, 64, 14, 0.2);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(251, 191, 36, 0.18), transparent 32rem),
    radial-gradient(circle at 100% 4%, rgba(244, 63, 94, 0.10), transparent 30rem),
    linear-gradient(180deg, #fffaf0 0%, #ffffff 38%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(255, 251, 235, 0.88);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 35px rgba(146, 64, 14, 0.08);
}

.nav-wrap {
  width: min(1220px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #7c2d12;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 18px 30px rgba(217, 119, 6, 0.22);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #92400e;
  background: rgba(251, 191, 36, 0.18);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fef3c7;
  color: #92400e;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 700;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: #92400e;
  background: #fef3c7;
}

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

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 34px;
}

.hero-shell {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: var(--shadow-strong);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.72fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 56px);
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  filter: saturate(1.1);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.78) 44%, rgba(17, 24, 39, 0.34) 100%),
    radial-gradient(circle at 20% 18%, rgba(245, 158, 11, 0.34), transparent 24rem),
    radial-gradient(circle at 76% 20%, rgba(225, 29, 72, 0.28), transparent 25rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(146, 64, 14, 0.18);
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 720px;
  color: #fef3c7;
  font-size: clamp(16px, 2vw, 19px);
}

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

.hero-meta span,
.movie-meta span,
.detail-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  color: #92400e;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800;
}

.hero .hero-meta span,
.hero .tag {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  font-weight: 900;
  box-shadow: 0 18px 36px rgba(217, 119, 6, 0.24);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 44px rgba(217, 119, 6, 0.32);
  filter: saturate(1.08);
}

.btn.secondary {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(253, 230, 138, 0.28);
  box-shadow: none;
}

.poster-panel {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: end;
  width: min(390px, 100%);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.poster-panel img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.hero-dots {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  bottom: 30px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

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

.quick-search {
  position: relative;
  z-index: 5;
  width: min(980px, calc(100% - 36px));
  margin: -36px auto 0;
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.26);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.site-search {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  outline: none;
  background: #fff7ed;
  color: #7c2d12;
  font-weight: 700;
}

.site-search:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  transform: translateY(-1px);
}

.section {
  padding: 58px 0;
}

.section.alt {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.74), rgba(255, 241, 242, 0.74));
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--amber);
  font-weight: 900;
}

.section-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 700px;
}

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

.movie-grid.large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(146, 64, 14, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.44);
  box-shadow: 0 26px 54px rgba(146, 64, 14, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #ffe4e6);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.42s ease;
}

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

.card-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.82));
}

.rank-badge,
.type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 38px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.25);
}

.type-badge {
  left: auto;
  right: 12px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 14px;
}

.movie-grid.large .card-body {
  padding: 18px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.32;
}

.movie-grid.large .movie-card h3 {
  font-size: 22px;
}

.movie-card h3 a:hover {
  color: var(--amber-dark);
}

.card-line {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  min-height: 170px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background:
    radial-gradient(circle at 95% 10%, rgba(251, 113, 133, 0.18), transparent 9rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 237, 0.95));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 58px 0 38px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(124, 45, 18, 0.94), rgba(217, 119, 6, 0.86), rgba(225, 29, 72, 0.86)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 22rem);
}

.page-hero p {
  max-width: 800px;
  color: #fffbeb;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fef3c7;
  font-weight: 800;
}

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

.toolbar {
  padding: 24px;
  margin: 34px auto 0;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.detail-hero {
  padding: 36px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #fef3c7, #ffe4e6);
  box-shadow: var(--shadow-strong);
}

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

.detail-title h1 {
  color: var(--ink);
}

.detail-title p {
  color: var(--muted);
  font-size: 18px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.content-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.content-card p {
  color: #4b5563;
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow-strong);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  display: block;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.14), rgba(2, 6, 23, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 20px 52px rgba(217, 119, 6, 0.34);
  cursor: pointer;
}

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

.site-footer {
  margin-top: 56px;
  padding: 44px 0;
  color: #fde68a;
  background: linear-gradient(135deg, #78350f, #92400e, #7f1d1d);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 30px;
}

.site-footer h2,
.site-footer h3 {
  margin-top: 0;
  color: #ffffff;
}

.site-footer a {
  display: inline-block;
  margin: 4px 10px 4px 0;
  color: #fde68a;
}

.site-footer a:hover {
  color: #ffffff;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 22px;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

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

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

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

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-shell {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .poster-panel {
    justify-self: start;
    width: min(260px, 72vw);
  }

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

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

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

@media (max-width: 680px) {
  .container,
  .nav-wrap,
  .mobile-nav {
    width: min(100% - 22px, 1220px);
  }

  .hero {
    padding-top: 16px;
  }

  .hero-shell {
    border-radius: 24px;
    min-height: 720px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-dots {
    left: 24px;
    bottom: 20px;
  }

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

  .section-head {
    display: block;
  }

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

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

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

  .card-body {
    padding: 12px;
  }

  .hero h1,
  .page-hero h1,
  .detail-title h1 {
    font-size: 36px;
  }
}
