:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.82);
  --panel-strong: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --amber: #f59e0b;
  --orange: #ea580c;
  --blue: #0ea5e9;
  --pink: #db2777;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.header-inner,
.wide-container,
.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-icon,
.title-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  color: #fff;
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.28);
}

.brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
  background: linear-gradient(90deg, #fde68a, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 14px;
  color: #cbd5e1;
  border-radius: 12px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(245, 158, 11, 0.95);
  color: #fff;
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 34vw);
}

.header-search input,
.filter-bar input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.header-search input:focus,
.filter-bar input:focus {
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.header-search button,
.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s ease;
}

.header-search button,
.btn.primary {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 26px rgba(234, 88, 12, 0.24);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn.subtle {
  background: rgba(255, 255, 255, 0.12);
}

.btn.small {
  padding: 10px 14px;
  border-radius: 12px;
}

.btn:hover,
.header-search button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
  background: #0f172a;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-links,
.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.mobile-cats {
  margin-top: 12px;
}

.mobile-cats a {
  color: #cbd5e1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

.hero-backdrop,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.08);
  transform: scale(1.03);
  opacity: 0.48;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 48%, rgba(2, 6, 23, 0.88) 100%),
    linear-gradient(0deg, #020617 0%, transparent 42%);
}

.hero-inner {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 360px;
  align-items: center;
  gap: 52px;
  padding: 70px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  margin-bottom: 18px;
}

.hero-copy h1,
.small-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.05;
  font-size: clamp(36px, 6vw, 70px);
  letter-spacing: -0.045em;
}

.hero-copy p,
.small-hero p,
.detail-one {
  max-width: 680px;
  color: #cbd5e1;
  font-size: 18px;
  margin: 20px 0 0;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.tag-row.strong span {
  background: rgba(245, 158, 11, 0.13);
  border-color: rgba(245, 158, 11, 0.22);
}

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

.hero-poster {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  text-align: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.96), rgba(234, 88, 12, 0.96));
  font-weight: 700;
}

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

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

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

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

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

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

.quick-categories {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.68), rgba(30, 41, 59, 0.52));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.quick-grid a,
.category-card,
.movie-card,
.text-panel,
.rank-row {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.quick-grid a {
  padding: 16px;
}

.quick-grid strong,
.quick-grid span {
  display: block;
}

.quick-grid span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.content-section {
  padding: 56px 0;
}

.latest-band {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.44), rgba(30, 41, 59, 0.38));
}

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

.title-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
}

.section-more {
  color: #fbbf24;
}

.movie-grid {
  display: grid;
  gap: 20px;
}

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  background: #111827;
  overflow: hidden;
}

.poster .poster-wrap img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.horizontal {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.horizontal .poster-wrap img {
  height: 100%;
  min-height: 214px;
  object-fit: cover;
}

.card-badge,
.play-mark {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
}

.card-badge {
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  background: rgba(245, 158, 11, 0.96);
  font-size: 12px;
  font-weight: 700;
}

.play-mark {
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.58);
}

.card-content {
  padding: 14px;
}

.card-content h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.card-line {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 13px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 12px;
  margin-top: 12px;
}

.card-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(148, 163, 184, 0.1);
}

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

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

.category-card {
  display: block;
  padding: 24px;
  transition: 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.94), rgba(234, 88, 12, 0.92));
}

.category-card strong {
  display: block;
  font-size: 22px;
}

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

.category-card span {
  color: #fde68a;
}

.rank-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rank-preview a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--line);
}

.rank-preview span,
.rank-number {
  color: #fde68a;
  font-weight: 800;
}

.rank-preview em {
  color: var(--muted);
  font-style: normal;
}

.page-hero,
.detail-top {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.72)),
    radial-gradient(circle at right, rgba(245, 158, 11, 0.18), transparent 28rem);
  border-bottom: 1px solid var(--line);
}

.small-hero .wide-container {
  padding: 64px 0;
}

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

.breadcrumb a {
  color: #fbbf24;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-bar input {
  max-width: 560px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 94px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
}

.rank-thumb img {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info h2 {
  margin: 0;
  font-size: 20px;
}

.rank-info p {
  color: var(--muted);
  margin: 6px 0 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 44px;
  align-items: center;
  padding: 58px 0;
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.player-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22), rgba(0, 0, 0, 0.28));
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.player-overlay span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-size: 40px;
  box-shadow: 0 18px 45px rgba(234, 88, 12, 0.38);
}

.movie-player.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

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

.text-panel {
  padding: 26px;
}

.text-panel h2 {
  margin: 0 0 12px;
}

.text-panel p {
  margin: 0;
  color: #cbd5e1;
  white-space: pre-line;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.88);
  padding: 36px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
}

.footer-inner p {
  color: var(--muted);
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  color: #cbd5e1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

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

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

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

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

  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .main-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 74px 0 92px;
  }

  .hero-poster {
    width: min(260px, 78vw);
    margin: 0 auto;
  }

  .hero-control {
    top: auto;
    bottom: 22px;
    transform: none;
  }

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

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

  .poster-grid,
  .horizontal-grid,
  .rank-preview,
  .category-card-grid,
  .category-card-grid.large,
  .detail-text,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-poster {
    width: min(280px, 80vw);
  }

  .rank-row {
    grid-template-columns: 46px 78px 1fr;
  }

  .rank-row .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .wide-container,
  .footer-inner {
    width: min(100% - 22px, 1220px);
  }

  .brand-text small {
    display: none;
  }

  .hero-carousel,
  .hero-inner {
    min-height: 570px;
  }

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

  .quick-grid,
  .poster-grid,
  .horizontal-grid,
  .rank-preview,
  .category-card-grid,
  .category-card-grid.large,
  .detail-text,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .horizontal {
    grid-template-columns: 130px 1fr;
  }

  .section-title,
  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-row {
    grid-template-columns: 42px 76px 1fr;
    gap: 10px;
  }
}
