:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.82);
  --bg-card-strong: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --yellow: #facc15;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 36rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6 52%, #8b5cf6);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.26);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 21px;
  letter-spacing: 0.04em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  color: var(--muted-strong);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  width: 250px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
}

.header-search input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  padding: 7px 10px;
}

.header-search button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 7px 13px;
  color: #06131a;
  font-weight: 800;
  background: var(--cyan);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  border-radius: 14px;
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.94);
}

.mobile-nav a {
  display: block;
  padding: 12px;
  color: var(--muted-strong);
  border-radius: 12px;
}

.mobile-nav a:hover {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

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

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

.hero-slides {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.68) 42%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(0deg, #020617 0%, transparent 42%);
}

.hero-copy {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0 130px;
  max-width: 820px;
}

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

.hero-copy h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 720px;
  margin: 24px 0 0;
  color: #dbeafe;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.8;
}

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

.hero-meta span,
.detail-meta span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.72);
  color: var(--muted-strong);
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  padding: 0 24px;
  color: #06131a;
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  box-shadow: 0 18px 38px rgba(34, 211, 238, 0.28);
}

.ghost-button,
.more-link {
  padding: 0 20px;
  color: var(--text);
  border: 1px solid rgba(226, 232, 240, 0.24);
  background: rgba(15, 23, 42, 0.54);
}

.primary-button:hover,
.ghost-button:hover,
.more-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.54);
}

.hero-thumbs {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: min(1240px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  z-index: 4;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 8px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.hero-thumb img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.hero-thumb span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.hero-thumb.active {
  border-color: rgba(34, 211, 238, 0.7);
  color: var(--text);
  background: rgba(8, 145, 178, 0.22);
}

.category-band,
.content-section,
.split-section,
.page-shell,
.detail-content,
.player-section {
  width: min(1240px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.category-band {
  margin-top: 34px;
}

.category-band-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-tile,
.category-card-large {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.64));
  box-shadow: var(--shadow);
}

.category-tile {
  min-height: 128px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-tile span {
  color: var(--cyan);
  font-weight: 900;
  font-size: 20px;
}

.category-tile strong {
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.7;
}

.content-section {
  margin-top: 58px;
}

.flat-section {
  margin-top: 34px;
}

.inset-section {
  width: auto;
  margin: 0;
}

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

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

.compact-head h2 {
  font-size: 30px;
}

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

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

.movie-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.48);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.92) 100%);
}

.play-dot,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #06131a;
  background: var(--cyan);
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(34, 211, 238, 0.28);
}

.play-dot {
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  padding: 0 8px;
}

.card-body {
  padding: 14px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-meta span:first-child {
  color: var(--yellow);
}

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

.card-body h3 a:hover {
  color: var(--cyan);
}

.card-body p {
  min-height: 66px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
  margin-top: 58px;
}

.ranking-panel,
.story-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.ranking-list,
.wide-ranking-list,
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ranking-list li + li {
  margin-top: 12px;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 30px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.38);
}

.ranking-list a:hover,
.wide-ranking-list a:hover {
  background: rgba(34, 211, 238, 0.08);
}

.ranking-list img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.ranking-list span,
.rank-number {
  color: var(--cyan);
  font-weight: 900;
}

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

.ranking-list em,
.wide-ranking-list em {
  color: var(--yellow);
  font-style: normal;
  font-weight: 900;
}

.page-shell {
  padding: 34px 0 76px;
}

.page-hero {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at 18% 10%, rgba(34, 211, 238, 0.18), transparent 32rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.86));
  box-shadow: var(--shadow);
}

.small-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
}

.page-hero p {
  max-width: 820px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-card-large {
  padding: 26px;
}

.category-card-large h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.category-card-large p {
  color: var(--muted-strong);
  line-height: 1.8;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.category-samples a {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.74);
  padding: 0 14px;
  font-weight: 800;
}

.pagination a:hover,
.pagination .page-current {
  color: #06131a;
  background: var(--cyan);
}

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

.wide-ranking-list a {
  display: grid;
  grid-template-columns: 54px 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.66);
}

.wide-ranking-list img {
  width: 74px;
  height: 98px;
  object-fit: cover;
  border-radius: 12px;
}

.wide-ranking-list strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}

.wide-ranking-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.page-search-box {
  margin-top: 26px;
  max-width: 680px;
}

.page-search-box input {
  width: 100%;
  height: 58px;
  border: 1px solid rgba(34, 211, 238, 0.38);
  border-radius: 999px;
  padding: 0 22px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.6);
  outline: 0;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.detail-page {
  padding-bottom: 76px;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.76) 46%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(0deg, #020617 0%, transparent 46%);
}

.detail-hero-inner {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 68px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 44px;
}

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

.detail-intro {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  max-width: 1050px;
}

.detail-cover {
  width: 280px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-intro p {
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.8;
}

.detail-tags {
  margin-top: 24px;
}

.player-section {
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.player-frame {
  position: relative;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

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

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #06131a;
  background: linear-gradient(135deg, #22d3ee, #67e8f9);
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 22px 60px rgba(34, 211, 238, 0.3);
  z-index: 2;
}

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

.player-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 6px 0;
}

.player-title h2 {
  margin: 0;
  font-size: 28px;
}

.player-title p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
  max-width: 720px;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

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

.story-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.9;
  font-size: 16px;
}

.related-section {
  margin-top: 42px;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(2, 6, 23, 0.9));
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 30px;
}

.footer-brand {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: var(--cyan);
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

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

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

  .split-section {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

  .hero-carousel,
  .hero-slides {
    min-height: 690px;
  }

  .hero-copy {
    padding-top: 72px;
  }

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

  .hero-thumb:nth-child(n + 5) {
    display: none;
  }

  .category-band-inner,
  .category-overview-grid,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-intro {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: min(280px, 72vw);
  }

  .player-title {
    display: block;
  }

  .player-title p {
    margin-top: 10px;
  }
}

@media (max-width: 640px) {
  .site-header-inner,
  .category-band,
  .content-section,
  .split-section,
  .page-shell,
  .detail-content,
  .player-section,
  .detail-hero-inner,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1240px);
  }

  .brand-text small {
    display: none;
  }

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

  .hero-meta span,
  .detail-meta span {
    font-size: 13px;
  }

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

  .card-body {
    padding: 12px;
  }

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

  .hero-thumbs {
    gap: 8px;
  }

  .hero-thumb img {
    width: 42px;
    height: 56px;
  }

  .wide-ranking-list a {
    grid-template-columns: 42px 56px minmax(0, 1fr);
  }

  .wide-ranking-list em {
    grid-column: 3;
  }

  .wide-ranking-list img {
    width: 56px;
    height: 74px;
  }

  .movie-play {
    width: 70px;
    height: 70px;
    font-size: 24px;
  }
}
