html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e2e8f0;
  background: radial-gradient(circle at 20% 10%, rgba(37, 99, 235, 0.18), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(8, 145, 178, 0.14), transparent 28%),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(90deg, #60a5fa, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #dbeafe;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.32);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: #cbd5e1;
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.82);
  cursor: pointer;
}

.page-main {
  padding-top: 72px;
}

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

.hero-slider {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.hero-slide.active img {
  transform: scale(1.09);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.84) 42%, rgba(2, 6, 23, 0.16) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.8) 0%, rgba(2, 6, 23, 0.02) 48%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-panel {
  max-width: 680px;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.36);
  box-shadow: 0 25px 80px rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(10px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.24);
  font-size: 13px;
}

.hero-title {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-text {
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.24);
  font-size: 13px;
}

.meta-muted {
  color: #94a3b8;
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(226, 232, 240, 0.18);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 36px;
  background: #ffffff;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: rgba(15, 23, 42, 0.42);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

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

.section-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.54);
  box-shadow: 0 16px 45px rgba(2, 6, 23, 0.22);
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(96, 165, 250, 0.38);
  background: rgba(30, 41, 59, 0.82);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.88);
}

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

.movie-card:hover .poster-link img,
.category-preview:hover img,
.rank-card:hover img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  font-size: 12px;
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
}

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

.movie-title {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.movie-title a:hover {
  color: #93c5fd;
}

.movie-line {
  margin: 0 0 12px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

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

.feature-card,
.category-card,
.panel-card {
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.18);
}

.feature-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(30, 41, 59, 0.72);
}

.feature-card img {
  width: 112px;
  height: 136px;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: cover;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 17px;
}

.feature-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 30px;
}

.category-stack {
  display: grid;
  gap: 34px;
}

.category-row-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: #e2e8f0;
  font-size: 22px;
  font-weight: 800;
}

.category-row-title::before {
  content: "";
  width: 5px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #60a5fa, #22d3ee);
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-card:hover {
  transform: translateX(4px);
  background: rgba(30, 41, 59, 0.72);
}

.rank-card img {
  width: 70px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-number {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-size: 13px;
  font-weight: 900;
}

.rank-card h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.4;
}

.rank-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 58px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: radial-gradient(circle at 15% 25%, rgba(37, 99, 235, 0.18), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.14), transparent 24%);
}

.page-hero h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.35);
}

.category-card h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: #94a3b8;
  line-height: 1.75;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.category-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px;
  gap: 12px;
  margin: 0 0 28px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.66);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.48);
  outline: none;
  padding: 0 14px;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(96, 165, 250, 0.58);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding: 92px 0 52px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.03);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.86) 48%, rgba(2, 6, 23, 0.26) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 58%);
}

.detail-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.55);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-content h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.detail-content .lead {
  max-width: 850px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  align-items: start;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.38);
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.26), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.44);
  font-size: 28px;
}

.content-panel {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
}

.content-panel h2,
.content-panel h3 {
  margin: 0 0 16px;
  color: #ffffff;
}

.content-panel p {
  margin: 0 0 16px;
  color: #cbd5e1;
  line-height: 1.88;
}

.content-panel p:last-child {
  margin-bottom: 0;
}

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

.related-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
  transform: translateX(4px);
  background: rgba(30, 41, 59, 0.68);
}

.related-item img {
  width: 76px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.related-item h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.4;
}

.related-item p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: #020617;
}

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

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-grid p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
}

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

.footer-bottom {
  padding: 18px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

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

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

  .layout-grid,
  .player-layout {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.96);
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 12px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: rgba(148, 163, 184, 0.12);
    transform: none;
  }

  .hero-slider {
    height: 76vh;
    min-height: 620px;
  }

  .hero-panel {
    padding: 22px;
  }

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

  .section {
    padding: 54px 0;
  }

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

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

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-cover {
    width: min(220px, 62vw);
  }

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

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

  .logo {
    font-size: 20px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }

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

  .hero-panel {
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.56);
  }

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

  .movie-title {
    font-size: 15px;
  }

  .movie-line {
    font-size: 13px;
  }

  .feature-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .feature-card img {
    width: 96px;
    height: 124px;
  }

  .content-panel {
    padding: 18px;
  }
}
