body {
  min-height: 100vh;
  margin: 0;
  background: #020617;
  color: #dbeafe;
  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%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.82);
  border-bottom: 1px solid rgba(96, 165, 250, 0.16);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #60a5fa, #2563eb 50%, #7c3aed);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.brand-text {
  font-size: 20px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #bfdbfe;
  font-size: 15px;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a,
.section-link,
.panel-title a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover,
.section-link:hover,
.panel-title a:hover {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
  color: #bfdbfe;
}

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

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

.hero-viewport,
.hero-slide,
.hero-backdrop,
.hero-shade {
  position: absolute;
  inset: 0;
}

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

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

.hero-backdrop {
  background-size: cover;
  background-position: center;
  filter: blur(4px) saturate(1.12);
  transform: scale(1.04);
  opacity: 0.45;
}

.hero-shade {
  background:
    radial-gradient(circle at 75% 30%, rgba(37, 99, 235, 0.32), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.76) 48%, rgba(2, 6, 23, 0.52) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 380px;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 999px;
  color: #93c5fd;
  background: rgba(15, 23, 42, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 22px 0 18px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.9;
}

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

.primary-button,
.ghost-button,
.home-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button,
.home-search button {
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #2563eb 55%, #7c3aed);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.32);
}

.ghost-button {
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.68);
}

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

.hero-cover {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(1.5deg);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 28px;
  background: #60a5fa;
}

.search-band {
  max-width: 1180px;
  margin: -34px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.home-search,
.catalog-tools {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.home-search input,
.catalog-tools input,
.catalog-tools select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  outline: 0;
  padding: 0 18px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
}

.catalog-tools select {
  max-width: 160px;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-tags a {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(30, 64, 175, 0.42);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.content-section,
.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

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

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

.section-heading h2,
.panel-title h2,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 8px 0 0;
  max-width: 720px;
  color: #94a3b8;
  line-height: 1.8;
}

.section-link,
.panel-title a {
  flex: 0 0 auto;
  color: #93c5fd;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.42);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.86);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

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

.movie-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

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

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

.tag-row span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(30, 64, 175, 0.34);
  font-size: 12px;
}

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

.ranking-panel,
.detail-side {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  padding: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.sticky-panel {
  position: sticky;
  top: 92px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.rank-row strong {
  grid-row: span 2;
  color: #60a5fa;
  font-size: 22px;
}

.rank-row span {
  color: #ffffff;
  font-weight: 800;
}

.rank-row em {
  color: #94a3b8;
  font-size: 13px;
  font-style: normal;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.72);
}

.category-tile {
  min-height: 220px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.22));
}

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile span {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  margin-top: 10px;
  color: #cbd5e1;
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 32px;
  padding: 58px;
  background:
    radial-gradient(circle at 82% 24%, rgba(37, 99, 235, 0.35), transparent 35%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.82));
}

.compact-hero h1,
.ranking-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.category-overview-list {
  display: grid;
  gap: 24px;
  padding-top: 42px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  padding: 20px;
}

.category-cover img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 22px;
}

.category-info {
  padding: 10px 8px;
}

.category-info h2 {
  margin: 16px 0 10px;
  color: #ffffff;
  font-size: 34px;
}

.category-info p {
  margin: 0 0 18px;
  color: #cbd5e1;
  line-height: 1.8;
}

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

.single-column {
  grid-template-columns: 1fr;
}

.compact-card {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

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

.compact-card span,
.compact-card em {
  display: block;
  padding: 0 10px;
}

.compact-card span {
  margin-top: 10px;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.4;
}

.compact-card em {
  padding-bottom: 10px;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.small-button {
  min-height: 40px;
  padding: 0 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: #93c5fd;
  font-size: 14px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 20%, rgba(37, 99, 235, 0.35), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.86));
}

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

.large-tags span {
  font-size: 13px;
  padding: 7px 11px;
}

.player-section {
  max-width: 1280px;
  margin: 36px auto 0;
  padding: 0 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  border: 1px solid rgba(96, 165, 250, 0.2);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.28));
  cursor: pointer;
}

.player-shell.is-playing .player-overlay {
  display: none;
}

.player-button {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  box-shadow: 0 18px 50px rgba(37, 99, 235, 0.42);
  font-size: 30px;
}

.player-overlay strong {
  font-size: 20px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.detail-article {
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
}

.detail-article h2 {
  margin-top: 0;
  margin-bottom: 14px;
}

.detail-article h2:not(:first-child) {
  margin-top: 30px;
}

.detail-article p {
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.95;
}

.detail-side dl {
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.detail-side dt {
  color: #93c5fd;
  font-weight: 800;
}

.detail-side dd {
  margin: 4px 0 0;
  color: #ffffff;
}

.site-footer {
  margin-top: 90px;
  border-top: 1px solid rgba(96, 165, 250, 0.16);
  background: rgba(2, 6, 23, 0.92);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 24px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 20px;
  color: #bfdbfe;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 30px;
  color: #64748b;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-content,
  .detail-hero,
  .detail-content,
  .split-section,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-cover,
  .detail-poster {
    max-width: 360px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    padding: 13px 16px;
  }

  .hero-content {
    min-height: 78vh;
    padding: 70px 18px 74px;
    gap: 28px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .hero-control {
    display: none;
  }

  .hero-cover {
    max-width: 220px;
  }

  .search-band,
  .home-search,
  .catalog-tools,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .home-search,
  .catalog-tools {
    display: grid;
  }

  .catalog-tools select {
    max-width: none;
  }

  .content-section,
  .page-main,
  .player-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-hero,
  .detail-hero {
    padding: 26px;
    border-radius: 26px;
  }

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

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

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p {
    display: none;
  }

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

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

  .detail-article,
  .detail-side,
  .ranking-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
