:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.9);
  --panel-soft: rgba(30, 41, 59, 0.72);
  --line: rgba(148, 163, 184, 0.18);
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --text: #f8fafc;
  --muted: #94a3b8;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 0%, rgba(8, 145, 178, 0.18), transparent 30%), var(--bg);
  color: var(--text);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #00111a;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.35);
  font-size: 14px;
}

.brand-text {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.menu-button {
  display: none;
  color: #cbd5e1;
  font-size: 24px;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-nav.open {
  display: grid;
  gap: 14px;
}

.hero {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  background: #020617;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.18), transparent 34%), linear-gradient(180deg, rgba(2, 6, 23, 0.18), #020617 94%);
  pointer-events: none;
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 40px;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
  padding: 80px max(16px, calc((100vw - 1280px) / 2)) 88px;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  position: relative;
  z-index: 3;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: saturate(1.1);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #020617 6%, rgba(2, 6, 23, 0.74) 45%, rgba(2, 6, 23, 0.28));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 22px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.13);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 78px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
  margin-bottom: 22px;
}

.hero h1 span {
  background: linear-gradient(90deg, #67e8f9, #60a5fa, #f8fafc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
  max-width: 680px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
}

.hero-meta span,
.tag-row span,
.info-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.66);
  font-size: 12px;
  padding: 5px 10px;
}

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

.btn-primary,
.btn-secondary,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  padding: 13px 22px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #00111a;
  box-shadow: 0 16px 38px rgba(34, 211, 238, 0.28);
}

.btn-secondary,
.btn-soft {
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-soft:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(380px, 90%);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), 0 0 60px rgba(34, 211, 238, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

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

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(12px);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #475569;
}

.hero-dot.active {
  width: 26px;
  background: var(--cyan);
}

.hero-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.68);
}

.section {
  padding: 54px 0;
}

.section.alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.46), rgba(2, 6, 23, 0.2));
}

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

.section-heading div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading span {
  color: var(--cyan);
}

.section-heading h2,
.page-title h1 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-title p {
  color: var(--muted);
  max-width: 620px;
  line-height: 1.8;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.9));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 24px 56px rgba(8, 145, 178, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.score,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.score {
  right: 12px;
  color: #022c22;
  background: #67e8f9;
}

.rank-badge {
  left: 12px;
  color: white;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

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

.movie-title {
  display: block;
  color: white;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.movie-title:hover {
  color: var(--cyan);
}

.movie-meta {
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 10px;
}

.movie-card-body p {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

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

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.2), rgba(30, 41, 59, 0.82));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-card p {
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 14px;
}

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

.page-title {
  padding: 52px 0 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 18px;
}

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

.filter-panel,
.search-panel {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 16px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
}

.search-input,
.filter-select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.72);
  color: #e2e8f0;
  padding: 0 14px;
  outline: none;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 86px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.76);
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 900;
}

.rank-row img {
  width: 76px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.rank-row h2 {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}

.rank-row p {
  color: #94a3b8;
  line-height: 1.6;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 42px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.95));
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
}

.detail-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster img {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.detail-copy p {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 17px;
  max-width: 820px;
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.8fr);
  gap: 28px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  padding: 24px;
}

.panel h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 14px;
}

.panel p {
  color: #cbd5e1;
  line-height: 1.9;
  margin-bottom: 14px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: #000;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.38);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.66));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #00111a;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 20px 60px rgba(34, 211, 238, 0.38);
}

.player-status {
  min-height: 28px;
  margin-top: 12px;
  color: #a5f3fc;
  font-size: 14px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.58);
}

.side-item img {
  width: 64px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
  background: #0f172a;
}

.side-item strong {
  display: block;
  color: #e2e8f0;
  line-height: 1.35;
  margin-bottom: 4px;
}

.side-item span {
  color: #94a3b8;
  font-size: 13px;
}

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

.empty-state {
  display: none;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.76);
}

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

.site-footer {
  margin-top: 54px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  padding: 44px 0 24px;
}

.footer-grid strong {
  display: block;
  margin-bottom: 12px;
  color: #e2e8f0;
}

.footer-grid p,
.copyright {
  color: #94a3b8;
  line-height: 1.7;
  font-size: 14px;
}

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

.footer-links a {
  color: #94a3b8;
}

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

.copyright {
  padding: 0 0 28px;
}

@media (max-width: 1080px) {
  .grid-cards,
  .grid-cards.small,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-poster {
    justify-self: start;
    width: min(280px, 80%);
  }
}

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

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

  .brand-text {
    max-width: calc(100vw - 110px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    padding-top: 48px;
    padding-bottom: 78px;
  }

  .grid-cards,
  .grid-cards.small,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-row .btn-soft {
    grid-column: 1 / -1;
  }

  .rank-num {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

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

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