:root {
  color-scheme: dark;
  --bg: #0f1115;
  --panel: #1a1c23;
  --panel-soft: rgba(26, 28, 35, 0.78);
  --panel-light: #3b3d44;
  --text: #faf8f3;
  --muted: #d8c299;
  --muted-light: #e7dbc0;
  --maple: #ef5844;
  --maple-dark: #b92f1c;
  --border: rgba(216, 194, 153, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(239, 88, 68, 0.12), transparent 30rem),
    radial-gradient(circle at 86% 12%, rgba(200, 166, 112, 0.08), transparent 28rem),
    var(--bg);
}

.site-container {
  width: min(100% - 32px, 1440px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 17, 21, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--maple), var(--maple-dark));
  box-shadow: 0 12px 28px rgba(239, 88, 68, 0.35);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(239, 88, 68, 0.14);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(34vw, 360px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(26, 28, 35, 0.82);
}

.header-search input,
.hero-search input,
.filter-bar input,
.search-large input,
.search-large select {
  min-width: 0;
  width: 100%;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.header-search input {
  padding: 11px 14px;
}

.header-search button,
.hero-search button {
  flex: 0 0 auto;
  padding: 11px 18px;
  color: #fff;
  background: var(--maple-dark);
  transition: 0.2s ease;
}

.header-search button:hover,
.hero-search button:hover {
  background: var(--maple);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--text);
  background: var(--panel);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 12px 16px 18px;
}

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

.site-main {
  padding: 28px 0 72px;
}

.home-shell {
  display: grid;
  gap: 48px;
}

.hero-slider {
  position: relative;
  min-height: clamp(520px, 78vh, 820px);
  overflow: hidden;
  border: 1px solid rgba(216, 194, 153, 0.12);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease, transform 900ms ease;
  transform: scale(1.02);
}

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

.hero-slide img,
.detail-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 21, 0.94) 0%, rgba(15, 17, 21, 0.72) 42%, rgba(15, 17, 21, 0.12) 100%),
    linear-gradient(0deg, #0f1115 0%, rgba(15, 17, 21, 0) 42%);
}

.hero-copy {
  position: absolute;
  left: clamp(24px, 5vw, 72px);
  bottom: clamp(44px, 8vw, 96px);
  max-width: 760px;
  display: grid;
  gap: 18px;
}

.hero-copy h1,
.hero-copy h2 {
  color: var(--text);
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.02;
  font-weight: 900;
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.hero-copy p {
  max-width: 680px;
  color: var(--muted-light);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

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

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

.btn-glass,
.section-more,
.filter-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: rgba(26, 28, 35, 0.62);
  transition: 0.2s ease;
}

.btn-glass {
  padding: 12px 24px;
  backdrop-filter: blur(12px);
}

.btn-glass:hover,
.section-more:hover,
.filter-bar a:hover {
  color: #fff;
  border-color: rgba(239, 88, 68, 0.52);
  background: rgba(239, 88, 68, 0.18);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 42px;
  line-height: 1;
  background: rgba(26, 28, 35, 0.78);
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
  transition: 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(239, 88, 68, 0.8);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(216, 194, 153, 0.5);
  transition: 0.2s ease;
}

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

.hero-tools {
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: 18px;
}

.hero-search,
.search-large,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(26, 28, 35, 0.74);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.hero-search input {
  padding: 10px 8px;
}

.hero-search button {
  border-radius: 12px;
}

.hero-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hero-quick-links a,
.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 98px;
  padding: 18px;
  border: 1px solid rgba(216, 194, 153, 0.12);
  border-radius: 18px;
  background: linear-gradient(135deg, #3b3d44, #1a1c23);
  transition: 0.25s ease;
}

.hero-quick-links a::after,
.category-tile::after {
  content: "";
  position: absolute;
  top: -44px;
  right: -44px;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  background: rgba(239, 88, 68, 0.13);
  transition: 0.35s ease;
}

.hero-quick-links a:hover,
.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 88, 68, 0.38);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.25);
}

.hero-quick-links a:hover::after,
.category-tile:hover::after {
  transform: scale(1.55);
}

.hero-quick-links span,
.category-tile span {
  position: relative;
  z-index: 2;
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.hero-quick-links small,
.category-tile p {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.site-section {
  display: grid;
  gap: 20px;
}

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

.section-title {
  margin: 0;
}

.section-subtitle {
  margin: 8px 0 0;
}

.section-more,
.filter-bar a {
  flex: 0 0 auto;
  padding: 10px 16px;
  font-size: 14px;
}

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

.archive-grid {
  padding-top: 8px;
}

.movie-card {
  height: 100%;
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 17, 21, 0.64), transparent 50%);
  opacity: 0;
  transition: 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #fff;
  background: rgba(239, 88, 68, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-year {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 4;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  background: rgba(15, 17, 21, 0.72);
  backdrop-filter: blur(10px);
}

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

.card-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(59, 61, 68, 0.75);
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 310px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 22px;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

.scroll-row::-webkit-scrollbar {
  height: 9px;
}

.scroll-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(216, 194, 153, 0.25);
}

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

.category-grid-large {
  padding-bottom: 40px;
}

.large-feature {
  position: relative;
  display: grid;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.large-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.large-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 21, 0.95) 0%, rgba(15, 17, 21, 0.72) 50%, rgba(15, 17, 21, 0.18) 100%),
    linear-gradient(0deg, rgba(15, 17, 21, 0.8), transparent 42%);
}

.large-feature-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  max-width: 760px;
  padding: clamp(28px, 5vw, 64px);
}

.large-feature-copy h2 {
  margin: 18px 0 12px;
  color: var(--text);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.05;
}

.large-feature-copy p {
  margin-bottom: 22px;
  color: var(--muted-light);
  font-size: 17px;
  line-height: 1.8;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 92px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(216, 194, 153, 0.1);
  border-radius: 16px;
  background: rgba(26, 28, 35, 0.72);
  transition: 0.2s ease;
}

.rank-row:hover {
  border-color: rgba(239, 88, 68, 0.35);
  background: rgba(59, 61, 68, 0.58);
}

.rank-num {
  color: var(--maple);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 92px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
}

.rank-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rank-info strong {
  color: var(--text);
  font-size: 17px;
}

.rank-info em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-play {
  color: var(--muted-light);
  font-size: 14px;
}

.page-hero {
  display: grid;
  gap: 12px;
  padding: 56px 0 38px;
}

.compact-hero {
  padding-top: 44px;
}

.eyebrow {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  background: rgba(239, 88, 68, 0.18);
}

.page-hero h1 {
  color: var(--text);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
}

.page-hero p {
  max-width: 760px;
  color: var(--muted-light);
  font-size: 18px;
  line-height: 1.75;
}

.filter-bar {
  margin-bottom: 26px;
}

.filter-bar input,
.search-large input,
.search-large select {
  padding: 12px 14px;
  border: 1px solid rgba(216, 194, 153, 0.12);
  border-radius: 12px;
  background: rgba(15, 17, 21, 0.55);
}

.search-panel {
  display: grid;
  gap: 28px;
}

.search-large {
  display: grid;
  grid-template-columns: 1fr 160px 160px auto;
}

.detail-main {
  padding-top: 0;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  display: grid;
  align-items: end;
  margin-top: -28px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  filter: blur(1px);
  transform: scale(1.03);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 21, 0.98) 0%, rgba(15, 17, 21, 0.74) 45%, rgba(15, 17, 21, 0.24) 100%),
    linear-gradient(0deg, #0f1115 0%, rgba(15, 17, 21, 0.16) 60%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  align-items: end;
  gap: clamp(24px, 5vw, 56px);
  padding: 120px 0 58px;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-info {
  display: grid;
  gap: 16px;
}

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

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

.detail-info h1 {
  max-width: 900px;
  color: var(--text);
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 900;
  line-height: 1.04;
}

.detail-one-line {
  max-width: 820px;
  color: var(--muted-light);
  font-size: 20px;
  line-height: 1.8;
}

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

.detail-meta span {
  padding: 8px 12px;
  border: 1px solid rgba(216, 194, 153, 0.14);
  border-radius: 999px;
  color: var(--muted-light);
  background: rgba(26, 28, 35, 0.62);
}

.player-section {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.player-section h2,
.story-card h2 {
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  color: #fff;
  background: linear-gradient(0deg, rgba(15, 17, 21, 0.72), rgba(15, 17, 21, 0.4));
  transition: 0.25s ease;
}

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

.player-play-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  font-size: 34px;
  background: rgba(239, 88, 68, 0.9);
  box-shadow: 0 18px 42px rgba(239, 88, 68, 0.34);
}

.player-cover strong {
  font-size: clamp(22px, 4vw, 42px);
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.58);
}

.detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 34px;
}

.story-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(216, 194, 153, 0.12);
  border-radius: 22px;
  background: rgba(26, 28, 35, 0.76);
}

.story-card p {
  margin-top: 14px;
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1.9;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(15, 17, 21, 0.88);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0 24px;
}

.footer-grid p {
  margin-top: 10px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.footer-links a:hover {
  color: var(--maple);
}

.footer-bottom {
  padding: 18px 0 28px;
  color: rgba(216, 194, 153, 0.68);
  font-size: 14px;
}

.text-shadow-lg {
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.search-empty {
  grid-column: 1 / -1;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--muted-light);
  text-align: center;
  background: rgba(26, 28, 35, 0.72);
}

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

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

  .hero-quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    justify-self: end;
  }

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

  .hero-slider {
    min-height: 620px;
    border-radius: 22px;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(15, 17, 21, 0.96) 0%, rgba(15, 17, 21, 0.55) 62%, rgba(15, 17, 21, 0.18) 100%);
  }

  .hero-copy {
    left: 22px;
    right: 22px;
    bottom: 64px;
  }

  .hero-arrow {
    display: none;
  }

  .detail-hero-content {
    grid-template-columns: 1fr;
    padding-top: 110px;
  }

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

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

  .footer-grid {
    display: grid;
  }
}

@media (max-width: 560px) {
  .site-container {
    width: min(100% - 22px, 1440px);
  }

  .site-main {
    padding-top: 18px;
  }

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

  .hero-copy h1,
  .hero-copy h2,
  .detail-info h1,
  .page-hero h1 {
    font-size: 36px;
  }

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

  .scroll-row {
    grid-auto-columns: minmax(238px, 82vw);
  }

  .rank-row {
    grid-template-columns: 42px 82px 1fr;
  }

  .rank-play {
    display: none;
  }

  .filter-bar,
  .hero-search {
    display: grid;
  }

  .player-play-icon {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
