:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --panel: #171717;
  --panel-strong: #202020;
  --line: #2b2b2b;
  --muted: #a3a3a3;
  --text: #f5f5f5;
  --red: #dc2626;
  --red-dark: #991b1b;
  --gold: #f59e0b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, 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 15% 8%, rgba(220, 38, 38, 0.12), transparent 34%),
    radial-gradient(circle at 85% 14%, rgba(245, 158, 11, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 38%);
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.28);
}

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

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

.nav-link,
.dropdown-button {
  border: 0;
  color: #d4d4d4;
  background: transparent;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-button:hover {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.16);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 210px;
  display: grid;
  gap: 6px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(18, 18, 18, 0.98);
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a,
.mobile-cats a {
  border-radius: 12px;
  padding: 9px 11px;
  color: #d4d4d4;
}

.dropdown-panel a:hover,
.mobile-cats a:hover {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.16);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px 18px;
  background: rgba(10, 10, 10, 0.98);
}

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

.mobile-link {
  display: block;
  border-radius: 14px;
  padding: 11px 10px;
  color: #d4d4d4;
}

.mobile-link.active,
.mobile-link:hover {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.16);
}

.mobile-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.3s ease;
}

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

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

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.7) 42%, rgba(10, 10, 10, 0.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  height: calc(78vh - 112px);
  min-height: 510px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 118px;
}

.hero-copy {
  width: min(720px, 100%);
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-summary,
.page-hero p,
.detail-one-line {
  max-width: 680px;
  margin: 20px 0 0;
  color: #d4d4d4;
  font-size: 17px;
}

.hero-meta,
.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-meta span,
.card-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 10px;
  color: #d4d4d4;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

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

.primary-button,
.ghost-button,
.section-more,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 16px 36px rgba(220, 38, 38, 0.28);
}

.ghost-button,
.section-more,
.text-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

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

.hero-tools {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 20px;
  align-items: end;
  padding-bottom: 30px;
}

.hero-search-card,
.hero-thumbs {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-search-card {
  padding: 22px;
}

.hero-search-card strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.hero-search-card p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.quick-search,
.filter-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.quick-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.quick-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--red);
  font-weight: 800;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-chips a,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #f5f5f5;
  background: rgba(220, 38, 38, 0.16);
  font-size: 12px;
}

.hero-thumbs {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.hero-thumb {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 18px;
  padding: 8px;
  color: #d4d4d4;
  background: transparent;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-thumb.is-active,
.hero-thumb:hover {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.18);
}

.hero-thumb img {
  width: 60px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

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

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

.section-heading h2,
.site-footer h2,
.story-card h2,
.side-panel h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

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

.movie-card,
.category-overview-card,
.ranking-card,
.story-card,
.side-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.22);
}

.movie-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover,
.category-overview-card:hover,
.ranking-card:hover {
  transform: translateY(-5px);
  border-color: rgba(220, 38, 38, 0.42);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111111;
}

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

.movie-card:hover .card-poster img,
.ranking-card:hover .ranking-poster img {
  transform: scale(1.06);
  filter: brightness(0.78);
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.88);
  transition: 0.22s ease;
}

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

.card-body {
  padding: 16px;
}

.card-body h2,
.ranking-info h2,
.category-overview-body h2 {
  margin: 11px 0 8px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.card-body p,
.ranking-info p,
.category-overview-body p,
.story-card p,
.side-panel dd {
  color: var(--muted);
}

.card-body p,
.ranking-info p,
.category-overview-body p {
  margin: 0;
  font-size: 14px;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

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

.category-tile {
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(220, 38, 38, 0.22), transparent 45%),
    rgba(255, 255, 255, 0.045);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 38, 38, 0.42);
}

.category-tile span {
  display: block;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.category-tile p {
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
}

.tile-links,
.category-samples,
.footer-links {
  display: grid;
  gap: 6px;
}

.tile-links a,
.category-samples a,
.footer-links a {
  color: #d4d4d4;
  font-size: 14px;
}

.tile-links a:hover,
.category-samples a:hover,
.footer-links a:hover,
.card-body h2 a:hover,
.ranking-info h2 a:hover {
  color: var(--red);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 72px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.rank-row:hover {
  border-color: rgba(220, 38, 38, 0.42);
  background: rgba(220, 38, 38, 0.1);
}

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

.rank-row img {
  width: 72px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-title {
  font-weight: 800;
}

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

.page-main,
.detail-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 12% 12%, rgba(220, 38, 38, 0.22), transparent 32%),
    linear-gradient(135deg, #111111, #0a0a0a);
}

.compact-hero h1,
.category-hero h1 {
  max-width: 760px;
}

.filter-bar {
  grid-template-columns: minmax(260px, 1fr) 190px 170px;
  margin-bottom: 24px;
}

.search-filter-bar {
  grid-template-columns: minmax(260px, 1fr) 170px 170px 150px;
}

.searchable-grid [hidden] {
  display: none;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 18px;
  padding: 16px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.poster-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.poster-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
}

.category-overview-body {
  padding: 6px 4px;
}

.category-samples {
  margin: 14px 0;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 16px;
  padding: 12px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  background: #111111;
}

.ranking-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  border-radius: 999px;
  padding: 4px 9px;
  color: #ffffff;
  background: var(--red);
  font-weight: 900;
  font-size: 12px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.detail-bg,
.detail-overlay {
  position: absolute;
  inset: 0;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #d4d4d4;
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: end;
  margin-top: 52px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  font-size: clamp(40px, 6vw, 76px);
}

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

.player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

.video-element {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.video-play-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.32);
}

.video-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
}

.video-status.is-hidden {
  display: none;
}

.side-panel {
  padding: 22px;
}

.side-panel dl {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.side-panel div {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.side-panel dt {
  color: #ffffff;
  font-weight: 800;
}

.side-panel dd {
  margin: 0;
}

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

.story-card {
  padding: 28px;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.related-grid .compact-card .card-body p {
  display: none;
}

.site-footer {
  margin-top: 88px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 13, 13, 0.96);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
  gap: 38px;
  padding: 46px 0 34px;
}

.footer-brand p {
  max-width: 520px;
  color: var(--muted);
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 24px;
  color: #737373;
  font-size: 14px;
}

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

  .hero-tools,
  .player-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-thumbs {
    grid-template-columns: repeat(5, 1fr);
  }

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

  .hero-thumb img {
    width: 100%;
    height: 62px;
  }

  .rank-list,
  .ranking-grid,
  .category-overview-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero {
    min-height: 920px;
  }

  .hero-content {
    min-height: 590px;
    padding-bottom: 120px;
    align-items: flex-end;
  }

  .hero-tools {
    padding-bottom: 22px;
  }

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

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

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

  .hero-thumb {
    grid-template-columns: 70px 1fr;
  }

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

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

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

  .rank-info {
    display: none;
  }

  .category-overview-card,
  .ranking-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .poster-stack {
    grid-template-columns: repeat(4, 1fr);
  }

  .detail-poster {
    width: min(280px, 100%);
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-actions,
  .page-actions {
    display: grid;
  }

  .poster-stack {
    grid-template-columns: repeat(2, 1fr);
  }
}
