:root {
  color-scheme: dark;
  --bg: #0c0a09;
  --panel: #1c1917;
  --panel-soft: #292524;
  --panel-deep: #14110f;
  --text: #f5f5f4;
  --muted: #a8a29e;
  --muted-2: #78716c;
  --line: #44403c;
  --accent: #f59e0b;
  --accent-strong: #d97706;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 18px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(28, 25, 23, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(68, 64, 60, 0.72);
}

.header-inner {
  max-width: var(--max);
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #1c1917;
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.45);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-link,
.mobile-nav-link {
  color: #d6d3d1;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--accent);
}

.header-search {
  position: relative;
  width: 285px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(68, 64, 60, 0.85);
  outline: none;
  color: var(--text);
  background: rgba(12, 10, 9, 0.78);
  border-radius: 999px;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.wide-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  color: #1c1917;
  background: var(--accent);
}

.quick-results {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(420px, 88vw);
  display: none;
  padding: 12px;
  border: 1px solid rgba(68, 64, 60, 0.9);
  border-radius: 16px;
  background: rgba(28, 25, 23, 0.98);
  box-shadow: var(--shadow);
}

.quick-results.is-open {
  display: grid;
  gap: 8px;
}

.quick-results a {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(41, 37, 36, 0.75);
}

.quick-results strong {
  color: #fff;
  font-size: 14px;
}

.quick-results span {
  color: var(--muted);
  font-size: 12px;
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 24px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(68, 64, 60, 0.72);
  padding: 14px 24px 20px;
}

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

.mobile-nav {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.mobile-search {
  display: flex;
  gap: 10px;
}

main {
  min-height: 70vh;
}

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

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(245, 158, 11, 0.18), transparent 26%),
    linear-gradient(to top, #0c0a09 0%, rgba(12, 10, 9, 0.78) 44%, rgba(12, 10, 9, 0.22) 100%);
}

.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 150px 24px 78px;
}

.hero-content > div {
  max-width: var(--max);
  margin: 0 auto;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.hero-meta,
.movie-meta,
.detail-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-kicker a,
.hero-kicker span,
.type-badge,
.tag-row span,
.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-kicker a,
.hero-kicker span,
.type-badge {
  padding: 5px 10px;
  color: #1c1917;
  background: rgba(245, 158, 11, 0.94);
}

.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  font-weight: 900;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #d6d3d1;
  font-size: 18px;
  line-height: 1.7;
}

.hero-meta {
  margin-bottom: 26px;
  color: #d6d3d1;
}

.hero-meta span:first-child {
  color: var(--accent);
  font-weight: 900;
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 850;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.primary-button {
  padding: 13px 22px;
  color: #1c1917;
  background: var(--accent);
}

.primary-button:hover,
.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover {
  background: var(--accent-strong);
}

.primary-button.small {
  padding: 10px 16px;
  font-size: 14px;
}

.ghost-button,
.section-link {
  padding: 12px 18px;
  color: #f5f5f4;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(28, 25, 23, 0.55);
}

.ghost-button:hover,
.section-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
  font-size: 34px;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  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.55);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.search-panel {
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.95), rgba(12, 10, 9, 0.95));
  border-bottom: 1px solid rgba(68, 64, 60, 0.8);
}

.search-panel-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 24px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: center;
}

.search-panel h2,
.section-heading h2,
.category-overview-head h2,
.side-card h2,
.detail-article h2 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.search-panel p,
.section-heading p,
.category-overview-head p,
.page-hero p,
.movie-card p,
.horizontal-card p,
.site-footer p,
.detail-article p {
  color: var(--muted);
  line-height: 1.65;
}

.wide-search {
  display: flex;
  gap: 12px;
}

.page-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.content-section {
  margin: 58px 0;
}

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

.section-heading.compact {
  align-items: center;
  margin-bottom: 18px;
}

.section-heading p,
.category-overview-head p {
  margin: 8px 0 0;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(68, 64, 60, 0.72);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  transform: translateY(-6px);
}

.movie-card-large {
  grid-column: span 2;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1c1917;
}

.movie-card-large .poster-wrap {
  aspect-ratio: 16 / 9;
}

.poster-wrap img,
.horizontal-poster img,
.detail-poster,
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
}

.score-badge,
.type-badge {
  position: absolute;
  z-index: 2;
}

.score-badge {
  right: 8px;
  top: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.type-badge {
  left: 8px;
  bottom: 8px;
}

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

.movie-card h3,
.horizontal-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

.movie-card:hover h3,
.horizontal-card:hover h3 {
  color: var(--accent);
}

.movie-card p,
.horizontal-card p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
}

.movie-meta,
.detail-meta {
  color: var(--muted-2);
  font-size: 12px;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid rgba(68, 64, 60, 0.72);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.12));
}

.category-card div {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 900;
}

.category-card p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: #d6d3d1;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

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

.ranking-panel,
.side-card,
.category-overview-card {
  border: 1px solid rgba(68, 64, 60, 0.72);
  border-radius: var(--radius);
  background: rgba(28, 25, 23, 0.84);
  box-shadow: var(--shadow);
}

.ranking-panel {
  position: sticky;
  top: 88px;
  padding: 22px;
}

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

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

.horizontal-card {
  display: flex;
  gap: 14px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(41, 37, 36, 0.78);
  transition: background 0.2s ease, transform 0.2s ease;
}

.horizontal-card:hover {
  background: #292524;
  transform: translateY(-2px);
}

.horizontal-poster {
  width: 96px;
  min-width: 96px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1c1917;
}

.horizontal-info {
  min-width: 0;
  padding: 12px 12px 12px 0;
}

.horizontal-title-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rank-number {
  color: var(--accent);
  font-weight: 950;
}

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

.page-hero {
  padding: 70px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(41, 37, 36, 0.94), rgba(12, 10, 9, 0.94));
  border-bottom: 1px solid rgba(68, 64, 60, 0.7);
}

.compact-hero h1 {
  max-width: 900px;
  margin: 10px 0 14px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  font-weight: 950;
}

.compact-hero p {
  max-width: 850px;
  margin: 0;
  font-size: 17px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
}

.category-overview-list {
  padding-top: 54px;
  padding-bottom: 24px;
}

.category-overview-card {
  margin-bottom: 28px;
  padding: 24px;
}

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

.filter-bar {
  position: sticky;
  top: 74px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px;
  gap: 14px;
  margin: 28px 0;
  padding: 14px;
  border: 1px solid rgba(68, 64, 60, 0.72);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.94);
  backdrop-filter: blur(14px);
}

.filter-bar.advanced {
  grid-template-columns: minmax(240px, 1fr) 160px 160px 190px;
}

.result-count {
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 750;
}

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

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

.detail-top {
  padding: 32px 0 20px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(68, 64, 60, 0.8);
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.36);
}

.player-start.is-hidden {
  display: none;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #1c1917;
  background: var(--accent);
  font-size: 34px;
  box-shadow: 0 0 45px rgba(245, 158, 11, 0.52);
}

.player-start strong {
  font-size: 18px;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-box:hover .player-controls,
.player-box.is-playing .player-controls {
  opacity: 1;
}

.player-controls button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff;
  background: rgba(28, 25, 23, 0.75);
}

.player-controls button:hover {
  color: #1c1917;
  background: var(--accent);
}

.detail-article {
  padding: 26px 0 0;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.detail-title-row h1 {
  margin: 8px 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.detail-score {
  min-width: 86px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--accent);
  background: rgba(28, 25, 23, 0.9);
  font-weight: 950;
  font-size: 20px;
}

.detail-meta {
  gap: 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

.tag-row {
  margin-bottom: 24px;
}

.tag-row span {
  padding: 7px 11px;
  color: #d6d3d1;
  background: rgba(41, 37, 36, 0.88);
}

.detail-article h2 {
  margin: 26px 0 10px;
  font-size: 22px;
}

.detail-article p {
  margin: 0;
  color: #d6d3d1;
  font-size: 16px;
}

.detail-side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 18px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  border: 1px solid rgba(68, 64, 60, 0.72);
  background: var(--panel);
}

.side-card {
  padding: 20px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.side-card dt {
  color: var(--muted-2);
}

.side-card dd {
  margin: 0;
}

.block-link {
  width: 100%;
  margin-top: 12px;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(68, 64, 60, 0.72);
  background: #1c1917;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
  gap: 36px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.site-footer a:not(.footer-brand) {
  color: var(--muted);
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--accent);
}

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

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

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

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

  .menu-button {
    display: block;
  }

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

  .hero-arrow {
    display: none;
  }

  .search-panel-inner,
  .split-section,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ranking-panel,
  .detail-side {
    position: static;
  }

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

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

@media (max-width: 720px) {
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

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

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

  .hero-content {
    padding: 120px 18px 72px;
  }

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

  .hero-actions,
  .wide-search,
  .mobile-search {
    flex-direction: column;
  }

  .page-container,
  .search-panel-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .movie-card-large {
    grid-column: span 2;
  }

  .category-overview-head,
  .section-heading,
  .detail-title-row {
    display: grid;
    align-items: start;
  }

  .filter-bar,
  .filter-bar.advanced {
    position: static;
    grid-template-columns: 1fr;
  }

  .detail-side {
    display: none;
  }
}
