:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --panel-soft: #263449;
  --panel-deep: #111827;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --border: rgba(148, 163, 184, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.13), transparent 34rem), var(--bg);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #1e293b, #334155, #1e293b);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.nav-wrap {
  width: min(1180px, calc(100% - 2rem));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #082f49;
  background: linear-gradient(135deg, #67e8f9, #22d3ee);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.45);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  margin-top: 0.2rem;
  font-size: 0.76rem;
  color: var(--cyan);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: #e2e8f0;
  font-weight: 650;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #67e8f9;
}

.menu-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 0;
  border-radius: 0.8rem;
  color: #fff;
  background: rgba(15, 23, 42, 0.35);
}

.menu-toggle span {
  width: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-panel.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.mobile-link {
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.25);
}

.hero {
  position: relative;
  min-height: clamp(560px, 72vh, 760px);
  overflow: hidden;
  background: #020617;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.12);
  transform: scale(1.04);
  opacity: 0.42;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.74) 48%, rgba(8, 47, 73, 0.62)), linear-gradient(0deg, #0f172a 0%, transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  min-height: clamp(560px, 72vh, 760px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 5rem 0 6rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: #67e8f9;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.75rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 1rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  color: #e0f2fe;
}

.hero-desc {
  max-width: 760px;
  margin: 1.1rem 0 0;
  color: #dbeafe;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.85;
}

.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags {
  margin-top: 1.4rem;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.68rem;
  color: #dbeafe;
  background: rgba(30, 41, 59, 0.7);
  font-size: 0.82rem;
}

.detail-tags .main-tag {
  border-color: transparent;
  color: #fff;
  background: #06b6d4;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.2rem;
  border-radius: 0.85rem;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

.btn.primary {
  color: #082f49;
  background: linear-gradient(135deg, #67e8f9, #22d3ee);
  box-shadow: 0 18px 34px rgba(8, 145, 178, 0.36);
}

.btn.ghost {
  color: #fff;
  background: rgba(51, 65, 85, 0.86);
}

.btn.text {
  color: #67e8f9;
}

.hero-poster {
  justify-self: end;
  width: min(340px, 100%);
  border-radius: 1.35rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.65);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-4px);
}

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

.hero-poster span {
  display: block;
  padding: 1rem;
  color: #cffafe;
  font-weight: 800;
  text-align: center;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
}

.hero-arrow {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  font-size: 1.7rem;
}

.hero-dots {
  display: flex;
  gap: 0.45rem;
}

.hero-dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border-radius: 999px;
}

.hero-dot.is-active {
  width: 1.55rem;
  background: #22d3ee;
}

.search-band {
  width: min(1180px, calc(100% - 2rem));
  margin: -2rem auto 0;
  position: relative;
  z-index: 4;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.search-form.large {
  margin-bottom: 2rem;
}

.search-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0 1rem;
  color: #f8fafc;
  outline: none;
  background: rgba(30, 41, 59, 0.9);
}

.search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(34, 211, 238, 0.75);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.search-form button {
  min-width: 6.2rem;
  border: 0;
  border-radius: 0.85rem;
  color: #06202c;
  font-weight: 900;
  background: #22d3ee;
}

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.quick-cats a {
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  color: #dbeafe;
  background: rgba(51, 65, 85, 0.72);
  transition: background 0.25s ease, color 0.25s ease;
}

.quick-cats a:hover {
  color: #fff;
  background: #0891b2;
}

.page-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 4rem) 0;
}

.content-section + .content-section {
  margin-top: 3.5rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.section-heading h2,
.side-card h2,
.detail-card h2 {
  margin: 0;
  color: #fff;
}

.section-heading h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.section-more {
  color: #67e8f9;
  font-weight: 750;
}

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

.movie-card {
  min-width: 0;
}

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 0.85rem;
  background: #1e293b;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
  background: rgba(0, 0, 0, 0.42);
}

.play-dot {
  width: 3rem;
  height: 3rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  font-weight: 900;
}

.play-dot.small {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.25rem;
  height: 2.25rem;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 0.24rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 900;
}

.year-badge {
  right: 0.55rem;
  bottom: 0.55rem;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.78);
}

.rank-badge {
  left: 0.55rem;
  top: 0.55rem;
  color: #082f49;
  background: #67e8f9;
}

.movie-title {
  display: -webkit-box;
  min-height: 2.75rem;
  margin-top: 0.62rem;
  overflow: hidden;
  color: #fff;
  font-weight: 780;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.25s ease;
}

.movie-card:hover .movie-title {
  color: #67e8f9;
}

.movie-meta,
.movie-genre {
  margin: 0.28rem 0 0;
  color: #94a3b8;
  font-size: 0.84rem;
  line-height: 1.45;
}

.movie-genre {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.tag-row {
  margin-top: 0.55rem;
}

.tag-row span {
  font-size: 0.72rem;
  padding: 0.18rem 0.5rem;
}

.page-hero {
  background: linear-gradient(135deg, #0f172a, #1e293b 56%, #155e75);
  border-bottom: 1px solid var(--border);
}

.page-hero.compact {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.page-hero > div {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.page-hero p:last-child {
  max-width: 760px;
  margin: 1rem 0 0;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.category-card a {
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.92));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card a:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.55);
}

.category-card h2 {
  margin: 0;
  font-size: 1.3rem;
}

.category-card p {
  margin: 0.7rem 0 1rem;
  color: #cbd5e1;
  line-height: 1.75;
}

.category-samples {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.category-samples a {
  min-height: auto;
  display: block;
  border: 0;
  padding: 0;
  color: #94e2ff;
  background: transparent;
  box-shadow: none;
}

.category-card span {
  margin-top: auto;
  color: #67e8f9;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.62);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.75rem;
  background: rgba(30, 41, 59, 0.74);
}

.rank-number {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  color: #082f49;
  background: #67e8f9;
  font-size: 1.1rem;
  font-weight: 900;
}

.wide-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.wide-thumb {
  position: relative;
  flex: 0 0 8rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.8rem;
  background: #0f172a;
}

.wide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.wide-copy {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.wide-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wide-copy em {
  color: #94a3b8;
  font-size: 0.86rem;
  font-style: normal;
}

.detail-layout {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #67e8f9;
}

.player-shell {
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.player-frame {
  position: relative;
  background: #000;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.5), rgba(2, 6, 23, 0.16));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  font-size: 1.7rem;
  font-weight: 900;
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.14);
}

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

.detail-card,
.side-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(30, 41, 59, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.detail-card {
  margin-top: 1rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.detail-card h1 {
  margin: 1rem 0 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.22;
}

.detail-meta {
  margin: 0 0 1.2rem;
  color: #94a3b8;
}

.detail-card section + section {
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.detail-card p {
  color: #dbe5f4;
  line-height: 1.9;
}

.detail-card p + p {
  margin-top: 0.75rem;
}

.detail-side {
  min-width: 0;
}

.side-card {
  position: sticky;
  top: 96px;
  padding: 1rem;
}

.side-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

.footer-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.site-footer p {
  max-width: 32rem;
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: #cbd5e1;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--border);
  color: #94a3b8;
  font-size: 0.9rem;
}

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

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

  .category-grid,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .hero-poster {
    display: none;
  }

  .side-card {
    position: static;
  }
}

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

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

  .brand-subtitle {
    display: none;
  }

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

  .hero-content {
    padding-top: 4rem;
  }

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

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

  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-number {
    width: 100%;
  }

  .wide-thumb {
    flex-basis: 6.5rem;
  }
}

@media (max-width: 460px) {
  .page-wrap,
  .nav-wrap,
  .mobile-panel,
  .search-band,
  .detail-layout,
  .footer-grid,
  .footer-bottom,
  .page-hero > div,
  .hero-content {
    width: min(100% - 1rem, 1180px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
