:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-600: #ea580c;
  --orange-900: #7c2d12;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 38px rgba(120, 53, 15, 0.14);
  --shadow-xl: 0 30px 70px rgba(120, 53, 15, 0.2);
}

* {
  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(--gray-900);
  background: linear-gradient(180deg, var(--amber-50), var(--orange-50) 48%, var(--amber-50));
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.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: 1px solid var(--amber-200);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.35);
}

.logo-text {
  font-size: 1.55rem;
  background: linear-gradient(90deg, var(--amber-700), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
  color: var(--gray-700);
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--amber-600);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--amber-700);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--amber-200);
}

.mobile-nav a {
  display: block;
  padding: 11px 0;
  color: var(--gray-700);
  font-weight: 600;
}

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

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--gray-900);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 70vh;
  padding-top: 52px;
  padding-bottom: 116px;
}

.hero-copy {
  max-width: 720px;
  color: white;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  color: white;
  background: rgba(245, 158, 11, 0.92);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
}

.hero-copy p {
  margin: 0 0 24px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 680px;
}

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

.hero-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
}

.hero-actions,
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.primary-button {
  min-height: 46px;
  padding: 0 24px;
  color: white;
  background: var(--amber-500);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.35);
}

.primary-button:hover {
  background: var(--amber-600);
  transform: translateY(-2px);
}

.ghost-button {
  min-height: 46px;
  padding: 0 22px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.hero-search-wrap {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}

.hero-search {
  display: flex;
  min-width: min(460px, 48vw);
  background: white;
  border-radius: 14px;
  overflow: hidden;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--gray-900);
}

.hero-search button {
  border: 0;
  padding: 0 22px;
  color: white;
  background: var(--amber-500);
  font-weight: 800;
}

.hero-links a {
  color: white;
  font-weight: 700;
  opacity: 0.88;
}

.hero-links a:hover {
  opacity: 1;
  color: var(--amber-200);
}

.hero-dots {
  position: absolute;
  right: 32px;
  bottom: 44px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.hero-dot.is-active {
  width: 30px;
  background: var(--amber-400);
}

.content-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.light-band {
  background: rgba(255, 255, 255, 0.78);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.15;
}

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

.section-kicker {
  color: var(--amber-600);
  font-weight: 900;
}

.section-more,
.channel-link {
  align-self: flex-start;
  padding: 10px 16px;
  color: var(--amber-700);
  background: var(--amber-100);
}

.section-more:hover,
.channel-link:hover {
  color: white;
  background: var(--amber-600);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 16px;
  background: white;
  box-shadow: 0 12px 26px rgba(120, 53, 15, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.poster-link {
  aspect-ratio: 3 / 4;
}

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

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

.movie-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 8px;
  color: white;
  background: var(--amber-500);
  font-size: 0.78rem;
  font-weight: 800;
}

.poster-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  color: white;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-shade span {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--amber-500);
  font-weight: 800;
}

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

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

.movie-title {
  display: block;
  color: var(--gray-900);
  font-size: 1rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-title:hover {
  color: var(--amber-600);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  color: var(--gray-500);
  font-size: 0.86rem;
}

.movie-card-wide,
.ranking-item {
  display: flex;
  gap: 16px;
  padding: 12px;
}

.wide-cover {
  width: 138px;
  min-width: 138px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}

.wide-body,
.ranking-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.wide-body p,
.ranking-body p {
  display: -webkit-box;
  margin: 8px 0 0;
  color: var(--gray-600);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.play-dot {
  position: absolute;
  inset: auto 10px 10px auto;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: rgba(245, 158, 11, 0.94);
}

.category-preview-list {
  display: grid;
  gap: 40px;
}

.sub-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  border-left: 4px solid var(--amber-500);
  padding-left: 14px;
}

.sub-heading h3 {
  margin: 0;
  font-size: 1.45rem;
}

.sub-heading a {
  color: var(--amber-700);
  font-weight: 800;
}

.page-hero {
  position: relative;
  color: white;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.55), transparent 35%), linear-gradient(135deg, var(--amber-900), var(--orange-900));
}

.compact-hero {
  padding: 74px 0;
}

.page-hero h1 {
  max-width: 900px;
  margin: 16px 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

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

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

.channel-card {
  border-radius: 22px;
  padding: 24px;
  background: white;
  box-shadow: var(--shadow-lg);
}

.channel-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.channel-card-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-weight: 900;
}

.channel-card h2 {
  margin: 0;
}

.channel-card p {
  color: var(--gray-600);
}

.channel-preview-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.filter-panel {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--amber-200);
  border-radius: 12px;
  padding: 0 14px;
  outline: 0;
  background: var(--amber-50);
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.search-page-panel input {
  flex: 1 1 auto;
}

.search-page-panel select {
  flex: 0 0 180px;
}

.movie-card.is-hidden,
.rank-row.is-hidden {
  display: none;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

.ranking-cover {
  width: 116px;
  min-width: 116px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

.detail-hero {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background: var(--gray-900);
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.2));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 470px;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.detail-hero h1 {
  margin: 10px 0 16px;
  max-width: 900px;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.1;
}

.detail-hero p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.detail-main,
.detail-sidebar {
  display: grid;
  gap: 22px;
}

.player-card,
.info-panel,
.sidebar-card {
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow-lg);
}

.player-card {
  padding: 14px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: black;
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: white;
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  color: white;
  background: var(--amber-500);
  font-size: 2rem;
  box-shadow: 0 20px 44px rgba(245, 158, 11, 0.45);
}

.player-start strong {
  font-size: 1.2rem;
}

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

.info-panel,
.sidebar-card {
  padding: 24px;
}

.info-panel h2,
.sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.info-panel p {
  margin: 0;
  color: var(--gray-700);
  white-space: pre-line;
}

.movie-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.movie-info-list div {
  padding: 14px;
  border-radius: 14px;
  background: var(--amber-50);
}

.movie-info-list dt {
  color: var(--gray-500);
  font-size: 0.82rem;
}

.movie-info-list dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.tag-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-panel a {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-weight: 700;
  font-size: 0.9rem;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 16px;
}

.full-button {
  width: 100%;
}

.sidebar-list {
  display: grid;
  gap: 12px;
}

.sidebar-list .movie-card-wide {
  box-shadow: none;
  border: 1px solid var(--gray-100);
}

.sidebar-list .wide-cover {
  width: 96px;
  min-width: 96px;
}

.prev-next {
  display: grid;
  gap: 12px;
}

.prev-next a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--amber-700);
  background: var(--amber-50);
  font-weight: 800;
}

.prev-next a:hover {
  color: white;
  background: var(--amber-600);
}

.site-footer {
  color: var(--amber-50);
  background: linear-gradient(90deg, var(--amber-900), var(--orange-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 34px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: rgba(255, 251, 235, 0.78);
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 1.1rem;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  padding: 18px 0;
  text-align: center;
  font-size: 0.92rem;
}

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

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

  .detail-sidebar {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .prev-next {
    grid-column: 1 / -1;
  }
}

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

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

  .hero-search-wrap {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: -96px auto 24px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search {
    min-width: 0;
    width: 100%;
    min-height: 48px;
  }

  .hero-dots {
    right: 20px;
    bottom: 128px;
  }

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

  .wide-grid,
  .channel-grid,
  .footer-grid,
  .detail-sidebar {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .filter-panel {
    flex-direction: column;
  }

  .search-page-panel select {
    flex: 1 1 auto;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .hero,
  .hero-content {
    min-height: 620px;
  }

  .hero-content {
    align-items: flex-start;
    padding-top: 76px;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .hero-search-wrap {
    margin-top: -142px;
  }

  .movie-card-wide,
  .ranking-item {
    gap: 12px;
  }

  .wide-cover,
  .ranking-cover {
    width: 104px;
    min-width: 104px;
  }

  .movie-info-list {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1rem;
  }
}
