:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #171717;
  --panel-soft: #222222;
  --line: rgba(255, 255, 255, 0.1);
  --text: #fafafa;
  --muted: #a3a3a3;
  --subtle: #737373;
  --gold: #f59e0b;
  --gold-strong: #d97706;
  --gold-soft: rgba(245, 158, 11, 0.18);
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #111111;
  background: linear-gradient(135deg, #fbbf24, #f59e0b 55%, #d97706);
  box-shadow: 0 12px 34px rgba(245, 158, 11, 0.28);
}

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

.nav-link,
.mobile-link {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--gold);
  background: var(--gold-soft);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(23, 23, 23, 0.96);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
}

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

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

.hero-stage {
  position: relative;
  min-height: 70vh;
}

.hero-slide {
  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;
  filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.16)),
    linear-gradient(0deg, rgba(10, 10, 10, 0.92), transparent 44%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1240px) / 2));
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: min(660px, calc(100% - 48px));
}

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

.hero-tags span,
.tag-row span,
.meta-pill,
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 13px;
  color: #171717;
  background: rgba(245, 158, 11, 0.95);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0 0 30px;
  max-width: 620px;
  color: #d4d4d4;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

.hero-actions,
.section-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  padding: 15px 24px;
  color: #111111;
  background: var(--gold);
}

.primary-btn:hover,
.small-btn:hover {
  transform: translateY(-2px);
  background: var(--gold-strong);
}

.ghost-btn {
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.ghost-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.55);
  color: var(--gold);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: var(--gold);
}

.main-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 76px;
}

.page-head {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.page-head.compact {
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-head h1,
.section-head h2,
.detail-text h1 {
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.page-head h1 {
  max-width: 860px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.page-head p,
.section-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.section-block {
  margin-top: 58px;
}

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

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.small-btn {
  padding: 11px 16px;
  color: #111111;
  background: var(--gold);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.024));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.48);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #262626, #111111);
}

.card-wide .poster-link {
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover .poster-link img,
.category-tile:hover img {
  transform: scale(1.05);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.82));
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111111;
  background: var(--gold);
  font-size: 15px;
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.34);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 38px;
  height: 32px;
  color: #111111;
  background: var(--gold);
}

.card-body {
  padding: 15px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--subtle);
  font-size: 13px;
}

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

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

.card-body p {
  margin: 0 0 12px;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tag-row span,
.meta-pill {
  padding: 5px 9px;
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

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

.category-tile {
  min-height: 220px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.1), rgba(255, 255, 255, 0.036));
  transition: transform 0.22s ease, border-color 0.22s ease;
}

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

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 12px 0 12px 12px;
}

.category-covers img {
  width: 100%;
  height: 100%;
  min-height: 196px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.3s ease;
}

.category-info {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.category-info h2 {
  margin: 0;
  font-size: 28px;
}

.category-info p,
.category-info span {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-info span {
  color: var(--gold);
  font-size: 14px;
}

.filter-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.search-field {
  flex: 1;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-field input,
.filter-select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  padding: 0 14px;
}

.search-field input:focus,
.filter-select:focus {
  border-color: rgba(245, 158, 11, 0.72);
}

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

.filter-select {
  min-width: 132px;
}

.empty-state {
  display: none;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
}

.detail-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #111111;
}

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

.detail-text {
  display: grid;
  gap: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.detail-text h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.detail-desc {
  color: #d4d4d4;
  font-size: 18px;
  line-height: 1.82;
}

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

.player-section,
.content-panel {
  width: min(1240px, calc(100% - 32px));
  margin: 42px auto 0;
}

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: #111111;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.72));
  cursor: pointer;
}

.play-overlay.is-hidden {
  display: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  font-size: 30px;
  box-shadow: 0 18px 54px rgba(245, 158, 11, 0.38);
  transition: transform 0.2s ease;
}

.play-overlay:hover .play-circle {
  transform: scale(1.08);
}

.content-panel {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
}

.article-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  padding: 26px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.article-panel p {
  margin: 0 0 18px;
  color: #d4d4d4;
  line-height: 1.96;
  font-size: 16px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.side-item:hover {
  background: rgba(245, 158, 11, 0.1);
}

.side-item img {
  width: 84px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #111111;
}

.side-item strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  line-height: 1.35;
}

.side-item span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.34);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.footer-logo {
  color: #ffffff;
}

.footer-inner p {
  margin: 0;
}

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

  .content-panel,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

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

  .menu-toggle {
    display: flex;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content {
    left: 20px;
    width: calc(100% - 40px);
  }

  .hero {
    min-height: 66vh;
  }

  .hero-stage {
    min-height: 66vh;
  }

  .section-head,
  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

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

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

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

  .category-covers {
    padding: 12px 12px 0;
  }

  .category-covers img {
    min-height: 150px;
  }

  .category-info {
    padding: 0 18px 20px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .main-wrap,
  .player-section,
  .content-panel,
  .detail-hero,
  .footer-inner {
    width: min(100% - 24px, 1240px);
  }

  .logo {
    font-size: 17px;
  }

  .movie-grid,
  .movie-grid.featured-grid,
  .movie-grid.compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .hero h1,
  .detail-text h1,
  .page-head h1 {
    letter-spacing: -0.02em;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }
}
