:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --blue-950: #172554;
  --blue-50: #eff6ff;
  --amber-500: #f59e0b;
  --orange-500: #f97316;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-300: #d1d5db;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

* {
  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, #f8fafc 0%, var(--blue-50) 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--slate-900), var(--blue-950), var(--slate-900));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fcd34d;
  font-size: 20px;
  font-weight: 800;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, #fbbf24, var(--orange-500));
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.36);
  font-weight: 900;
}

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

.desktop-nav a,
.mobile-nav a {
  color: var(--gray-300);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.desktop-nav a.active,
.desktop-nav a:hover {
  color: #fbbf24;
}

.desktop-nav a.active {
  padding-bottom: 6px;
  border-bottom: 2px solid #fbbf24;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font-size: 24px;
}

.mobile-nav {
  display: none;
  padding: 12px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav a {
  display: block;
  padding: 13px 16px;
  border-radius: 12px;
}

.mobile-nav a.active,
.mobile-nav a:hover {
  color: var(--white);
  background: var(--amber-500);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--slate-950);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.04;
  font-weight: 900;
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.7;
}

.hero-tags,
.hero-meta,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-tags {
  margin-bottom: 18px;
}

.hero-tags span {
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--amber-500);
  font-size: 14px;
  font-weight: 800;
}

.hero-tags strong {
  color: #fcd34d;
}

.hero-meta {
  margin-bottom: 34px;
  color: #d1d5db;
  font-weight: 700;
}

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

.primary-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 30px rgba(245, 158, 11, 0.35);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 6;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--amber-500);
}

.search-panel,
.content-section,
.sub-page,
.detail-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px 0;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 24px;
  align-items: center;
}

.search-panel h2,
.section-title h2,
.rank-panel h2,
.page-hero h1,
.detail-copy h1,
.player-section h2,
.detail-content h2 {
  margin: 0;
  color: var(--gray-900);
  font-weight: 900;
}

.search-panel h2,
.section-title h2,
.page-hero h1 {
  font-size: clamp(28px, 3.5vw, 42px);
}

.search-panel p,
.page-hero p {
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.search-box input,
.filter-bar input {
  width: 100%;
  height: 54px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0 22px;
  outline: none;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  font-size: 16px;
}

.search-box input:focus,
.filter-bar input:focus {
  border-color: #fbbf24;
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.24);
}

.category-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-chips a,
.filter-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #fde68a;
}

.category-chips a:hover,
.filter-buttons button:hover,
.filter-buttons button.is-active {
  color: var(--white);
  background: var(--amber-500);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-title span {
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber-500), var(--orange-500));
}

.section-title a {
  margin-left: auto;
  color: #b45309;
  font-weight: 800;
}

.compact-title h2 {
  font-size: 30px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.64));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  border-radius: 8px;
  padding: 5px 9px;
  color: var(--white);
  background: var(--amber-500);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.card-body h3 a:hover {
  color: #d97706;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta strong {
  color: #92400e;
  font-weight: 800;
}

.card-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.card-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 800;
}

.warm-section {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  box-shadow: var(--shadow);
}

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

.rank-panel {
  position: sticky;
  top: 92px;
  border-radius: 24px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.rank-panel h2 {
  margin-bottom: 18px;
  font-size: 26px;
}

.rank-item {
  display: grid;
  grid-template-columns: 38px 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-number {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  font-weight: 900;
}

.rank-item img {
  width: 74px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-copy strong,
.rank-copy small {
  display: block;
}

.rank-copy strong {
  color: var(--gray-900);
  font-weight: 900;
}

.rank-copy small {
  margin-top: 4px;
  color: #6b7280;
  line-height: 1.4;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 52px;
  color: var(--white);
  background: linear-gradient(120deg, var(--slate-900), var(--blue-950));
  box-shadow: var(--shadow);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
}

.page-hero h1,
.page-hero p {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.page-hero p {
  max-width: 760px;
  color: #dbeafe;
}

.breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #fde68a;
  font-weight: 800;
}

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

.category-card {
  border-radius: 22px;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}

.category-card strong,
.category-card span,
.category-card a {
  display: block;
}

.category-card strong {
  color: var(--gray-900);
  font-size: 22px;
  font-weight: 900;
}

.category-card span {
  margin-top: 10px;
  color: var(--gray-600);
  line-height: 1.75;
}

.category-card div {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.category-card div a {
  color: #b45309;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 18px;
  align-items: center;
  margin: 32px 0 26px;
}

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

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 30px;
  margin-top: 34px;
  border-radius: 24px;
  padding: 22px 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-head {
  border-radius: 30px;
  padding: 30px;
  color: var(--white);
  background: linear-gradient(120deg, var(--slate-900), var(--blue-950));
  box-shadow: var(--shadow);
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.3);
}

.detail-copy h1 {
  color: var(--white);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
}

.detail-copy .lead {
  margin: 18px 0 24px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.detail-meta div {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
}

.detail-meta dt {
  margin-bottom: 4px;
  color: #fcd34d;
  font-size: 13px;
  font-weight: 800;
}

.detail-meta dd {
  margin: 0;
  color: var(--white);
  font-weight: 800;
}

.player-section,
.detail-content,
.related-section {
  margin-top: 36px;
}

.player-section h2,
.detail-content h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25), rgba(0, 0, 0, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-cover span {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.34);
  font-size: 36px;
}

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

.detail-content {
  border-radius: 24px;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
}

.detail-content p {
  margin: 0 0 24px;
  color: var(--gray-700);
  line-height: 2;
  font-size: 17px;
}

.detail-content p:last-child {
  margin-bottom: 0;
}

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

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

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

  .rank-panel {
    position: static;
  }
}

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

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

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

  .hero {
    height: 560px;
  }

  .hero-copy {
    padding: 0 20px;
  }

  .hero-arrow {
    display: none;
  }

  .search-panel,
  .filter-bar,
  .detail-meta,
  .ranking-list {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 36px 24px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 0 16px;
  }

  .logo,
  .footer-logo {
    font-size: 17px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .hero {
    height: 520px;
  }

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

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

  .search-panel,
  .content-section,
  .sub-page,
  .detail-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid,
  .four-cols,
  .three-cols,
  .category-page-grid,
  .category-overview {
    grid-template-columns: 1fr;
  }

  .warm-section,
  .detail-head,
  .detail-content {
    padding: 20px;
    border-radius: 20px;
  }

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

.site-footer {
  margin-top: 80px;
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-grid p {
  max-width: 420px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
}

.footer-grid a:not(.footer-logo) {
  display: block;
  margin: 10px 0;
  color: #cbd5e1;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
