* {
  box-sizing: border-box;
}

:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --amber-950: #451a03;
  --orange-50: #fff7ed;
  --orange-700: #c2410c;
  --text-main: #3b2108;
  --text-soft: #8a5b18;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.16);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--amber-50), var(--orange-50) 42%, var(--amber-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.96), rgba(255, 247, 237, 0.96));
  border-bottom: 2px solid var(--amber-200);
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.1);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--amber-700), var(--orange-700));
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(146, 64, 14, 0.28);
}

.brand-text strong {
  display: block;
  color: var(--amber-950);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--amber-700);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  color: var(--amber-800);
}

.nav-link {
  position: relative;
  padding: 10px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--amber-700);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-950);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-toggle,
.menu-toggle {
  border: 0;
  cursor: pointer;
  color: var(--amber-900);
  background: var(--amber-100);
  border-radius: 999px;
  min-width: 42px;
  height: 42px;
  padding: 0 15px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.search-toggle:hover,
.menu-toggle:hover {
  background: var(--amber-200);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  font-size: 20px;
}

.search-panel {
  display: none;
  padding: 0 16px 18px;
}

.search-panel.open {
  display: block;
}

.search-box {
  position: relative;
  width: min(880px, 100%);
  margin: 0 auto;
}

.search-box input,
.toolbar input {
  width: 100%;
  border: 2px solid var(--amber-300);
  border-radius: 14px;
  background: white;
  color: var(--amber-950);
  outline: none;
  padding: 14px 16px;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.08);
}

.search-box input:focus,
.toolbar input:focus {
  border-color: var(--amber-700);
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  max-height: 420px;
  overflow: auto;
  background: white;
  border: 2px solid var(--amber-200);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 60;
}

.search-result-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid var(--amber-100);
}

.search-result-item:hover {
  background: var(--amber-50);
}

.search-result-item img {
  width: 82px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: var(--amber-100);
}

.search-result-item strong {
  display: block;
  color: var(--amber-950);
  margin-bottom: 5px;
}

.search-result-item span {
  color: var(--amber-700);
  font-size: 13px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid var(--amber-200);
}

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

.mobile-nav a {
  padding: 12px 0;
  color: var(--amber-900);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(252, 211, 77, 0.35), transparent 28%), linear-gradient(135deg, var(--amber-950), var(--amber-800) 48%, var(--orange-700));
  color: white;
}

.hero-slide {
  display: none;
  min-height: 650px;
  position: relative;
}

.hero-slide.active {
  display: block;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  filter: blur(2px);
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.95), rgba(120, 53, 15, 0.76), rgba(194, 65, 12, 0.58));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.72fr;
  align-items: center;
  gap: 54px;
  padding: 64px 0 92px;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--amber-900);
  background: var(--amber-100);
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  padding: 7px 13px;
  font-weight: 800;
  font-size: 13px;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--amber-950);
  background: rgba(254, 243, 199, 0.94);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-summary {
  max-width: 720px;
  color: rgba(255, 251, 235, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--amber-950);
  background: rgba(254, 243, 199, 0.88);
  font-weight: 700;
  font-size: 13px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.primary-button,
.ghost-button,
.wide-cta a,
.category-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--amber-950);
  background: white;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.ghost-button {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.ghost-button:hover,
.wide-cta a:hover,
.category-enter:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  justify-self: end;
  width: min(420px, 100%);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  border: 8px solid rgba(255, 255, 255, 0.14);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: var(--amber-900);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  font-size: 32px;
  padding-left: 4px;
}

.hero-control {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.hero-dot.active {
  background: white;
}

.featured-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -70px auto 0;
  position: relative;
  z-index: 4;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.content-section,
.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 76px auto 0;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--amber-950);
  font-size: clamp(26px, 4vw, 38px);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.section-more {
  color: var(--amber-800);
  font-weight: 900;
}

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

.compact-grid {
  margin-top: 30px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--amber-100);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 26px rgba(120, 53, 15, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--amber-100);
}

.movie-card .poster-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: white;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.duration {
  right: 10px;
  bottom: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  background: rgba(146, 64, 14, 0.92);
}

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--amber-900);
  font-size: 30px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.24);
  transition: opacity 0.25s ease;
}

.play-mark::before {
  content: "";
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.play-mark {
  isolation: isolate;
}

.play-mark::after {
  content: "▶";
  position: relative;
  z-index: 2;
  padding-left: 4px;
}

.movie-card:hover .play-mark {
  opacity: 1;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 12px 0 8px;
  color: var(--amber-950);
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--amber-700);
}

.card-body p {
  min-height: 44px;
  margin: 0 0 14px;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 14px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 700;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 150px;
}

.horizontal-card .poster-link img {
  height: 100%;
  min-height: 150px;
  aspect-ratio: auto;
}

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

.channel-card {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  box-shadow: var(--shadow);
}

.channel-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.channel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(69, 26, 3, 0.88));
}

.channel-card span,
.channel-card strong {
  position: relative;
  z-index: 1;
}

.channel-card span {
  font-size: 24px;
  font-weight: 900;
}

.channel-card strong {
  margin-top: 8px;
  font-size: 13px;
  color: var(--amber-100);
}

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

.wide-cta {
  width: min(1180px, calc(100% - 32px));
  margin: 82px auto 0;
  padding: 54px 24px;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, var(--amber-800), var(--orange-700));
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.wide-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
}

.wide-cta p {
  max-width: 760px;
  margin: 0 auto 26px;
  color: var(--amber-100);
  font-size: 18px;
}

.wide-cta a,
.category-enter {
  color: var(--amber-950);
  background: white;
}

.page-hero {
  color: white;
  background: linear-gradient(135deg, var(--amber-900), var(--orange-700));
  padding: 70px 0;
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  color: var(--amber-100);
  font-size: 19px;
  line-height: 1.8;
}

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

.category-overview-card {
  padding: 28px;
  border: 1px solid var(--amber-100);
  border-radius: 24px;
  background: white;
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.08);
}

.category-overview-card h2 {
  margin: 0 0 10px;
  color: var(--amber-950);
}

.category-overview-card p {
  color: var(--text-soft);
  line-height: 1.7;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 22px;
}

.mini-links a {
  color: var(--amber-900);
  background: var(--amber-100);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
}

.toolbar {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--amber-100);
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.08);
}

.toolbar label {
  color: var(--amber-950);
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--amber-800);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--amber-950);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: var(--amber-900);
  background: rgba(0, 0, 0, 0.38);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  font-size: 36px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

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

.detail-card,
.side-card {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--amber-100);
  border-radius: 22px;
  background: white;
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.08);
}

.detail-card h1 {
  margin: 16px 0 12px;
  color: var(--amber-950);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.detail-card h2,
.side-card h2 {
  margin: 24px 0 12px;
  color: var(--amber-950);
}

.detail-card p {
  color: var(--text-main);
  line-height: 1.9;
}

.detail-card .lead-text {
  color: var(--amber-800);
  font-size: 18px;
  font-weight: 700;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.detail-meta span {
  color: var(--amber-800);
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.detail-side {
  min-width: 0;
}

.side-card {
  position: sticky;
  top: 104px;
  margin-top: 0;
}

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

.side-list .horizontal-card {
  grid-template-columns: 122px 1fr;
  min-height: 96px;
  box-shadow: none;
}

.side-list .poster-link img {
  min-height: 96px;
}

.side-list .card-body {
  padding: 10px 12px;
}

.side-list .card-body p,
.side-list .meta-line,
.side-list .pill,
.side-list .duration {
  display: none;
}

.side-list .card-body h3 {
  margin: 0;
  font-size: 15px;
}

.site-footer {
  margin-top: 92px;
  color: var(--amber-50);
  background: linear-gradient(180deg, var(--amber-900), var(--amber-950));
}

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

.footer-brand {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 900;
  color: var(--amber-200);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--amber-200);
}

.site-footer p,
.site-footer a {
  color: var(--amber-100);
  line-height: 1.75;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(253, 230, 138, 0.22);
  color: var(--amber-200);
  text-align: center;
  font-size: 14px;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-poster {
    justify-self: start;
    width: min(340px, 100%);
  }

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

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

  .side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
    height: 68px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-slide,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 48px 0 88px;
    gap: 32px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .featured-strip {
    margin-top: 28px;
  }

  .featured-grid,
  .movie-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .horizontal-card {
    grid-template-columns: 132px 1fr;
  }

  .horizontal-card .poster-link img {
    min-height: 132px;
  }

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

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

  .content-section,
  .detail-wrap,
  .wide-cta {
    width: min(100% - 24px, 1180px);
    margin-top: 50px;
  }

  .card-body {
    padding: 15px;
  }

  .footer-grid {
    width: min(100% - 24px, 1180px);
  }
}
