:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111c33;
  --panel-hover: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #f59e0b;
  --accent-strong: #d97706;
  --blue: #38bdf8;
  --green: #34d399;
  --red: #fb7185;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
  --radius: 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.16), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.13), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand {
  font-size: 22px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #ef4444);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.36);
  font-size: 13px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted-strong);
  font-size: 15px;
}

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.88);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 18px;
  flex-direction: column;
  gap: 14px;
  color: var(--muted-strong);
}

.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.98));
}

.hero-glow-one,
.hero-glow-two {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.24;
  z-index: -2;
  animation: pulseGlow 5s ease-in-out infinite alternate;
}

.hero-glow-one {
  top: 18%;
  left: 14%;
  background: var(--accent);
}

.hero-glow-two {
  right: 14%;
  bottom: 14%;
  background: var(--blue);
  animation-delay: 1.4s;
}

@keyframes pulseGlow {
  from {
    transform: scale(0.94);
    opacity: 0.18;
  }

  to {
    transform: scale(1.08);
    opacity: 0.32;
  }
}

.hero-inner {
  width: min(1240px, calc(100% - 44px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 38px;
  align-items: center;
  padding: 52px 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 18px;
  font-size: 14px;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 7vw, 78px);
}

.hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.68;
}

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

.btn,
.btn-soft,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 700;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.24);
}

.btn:hover {
  background: var(--accent-strong);
  transform: translateY(-2px) scale(1.02);
}

.btn-soft {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
}

.btn-soft:hover,
.btn-line:hover {
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.58);
  transform: translateY(-2px);
}

.btn-line {
  color: var(--muted-strong);
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.32);
}

.hero-slider {
  position: relative;
  height: 430px;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow);
}

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

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.48) 42%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-slide-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.hero-slide-content h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.hero-slide-content p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.65;
}

.hero-dots {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

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

.hero-dot.active {
  width: 26px;
  background: var(--accent);
}

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

.content-stack {
  padding: 76px 0;
}

.section {
  margin-bottom: 78px;
}

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

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
}

.section-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.16);
}

.section-header h2,
.page-hero h1,
.category-card h2,
.detail-section h2 {
  margin: 0;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.section-header p,
.page-hero p,
.category-card p,
.empty-state,
.detail-section p {
  color: var(--muted);
  line-height: 1.72;
}

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

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

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(30, 41, 59, 0.96);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.32);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-cover {
  position: relative;
  height: 210px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(56, 189, 248, 0.14)),
    #0f172a;
}

.movie-card-large .movie-cover {
  height: 320px;
}

.movie-cover img,
.rank-cover img,
.detail-poster img,
.category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s ease;
}

.movie-card:hover .movie-cover img,
.rank-card:hover .rank-cover img,
.category-card:hover .category-thumb img {
  transform: scale(1.09);
}

.cover-shade {
  position: absolute;
  inset: auto 0 0;
  height: 64%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent);
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 26px;
  margin-bottom: 10px;
}

.tag-row span,
.detail-tags span,
.hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  font-size: 12px;
  line-height: 1;
}

.movie-card h3,
.rank-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: #64748b;
  font-size: 13px;
}

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

.rank-card {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.15);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.rank-card:hover {
  transform: translateY(-4px);
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(245, 158, 11, 0.34);
}

.rank-card-link {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 18px;
  min-height: 126px;
}

.rank-cover {
  min-height: 126px;
  overflow: hidden;
  background: #111827;
}

.rank-body {
  min-width: 0;
  padding: 17px 18px 17px 0;
}

.rank-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-number {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #ef4444);
}

.page-hero {
  padding: 68px 0 36px;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 17px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 0.35fr));
  gap: 14px;
  padding: 18px;
  margin: 26px 0 34px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--line);
}

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.category-thumb {
  height: 136px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(56, 189, 248, 0.14));
}

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

.category-card h2 {
  font-size: 24px;
}

.category-card p {
  margin: 12px 0 20px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
  gap: 30px;
  padding: 38px 0 76px;
}

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

.breadcrumb a {
  color: #fbbf24;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.1), rgba(2, 6, 23, 0.26));
  transition: opacity 0.2s ease;
}

.player-shell.playing .player-overlay {
  opacity: 0;
}

.player-main-button {
  pointer-events: auto;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.95);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.34);
  cursor: pointer;
  font-size: 26px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-main-button:hover {
  transform: scale(1.06);
  background: var(--accent-strong);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  border-radius: 14px;
  padding: 12px 14px;
  color: #ffffff;
  background: rgba(127, 29, 29, 0.86);
  font-size: 14px;
}

.player-message.show {
  display: block;
}

.player-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: none;
}

.player-control {
  pointer-events: auto;
  min-width: 44px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.detail-title {
  padding: 26px 0 20px;
}

.detail-title h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.detail-card,
.detail-section {
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 24px;
  margin-top: 22px;
}

.detail-section h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.detail-section p {
  margin: 0;
  font-size: 16px;
}

.detail-facts {
  display: grid;
  gap: 14px;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.fact-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fact-row span:first-child {
  color: var(--muted);
}

.detail-poster {
  overflow: hidden;
  height: 420px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.96);
  padding: 54px 22px 30px;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 38px;
}

.footer-brand {
  font-size: 22px;
}

.site-footer p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.72;
}

.site-footer h3 {
  margin: 0 0 18px;
  color: #ffffff;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

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

.footer-bottom {
  max-width: 1240px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

.empty-state {
  display: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  background: rgba(15, 23, 42, 0.78);
}

.empty-state.show {
  display: block;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.back-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

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

  .hero-slider {
    height: 380px;
  }
}

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

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

  .mobile-nav.open {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    width: min(100% - 30px, 640px);
    padding: 42px 0;
  }

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

  .hero-slider {
    height: 330px;
    border-radius: 22px;
  }

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

  .grid-3,
  .grid-4,
  .category-grid,
  .related-grid,
  .rank-list {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 560px) {
  .container,
  .site-header-inner,
  .mobile-nav {
    width: auto;
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    font-size: 18px;
  }

  .grid-3,
  .grid-4,
  .category-grid,
  .related-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .rank-card-link {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .rank-cover {
    min-height: 120px;
  }

  .movie-cover {
    height: 230px;
  }

  .detail-poster {
    height: 360px;
  }

  .player-controls {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }
}
