:root {
  --forest-900: #153629;
  --forest-700: #1f6048;
  --forest-600: #2f7d62;
  --forest-500: #3c9a79;
  --forest-100: #e5f2ed;
  --mist-950: #151a1f;
  --mist-900: #202a33;
  --mist-800: #2c3844;
  --mist-700: #3e4750;
  --mist-600: #66717d;
  --mist-500: #87919c;
  --mist-300: #c8d0d7;
  --mist-200: #e1e6ea;
  --mist-100: #f0f3f5;
  --mist-50: #f8fafb;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(21, 26, 31, 0.10);
  --shadow-card: 0 10px 30px rgba(21, 26, 31, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  color: var(--mist-700);
  background: var(--mist-50);
  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;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(225, 230, 234, 0.9);
  backdrop-filter: blur(16px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: var(--mist-900);
  letter-spacing: -0.03em;
}

.logo-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--forest-700), var(--forest-500));
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(47, 125, 98, 0.24);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link,
.mobile-link {
  font-weight: 600;
  color: var(--mist-700);
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--forest-600);
}

.mobile-toggle {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--mist-900);
  background: transparent;
  border: 0;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  padding: 8px 16px 18px;
  border-top: 1px solid var(--mist-200);
  background: var(--white);
}

.mobile-panel.is-open {
  display: grid;
}

.mobile-link {
  padding: 12px 0;
  border-bottom: 1px solid var(--mist-100);
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: var(--mist-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-media,
.detail-backdrop,
.poster {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 20%, rgba(60, 154, 121, 0.55), transparent 34%),
    linear-gradient(135deg, #1c2832, #3e4750 45%, #1f6048);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-image,
.backdrop-image,
.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-failed img {
  display: none;
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 26, 31, 0.85) 0%, rgba(21, 26, 31, 0.48) 48%, rgba(21, 26, 31, 0.12) 100%),
    linear-gradient(0deg, rgba(21, 26, 31, 0.88) 0%, transparent 58%);
}

.hero-content {
  position: relative;
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 120px;
  padding-bottom: 96px;
  color: var(--white);
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-badges {
  margin-bottom: 18px;
}

.hero-badges span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-badges span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.tag-row span {
  color: var(--forest-700);
  background: var(--forest-100);
}

.hero-actions,
.section-action {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

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

.btn-light {
  color: var(--mist-900);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.btn-light:hover {
  background: var(--white);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--forest-700), var(--forest-500));
  box-shadow: 0 12px 28px rgba(47, 125, 98, 0.28);
}

.btn-outline {
  color: var(--forest-700);
  border-color: rgba(47, 125, 98, 0.3);
  background: var(--white);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.52);
  border: 0;
  border-radius: 999px;
  transition: width 0.3s ease, background 0.3s ease;
}

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

.section {
  padding: 78px 0;
}

.section-white {
  background: var(--white);
}

.section-mist {
  background: var(--mist-50);
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.compact {
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--forest-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head h2,
.page-hero h1,
.detail-copy h1,
.category-intro h2 {
  color: var(--mist-900);
  letter-spacing: -0.05em;
}

.section-head h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.section-head p,
.category-intro p {
  color: var(--mist-600);
  font-size: 17px;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card,
.wide-card,
.side-card,
.card-panel,
.story-card,
.rank-panel,
.category-card {
  background: var(--white);
  border: 1px solid rgba(225, 230, 234, 0.78);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

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

.movie-card:hover,
.wide-card:hover,
.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 125, 98, 0.26);
  box-shadow: var(--shadow-soft);
}

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

.poster {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.movie-card .poster {
  aspect-ratio: 2 / 3;
}

.poster-image {
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-image,
.wide-card:hover .poster-image,
.rank-item:hover .poster-image {
  transform: scale(1.07);
}

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 34px;
  background: rgba(21, 26, 31, 0.28);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-mark,
.wide-card:hover .play-mark {
  opacity: 1;
}

.movie-info {
  padding: 16px;
}

.movie-meta,
.eyebrow-line {
  margin-bottom: 6px;
  color: var(--mist-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-info h3,
.wide-body h3 {
  margin-bottom: 8px;
  color: var(--mist-900);
  font-size: 18px;
  line-height: 1.28;
  transition: color 0.25s ease;
}

.movie-card:hover h3,
.wide-card:hover h3 {
  color: var(--forest-600);
}

.movie-info p,
.wide-body p {
  display: -webkit-box;
  margin-bottom: 14px;
  color: var(--mist-600);
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wide-list {
  display: grid;
  gap: 22px;
}

.wide-link {
  display: grid;
  grid-template-columns: minmax(260px, 38%) 1fr;
  min-height: 250px;
}

.wide-poster {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.wide-body {
  padding: 30px;
}

.wide-body h3 {
  font-size: clamp(24px, 3vw, 34px);
}

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

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

.category-card {
  display: block;
  padding: 22px;
}

.category-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--mist-900);
  font-size: 20px;
}

.category-card span {
  color: var(--mist-600);
}

.rank-panel,
.side-card,
.card-panel,
.story-card {
  padding: 24px;
}

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

.rank-item a {
  display: grid;
  grid-template-columns: 42px 58px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.25s ease;
}

.rank-item a:hover {
  background: var(--mist-50);
}

.rank-num {
  color: var(--forest-600);
  font-size: 20px;
  font-weight: 900;
}

.rank-cover {
  width: 58px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  color: var(--mist-900);
}

.rank-copy em {
  color: var(--mist-500);
  font-size: 13px;
  font-style: normal;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--forest-600);
  font-weight: 900;
}

.section-action {
  justify-content: center;
  margin-top: 36px;
}

.page-hero {
  position: relative;
  padding: 92px 0 74px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 12%, rgba(60, 154, 121, 0.38), transparent 32%),
    linear-gradient(135deg, var(--mist-950), var(--mist-800) 48%, var(--forest-900));
  overflow: hidden;
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 16px;
  color: var(--white);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.catalog-toolbar {
  position: sticky;
  top: 86px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px 160px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--mist-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.catalog-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--mist-600);
  font-size: 13px;
  font-weight: 800;
}

.catalog-toolbar input,
.catalog-toolbar 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: 12px;
  outline: none;
}

.catalog-toolbar input:focus,
.catalog-toolbar select:focus {
  border-color: rgba(47, 125, 98, 0.52);
  box-shadow: 0 0 0 4px rgba(47, 125, 98, 0.1);
}

.empty-state {
  display: none;
  padding: 46px;
  margin-bottom: 22px;
  color: var(--mist-500);
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--mist-300);
  border-radius: var(--radius-md);
}

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

.category-intro {
  max-width: 860px;
  margin-bottom: 28px;
}

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

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

.rank-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 104px;
}

.side-card h2 {
  margin-bottom: 16px;
  color: var(--mist-900);
  font-size: 21px;
}

.side-links {
  display: grid;
  gap: 10px;
}

.side-links a {
  padding: 12px 14px;
  color: var(--mist-700);
  background: var(--mist-50);
  border-radius: 12px;
  transition: color 0.25s ease, background 0.25s ease;
}

.side-links a:hover {
  color: var(--forest-700);
  background: var(--forest-100);
}

.detail-hero {
  position: relative;
  min-height: 640px;
  color: var(--white);
  background: var(--mist-900);
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
  min-height: 640px;
  padding-top: 92px;
  padding-bottom: 76px;
}

.detail-cover {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
  max-width: 880px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
}

.detail-lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.movie-facts,
.side-facts {
  display: grid;
  gap: 10px;
  margin: 26px 0;
}

.movie-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
}

.movie-facts div,
.side-facts div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
}

.movie-facts dt,
.side-facts dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.movie-facts dd,
.side-facts dd {
  margin: 4px 0 0;
  font-weight: 800;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  background: var(--mist-950);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05070a;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #05070a;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--white);
  background: linear-gradient(135deg, rgba(21, 26, 31, 0.45), rgba(47, 125, 98, 0.22));
  border: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: var(--mist-900);
  font-size: 34px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

.story-card h2 {
  margin-bottom: 12px;
  color: var(--mist-900);
  font-size: 28px;
}

.story-card p {
  margin-bottom: 0;
  color: var(--mist-700);
  font-size: 17px;
}

.detail-side {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 104px;
}

.detail-side .side-facts div {
  background: var(--mist-50);
  border-color: var(--mist-200);
}

.detail-side .side-facts dt {
  color: var(--mist-500);
}

.detail-side .side-facts dd {
  color: var(--mist-800);
}

.mini-list {
  display: grid;
  gap: 14px;
}

.mini-list a {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 12px;
  align-items: center;
}

.mini-list .poster {
  grid-row: span 2;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
}

.mini-list strong,
.mini-list em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-list strong {
  color: var(--mist-900);
}

.mini-list em {
  color: var(--mist-500);
  font-size: 13px;
  font-style: normal;
}

.site-footer {
  color: var(--mist-300);
  background: var(--mist-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 42px;
  padding: 58px 0;
}

.footer-logo {
  margin-bottom: 14px;
  color: var(--white);
}

.site-footer p {
  max-width: 420px;
  color: var(--mist-300);
}

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

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--mist-300);
  transition: color 0.25s ease;
}

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

.footer-bottom {
  padding: 18px 16px;
  color: var(--mist-500);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

  .mobile-toggle {
    display: flex;
  }

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

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

  .hero-arrow {
    display: none;
  }

  .three-col,
  .six-col,
  .category-grid,
  .large-rank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide-link {
    grid-template-columns: 1fr;
  }

  .wide-poster {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .catalog-toolbar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .detail-hero-inner {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    min-height: 560px;
  }

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

  .movie-facts {
    grid-template-columns: 1fr;
  }

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

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

  .section {
    padding: 54px 0;
  }

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

  .hero-content {
    padding-bottom: 76px;
  }

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

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

  .six-col,
  .three-col,
  .category-grid,
  .large-rank {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .detail-cover {
    width: 170px;
  }

  .rank-item a {
    grid-template-columns: 34px 48px 1fr;
  }
}
