:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --card: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --blue: #3b82f6;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, rgba(30, 41, 59, 0.75), transparent 36rem), var(--bg);
  color: var(--text);
  font-family: Inter, 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,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 21px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
  font-size: 13px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #cbd5e1;
  font-size: 15px;
}

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

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: #fbbf24;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.85);
  padding: 10px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: white;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 8px 16px 18px;
  background: rgba(15, 23, 42, 0.98);
}

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

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.9s ease;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-overlay,
.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.76) 42%, rgba(2, 6, 23, 0.96)), linear-gradient(0deg, #020617, transparent 42%);
}

.hero-glow {
  position: absolute;
  z-index: 2;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.24;
}

.hero-glow-a {
  left: 15%;
  top: 12%;
  background: #f59e0b;
}

.hero-glow-b {
  right: 10%;
  bottom: 14%;
  background: #3b82f6;
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  gap: 48px;
  align-items: center;
}

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

.hero-copy h1,
.detail-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-summary,
.detail-copy p,
.page-hero p {
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
  max-width: 760px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.28);
}

.btn-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 430px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img,
.poster-link img,
.category-thumbs img,
.rank-poster img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster:after,
.detail-poster:after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 -120px 120px rgba(2, 6, 23, 0.48);
}

.hero-controls {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-controls button.is-active {
  background: #fbbf24;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.13);
  color: #fde68a;
  font-size: 12px;
  border: 1px solid rgba(245, 158, 11, 0.16);
}

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

.quick-entry,
.content-section {
  padding: 70px 0 0;
}

.quick-entry {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.quick-search-card,
.filter-panel,
.rank-panel,
.detail-article,
.detail-side,
.player-shell,
.category-card,
.rank-card {
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.quick-search-card {
  padding: 32px;
}

.quick-search-card h2,
.section-head h2,
.detail-article h2,
.detail-side h2,
.category-card h2,
.rank-card h2 {
  margin: 0;
  color: white;
  letter-spacing: -0.03em;
}

.quick-search-card p,
.section-head p,
.movie-card p,
.category-card p,
.rank-card p,
.detail-article p,
.site-footer p {
  color: var(--muted);
}

.quick-search {
  margin-top: 24px;
  display: flex;
  gap: 10px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.8);
  color: white;
  padding: 0 14px;
  outline: none;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(245, 158, 11, 0.65);
}

.quick-search button {
  border: 0;
  min-width: 104px;
  border-radius: 14px;
  color: #111827;
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

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

.category-chips a {
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-radius: 20px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.85));
  border: 1px solid var(--line);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-chips a:hover,
.movie-card:hover,
.category-card:hover,
.rank-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
}

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

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-link {
  color: #fbbf24;
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.poster-link {
  position: relative;
  display: block;
  height: 310px;
  overflow: hidden;
  background: #0f172a;
}

.movie-grid-compact .poster-link {
  height: 260px;
}

.poster-link img {
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-link img,
.category-card:hover img,
.rank-card:hover img {
  transform: scale(1.07);
}

.card-badge,
.card-year {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.card-badge {
  left: 12px;
  background: rgba(245, 158, 11, 0.82);
}

.card-year {
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
}

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

.movie-meta {
  display: flex;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 8px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.movie-card h3 a:hover,
.rank-card h2 a:hover,
.detail-side a:hover span {
  color: #fbbf24;
}

.movie-card p {
  margin: 0 0 14px;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.rank-panel {
  padding: 22px;
  position: sticky;
  top: 90px;
}

.section-head.slim {
  align-items: start;
  margin-bottom: 16px;
}

.section-head.slim h2 {
  font-size: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.6);
}

.rank-row span {
  color: #fbbf24;
  font-weight: 900;
}

.rank-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row em {
  color: #94a3b8;
  font-style: normal;
  font-size: 12px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  background: radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.22), transparent 34rem), radial-gradient(circle at 88% 10%, rgba(59, 130, 246, 0.18), transparent 30rem), #020617;
  border-bottom: 1px solid var(--line);
}

.compact-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.category-overview {
  padding: 64px 0 20px;
}

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

.category-card {
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-thumbs {
  height: 170px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  overflow: hidden;
}

.category-thumbs img {
  min-width: 0;
  transition: transform 0.5s ease;
}

.category-card-body {
  padding: 20px;
}

.category-card-body span {
  color: #fbbf24;
  font-weight: 800;
}

.filter-panel {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
}

.empty-state {
  display: none;
  text-align: center;
  color: #94a3b8;
  padding: 70px 0;
}

.empty-state.is-visible {
  display: block;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-poster {
  position: relative;
  min-height: 210px;
  overflow: hidden;
}

.rank-poster span {
  position: absolute;
  left: 10px;
  top: 10px;
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #111827;
  font-weight: 900;
}

.rank-card-body {
  padding: 20px;
}

.rank-card-body h2 {
  font-size: 22px;
  line-height: 1.2;
}

.breadcrumb-wrap {
  padding: 24px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.detail-hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster {
  position: relative;
  height: 460px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  font-size: clamp(36px, 5.4vw, 70px);
}

.watch-section {
  padding: 44px 0 10px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: black;
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: black;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #020617;
  cursor: pointer;
}

.player-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.1));
}

.play-circle {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #111827;
  font-weight: 900;
  font-size: 28px;
  box-shadow: 0 18px 60px rgba(245, 158, 11, 0.4);
}

.player-shell.is-playing .player-cover {
  display: none;
}

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

.detail-article {
  padding: 28px;
}

.detail-article h2 {
  font-size: 26px;
  margin: 0 0 14px;
}

.detail-article p {
  font-size: 17px;
  margin: 0 0 28px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 32px;
}

.detail-facts div {
  padding: 16px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-facts span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-bottom: 5px;
}

.detail-facts strong {
  color: white;
}

.related-grid {
  display: grid;
  gap: 14px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
}

.movie-card-horizontal .poster-link {
  height: 160px;
}

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

.movie-card-horizontal h3 {
  font-size: 18px;
}

.detail-side {
  position: sticky;
  top: 90px;
  padding: 22px;
}

.side-link-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.side-link-list a {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-link-list img {
  width: 70px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}

.side-link-list span {
  font-weight: 700;
  line-height: 1.35;
}

.site-footer {
  margin-top: 80px;
  background: rgba(15, 23, 42, 0.92);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 36px;
  padding: 44px 0;
}

.footer-logo {
  margin-bottom: 14px;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
  color: #94a3b8;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

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

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

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

  .rank-panel,
  .detail-side {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero-content,
  .detail-hero-inner,
  .quick-entry,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 70px 0 86px;
  }

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

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

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .detail-poster {
    height: 410px;
  }

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

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

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

  .hero-copy h1,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .quick-search,
  .hero-actions {
    flex-direction: column;
  }

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

  .category-chips,
  .movie-grid,
  .movie-grid-featured,
  .category-grid,
  .rank-grid,
  .filter-panel,
  .detail-facts {
    grid-template-columns: 1fr;
  }

  .poster-link,
  .movie-grid-compact .poster-link {
    height: 360px;
  }

  .rank-card,
  .movie-card-horizontal {
    grid-template-columns: 1fr;
  }

  .rank-poster,
  .movie-card-horizontal .poster-link {
    min-height: 280px;
    height: 280px;
  }

  .detail-hero {
    min-height: auto;
    padding: 36px 0;
  }

  .detail-poster {
    height: 430px;
  }

  .play-circle {
    width: 70px;
    height: 70px;
    font-size: 22px;
  }
}
