:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --amber-100: #fef3c7;
  --paper: #ffffff;
  --soft: #fff7ed;
  --line: rgba(146, 64, 14, 0.14);
  --shadow: 0 22px 50px rgba(120, 53, 15, 0.18);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 32rem),
    linear-gradient(135deg, #fffbeb 0%, #fff7ed 48%, #fef3c7 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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;
  color: #fff;
  background: linear-gradient(90deg, #78350f 0%, #92400e 48%, #78350f 100%);
  box-shadow: 0 16px 38px rgba(69, 26, 3, 0.32);
}

.header-inner {
  width: min(1220px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.35);
  transition: transform 0.28s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-5deg);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.1;
  color: transparent;
  background: linear-gradient(90deg, #fde68a, #fff7ed);
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text small {
  color: #fde68a;
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: #fffbeb;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.1);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(300px, 28vw);
}

.header-search input,
.mobile-search input,
.hero-search input,
.page-search input,
.inline-search input {
  width: 100%;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  padding: 12px 16px;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.96);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.page-search input:focus,
.inline-search input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.header-search button,
.mobile-search button,
.hero-search button,
.page-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.26);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(253, 230, 138, 0.2);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

main {
  min-height: 60vh;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  color: #fff;
  background: #451a03;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: blur(2px) saturate(1.12);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 40%, rgba(245, 158, 11, 0.28), transparent 26rem),
    linear-gradient(90deg, rgba(69, 26, 3, 0.92), rgba(120, 53, 15, 0.72), rgba(17, 24, 39, 0.58));
}

.hero-content {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  min-height: 610px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 54px;
  padding: 78px 0 150px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(253, 230, 138, 0.45);
  border-radius: 999px;
  padding: 8px 14px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1 {
  max-width: 850px;
  margin: 20px 0 18px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #fffbeb;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 700;
}

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

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

.primary-button,
.primary-link {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.28);
}

.ghost-button,
.section-more {
  color: #78350f;
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.primary-button:hover,
.ghost-button:hover,
.primary-link:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(120, 53, 15, 0.24);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.hero-poster span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.25);
  font-size: 26px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-controls button {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
}

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

.hero-search-panel {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 5;
  width: min(960px, calc(100% - 32px));
  border: 1px solid rgba(253, 230, 138, 0.24);
  border-radius: 28px;
  padding: 18px;
  background: rgba(69, 26, 3, 0.7);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-category-links a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.1);
}

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

.warm-section {
  width: 100%;
  max-width: none;
  padding: 70px max(16px, calc((100% - 1220px) / 2));
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), inset 0 -1px 0 rgba(146, 64, 14, 0.08);
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-heading p,
.page-hero p,
.detail-one-line,
.category-index-head p,
.category-showcase-card p,
.detail-article p,
.player-copy p {
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.38);
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

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

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(69, 26, 3, 0.78));
}

.play-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line a,
.breadcrumb a {
  color: #d97706;
}

.movie-card h2 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.25;
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 14px;
  color: #6b7280;
  line-height: 1.65;
  font-size: 14px;
}

.compact-card .movie-card-body {
  padding: 14px;
}

.compact-card h2 {
  font-size: 17px;
}

.compact-card p {
  min-height: 0;
  font-size: 13px;
}

.category-showcase-grid,
.category-index-grid {
  display: grid;
  gap: 24px;
}

.category-showcase-card,
.category-index-card,
.player-card,
.detail-article {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(120, 53, 15, 0.1);
}

.category-showcase-head,
.category-index-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.category-showcase-head h2,
.category-index-head h2,
.player-copy h2,
.detail-article h2 {
  margin: 0;
  color: #1f2937;
  font-size: 26px;
}

.category-showcase-head a {
  color: #d97706;
  font-weight: 800;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  width: min(1220px, calc(100% - 32px));
  margin: 34px auto 0;
  border-radius: 34px;
  padding: clamp(34px, 6vw, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background:
    radial-gradient(circle at 90% 20%, rgba(251, 191, 36, 0.28), transparent 22rem),
    linear-gradient(135deg, #ffffff 0%, #fff7ed 58%, #fef3c7 100%);
  box-shadow: var(--shadow);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.16);
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero p {
  max-width: 720px;
  margin-bottom: 0;
}

.page-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  min-width: min(460px, 100%);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-chip {
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  padding: 10px 14px;
  color: #78350f;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-chip.active,
.filter-chip:hover {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.inline-search {
  max-width: 520px;
  margin: 0 0 24px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #451a03;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(3px) saturate(1.15);
  transform: scale(1.05);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.94), rgba(120, 53, 15, 0.76), rgba(17, 24, 39, 0.68));
}

.detail-layout {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fde68a;
  font-size: 14px;
}

.detail-info h1 {
  color: #fff;
  font-size: clamp(42px, 6vw, 72px);
}

.detail-one-line {
  max-width: 840px;
  color: #fff7ed;
  font-size: 19px;
}

.detail-tags {
  margin: 22px 0 28px;
}

.player-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 26px;
  align-items: stretch;
}

.video-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.movie-video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.movie-video {
  display: block;
  object-fit: cover;
  background: #0f172a;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #0f172a;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.72;
}

.player-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  font-size: 34px;
}

.player-copy {
  align-self: center;
}

.detail-article {
  max-width: 930px;
}

.detail-article h2 {
  margin-top: 0;
}

.footer-grid {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 30px;
  padding: 54px 0 34px;
}

.site-footer {
  color: #fde68a;
  background: linear-gradient(135deg, #1c1917 0%, #451a03 50%, #1c1917 100%);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fcd34d;
  font-size: 20px;
}

.site-footer p {
  margin: 0;
  color: #fffbeb;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: #fffbeb;
}

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

.footer-bottom {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  padding: 22px 0;
  color: #fcd34d;
  text-align: center;
}

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

  .hero-content {
    grid-template-columns: 1fr 300px;
  }

  .header-search {
    display: none;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 52px;
  }

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

  .hero-search-panel {
    bottom: 86px;
  }

  .hero-search,
  .page-search,
  .player-card,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .section-heading,
  .category-showcase-head,
  .category-index-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-layout {
    padding: 46px 0;
  }

  .detail-poster {
    width: min(300px, 75vw);
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 68px;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
  }

  .brand-text small {
    display: none;
  }

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

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

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

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-search-panel {
    padding: 14px;
  }

  .page-hero {
    margin-top: 18px;
    border-radius: 24px;
  }

  .player-cover span {
    width: 66px;
    height: 66px;
    font-size: 28px;
  }
}
