:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-700: #c2410c;
  --brown-900: #451a03;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3d9a6;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(120, 53, 15, 0.14);
  --soft-shadow: 0 10px 25px rgba(120, 53, 15, 0.10);
}

* {
  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: var(--text);
  background: linear-gradient(180deg, var(--amber-50), #fff7ed 36%, #ffffff);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #d97706, var(--orange-500), #eab308);
  box-shadow: 0 12px 28px rgba(154, 52, 18, 0.24);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  min-width: max-content;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: white;
  display: grid;
  place-items: center;
  font-size: 25px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-text em {
  font-style: normal;
  color: var(--amber-100);
  font-size: 12px;
}

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

.nav-link {
  color: white;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: white;
  color: var(--orange-600);
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.nav-search input {
  width: 150px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: white;
  color: var(--text);
}

.nav-search button,
.btn,
.hero-btn,
.filter-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button {
  padding: 9px 15px;
  color: white;
  background: rgba(120, 53, 15, 0.42);
}

.nav-search button:hover,
.btn:hover,
.hero-btn:hover,
.filter-button:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  border: 0;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  font-size: 24px;
  padding: 8px 12px;
  margin-left: auto;
}

main {
  min-height: 60vh;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #f59e0b 0%, #fb923c 52%, #facc15 100%);
}

.hero-decor {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
}

.hero-decor span {
  position: absolute;
  font-size: clamp(42px, 7vw, 96px);
  filter: blur(0.2px);
}

.hero-decor span:nth-child(1) { top: 9%; left: 7%; }
.hero-decor span:nth-child(2) { top: 25%; right: 14%; }
.hero-decor span:nth-child(3) { bottom: 18%; left: 24%; }
.hero-decor span:nth-child(4) { bottom: 8%; right: 7%; }

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 128px) 0 clamp(78px, 12vw, 148px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  color: white;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.22);
  color: white;
  padding: 9px 16px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-weight: 800;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: #fff7cc;
}

.hero-copy p {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
  color: #fff7ed;
  max-width: 680px;
}

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

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 24px;
  box-shadow: var(--soft-shadow);
}

.hero-btn.primary {
  color: var(--orange-600);
  background: white;
}

.hero-btn.secondary {
  color: white;
  background: rgba(120, 53, 15, 0.46);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags a {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 700;
}

.hero-card {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 32px 70px rgba(69, 26, 3, 0.34);
  transform: rotate(1.2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-poster img {
  width: 100%;
  height: min(54vw, 520px);
  min-height: 390px;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78));
}

.hero-card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: white;
  padding: 26px;
  z-index: 1;
}

.hero-card-copy h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.hero-card-copy p {
  margin: 0;
  color: var(--amber-100);
  line-height: 1.7;
}

.daily-badge {
  position: absolute;
  top: -18px;
  right: -12px;
  background: #ef4444;
  color: white;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  box-shadow: var(--shadow);
  transform: rotate(10deg);
  z-index: 2;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 88px;
}

.page-hero,
.content-section,
.detail-shell,
.player-section,
.related-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero {
  padding: 58px 0 34px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  color: #111827;
}

.page-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.content-section.soft {
  width: 100%;
  background: linear-gradient(180deg, var(--amber-100), #fff7ed);
}

.content-section.soft > .section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 34px;
}

.section-heading span {
  display: inline-flex;
  color: var(--orange-700);
  background: #ffedd5;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 900;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  color: #111827;
}

.section-heading p {
  margin: 12px auto 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%) scale(0.7);
  border-radius: 999px;
  background: white;
  color: var(--orange-600);
  display: grid;
  place-items: center;
  opacity: 0;
  box-shadow: var(--shadow);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(90deg, #ef4444, var(--orange-500));
  color: white;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  box-shadow: var(--soft-shadow);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--orange-700);
  font-weight: 800;
  margin-bottom: 10px;
}

.movie-meta-line span {
  background: #fff7ed;
  border-radius: 999px;
  padding: 5px 9px;
}

.movie-card h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 0 0 9px;
  color: #111827;
}

.movie-card h3 a:hover {
  color: var(--orange-600);
}

.movie-card p {
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.7;
  font-size: 14px;
}

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

.tag-row span {
  background: var(--amber-50);
  color: #92400e;
  border-radius: 10px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  background: linear-gradient(135deg, white, #fff7ed);
  border: 1px solid #fed7aa;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card strong {
  display: block;
  font-size: 23px;
  color: #111827;
  margin-bottom: 10px;
}

.category-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 16px;
}

.category-card span {
  color: var(--orange-600);
  font-weight: 900;
}

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

.feature-box {
  color: white;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  padding: 26px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.feature-box:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.2);
}

.feature-box b {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: white;
  color: var(--orange-600);
  font-size: 24px;
  margin-bottom: 14px;
}

.feature-box h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.feature-box p {
  margin: 0;
  color: #fff7ed;
  line-height: 1.75;
}

.mission-section {
  padding: 62px 0;
  background: linear-gradient(90deg, var(--orange-500), var(--amber-500), #eab308);
  overflow: hidden;
}

.mission-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.mission-title {
  color: white;
  text-align: center;
  margin-bottom: 30px;
}

.mission-title h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 0 0 10px;
}

.mission-title p {
  margin: 0;
  color: var(--amber-100);
  font-size: 18px;
}

.library-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: white;
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--soft-shadow);
  margin-bottom: 28px;
}

.library-tools input {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 16px;
  outline-color: var(--orange-500);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  color: #9a3412;
  background: #ffedd5;
  padding: 12px 16px;
}

.filter-button.active {
  color: white;
  background: var(--orange-600);
}

.detail-hero {
  background: radial-gradient(circle at top left, #ffedd5, transparent 34%), linear-gradient(180deg, #fff7ed, white);
}

.detail-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 38px;
  padding: 48px 0 34px;
  align-items: start;
}

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #fed7aa, #fde68a);
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--orange-600);
  font-weight: 800;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  color: #111827;
}

.detail-info .lead {
  font-size: 19px;
  line-height: 1.85;
  color: #4b5563;
  margin-bottom: 22px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-meta span {
  background: white;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 800;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
}

.btn.primary {
  color: white;
  background: var(--orange-600);
  box-shadow: var(--soft-shadow);
}

.btn.ghost {
  color: var(--orange-700);
  background: #ffedd5;
}

.player-section {
  padding: 26px 0 20px;
}

.player-wrap {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.32);
}

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

.video-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.58));
  color: white;
}

.video-start span {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--orange-600);
  font-size: 34px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.video-start:hover span {
  transform: scale(1.08);
}

.video-start.is-hidden {
  display: none;
}

.article-body {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 18px;
}

.article-body h2 {
  font-size: 28px;
  margin: 28px 0 12px;
  color: #111827;
}

.article-body p {
  font-size: 17px;
  line-height: 1.95;
  color: #374151;
}

.related-section {
  padding: 36px 0 70px;
}

.static-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.static-page h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 52px);
}

.static-page h2 {
  margin-top: 34px;
  font-size: 26px;
}

.static-page p,
.static-page li {
  color: #4b5563;
  line-height: 1.9;
  font-size: 17px;
}

.site-footer {
  color: white;
  background: linear-gradient(135deg, #78350f, #9a3412, #78350f);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 50px 0 34px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: white;
  font-size: 23px;
}

.footer-brand p,
.footer-group a {
  color: var(--amber-100);
  line-height: 1.8;
}

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

.footer-group a {
  display: block;
  margin: 8px 0;
}

.footer-group a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(253, 230, 138, 0.24);
  color: var(--amber-200);
  text-align: center;
  padding: 20px 16px;
}

[data-card].is-hidden {
  display: none;
}

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

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

@media (max-width: 860px) {
  .nav-shell {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

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

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 0;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    background: rgba(255, 255, 255, 0.13);
  }

  .hero-shell,
  .detail-shell {
    grid-template-columns: 1fr;
  }

  .hero-poster img {
    height: auto;
    min-height: 330px;
  }

  .movie-grid,
  .category-grid,
  .feature-strip,
  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-tools {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 360px;
  }
}

@media (max-width: 560px) {
  .brand-text strong {
    font-size: 18px;
  }

  .brand-text em {
    display: none;
  }

  .hero-shell {
    padding-top: 52px;
  }

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

  .hero-btn,
  .btn {
    justify-content: center;
  }

  .movie-grid,
  .category-grid,
  .feature-strip,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .movie-card-body {
    padding: 16px;
  }

  .video-start span {
    width: 66px;
    height: 66px;
  }
}
