:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-panel: #111827;
  --bg-panel-2: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --amber-strong: #fbbf24;
  --red: #ef4444;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --radius: 24px;
  --radius-small: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.18), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(59, 130, 246, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, 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,
video {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(18px);
}

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

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

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

.brand-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), #d97706);
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.26);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: -0.04em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  border-radius: 999px;
  padding: 8px 14px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--amber-soft);
  color: var(--amber-strong);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.86);
  color: var(--text);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

.hero-stage {
  position: relative;
  min-height: 72vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 72vh;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #111827);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 48%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, transparent 36%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
}

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

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

.primary-button {
  background: linear-gradient(135deg, var(--amber-strong), var(--amber));
  color: #111827;
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.24);
}

.secondary-button,
.ghost-button {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
}

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

.hero-pills,
.meta-pills,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-pills span,
.meta-pills span,
.tag-cloud span {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-controls button:hover {
  background: rgba(245, 158, 11, 0.18);
  transform: translateY(-2px);
}

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

.hero-dots button {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(203, 213, 225, 0.32);
}

.hero-dots button.is-active {
  background: var(--amber-strong);
}

.section {
  padding: 58px 0;
}

.section-tight {
  padding-top: 34px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p,
.lead {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-link {
  flex: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(148, 163, 184, 0.1);
  color: #dbeafe;
  font-size: 14px;
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.movie-card,
.category-tile,
.panel,
.player-card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.88));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

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

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: var(--shadow);
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 18%, rgba(245, 158, 11, 0.16), transparent 38%),
    linear-gradient(135deg, #172033, #0f172a);
}

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62) 0%, transparent 44%);
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

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

.movie-card-title {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

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

.movie-card-meta,
.movie-card-foot,
.rank-meta-line,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-foot {
  justify-content: space-between;
  margin-top: 12px;
}

.movie-card-foot a {
  color: var(--amber-strong);
}

.category-tile {
  position: relative;
  overflow: hidden;
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
}

.category-tile h2,
.category-tile h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.category-tile p {
  position: relative;
  margin: 0;
  color: var(--muted);
}

.category-tile span {
  position: relative;
  display: inline-block;
  margin-top: 18px;
  color: var(--amber-strong);
  font-weight: 900;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 92px;
  overflow: hidden;
  padding: 16px;
}

.rank-panel h2,
.rank-panel h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 12px 0;
}

.rank-row:first-of-type {
  border-top: 0;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--amber-soft);
  color: var(--amber-strong);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-row:hover .rank-title {
  color: var(--amber-strong);
}

.search-panel {
  margin-bottom: 24px;
  padding: 18px;
}

.search-bar {
  display: flex;
  gap: 12px;
}

.search-bar input {
  flex: 1;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  outline: none;
  padding: 0 18px;
  background: rgba(2, 6, 23, 0.72);
  color: var(--text);
}

.search-bar input:focus {
  border-color: rgba(245, 158, 11, 0.62);
}

.search-bar button,
.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--amber);
  color: #111827;
  font-weight: 900;
  cursor: pointer;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filter-chip {
  min-height: 34px;
  background: rgba(148, 163, 184, 0.12);
  color: #dbeafe;
}

.filter-chip:hover {
  background: var(--amber-soft);
  color: var(--amber-strong);
}

.page-hero {
  padding: 58px 0 26px;
  background:
    radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.16), transparent 30rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0));
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.breadcrumb {
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #cbd5e1;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #172033, #0f172a);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-info p {
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 17px;
}

.player-card {
  overflow: hidden;
  margin-top: 28px;
}

.video-shell {
  position: relative;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.14), transparent 30%),
    rgba(2, 6, 23, 0.42);
  color: var(--text);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay.is-hidden {
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.play-button-core {
  display: grid;
  place-items: center;
  gap: 10px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.92);
  color: #111827;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
  font-weight: 900;
}

.play-button-core span {
  font-size: 34px;
  line-height: 1;
}

.player-title {
  padding: 18px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.player-title h2 {
  margin: 0;
  font-size: 22px;
}

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

.article-body {
  padding: 26px;
}

.article-body h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.article-body p {
  margin: 0 0 18px;
  color: #d1d5db;
  font-size: 16px;
}

.side-panel {
  padding: 18px;
}

.side-panel .rank-row {
  grid-template-columns: 36px minmax(0, 1fr);
}

.side-panel .rank-meta {
  display: none;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 72px 110px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.36);
}

.ranking-card .rank-number {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.ranking-card img {
  width: 90px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #172033, #0f172a);
}

.ranking-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-footer {
  margin-top: 66px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.92);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0;
}

.footer-brand p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
}

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

.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 800;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 18px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13px;
}

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

@media (max-width: 1120px) {
  .grid-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .home-layout,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .footer-inner,
  .container,
  .hero-copy,
  .hero-controls {
    width: min(100% - 24px, 1180px);
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px 14px;
  }

  .hero,
  .hero-stage,
  .hero-slide img {
    min-height: 76vh;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.72) 58%, rgba(2, 6, 23, 0.38) 100%);
  }

  .hero-copy {
    padding-top: 90px;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .grid-cards,
  .grid-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .section {
    padding: 42px 0;
  }

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

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

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .detail-poster {
    width: min(280px, 78vw);
  }

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

  .search-bar button {
    min-height: 46px;
  }

  .ranking-card {
    grid-template-columns: 46px 76px minmax(0, 1fr);
  }

  .ranking-card .rank-link {
    display: none;
  }

  .ranking-card img {
    width: 70px;
  }

  .footer-inner {
    flex-direction: column;
  }

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

@media (max-width: 430px) {
  .grid-cards,
  .grid-categories {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .ranking-card img {
    display: none;
  }
}
