* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #020617;
  color: #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img,
video {
  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.86);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-logo::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.7);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  white-space: nowrap;
}

.site-nav a,
.mobile-nav a,
.footer-links a,
.pill-links a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover,
.pill-links a:hover {
  color: #f59e0b;
}

.mobile-menu-button {
  display: none;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px;
  padding: 8px 12px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.82);
}

.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

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

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

.hero-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(245, 158, 11, 0.2), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 40%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 42%);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: #f59e0b;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-slide h1 {
  margin: 0;
  max-width: 720px;
  color: #ffffff;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.05;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.hero-summary {
  max-width: 760px;
  margin: 20px 0 0;
  color: #dbeafe;
  font-size: clamp(16px, 2.2vw, 20px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button--primary {
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.28);
}

.button--ghost {
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.55);
}

.button--soft {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.button--wide {
  width: 100%;
  margin-top: 12px;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(245, 158, 11, 0.85);
}

.hero-control--prev {
  left: 20px;
}

.hero-control--next {
  right: 20px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #f59e0b;
}

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

.section-overlap {
  position: relative;
  z-index: 5;
  margin-top: -42px;
}

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

.section-title-row h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.section-more {
  color: #f59e0b;
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-5px);
}

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

.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.movie-card__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #111827;
  background: #f59e0b;
  font-size: 12px;
  font-weight: 800;
}

.movie-card__body {
  padding: 16px;
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.movie-card__meta span,
.tag-list span,
.pill-links a {
  border-radius: 999px;
  padding: 4px 9px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  font-size: 12px;
}

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

.movie-card p {
  display: -webkit-box;
  margin: 0;
  min-height: 44px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #0f172a;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

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

.category-card:hover img {
  opacity: 0.52;
  transform: scale(1.05);
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

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

.category-card p {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 14px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
}

.hot-panel,
.side-card,
.detail-text-block,
.player-card,
.filter-bar {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.hot-panel {
  align-self: start;
  position: sticky;
  top: 92px;
  padding: 22px;
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-item a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas:
    "number title score"
    "number meta score";
  align-items: center;
  gap: 2px 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.ranking-item:last-child a {
  border-bottom: 0;
}

.ranking-item__number {
  grid-area: number;
  color: #f59e0b;
  font-size: 22px;
  font-weight: 900;
}

.ranking-item__title {
  grid-area: title;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.ranking-item__meta {
  grid-area: meta;
  color: #94a3b8;
  font-size: 13px;
}

.ranking-item__score {
  grid-area: score;
  color: #fde68a;
  font-weight: 900;
}

.ranking-list--full {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.75);
  padding: 10px 24px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.22), transparent 30%),
    linear-gradient(135deg, #020617, #0f172a 54%, #1e293b);
}

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

.page-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 820px;
  color: #cbd5e1;
  font-size: 18px;
}

.page-hero--small > div {
  padding: 70px 0;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
}

.filter-bar input,
.filter-bar select,
.site-search input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.68);
  padding: 12px 14px;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus,
.site-search input:focus {
  border-color: #f59e0b;
}

.empty-state {
  margin-top: 20px;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  padding: 30px;
  color: #94a3b8;
  text-align: center;
}

.site-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  max-width: 720px;
  margin-top: 24px;
}

.site-search button {
  border: 0;
  border-radius: 14px;
  color: #111827;
  background: #f59e0b;
  font-weight: 900;
}

.detail-page {
  padding-top: 34px;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
  align-content: start;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #000000;
}

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: rgba(245, 158, 11, 0.95);
  box-shadow: 0 0 0 14px rgba(245, 158, 11, 0.15);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-start span {
  display: inline-block;
  margin-left: 4px;
  font-size: 32px;
}

.player-start.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.82);
}

.detail-text-block {
  padding: 26px;
}

.detail-text-block h1,
.detail-text-block h2 {
  margin: 0 0 16px;
  color: #ffffff;
  line-height: 1.2;
}

.detail-text-block h1 {
  font-size: clamp(30px, 5vw, 48px);
}

.detail-text-block h2 {
  font-size: 24px;
}

.detail-text-block p {
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
}

.detail-one-line {
  color: #fde68a !important;
  font-size: 18px !important;
}

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

.detail-meta-grid div {
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.45);
  padding: 14px;
}

.detail-meta-grid span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-poster {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: #111827;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.side-card {
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 10px;
  color: #ffffff;
}

.side-card p {
  margin: 0 0 16px;
  color: #cbd5e1;
}

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

.site-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer strong {
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  margin: 6px 0 0;
  color: #94a3b8;
}

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

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

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

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

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

  .two-column-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hot-panel {
    position: static;
  }

  .detail-side {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    min-height: 64px;
  }

  .site-logo {
    font-size: 18px;
  }

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

  .hero-slide__content {
    padding-bottom: 78px;
  }

  .hero-control {
    display: none;
  }

  .site-section {
    padding: 38px 0;
  }

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

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

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

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

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

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

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid--featured,
  .movie-grid--catalog {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
