:root {
  --bg: #0c0a09;
  --panel: #1c1917;
  --panel-soft: rgba(28, 25, 23, 0.78);
  --panel-strong: #292524;
  --line: #292524;
  --line-light: #44403c;
  --text: #f5f5f4;
  --muted: #a8a29e;
  --muted-2: #78716c;
  --accent: #d97706;
  --accent-soft: rgba(217, 119, 6, 0.18);
  --accent-light: #fbbf24;
  --danger: #f87171;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(217, 119, 6, 0.12), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(234, 88, 12, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(12, 10, 9, 0), #0c0a09 78%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(41, 37, 36, 0.95);
  background: rgba(28, 25, 23, 0.92);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ea580c);
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.26);
}

.brand-name {
  font-size: 1.15rem;
}

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

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

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

.nav-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #292524;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input,
.mobile-search input {
  width: 190px;
  padding: 10px 12px;
}

.nav-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--accent);
}

.nav-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-light);
  border-radius: 12px;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #d6d3d1;
}

.mobile-menu {
  display: none;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-menu nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.hero,
.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1c1917, #292524 44%, #78350f);
}

.hero {
  min-height: 74vh;
}

.hero-inner,
.page-hero-inner,
.detail-inner,
.section,
.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  min-height: 74vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: 44px;
  padding: 72px 0;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(66px);
  opacity: 0.28;
  pointer-events: none;
}

.hero-glow-a {
  width: 260px;
  height: 260px;
  left: 6%;
  top: 12%;
  background: #d97706;
}

.hero-glow-b {
  width: 380px;
  height: 380px;
  right: 8%;
  bottom: 8%;
  background: #ea580c;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent-light);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.section-heading p,
.detail-one-line,
.article-panel p,
.side-panel dd,
.movie-card-body p,
.ranking-info p,
.footer-brand p {
  color: var(--muted);
}

.hero-copy p {
  max-width: 720px;
  margin: 20px 0 28px;
  font-size: 1.16rem;
}

.hero-search {
  max-width: 660px;
  padding: 8px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 18px;
  background: rgba(12, 10, 9, 0.42);
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  padding: 14px 16px;
  border: 0;
  background: transparent;
}

.hero-search button {
  padding: 14px 22px;
}

.hero-search.narrow {
  max-width: 560px;
  margin-top: 24px;
}

.hero-actions,
.hero-cats,
.detail-tags,
.card-tags,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

.hero-cats a,
.detail-tags span,
.card-tags span,
.inline-links a {
  border: 1px solid rgba(168, 162, 158, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  color: #d6d3d1;
  background: rgba(41, 37, 36, 0.72);
  font-size: 0.88rem;
}

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

.primary-button {
  border: 0;
  padding: 12px 22px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 16px 38px rgba(217, 119, 6, 0.22);
}

.ghost-button {
  border: 1px solid var(--line-light);
  padding: 11px 20px;
  color: #f5f5f4;
  background: rgba(41, 37, 36, 0.75);
}

.text-button {
  color: var(--accent-light);
  white-space: nowrap;
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: #b45309;
}

.ghost-button:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.hero-stage {
  position: relative;
  min-height: 540px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 30px;
  overflow: hidden;
  background: #1c1917;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: scale(0.96) translateY(14px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-image {
  min-height: 330px;
  overflow: hidden;
  background: #292524;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-slide:hover .hero-image img {
  transform: scale(1.05);
}

.hero-slide-content {
  padding: 24px;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.68), rgba(12, 10, 9, 0.96));
}

.hero-slide-content h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.12;
}

.hero-slide-content p {
  margin: 0 0 16px;
  color: #d6d3d1;
}

.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-tags span {
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--accent-light);
  background: rgba(217, 119, 6, 0.18);
  font-size: 0.82rem;
}

.slider-dots {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(214, 211, 209, 0.48);
}

.slider-dot.is-active {
  width: 30px;
  background: var(--accent-light);
}

.section {
  padding: 72px 0;
}

.section-muted {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - var(--max)) / 2));
  padding-right: max(16px, calc((100% - var(--max)) / 2));
  background: rgba(28, 25, 23, 0.52);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading.with-link {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.article-panel h2,
.side-panel h2,
.footer-links h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.2;
}

.section-heading p {
  max-width: 760px;
  margin: 0;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(68, 64, 60, 0.72);
  border-radius: 16px;
  background: #1c1917;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #292524;
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--accent-light);
  background: rgba(0, 0, 0, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.year-badge {
  right: 10px;
}

.rank-badge {
  left: 10px;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
}

.poster-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.12));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-dot,
.big-play {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
}

.play-dot {
  width: 52px;
  height: 52px;
  padding-left: 3px;
}

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

.movie-card-body h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.3;
}

.movie-card-body h2 a:hover,
.ranking-info h2 a:hover,
.hero-slide-content h2 a:hover {
  color: var(--accent-light);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.92rem;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.84rem;
}

.movie-meta span:first-child {
  color: var(--accent);
}

.card-tags {
  margin-top: 12px;
}

.card-tags span {
  padding: 4px 8px;
  font-size: 0.78rem;
}

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

.category-tile {
  position: relative;
  min-height: 250px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(68, 64, 60, 0.72);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(41, 37, 36, 0.95), rgba(28, 25, 23, 0.96));
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.category-index {
  color: var(--accent-light);
  font-weight: 800;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 18px 0;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #292524;
}

.category-tile h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 70px 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(68, 64, 60, 0.7);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.88);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ea580c);
  font-size: 1.05rem;
  font-weight: 900;
}

.ranking-poster img {
  width: 82px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #292524;
}

.ranking-info h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.ranking-info p {
  margin: 0 0 8px;
}

.page-hero {
  min-height: 340px;
}

.small-hero .page-hero-inner {
  position: relative;
  padding: 76px 0 64px;
}

.page-hero h1 {
  margin-bottom: 18px;
}

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

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

.inline-links {
  margin-top: 22px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 190px 170px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid rgba(68, 64, 60, 0.72);
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.88);
}

.filter-bar input,
.filter-bar select {
  padding: 12px 14px;
}

.empty-state {
  margin: 32px 0 0;
  color: var(--muted);
  text-align: center;
}

.detail-hero {
  min-height: 720px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.2;
  filter: blur(12px);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.42), #0c0a09 92%);
}

.detail-inner {
  position: relative;
  z-index: 1;
  padding: 64px 0 70px;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video,
.player-cover,
.player-cover img,
.player-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  object-fit: contain;
  z-index: 1;
}

.player-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  background: #000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  object-fit: cover;
}

.player-cover-shade {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.12));
}

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  padding-left: 5px;
  font-size: 2rem;
  box-shadow: 0 18px 45px rgba(217, 119, 6, 0.32);
}

.detail-info {
  border: 1px solid rgba(68, 64, 60, 0.7);
  border-radius: 24px;
  padding: 28px;
  background: rgba(12, 10, 9, 0.56);
  backdrop-filter: blur(10px);
}

.detail-info h1 {
  font-size: clamp(2rem, 4vw, 3.45rem);
}

.detail-one-line {
  margin: 18px 0;
  font-size: 1.08rem;
}

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

.play-now {
  width: 100%;
  min-height: 48px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.article-panel,
.side-panel {
  border: 1px solid rgba(68, 64, 60, 0.7);
  border-radius: 22px;
  padding: 28px;
  background: rgba(28, 25, 23, 0.88);
}

.article-panel h2:not(:first-child) {
  margin-top: 30px;
}

.article-panel p {
  margin: 0;
  font-size: 1.02rem;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px 14px;
  margin: 0 0 22px;
}

.side-panel dt {
  color: var(--accent-light);
  font-weight: 700;
}

.side-panel dd {
  margin: 0;
}

.full-button {
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #1c1917;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 34px;
  padding: 42px 0;
}

.footer-brand p {
  margin: 16px 0 0;
}

.footer-links h2 {
  font-size: 1rem;
}

.footer-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
}

.footer-link-grid a {
  color: var(--muted);
}

.footer-link-grid a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px;
  color: var(--muted-2);
  text-align: center;
}

[hidden] {
  display: none !important;
}

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

  .menu-button {
    display: block;
    margin-left: auto;
  }

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

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

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

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

@media (max-width: 820px) {
  .hero-inner {
    padding: 50px 0;
  }

  .hero-search,
  .filter-bar,
  .ranking-row,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-search {
    display: grid;
  }

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

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

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

  .ranking-row {
    grid-template-columns: 54px 72px minmax(0, 1fr);
  }

  .ranking-row .text-button {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .detail-hero {
    min-height: auto;
  }
}

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

  .brand-name {
    font-size: 1rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    gap: 28px;
  }

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

  .hero-slide-content,
  .detail-info,
  .article-panel,
  .side-panel {
    padding: 20px;
  }

  .movie-grid,
  .featured-grid,
  .large-grid {
    gap: 14px;
  }

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

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

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