:root {
  --gold-50: #fffbeb;
  --gold-100: #fef3c7;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;
  --gold-800: #92400e;
  --sun-50: #fff7ed;
  --sun-100: #fff3e0;
  --text: #1f2937;
  --muted: #6b7280;
  --deep: #111827;
  --white: #ffffff;
  --shadow-warm: 0 2px 8px rgba(245, 158, 11, .15);
  --shadow-gold: 0 8px 24px rgba(251, 191, 36, .38);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, var(--gold-50), #ffffff 52%, var(--sun-100));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #fef3c7, #d97706);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500), var(--gold-600));
  box-shadow: var(--shadow-gold);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link,
.mobile-link {
  color: #fff;
  border-radius: 12px;
  transition: .22s ease;
}

.nav-link {
  padding: 9px 15px;
  background: rgba(255, 255, 255, .14);
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover {
  background: rgba(255, 255, 255, .26);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .17);
}

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

.mobile-nav {
  display: none;
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.mobile-link {
  display: block;
  padding: 10px 12px;
}

main {
  padding-top: 66px;
}

.hero-wrap {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #92400e, #d97706 45%, #111827);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .26), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(251, 191, 36, .26), transparent 32%),
    linear-gradient(135deg, rgba(0, 0, 0, .10), rgba(0, 0, 0, .42));
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  padding: 76px 0 42px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
  align-items: center;
  gap: 44px;
  min-height: 520px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn .45s ease;
}

.eyebrow {
  margin: 0 0 14px;
  color: #fde68a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
}

.hero-copy h2 {
  margin: 18px 0 0;
  color: #fff7ed;
  font-size: clamp(24px, 3.5vw, 44px);
  line-height: 1.15;
}

.hero-copy p,
.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #ffedd5;
  font-size: 18px;
}

.hero-tags,
.tag-row,
.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.ghost-button,
.small-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 800;
  transition: .22s ease;
}

.primary-button,
.small-button {
  color: #fff;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  box-shadow: var(--shadow-gold);
}

.secondary-button {
  color: #7c2d12;
  background: #fff7ed;
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .14);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.small-button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 30px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .35);
}

.hero-poster img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: .88;
  transition: transform .5s ease;
}

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

.hero-poster span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  max-width: calc(100% - 44px);
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .20);
  font-size: 28px;
  line-height: 1;
}

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

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

.hero-dot.is-active {
  width: 30px;
  background: #fff;
}

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

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

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

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

.section-heading h2 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.15;
}

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

.section-more {
  color: var(--gold-700);
  background: var(--gold-100);
}

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

.category-tile,
.category-overview-card {
  min-height: 140px;
  padding: 20px;
  border: 1px solid rgba(245, 158, 11, .18);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-warm);
  transition: .22s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.category-tile strong,
.category-overview-title {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-700);
  font-size: 20px;
  font-weight: 900;
}

.category-tile span,
.category-overview-card p {
  color: var(--muted);
  font-size: 14px;
}

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

.category-overview-card {
  min-height: 210px;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--gold-700);
  background: var(--gold-100);
  font-size: 13px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, .14);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-warm);
  transition: .22s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold-100), var(--gold-600));
}

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

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

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .68);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--deep);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--gold-600);
}

.card-text {
  display: -webkit-box;
  min-height: 46px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.detail-meta {
  color: #737373;
  font-size: 13px;
}

.card-meta span + span::before,
.detail-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--gold-500);
}

.tag-row {
  margin-top: 12px;
}

.card-body .tag-row span,
.wide-tags span {
  color: var(--gold-700);
  background: var(--gold-100);
}

.movie-card.is-compact .card-title {
  font-size: 15px;
  min-height: 42px;
}

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

.movie-card.is-compact .card-text {
  min-height: 40px;
  font-size: 13px;
}

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

.ranking-panel {
  position: sticky;
  top: 90px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  box-shadow: var(--shadow-warm);
}

.ranking-panel h2 {
  margin: 0 0 16px;
  color: var(--gold-800);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .68);
  transition: .2s ease;
}

.rank-card:hover {
  transform: translateX(3px);
  background: #fff;
}

.rank-card img {
  width: 74px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  overflow: hidden;
  color: var(--deep);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.filter-panel {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, .18);
  border-radius: 20px;
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--shadow-warm);
}

.search-box {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: #fff;
  color: var(--gold-700);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--deep);
  background: transparent;
}

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

.filter-select {
  min-width: 126px;
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 14px;
  outline: none;
  color: var(--deep);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .15);
}

.empty-state {
  margin: 26px 0;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  color: var(--gold-700);
  font-weight: 800;
  text-align: center;
}

.page-main {
  padding-top: 66px;
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--gold-800), var(--gold-600), #111827);
}

.small-hero,
.category-hero {
  min-height: 330px;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 58px 118px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.ranking-number {
  color: var(--gold-600);
  font-size: 26px;
  font-weight: 950;
}

.ranking-cover img {
  width: 118px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-title {
  color: var(--deep);
  font-size: 18px;
  font-weight: 900;
}

.ranking-content p {
  margin: 5px 0 8px;
  color: var(--muted);
}

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

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 28px;
}

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

.breadcrumb a {
  color: var(--gold-700);
  font-weight: 800;
}

.player-card,
.detail-article,
.aside-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-warm);
}

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

.movie-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, .32), rgba(0, 0, 0, .72));
}

.player-frame.is-playing .play-layer {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  box-shadow: var(--shadow-gold);
  font-size: 28px;
  transform: translateX(2px);
}

.detail-article {
  margin-top: 22px;
  padding: 28px;
}

.detail-article h1 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.16;
}

.detail-one-line {
  margin: 14px 0;
  color: var(--gold-700);
  font-size: 19px;
  font-weight: 800;
}

.detail-article h2 {
  margin: 28px 0 10px;
  color: var(--deep);
  font-size: 24px;
}

.detail-article p {
  color: #374151;
  font-size: 16px;
}

.detail-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.detail-poster {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow-gold);
}

.aside-card {
  padding: 18px;
}

.aside-card h2 {
  margin: 0 0 12px;
  color: var(--gold-800);
}

.aside-links {
  display: grid;
  gap: 8px;
}

.aside-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--gold-50);
  color: var(--deep);
  font-weight: 800;
}

.aside-links span {
  color: var(--muted);
  font-weight: 700;
}

.detail-related {
  padding-top: 40px;
}

.site-footer {
  margin-top: 60px;
  color: #ffedd5;
  background: linear-gradient(135deg, #92400e, #111827);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
  gap: 30px;
  padding: 44px 0 28px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 560px;
  margin: 0;
  color: #fde68a;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: #fcd34d;
  font-size: 13px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .ranking-panel,
  .detail-aside {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

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

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

  .hero-slide.is-active {
    display: grid;
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .hero-poster {
    min-height: 320px;
  }

  .hero-poster img {
    height: 320px;
  }

  .filter-panel {
    display: grid;
  }

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

  .filter-select {
    width: 100%;
    min-width: 0;
  }

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

  .ranking-row {
    grid-template-columns: 44px 86px minmax(0, 1fr);
  }

  .ranking-row .small-button {
    grid-column: 2 / -1;
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .content-section,
  .page-hero-inner,
  .detail-layout,
  .footer-inner,
  .copyright {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-wrap {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 0 34px;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

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

  .section-heading {
    display: grid;
  }

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

  .ranking-cover img {
    width: 74px;
    height: 58px;
  }

  .detail-article {
    padding: 20px;
  }
}
