:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --orange-100: #ffedd5;
  --white: #ffffff;
  --shadow-soft: 0 16px 45px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 25px 70px rgba(15, 23, 42, 0.22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-800);
  background: linear-gradient(135deg, var(--slate-50), #fff7ed 46%, var(--slate-50));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.container.narrow {
  width: min(960px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.22);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

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

.brand-mark,
.footer-logo span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.36);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--slate-300);
  font-size: 12px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--slate-300);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(249, 115, 22, 0.18);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--white);
}

.mobile-nav {
  display: none;
  padding: 8px 16px 16px;
  background: var(--slate-900);
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), #7c2d12, var(--slate-900));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(124, 45, 18, 0.72), rgba(2, 6, 23, 0.72)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.28), transparent 28%), radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.12), transparent 22%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 60px;
  min-height: 600px;
  padding: 56px 0;
}

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

.hero-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(251, 146, 60, 0.42);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
  margin-top: 12px;
  color: var(--orange-400);
  font-size: clamp(26px, 3.5vw, 42px);
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin: 0 0 26px;
  color: var(--slate-300);
  font-size: 20px;
}

.hero-tags,
.tag-row,
.detail-tags,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.28);
}

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

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

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.34);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-poster {
  display: block;
  transform: rotate(2deg);
  filter: drop-shadow(0 36px 60px rgba(2, 6, 23, 0.52));
}

.hero-poster .image-frame {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-controls button,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
}

.hero-controls div {
  display: flex;
  gap: 8px;
}

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

.hero-dot.active {
  width: 28px;
  background: var(--orange-500);
}

.section {
  padding: 72px 0;
}

.section-white {
  background: var(--white);
}

.quick-entry {
  padding: 26px 0;
  background: var(--white);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.pill-row a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--slate-50);
  border: 1px solid #e2e8f0;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pill-row a:hover {
  color: var(--orange-600);
  border-color: #fed7aa;
  transform: translateY(-2px);
}

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

.section-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.dark-section .section-heading h2,
.dark-section .section-heading p {
  color: var(--white);
}

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

.section-more {
  color: var(--orange-600);
  font-weight: 700;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.movie-card.featured {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
}

.poster-link,
.image-frame {
  display: block;
}

.image-frame {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(249, 115, 22, 0.28), transparent 30%), linear-gradient(135deg, var(--slate-900), var(--slate-700));
  aspect-ratio: 16 / 9;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, opacity 0.25s ease;
}

.image-frame.image-missing img {
  opacity: 0;
}

.movie-card:hover .image-frame img,
.compact-card:hover .image-frame img {
  transform: scale(1.08);
}

.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: auto;
  border-radius: 999px;
  color: var(--white);
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 18px 32px rgba(2, 6, 23, 0.28);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--slate-500);
  font-size: 13px;
}

.meta-row span {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 8px;
  color: var(--orange-600);
  background: var(--orange-100);
  font-weight: 700;
}

.meta-row em {
  font-style: normal;
}

.movie-card h2,
.rank-item h2 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-item h2 a:hover {
  color: var(--orange-600);
}

.movie-card p,
.rank-content p {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--slate-500);
  background: var(--slate-50);
  font-size: 12px;
}

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

.rank-list.preview {
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 64px 190px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 18px;
}

.rank-number {
  color: rgba(249, 115, 22, 0.22);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.rank-poster .image-frame {
  border-radius: var(--radius-md);
}

.rank-content h2 {
  font-size: 24px;
}

.dark-section {
  padding: 72px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.masonry-grid {
  columns: 3 280px;
  column-gap: 24px;
}

.compact-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.compact-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange-500);
}

.compact-card .image-frame {
  aspect-ratio: 4 / 3;
}

.compact-card strong,
.compact-card small {
  display: block;
  padding: 0 16px;
}

.compact-card strong {
  margin-top: 14px;
  color: var(--white);
  font-size: 18px;
}

.compact-card small {
  margin: 8px 0 16px;
  color: var(--slate-300);
}

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

.category-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 30%), linear-gradient(135deg, var(--orange-500), var(--orange-600));
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card.type {
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 30%), linear-gradient(135deg, var(--slate-900), var(--slate-700));
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
}

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

.category-card span {
  font-size: 26px;
  font-weight: 900;
}

.category-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-card small {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  padding: 70px 0;
  color: var(--white);
  background: linear-gradient(105deg, var(--slate-900), #7c2d12 55%, var(--orange-600));
}

.page-hero p {
  margin: 0 0 10px;
  color: #fed7aa;
  font-weight: 700;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero span {
  display: block;
  max-width: 720px;
  margin-top: 14px;
  color: var(--slate-300);
  font-size: 18px;
}

.search-panel {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.search-panel input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 12px 14px;
  color: var(--slate-800);
}

.search-panel button {
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  color: var(--white);
  background: var(--orange-500);
  cursor: pointer;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span,
.pagination strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: var(--white);
}

.pagination strong {
  color: var(--white);
  background: var(--orange-500);
  border-color: var(--orange-500);
}

.pagination span {
  color: var(--slate-400);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.86), rgba(124, 45, 18, 0.68)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 38px 0 58px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--slate-300);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--orange-400);
}

.breadcrumbs em {
  color: var(--white);
  font-style: normal;
}

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

.detail-poster {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
}

.detail-copy h1 {
  margin: 14px 0 16px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 24px;
  color: var(--slate-300);
  font-size: 20px;
}

.meta-row.bright {
  color: var(--slate-300);
}

.player-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-strong);
}

.player-stage {
  position: relative;
  background: #000000;
}

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

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 24px 45px rgba(2, 6, 23, 0.32);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-button:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.player-card.playing .player-button {
  opacity: 0;
  pointer-events: none;
}

.player-title {
  padding: 22px 26px;
}

.player-title h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: 24px;
}

.player-title p {
  margin: 6px 0 0;
  color: var(--slate-500);
}

.detail-article {
  padding: 38px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-article h2 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  color: var(--slate-900);
  font-size: 28px;
}

.detail-article h2:not(:first-child) {
  margin-top: 34px;
}

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

.detail-tags {
  margin-top: 28px;
}

.detail-tags span {
  color: var(--orange-600);
  background: var(--orange-100);
}

.site-footer {
  padding: 54px 0 0;
  color: var(--slate-300);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
}

.footer-brand p {
  max-width: 420px;
  color: var(--slate-300);
}

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

.site-footer a,
.site-footer span:not(.footer-logo span) {
  display: block;
  margin: 8px 0;
  color: var(--slate-300);
}

.site-footer a:hover {
  color: var(--orange-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding: 24px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.34);
  cursor: pointer;
}

.back-top.visible {
  display: block;
}

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-poster {
    display: none;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .mobile-nav.open {
    display: grid;
    gap: 6px;
  }

  .mobile-nav .nav-link {
    justify-content: flex-start;
  }

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

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

  .rank-item {
    grid-template-columns: 48px 120px minmax(0, 1fr);
    gap: 14px;
  }

  .rank-number {
    font-size: 36px;
  }

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

  .detail-poster {
    width: min(270px, 80vw);
  }

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

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

  .brand-text small {
    display: none;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p,
  .detail-copy p {
    font-size: 17px;
  }

  .section {
    padding: 50px 0;
  }

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

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

  .rank-item {
    grid-template-columns: 42px 1fr;
  }

  .rank-poster {
    display: none;
  }

  .search-panel {
    flex-direction: column;
  }

  .search-panel button {
    min-height: 44px;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
