:root {
  color-scheme: dark;
  --bg: #0c0a09;
  --panel: #1c1917;
  --panel-soft: #292524;
  --panel-deep: #11100f;
  --line: #44403c;
  --line-soft: rgba(120, 113, 108, 0.38);
  --text: #f5f5f4;
  --muted: #a8a29e;
  --subtle: #78716c;
  --amber: #f59e0b;
  --amber-strong: #d97706;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --red-soft: rgba(127, 29, 29, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", 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.12), transparent 36rem),
    linear-gradient(180deg, #1c1917 0%, #0c0a09 38%, #0c0a09 100%);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(28, 25, 23, 0.92);
  border-bottom: 1px solid rgba(68, 64, 60, 0.82);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #1c1917;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.26);
}

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

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

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

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fbbf24;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--text);
  background: transparent;
  border: 0;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #292524;
  padding: 10px 16px 18px;
}

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

.mobile-link {
  display: block;
  padding: 12px 8px;
}

.hero {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, #0c0a09 0%, rgba(12, 10, 9, 0.18) 42%, rgba(12, 10, 9, 0.06));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 72px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fbbf24;
  background: var(--amber-soft);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-info h1 {
  margin: 16px 0 0;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
}

.hero h2 {
  color: #fde68a;
  font-size: clamp(28px, 4vw, 48px);
}

.hero p,
.page-hero p,
.detail-info p {
  color: #d6d3d1;
  line-height: 1.85;
}

.hero p {
  max-width: 660px;
  margin: 20px 0 0;
  font-size: 18px;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
  color: #e7e5e4;
  background: rgba(68, 64, 60, 0.82);
  border: 1px solid rgba(120, 113, 108, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

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

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

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

.btn-primary {
  color: #1c1917;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.26);
}

.btn-ghost {
  color: #f5f5f4;
  background: rgba(28, 25, 23, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  color: #f5f5f4;
  background: rgba(28, 25, 23, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 999px;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  right: 34px;
  bottom: 32px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(214, 211, 209, 0.45);
}

.hero-dot.is-active {
  width: 30px;
  background: #fbbf24;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 18px;
  margin-top: -52px;
  padding: 0 34px;
  position: relative;
  z-index: 5;
}

.hero-search,
.filter-panel {
  background: rgba(28, 25, 23, 0.94);
  border: 1px solid rgba(68, 64, 60, 0.9);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  color: var(--text);
  background: #0c0a09;
  border: 1px solid rgba(120, 113, 108, 0.5);
  border-radius: 14px;
  outline: 0;
}

.hero-search input {
  min-width: 0;
  padding: 0 16px;
}

.hero-search button {
  color: #1c1917;
  background: #f59e0b;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 800;
}

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

.hero-category-links a {
  min-height: 88px;
  padding: 16px;
  background: rgba(28, 25, 23, 0.9);
  border: 1px solid rgba(68, 64, 60, 0.82);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-category-links a:hover {
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-3px);
}

.hero-category-links span {
  display: block;
  font-weight: 800;
}

.hero-category-links small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.section-block,
.page-main,
.detail-main {
  width: min(1280px, calc(100% - 32px));
  margin: 70px auto 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-content h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.section-heading a {
  color: #fbbf24;
  font-weight: 800;
}

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

.listing-grid {
  align-items: stretch;
}

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

.movie-card {
  min-width: 0;
}

.movie-card-link,
.category-card,
.rank-card a,
.detail-content article {
  display: block;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(41, 37, 36, 0.96), rgba(28, 25, 23, 0.96));
  border: 1px solid rgba(68, 64, 60, 0.84);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card-link:hover,
.category-card:hover,
.rank-card a:hover {
  border-color: rgba(245, 158, 11, 0.62);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
  transform: translateY(-4px);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #11100f;
}

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

.movie-card-link:hover .poster-frame img {
  opacity: 0.76;
  transform: scale(1.07);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 48%);
}

.poster-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  color: #fff;
  background: #d97706;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 44px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

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

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

.movie-card-body h3 {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.22s ease;
}

.movie-card-link:hover h3 {
  color: #fbbf24;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 9px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--subtle);
  font-size: 12px;
}

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

.tag-row span {
  border-radius: 8px;
  padding: 4px 7px;
}

.page-main {
  margin-top: 42px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 54px;
  background:
    linear-gradient(135deg, rgba(120, 53, 15, 0.28), rgba(28, 25, 23, 0.96)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 26rem);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
}

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

.breadcrumb a:hover {
  color: #fbbf24;
}

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

.category-card {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.category-cover {
  position: relative;
  min-height: 250px;
  overflow: hidden;
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
}

.category-cover span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  font-size: 22px;
  font-weight: 900;
}

.category-body {
  padding: 22px;
}

.category-body h2 {
  margin: 0;
  font-size: 25px;
}

.category-body p {
  color: var(--muted);
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  color: #d6d3d1;
  background: rgba(68, 64, 60, 0.78);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  margin: 26px 0;
  padding: 16px;
  border-radius: 20px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  padding: 0 13px;
}

.empty-state {
  display: none;
  padding: 30px;
  color: var(--muted);
  text-align: center;
  background: rgba(28, 25, 23, 0.72);
  border: 1px solid rgba(68, 64, 60, 0.72);
  border-radius: 18px;
}

.empty-state.is-visible {
  display: block;
}

.rank-strip {
  padding: 32px;
  background: rgba(28, 25, 23, 0.46);
  border: 1px solid rgba(68, 64, 60, 0.46);
  border-radius: 28px;
}

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

.rank-card a {
  display: grid;
  grid-template-columns: 72px 92px 1fr;
  gap: 18px;
  align-items: center;
  padding: 12px;
}

.rank-number {
  color: #fbbf24;
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

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

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

.rank-card p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.6;
}

.rank-card small {
  color: var(--subtle);
}

.detail-main {
  margin-top: 36px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: end;
  padding: 34px;
  background:
    linear-gradient(115deg, rgba(120, 53, 15, 0.26), rgba(28, 25, 23, 0.96)),
    radial-gradient(circle at 78% 0%, rgba(245, 158, 11, 0.16), transparent 28rem);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border: 4px solid rgba(245, 158, 11, 0.24);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

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

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

.detail-info p {
  margin: 18px 0 0;
  max-width: 820px;
  font-size: 18px;
}

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

.detail-meta div {
  padding: 14px;
  background: rgba(12, 10, 9, 0.58);
  border: 1px solid rgba(68, 64, 60, 0.74);
  border-radius: 14px;
}

.detail-meta dt {
  color: var(--subtle);
  font-size: 12px;
}

.detail-meta dd {
  margin: 6px 0 0;
  color: var(--text);
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 26px;
}

.player-section {
  margin-top: 42px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  color: white;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
  border: 0;
  cursor: pointer;
}

.player-overlay span {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  color: #1c1917;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-radius: 999px;
  box-shadow: 0 22px 60px rgba(245, 158, 11, 0.32);
  font-size: 40px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 42px;
}

.detail-content article {
  padding: 28px;
}

.detail-content h2 {
  font-size: 28px;
}

.detail-content p {
  color: #d6d3d1;
  line-height: 1.9;
}

.related-block {
  width: 100%;
}

.site-footer {
  margin-top: 82px;
  background: rgba(28, 25, 23, 0.86);
  border-top: 1px solid rgba(68, 64, 60, 0.82);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--muted);
}

.footer-brand {
  color: #fbbf24;
}

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

.footer-links a:hover {
  color: #fbbf24;
}

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

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

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

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

  .nav-toggle {
    display: flex;
  }

  .hero-stage {
    min-height: 680px;
  }

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

  .hero-panel {
    padding: 0 14px;
  }

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

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

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

  .category-card,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .category-cover {
    min-height: 240px;
  }

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

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

  .rank-card a {
    grid-template-columns: 48px 72px 1fr;
  }

  .rank-number {
    font-size: 22px;
  }

  .rank-card img {
    width: 72px;
  }

  .footer-inner {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .hero,
  .section-block,
  .page-main,
  .detail-main,
  .footer-inner {
    width: min(100% - 22px, 1280px);
  }

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

  .hero-stage {
    min-height: 630px;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero h2 {
    font-size: 26px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    left: 24px;
    right: auto;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

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

  .movie-card-link {
    display: grid;
    grid-template-columns: 116px 1fr;
  }

  .poster-frame {
    aspect-ratio: 2 / 3;
  }

  .detail-hero,
  .rank-strip {
    padding: 20px;
    border-radius: 20px;
  }

  .player-overlay span {
    width: 72px;
    height: 72px;
    font-size: 32px;
  }
}
