
* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #fffaf1;
  --bg-soft: #fff7ed;
  --paper: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --amber: #f59e0b;
  --orange: #fb923c;
  --deep: #9a3412;
  --shadow: 0 18px 45px rgba(154, 52, 18, 0.14);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.24), transparent 35rem),
    linear-gradient(180deg, #fff7ed 0%, #fffaf1 32rem, #ffffff 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.6;
}

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, 237, 213, 0.96), rgba(255, 251, 235, 0.96));
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 10px 30px rgba(180, 83, 9, 0.10);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(251, 146, 60, 0.30);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  transform: rotate(12deg) scale(1.04);
}

.brand-text,
.footer-brand span:last-child {
  font-size: 21px;
  background: linear-gradient(90deg, #b45309, #fb923c);
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #4b5563;
  font-weight: 650;
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #d97706;
  transform: translateY(-1px);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select,
.hero-search-card input {
  border: 1px solid rgba(251, 191, 36, 0.50);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 11px 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.hero-search-card input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
  background: #ffffff;
}

.header-search button,
.mobile-search button,
.hero-search-card button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  color: #ffffff;
  padding: 11px 18px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(251, 146, 60, 0.28);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(253, 230, 138, 0.55);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #92400e;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 18px;
  flex-wrap: wrap;
  gap: 14px;
}

.hero {
  max-width: 1240px;
  min-height: 650px;
  margin: 0 auto;
  padding: 36px 20px 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 28px;
  padding: 58px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.14);
  opacity: 0.56;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(251, 191, 36, 0.42), transparent 19rem),
    linear-gradient(110deg, rgba(17, 24, 39, 0.92), rgba(120, 53, 15, 0.72) 52%, rgba(17, 24, 39, 0.82));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d97706;
  background: rgba(253, 230, 138, 0.62);
  border: 1px solid rgba(251, 191, 36, 0.45);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content .eyebrow {
  color: #fef3c7;
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(253, 230, 138, 0.32);
}

.hero h1,
.page-hero h1,
.ranking-hero h1,
.detail-info h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 {
  color: #ffffff;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 24px;
  color: #fffbeb;
  font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-meta,
.chip-row,
.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.chip-row a,
.intro-links a {
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 247, 237, 0.82);
  color: #9a3412;
  border: 1px solid rgba(251, 191, 36, 0.42);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  color: #ffffff;
  padding: 13px 22px;
  box-shadow: 0 16px 32px rgba(251, 146, 60, 0.32);
}

.primary-btn.small {
  padding: 10px 16px;
  font-size: 14px;
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(254, 243, 199, 0.54);
  background: rgba(255, 255, 255, 0.12);
  padding: 12px 22px;
  backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster img {
  width: 280px;
  height: 395px;
  object-fit: cover;
  border-radius: 26px;
  border: 6px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.hero-controls {
  position: absolute;
  left: 58px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

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

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

.hero-panel {
  display: grid;
  gap: 18px;
}

.hero-search-card,
.ranking-panel,
.category-overview-card,
.movie-card,
.page-hero,
.ranking-hero,
.detail-hero,
.player-section,
.detail-text {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.33);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-search-card {
  padding: 24px;
}

.hero-search-card p {
  margin: 0 0 16px;
  color: #9a3412;
  font-weight: 900;
  font-size: 22px;
}

.hero-search-card form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-list,
.mini-list {
  display: grid;
  gap: 12px;
}

.mini-movie {
  display: grid;
  grid-template-columns: auto 64px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-movie:hover {
  transform: translateX(3px);
  box-shadow: 0 12px 26px rgba(180, 83, 9, 0.12);
}

.mini-movie img {
  width: 64px;
  height: 88px;
  object-fit: cover;
  border-radius: 13px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.mini-movie strong,
.mini-movie em {
  display: block;
}

.mini-movie strong {
  color: #1f2937;
}

.mini-movie em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  margin-top: 4px;
}

.mini-rank {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  border-radius: 10px;
  font-weight: 900;
}

.content-section,
.split-section,
.page-main,
.detail-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 20px;
}

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

.section-heading h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

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

.section-more,
.text-link {
  color: #d97706;
  background: #fff7ed;
  border: 1px solid rgba(251, 191, 36, 0.45);
  padding: 10px 16px;
}

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

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 24px 54px rgba(154, 52, 18, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

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

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

.rank-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  border-radius: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #b45309;
  font-size: 12px;
  font-weight: 800;
}

.meta-row span {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 3px 8px;
}

.movie-card h2 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.28;
}

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

.tag-row span {
  padding: 4px 8px;
  font-size: 12px;
}

.text-link {
  margin-top: 14px;
  padding: 8px 12px;
  font-size: 13px;
}

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

.category-tile {
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  color: #78350f;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.35), transparent 8rem),
    linear-gradient(135deg, #ffffff, #fff7ed);
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.compact-section {
  padding: 0;
}

.ranking-panel {
  padding: 22px;
  position: sticky;
  top: 88px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title h2 {
  margin: 0;
}

.panel-title a {
  color: #d97706;
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border-top: 1px solid rgba(251, 191, 36, 0.38);
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.page-hero,
.ranking-hero,
.detail-hero {
  padding: 42px;
}

.simple-hero,
.channel-hero {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.32), transparent 18rem),
    rgba(255, 255, 255, 0.88);
}

.page-hero p,
.ranking-hero p {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
}

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

.overview-posters img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

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

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.overview-links a {
  font-size: 13px;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 5px 9px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(154, 52, 18, 0.08);
}

.filter-bar input {
  flex: 1 1 280px;
}

.filter-bar select {
  min-width: 145px;
}

.ranking-hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  overflow: hidden;
}

.ranking-hero img {
  width: 240px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  box-shadow: 0 22px 46px rgba(154, 52, 18, 0.20);
}

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

.detail-main {
  padding-top: 32px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.36), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 237, 0.88));
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  box-shadow: 0 24px 54px rgba(154, 52, 18, 0.18);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #d97706;
  font-weight: 800;
}

.detail-lead {
  color: #4b5563;
  font-size: 19px;
  max-width: 800px;
}

.detail-meta {
  margin: 20px 0 12px;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section {
  margin-top: 30px;
  padding: 26px;
}

.section-heading.narrow {
  margin-bottom: 18px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #111827;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(251, 191, 36, 0.20), transparent 18rem),
    rgba(17, 24, 39, 0.42);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  color: #ffffff;
  padding: 16px 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.30);
}

.play-button span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.detail-text {
  margin-top: 30px;
  padding: 32px;
}

.detail-text h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.detail-text p {
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 17px;
}

.is-hidden-card {
  display: none !important;
}

@media (max-width: 1100px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

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

  .hero,
  .split-section,
  .detail-hero,
  .ranking-hero {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 620px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .hero-poster img {
    width: 210px;
    height: 300px;
  }

  .ranking-panel {
    position: static;
  }

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

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

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

@media (max-width: 720px) {
  .nav-shell {
    height: 62px;
    padding: 0 14px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero,
  .content-section,
  .split-section,
  .page-main,
  .detail-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-stage {
    min-height: 620px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero h1,
  .page-hero h1,
  .ranking-hero h1,
  .detail-info h1 {
    font-size: 40px;
  }

  .hero-content p,
  .detail-lead,
  .page-hero p {
    font-size: 16px;
  }

  .hero-controls {
    left: 24px;
    bottom: 22px;
  }

  .hero-search-card form {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 14px;
  }

  .movie-grid,
  .compact-grid,
  .list-grid,
  .ranking-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .overview-posters {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-hero,
  .ranking-hero,
  .detail-hero,
  .player-section,
  .detail-text {
    padding: 22px;
    border-radius: 20px;
  }

  .detail-hero {
    gap: 22px;
  }

  .player-wrap {
    border-radius: 18px;
  }
}
