:root {
  --primary-50: #f0f9f4;
  --primary-100: #dcf0e3;
  --primary-600: #2a724c;
  --primary-700: #215d3e;
  --primary-800: #1d4933;
  --accent-50: #f5f8fa;
  --accent-600: #6083b5;
  --accent-800: #475d88;
  --secondary-50: #fdf8f3;
  --secondary-100: #f9ede0;
  --night-50: #f4f6f8;
  --night-100: #e3e8ed;
  --night-700: #3b4c61;
  --night-900: #2e3946;
  --text: #18202b;
  --muted: #667085;
  --line: #e5e7eb;
  --shadow: 0 18px 48px rgba(24, 32, 43, .14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--accent-50), #fff 28%, var(--secondary-50));
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

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(255, 255, 255, .92);
  border-bottom: 1px solid rgba(229, 231, 235, .86);
  backdrop-filter: blur(14px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .02em;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(42, 114, 76, .28);
}

.logo-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--primary-700), var(--accent-800));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 14px;
  color: #344054;
  border-radius: 999px;
  transition: .2s ease;
}

.main-nav a:hover {
  color: var(--primary-700);
  background: var(--primary-50);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--primary-700);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 12px;
}

.hero {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  color: #fff;
  background: var(--night-900);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
}

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

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

.hero-bg {
  opacity: .42;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(96, 131, 181, .42), transparent 30%),
    linear-gradient(90deg, rgba(23, 35, 49, .92), rgba(23, 35, 49, .66) 46%, rgba(23, 35, 49, .25)),
    linear-gradient(0deg, rgba(23, 35, 49, .82), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 72px 0 112px;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(38px, 6vw, 74px);
}

.hero-copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(24px, 3vw, 38px);
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.dark-section .eyebrow,
.detail-hero .eyebrow,
.rank-hero .eyebrow {
  color: #bcf1cf;
}

.hero-tags,
.detail-meta,
.tag-list,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .24);
  backdrop-filter: blur(6px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  box-shadow: 0 16px 34px rgba(42, 114, 76, .28);
}

.btn-glass,
.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 32px;
  background: linear-gradient(135deg, var(--primary-800), var(--accent-800));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  transition: transform .45s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  color: #fff;
  font-weight: 800;
  background: rgba(0, 0, 0, .58);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  backdrop-filter: blur(8px);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}

.hero-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

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

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

.hero-dot.is-active {
  background: #fff;
}

.section {
  padding: 72px 0;
}

.section-raised {
  margin-top: -42px;
  position: relative;
  z-index: 6;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -.03em;
}

.text-link {
  color: var(--primary-700);
  font-weight: 800;
}

.text-link.light {
  color: #fff;
}

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

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

.category-tile {
  min-height: 138px;
  padding: 22px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(229, 231, 235, .92);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(24, 32, 43, .08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: var(--primary-100);
  box-shadow: var(--shadow);
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-700);
  font-size: 20px;
}

.category-tile span {
  color: var(--muted);
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  background: rgba(255, 255, 255, .84);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(24, 32, 43, .06);
}

.filter-panel-wide {
  grid-template-columns: minmax(0, 1fr) 180px 180px;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px rgba(42, 114, 76, .12);
}

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

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

.movie-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, .92);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(24, 32, 43, .08);
  transition: transform .22s ease, box-shadow .22s ease;
}

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

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

.poster {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(96, 131, 181, .58), transparent 30%),
    linear-gradient(135deg, var(--primary-800), var(--night-900));
}

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

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

.poster figcaption,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #fff;
  background: rgba(0, 0, 0, .58);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
}

.poster figcaption {
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  top: 12px;
  left: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 900;
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body p {
  min-height: 46px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.meta-row span {
  color: #667085;
  font-size: 12px;
}

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

.movie-card-compact .poster {
  aspect-ratio: auto;
  min-height: 132px;
}

.movie-card-compact .movie-card-body p {
  min-height: 0;
}

.dark-section {
  color: #fff;
  background:
    radial-gradient(circle at 18% 8%, rgba(96, 131, 181, .36), transparent 28%),
    linear-gradient(135deg, var(--night-900), #172331 70%, #0e1723);
}

.dark-section .movie-card {
  color: var(--text);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--night-900), var(--accent-800));
}

.page-hero {
  padding: 84px 0 72px;
}

.soft-hero,
.category-hero {
  color: var(--text);
  background:
    radial-gradient(circle at 78% 18%, rgba(42, 114, 76, .12), transparent 32%),
    linear-gradient(135deg, #fff, var(--primary-50));
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(38px, 5vw, 62px);
}

.page-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  color: currentColor;
  opacity: .78;
  font-size: 18px;
}

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

.rank-hero::before,
.detail-mask {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 35, 49, .92), rgba(23, 35, 49, .62)), linear-gradient(0deg, rgba(23, 35, 49, .86), transparent 55%);
}

.page-hero-bg {
  opacity: .42;
}

.breadcrumb {
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
  color: currentColor;
  opacity: .78;
  font-size: 14px;
}

.breadcrumb a {
  font-weight: 800;
}

.detail-hero {
  min-height: 620px;
}

.detail-bg {
  opacity: .34;
  filter: saturate(1.08);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 54px 0 72px;
}

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

.detail-poster {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--primary-800), var(--accent-800));
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 28px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .34);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.lead {
  max-width: 760px;
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

.detail-meta span,
.tag-list span {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
}

.tag-list {
  margin: 18px 0 28px;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  background: radial-gradient(circle at center, rgba(42, 114, 76, .52), rgba(0, 0, 0, .62));
  cursor: pointer;
  border: 0;
}

.stream-player.is-ready .play-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.play-icon {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  color: var(--primary-700);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .28);
}

.play-cover strong {
  padding: 0 24px;
  font-size: clamp(20px, 3vw, 34px);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.story-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(24, 32, 43, .08);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.story-card p {
  margin: 0;
  color: #475467;
}

.site-footer {
  color: #d0d5dd;
  background: #172331;
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-logo {
  color: #fff;
}

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

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

.footer-inner p {
  margin: 0;
  color: #98a2b3;
}

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

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

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

  .hero-poster,
  .hero-poster img {
    min-height: 360px;
  }

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

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

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

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

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

  .hero-content {
    gap: 24px;
    padding: 48px 0 112px;
  }

  .hero-actions,
  .section-head,
  .footer-links {
    align-items: stretch;
    flex-direction: column;
  }

  .category-grid,
  .category-grid-large,
  .movie-grid,
  .rank-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .movie-card-compact .movie-link {
    grid-template-columns: 112px minmax(0, 1fr);
  }

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

  .page-hero,
  .section {
    padding: 48px 0;
  }
}
