
:root {
  --warm-50: #fdf8f6;
  --warm-100: #f2e8e5;
  --warm-300: #e0cec7;
  --warm-600: #a18072;
  --warm-700: #977669;
  --warm-800: #846358;
  --warm-900: #43302b;
  --sky-50: #f0f9ff;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-900: #0c4a6e;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --ink: #211614;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(67, 48, 43, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, var(--warm-50), #fff, var(--sky-50));
  font-family: 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%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 35px rgba(67, 48, 43, 0.08);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: var(--warm-900);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--sky-600), var(--amber-500));
  box-shadow: 0 10px 28px rgba(2, 132, 199, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--warm-700);
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 9px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--sky-600);
  transition: width 0.2s ease;
}

.main-nav a:hover {
  color: var(--sky-700);
}

.main-nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--warm-900);
  background: var(--warm-100);
  font-size: 22px;
}

.spotlight {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  color: #fff;
  background: var(--warm-900);
}

.spotlight-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.65s ease, transform 1.2s ease;
  pointer-events: none;
}

.spotlight-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.spotlight-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.spotlight-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(67, 48, 43, 0.96), rgba(67, 48, 43, 0.72), rgba(67, 48, 43, 0.05));
}

.spotlight-content {
  position: relative;
  height: 76vh;
  display: flex;
  align-items: center;
}

.spotlight-copy {
  max-width: 700px;
  padding: 90px 0 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--amber-500);
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.22);
}

.spotlight h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.spotlight p,
.page-hero p {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.86);
}

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

.spotlight-tags span,
.detail-tags a,
.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--warm-900);
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
}

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

.btn-primary,
.btn-ghost,
.home-search button,
.hero-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.home-search button {
  color: #fff;
  background: linear-gradient(135deg, var(--sky-600), var(--sky-700));
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.3);
}

.btn-ghost,
.hero-links a {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

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

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

.dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.quick-search {
  position: relative;
  z-index: 10;
  margin-top: -36px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.home-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--warm-300);
  border-radius: 16px;
  padding: 0 16px;
  outline: none;
  background: #fff;
  color: var(--warm-900);
  font-size: 15px;
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--sky-600);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-links a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--warm-800);
  background: var(--warm-100);
  font-weight: 700;
  font-size: 13px;
}

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

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

.section-head h2 {
  margin: 0;
  color: var(--warm-900);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
}

.section-head a {
  color: var(--sky-700);
  font-weight: 900;
}

.section-head.compact h2 {
  font-size: 26px;
}

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

.category-card {
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.9));
  box-shadow: 0 16px 45px rgba(67, 48, 43, 0.08);
  border: 1px solid rgba(234, 221, 215, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--warm-900);
  font-size: 20px;
}

.category-card p {
  margin: 0;
  color: var(--warm-700);
  line-height: 1.7;
  font-size: 14px;
}

.category-mini {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  color: var(--sky-700);
  font-size: 12px;
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(67, 48, 43, 0.08);
  border: 1px solid rgba(234, 221, 215, 0.8);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link,
.poster-box {
  display: block;
}

.poster-box {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--warm-100), var(--sky-50));
}

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
  text-align: center;
  padding: 16px;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.play-dot,
.big-play {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: var(--sky-700);
  background: rgba(255, 255, 255, 0.9);
  font-size: 24px;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--amber-500);
  font-weight: 900;
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  min-height: 44px;
  margin: 0 0 8px;
  color: var(--warm-900);
  font-size: 16px;
  line-height: 1.38;
  font-weight: 900;
}

.card-body h3 a:hover {
  color: var(--sky-700);
}

.card-body p {
  height: 44px;
  margin: 0 0 10px;
  color: var(--warm-700);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.7;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--warm-600);
  font-size: 13px;
  font-weight: 800;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  color: var(--sky-700);
  background: var(--sky-50);
}

.rank-panel {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--warm-900);
  color: #fff;
  box-shadow: var(--shadow);
}

.rank-panel .section-head h2,
.rank-panel .section-head a {
  color: #fff;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 38px 54px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 9px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.16);
}

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

.rank-no {
  color: var(--amber-400);
  font-weight: 900;
}

.rank-text {
  min-width: 0;
}

.rank-text strong,
.rank-text em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-text strong {
  font-size: 14px;
}

.rank-text em {
  margin-top: 4px;
  color: var(--warm-300);
  font-size: 12px;
  font-style: normal;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  margin-top: 34px;
  padding: 52px;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, rgba(67, 48, 43, 0.96), rgba(2, 132, 199, 0.76));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-hero.small-hero h1,
.page-hero.channel-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.86);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 35px rgba(67, 48, 43, 0.08);
}

.search-field {
  min-width: 0;
}

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

.detail-top {
  padding: 44px 0;
  color: #fff;
  background: linear-gradient(120deg, var(--warm-900), var(--sky-900));
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

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

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--warm-300);
  font-weight: 800;
}

.crumbs a:hover {
  color: var(--amber-400);
}

.detail-info h1 {
  font-size: clamp(36px, 5vw, 66px);
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.detail-tags a {
  color: var(--warm-900);
}

.detail-info .btn-primary {
  margin-top: 26px;
}

.player-section {
  padding-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  font-size: 20px;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.article-card {
  margin-top: 28px;
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(67, 48, 43, 0.08);
}

.detail-section + .detail-section {
  margin-top: 30px;
}

.detail-section h2 {
  margin: 0 0 14px;
  color: var(--warm-900);
  font-size: 28px;
  font-weight: 900;
}

.detail-section p {
  margin: 0;
  color: var(--warm-800);
  font-size: 16px;
  line-height: 2;
}

.site-footer {
  margin-top: 70px;
  color: var(--warm-100);
  background: var(--warm-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: var(--warm-300);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--amber-400);
  font-size: 18px;
}

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

.footer-links a {
  color: var(--warm-300);
}

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--warm-300);
  text-align: center;
  font-size: 13px;
}

[data-card-list] .movie-card.is-filtered {
  display: none;
}

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

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

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

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 0 10px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
    border-radius: 14px;
    background: var(--warm-100);
  }

  .spotlight,
  .spotlight-content {
    min-height: 680px;
    height: 680px;
  }

  .spotlight-copy {
    padding-top: 120px;
  }

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

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

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

  .page-hero {
    padding: 34px 24px;
  }

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

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

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

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 22px, 1180px);
  }

  .movie-grid,
  .movie-grid.wide,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .card-body h3 {
    min-height: auto;
  }

  .card-body p {
    height: auto;
  }
}
