
:root {
  --mist-50: #f8fafc;
  --mist-100: #f1f5f9;
  --mist-200: #e2e8f0;
  --mist-300: #cbd5e1;
  --mist-400: #94a3b8;
  --mist-500: #64748b;
  --mist-600: #475569;
  --mist-700: #334155;
  --mist-800: #1e293b;
  --mist-900: #0f172a;
  --lake-50: #f0f9ff;
  --lake-100: #e0f2fe;
  --lake-400: #38bdf8;
  --lake-500: #0ea5e9;
  --lake-600: #0284c7;
  --lake-700: #0369a1;
  --lake-900: #0c4a6e;
  --sepia-50: #faf8f5;
  --sepia-100: #f1ebe3;
  --amber-500: #f59e0b;
  --white: #ffffff;
  --shadow-soft: 0 2px 15px -3px rgba(15, 23, 42, 0.08), 0 10px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-elevated: 0 20px 60px -20px rgba(15, 23, 42, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--mist-900);
  background: linear-gradient(180deg, var(--sepia-50) 0%, var(--white) 40%, var(--mist-50) 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--lake-400), var(--lake-700));
  box-shadow: 0 10px 30px -12px var(--lake-400);
}

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

.brand-copy strong {
  font-size: 20px;
  line-height: 1.1;
}

.brand-copy em {
  color: var(--mist-400);
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--mist-200);
  font-size: 15px;
}

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

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: var(--lake-400);
}

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

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

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  color: var(--mist-200);
  background: var(--mist-800);
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  border-top: 1px solid rgba(226, 232, 240, 0.08);
}

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

.hero-slider {
  position: relative;
  min-height: 680px;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(120deg, var(--mist-900), var(--mist-800) 52%, var(--lake-900));
}

.hero-track {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: blur(18px) saturate(1.1);
  opacity: 0.28;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 24%, rgba(14, 165, 233, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.74) 45%, rgba(12, 74, 110, 0.62));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 52px;
  padding: 64px 0 130px;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  margin-bottom: 18px;
  color: var(--lake-100);
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 999px;
  font-size: 14px;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--mist-200);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  color: var(--lake-700);
  background: var(--lake-100);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1;
}

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

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

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--lake-500), var(--lake-700));
  box-shadow: 0 16px 34px -20px var(--lake-400);
}

.button-primary:hover,
.button-ghost:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.button-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

.button-ghost.light {
  color: var(--mist-900);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-elevated);
  transform: rotate(1.5deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.42));
}

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

.hero-control-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 122px;
  z-index: 4;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-controls button,
.hero-dots button {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

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

.hero-dots button {
  width: 34px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.52;
}

.hero-dots button.is-active {
  opacity: 1;
  background: var(--lake-400);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  transform: translateX(-50%);
}

.hero-search-box {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.1fr) minmax(320px, 1.7fr);
  align-items: center;
  gap: 18px;
  padding: 20px;
  color: var(--mist-900);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(18px);
}

.hero-search-box strong {
  font-size: 18px;
}

.hero-search-box p {
  margin: 0;
  color: var(--mist-600);
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hero-category-links a {
  padding: 7px 12px;
  color: var(--lake-700);
  background: var(--lake-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.content-section {
  padding: 74px 0;
}

.muted-section {
  background: rgba(241, 245, 249, 0.72);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.section-heading a {
  color: var(--lake-700);
  font-weight: 700;
}

.slim-heading {
  align-items: flex-start;
  margin-bottom: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(130px, 0.7fr));
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--mist-200);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--mist-600);
  font-size: 13px;
  font-weight: 700;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--mist-900);
  background: var(--mist-50);
  border: 1px solid var(--mist-200);
  border-radius: 14px;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--lake-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

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

.compact-grid,
.small-grid,
.ranking-card-grid,
.category-movie-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card[hidden],
.ranking-row[hidden] {
  display: none;
}

.movie-card a {
  display: grid;
  height: 100%;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mist-800), var(--lake-900));
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, 0.62));
  opacity: 0.6;
}

.card-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  min-width: 38px;
  height: 30px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), #ef4444);
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 10px 24px -16px #000;
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.card-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--mist-900);
  font-size: 17px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body em,
.ranking-row em {
  color: var(--mist-500);
  font-size: 13px;
  font-style: normal;
}

.card-line {
  display: -webkit-box;
  overflow: hidden;
  color: var(--mist-600);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

.category-tile,
.category-overview-card a {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--mist-200);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.category-tile span,
.category-overview-card strong {
  color: var(--lake-700);
  font-weight: 800;
}

.category-tile strong,
.category-overview-card em {
  color: var(--mist-900);
  font-size: 20px;
  font-style: normal;
}

.category-tile em,
.category-overview-card span {
  color: var(--mist-600);
  font-style: normal;
}

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

.ranking-panel,
.info-card,
.prose-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--mist-200);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 44px 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 12px;
  padding: 10px;
  background: var(--mist-50);
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
  background: var(--lake-50);
  transform: translateX(3px);
}

.ranking-row span {
  grid-row: 1 / 3;
  color: var(--lake-700);
  font-weight: 900;
}

.ranking-row img {
  grid-row: 1 / 3;
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

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

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

.page-hero,
.detail-hero {
  color: var(--white);
  padding: 64px 0;
  background:
    radial-gradient(circle at 88% 20%, rgba(56, 189, 248, 0.3), transparent 32%),
    linear-gradient(120deg, var(--mist-900), var(--mist-800) 52%, var(--lake-900));
}

.page-hero h1 {
  max-width: 850px;
}

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

.breadcrumb a {
  color: var(--lake-100);
}

.breadcrumb span::before,
.breadcrumb a + span::before,
.breadcrumb a + a::before {
  content: "/";
  margin-right: 8px;
  color: rgba(226, 232, 240, 0.55);
}

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

.category-overview-card a {
  min-height: auto;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
}

.overview-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.overview-images img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
}

.overview-copy {
  display: grid;
  gap: 8px;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow-elevated);
}

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

.player-section {
  padding: 46px 0 0;
  background: var(--mist-900);
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow-elevated);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: #000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  filter: saturate(1.1);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.15), rgba(15, 23, 42, 0.72));
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-badge {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: var(--white);
  background: linear-gradient(135deg, var(--lake-500), var(--lake-700));
  border-radius: 50%;
  font-size: 32px;
  box-shadow: 0 18px 45px -18px var(--lake-400);
}

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

.prose-card h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.prose-card h2:not(:first-child) {
  margin-top: 28px;
}

.prose-card p {
  margin: 0;
  color: var(--mist-700);
  font-size: 17px;
  line-height: 1.9;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.info-card li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mist-200);
}

.info-card li span {
  color: var(--mist-500);
  font-size: 13px;
}

.info-card li strong {
  color: var(--mist-900);
  font-size: 15px;
}

.detail-switcher {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.detail-switcher a {
  display: block;
  padding: 12px 14px;
  color: var(--lake-700);
  background: var(--lake-50);
  border-radius: 14px;
  font-weight: 700;
}

.site-footer {
  color: var(--mist-300);
  background: var(--mist-900);
  border-top: 1px solid rgba(226, 232, 240, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 54px 0 34px;
}

.footer-brand {
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
}

.site-footer p {
  margin: 16px 0 0;
  color: var(--mist-400);
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 17px;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.08);
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .movie-grid,
  .compact-grid,
  .small-grid,
  .ranking-card-grid,
  .category-movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .menu-toggle {
    display: inline-block;
  }

  .hero-slider,
  .hero-track {
    min-height: 760px;
  }

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

  .hero-poster {
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-control-panel {
    bottom: 160px;
  }

  .hero-search-box,
  .filter-bar,
  .split-layout,
  .detail-content-grid,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-category-links {
    justify-content: flex-start;
  }

  .detail-poster {
    max-width: 260px;
  }

  .category-overview-grid,
  .wide-ranking-list {
    grid-template-columns: 1fr;
  }
}

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

  .header-inner {
    min-height: 64px;
  }

  .brand-copy em {
    display: none;
  }

  .brand-copy strong {
    font-size: 18px;
  }

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

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

  .hero-slider,
  .hero-track {
    min-height: 840px;
  }

  .hero-controls > button {
    width: 38px;
    height: 38px;
  }

  .hero-search {
    bottom: 18px;
  }

  .movie-grid,
  .compact-grid,
  .small-grid,
  .ranking-card-grid,
  .category-movie-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .page-hero,
  .detail-hero {
    padding: 44px 0;
  }

  .category-overview-card a {
    grid-template-columns: 1fr;
  }

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

  .player-section {
    padding-top: 24px;
  }

  .player-frame {
    border-radius: 18px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .compact-grid,
  .small-grid,
  .ranking-card-grid,
  .category-movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider,
  .hero-track {
    min-height: 880px;
  }

  .hero-meta span,
  .detail-meta span,
  .tag-row span {
    font-size: 11px;
  }
}
