:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --orange-500: #f97316;
  --rose-500: #f43f5e;
  --blue-600: #2563eb;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", 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;
  color: #ffffff;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.28);
}

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

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-500));
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.34);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

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

.brand-copy small {
  color: #cbd5e1;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a {
  color: #e2e8f0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--emerald-400);
  transform: translateY(-1px);
}

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

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 10px;
}

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

.mobile-nav a {
  display: block;
  padding: 11px 0;
  color: #e2e8f0;
  border-top: 1px solid rgba(226, 232, 240, 0.1);
}

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

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, var(--slate-900), var(--slate-800));
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero-overlay,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 18%, rgba(16, 185, 129, 0.32), transparent 30%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.7));
}

.hero-content {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-copy {
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 13px;
  color: #ffffff;
  background: var(--emerald-500);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-title-block h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-title-block p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.hero-meta span {
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

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

.tag-row span {
  padding: 5px 10px;
  color: var(--slate-600);
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  box-shadow: 0 18px 36px rgba(5, 150, 105, 0.28);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.25);
}

.hero-search {
  position: relative;
  width: min(560px, 100%);
  margin-top: 24px;
}

.search-wrap input,
.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  color: var(--slate-900);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: var(--radius-md);
  outline: 0;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.14);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  overflow: hidden;
  color: var(--slate-900);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.search-results.is-visible {
  display: grid;
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
}

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

.search-result-item img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--slate-200);
}

.search-result-item strong {
  display: block;
  margin-bottom: 2px;
}

.search-result-item span {
  display: block;
  color: var(--slate-500);
  font-size: 13px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--emerald-400);
}

.section-shell {
  padding: 72px 0;
}

.soft-section {
  background: rgba(255, 255, 255, 0.55);
}

.dark-band {
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(16, 185, 129, 0.2), transparent 30%),
    linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

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

.section-title-row h2 {
  margin: 10px 0 0;
  color: var(--slate-800);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.16;
}

.section-title-row a {
  color: var(--emerald-600);
  font-weight: 850;
}

.section-title-row.light h2,
.section-title-row.light a {
  color: #ffffff;
}

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

.split-section.reverse {
  grid-template-columns: minmax(0, 1fr) 310px;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-xl);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.dark-band .movie-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-200), #ffffff);
}

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

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

.score-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.score-badge {
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, var(--orange-500), var(--rose-500));
}

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

.movie-title {
  display: block;
  margin-bottom: 8px;
  color: var(--slate-900);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.dark-band .movie-title {
  color: #ffffff;
}

.movie-meta {
  margin: 0 0 9px;
  color: var(--slate-500);
  font-size: 13px;
}

.dark-band .movie-meta,
.dark-band .movie-desc {
  color: #cbd5e1;
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-panel {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

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

.ranking-head {
  margin-bottom: 14px;
}

.ranking-head span {
  color: var(--emerald-600);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ranking-head h2 {
  margin: 4px 0 0;
  font-size: 28px;
}

.rank-line {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #e2e8f0;
}

.rank-num {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--slate-900);
  border-radius: 12px;
  font-weight: 900;
}

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

.rank-score {
  color: var(--emerald-600);
  font-weight: 900;
  text-align: right;
}

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

.category-tile {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.25);
}

.category-tile strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.category-tile p,
.category-tile em {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-style: normal;
}

.category-tile em {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
}

.category-glow {
  position: absolute;
  right: -38px;
  bottom: -48px;
  width: 130px;
  height: 130px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  filter: blur(2px);
}

.accent-blue { background: linear-gradient(135deg, #2563eb, #1e40af); }
.accent-pink { background: linear-gradient(135deg, #ec4899, #be185d); }
.accent-red { background: linear-gradient(135deg, #ef4444, #991b1b); }
.accent-amber { background: linear-gradient(135deg, #f59e0b, #b45309); }
.accent-violet { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.accent-cyan { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.accent-emerald { background: linear-gradient(135deg, #10b981, #047857); }
.accent-orange { background: linear-gradient(135deg, #f97316, #c2410c); }
.accent-slate { background: linear-gradient(135deg, #475569, #0f172a); }
.accent-indigo { background: linear-gradient(135deg, #6366f1, #3730a3); }

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 16%, rgba(16, 185, 129, 0.26), transparent 32%),
    linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.page-hero-inner {
  padding: 76px 0 70px;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-field {
  display: grid;
  gap: 8px;
}

.filter-field span {
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 850;
}

.category-preview {
  padding: 58px 0;
}

.category-preview .container,
.category-preview > .section-title-row,
.category-preview > .movie-grid {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.rank-hero {
  background:
    radial-gradient(circle at 70% 20%, rgba(249, 115, 22, 0.3), transparent 30%),
    linear-gradient(135deg, #111827, #0f172a);
}

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

.detail-hero-inner {
  position: relative;
  padding: 48px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 26px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--emerald-400);
}

.detail-heading {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-title-block h1 {
  margin-top: 16px;
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.14);
}

.watch-section {
  padding-top: 46px;
  padding-bottom: 40px;
  background: #0f172a;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  color: #ffffff;
  background: radial-gradient(circle at 50% 44%, rgba(16, 185, 129, 0.18), rgba(2, 6, 23, 0.66));
  border: 0;
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  padding-left: 4px;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-500));
  border-radius: 999px;
  font-size: 30px;
  box-shadow: 0 20px 48px rgba(16, 185, 129, 0.34);
}

.detail-body-section {
  padding-top: 58px;
}

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

.detail-article,
.side-card {
  padding: 26px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-article h2,
.side-card h2 {
  margin: 0 0 12px;
  color: var(--slate-800);
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 22px;
  color: var(--slate-600);
  font-size: 16px;
}

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

.info-list div {
  padding: 13px;
  background: var(--slate-50);
  border-radius: var(--radius-md);
}

.info-list strong,
.info-list span {
  display: block;
}

.info-list strong {
  color: var(--slate-500);
  font-size: 12px;
}

.info-list span {
  color: var(--slate-900);
  font-weight: 850;
}

.side-card {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 12px;
}

.side-card a {
  padding: 12px 14px;
  color: var(--slate-800);
  background: var(--slate-50);
  border-radius: var(--radius-md);
  font-weight: 850;
}

.side-card a:hover {
  color: var(--emerald-600);
}

.site-footer {
  color: #cbd5e1;
  background: var(--slate-950);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0;
}

.footer-logo {
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--emerald-400);
}

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

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

  .mobile-toggle {
    display: block;
  }

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

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

  .ranking-panel,
  .sticky-panel,
  .side-card {
    position: static;
  }

  .detail-poster {
    width: min(260px, 100%);
  }
}

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

  .brand-copy small {
    display: none;
  }

  .hero-slider {
    min-height: 660px;
    height: 78vh;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-title-block h1 {
    font-size: 36px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-title-block p {
    font-size: 16px;
  }

  .section-shell {
    padding: 48px 0;
  }

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

  .movie-grid,
  .featured-grid,
  .mini-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}
