* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #e5e7eb;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 30rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(15, 23, 42, 0.85));
}

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 18px 45px rgba(8, 47, 73, 0.28);
  backdrop-filter: blur(16px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #07121f;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.45);
}

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

.desktop-nav a,
.mobile-nav a {
  color: #94a3b8;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #cffafe;
  background: rgba(34, 211, 238, 0.12);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.18);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #67e8f9;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.86);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero {
  position: relative;
  height: clamp(540px, 72vh, 780px);
  overflow: hidden;
  background: #020617;
}

.hero-stage,
.hero-slide,
.hero-slide img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease;
}

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

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

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.74) 34%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.25) 45%, rgba(2, 6, 23, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1180px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #22d3ee;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: #f8fafc;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-shadow: 0 24px 70px rgba(0, 0, 0, 0.72);
}

.hero-summary {
  max-width: 720px;
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  background: rgba(8, 47, 73, 0.42);
}

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

.primary-button,
.ghost-button,
.quick-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button,
.quick-search button {
  color: #06111f;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  box-shadow: 0 16px 36px rgba(34, 211, 238, 0.32);
}

.primary-button:hover,
.quick-search button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: #e0f2fe;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(2, 6, 23, 0.58);
}

.ghost-button.full {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(10px);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 6;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #22d3ee;
}

.section-block,
.detail-shell,
.info-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-block {
  padding: 58px 0;
}

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

.compact-heading {
  margin-bottom: 20px;
}

.section-heading h2,
.page-hero h1,
.detail-panel h1,
.feature-panel h2 {
  margin: 0;
  color: #f8fafc;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading a {
  color: #67e8f9;
  font-weight: 800;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 22px 50px rgba(2, 6, 23, 0.32);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 24px 60px rgba(8, 145, 178, 0.2);
}

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

.poster-wrap img,
.list-poster img,
.sticky-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 56%);
  opacity: 0.78;
}

.type-badge,
.rank-number,
.list-rank {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.type-badge {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  color: #ecfeff;
  background: rgba(6, 182, 212, 0.88);
}

.rank-number {
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #06111f;
  background: linear-gradient(135deg, #facc15, #22d3ee);
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #06111f;
  background: rgba(103, 232, 249, 0.92);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.58);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card h3,
.list-card h3 {
  margin: 0 0 9px;
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.list-card h3 a:hover {
  color: #67e8f9;
}

.movie-card p,
.list-card p,
.category-card p,
.category-overview-card p,
.feature-panel p,
.info-page p,
.sticky-panel p {
  color: #94a3b8;
  line-height: 1.7;
}

.movie-card p {
  min-height: 4.9em;
  margin: 0 0 12px;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 13px;
}

.tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 12px;
}

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

.category-card,
.category-overview-card,
.feature-panel,
.info-page article,
.detail-panel,
.sticky-panel {
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.72));
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.3);
}

.category-card,
.category-overview-card {
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.category-card span,
.category-title {
  display: block;
  color: #f8fafc;
  font-size: 22px;
  font-weight: 900;
}

.sample-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.sample-links a {
  color: #67e8f9;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.list-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 12px;
  align-items: stretch;
}

.list-poster {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
}

.list-rank {
  left: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #06111f;
  background: #22d3ee;
}

.list-content {
  padding: 8px 4px;
}

.list-content p {
  margin: 0 0 12px;
}

.feature-panel {
  position: sticky;
  top: 96px;
  padding: 28px;
}

.quick-search {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 14px;
  color: #e5e7eb;
  background: rgba(2, 6, 23, 0.58);
  outline: none;
}

.quick-search input,
.filter-panel input {
  padding: 0 16px;
}

.filter-panel select {
  padding: 0 12px;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.mini-links a {
  padding: 8px 11px;
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 47, 73, 0.55);
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 30px;
}

.small-hero h1 {
  max-width: 850px;
  font-size: clamp(36px, 6vw, 64px);
}

.small-hero p:last-child {
  max-width: 820px;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
}

.filter-selects {
  display: flex;
  gap: 12px;
}

.empty-state {
  display: none;
  padding: 40px 0;
  color: #94a3b8;
  text-align: center;
}

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

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

.detail-shell {
  padding: 34px 0 0;
}

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

.breadcrumb a {
  color: #67e8f9;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.watch-column {
  display: grid;
  gap: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 24px;
  background: #000;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.52);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #f8fafc;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.58) 58%, rgba(0, 0, 0, 0.76));
  cursor: pointer;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.player-pulse {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #06111f;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  box-shadow: 0 0 48px rgba(34, 211, 238, 0.55);
}

.player-cover strong {
  max-width: min(720px, calc(100% - 48px));
  font-size: clamp(22px, 4vw, 42px);
  line-height: 1.2;
}

.player-cover em {
  color: #a5f3fc;
  font-style: normal;
  font-weight: 800;
}

.detail-panel {
  padding: clamp(22px, 4vw, 36px);
}

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

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.large-tags span {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 14px;
}

.story-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.story-block h2,
.sticky-panel h2,
.info-page h2 {
  margin: 0 0 12px;
  color: #67e8f9;
}

.story-block p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
}

.sticky-panel {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.sticky-panel img {
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 18px;
}

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

.info-page {
  display: grid;
  gap: 20px;
  padding: 34px 0 72px;
}

.info-page article {
  padding: 28px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(2, 6, 23, 0.82);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

.footer-inner p {
  max-width: 460px;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-inner h3 {
  margin: 0 0 14px;
  color: #f8fafc;
}

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

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

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

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

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

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

  .feature-panel,
  .sticky-panel {
    position: static;
  }

  .wide-ranking {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero {
    height: 640px;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

  .filter-selects {
    flex-direction: column;
  }

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

@media (max-width: 560px) {
  .nav-shell {
    height: 64px;
  }

  .logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 82px;
  }

  .hero-summary {
    font-size: 15px;
  }

  .section-block {
    padding: 40px 0;
  }

  .movie-grid,
  .catalog-grid,
  .related-grid {
    gap: 14px;
  }

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

  .movie-card p {
    display: none;
  }

  .list-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .list-poster {
    min-height: 128px;
  }

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

  .player-cover strong {
    font-size: 22px;
  }
}
