:root {
  --bg: #050505;
  --panel: #111827;
  --panel-soft: #1f2937;
  --panel-deep: #030712;
  --line: #374151;
  --muted: #9ca3af;
  --text: #f9fafb;
  --accent: #dc2626;
  --accent-soft: #fb923c;
  --gold: #f59e0b;
  --blue: #60a5fa;
  --green: #34d399;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.16), transparent 32rem),
    radial-gradient(circle at 82% 12%, rgba(249, 115, 22, 0.12), transparent 28rem),
    linear-gradient(180deg, #111827 0%, #050505 48%, #111827 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;
  border-bottom: 1px solid rgba(55, 65, 81, 0.82);
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(31, 41, 55, 0.96), rgba(17, 24, 39, 0.96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.container {
  width: min(100% - 2rem, 1280px);
  margin: 0 auto;
}

.navbar {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.38);
}

.logo-text {
  background: linear-gradient(90deg, #ef4444, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #d1d5db;
  font-weight: 650;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
  transform: translateY(-1px) scale(1.04);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-input,
.filter-input {
  width: min(100%, 24rem);
  border: 1px solid #374151;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: rgba(17, 24, 39, 0.92);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.filter-input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.search-button,
.primary-button,
.secondary-button,
.icon-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-button,
.primary-button {
  padding: 0.72rem 1.2rem;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 16px 34px rgba(220, 38, 38, 0.28);
}

.secondary-button {
  padding: 0.72rem 1.2rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(17, 24, 39, 0.72);
}

.search-button:hover,
.primary-button:hover,
.secondary-button:hover,
.icon-button:hover {
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  color: #ffffff;
  border: 1px solid #374151;
  background: rgba(17, 24, 39, 0.75);
  width: 2.7rem;
  height: 2.7rem;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(55, 65, 81, 0.82);
  padding: 1rem 0 1.25rem;
}

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

.mobile-panel a,
.mobile-panel .header-search {
  margin-top: 0.75rem;
}

.mobile-panel a {
  display: block;
  color: #d1d5db;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  border-bottom: 1px solid rgba(55, 65, 81, 0.45);
  background: #030712;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

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

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, 0.78) 26%, rgba(5, 5, 5, 0.36) 58%, rgba(5, 5, 5, 0.76) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.28), rgba(5, 5, 5, 0.72));
}

.hero-content {
  position: absolute;
  left: max(1rem, calc((100vw - 1280px) / 2 + 1rem));
  right: max(1rem, calc((100vw - 1280px) / 2 + 1rem));
  bottom: clamp(2rem, 8vw, 5.5rem);
  max-width: 50rem;
}

.hero-label,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.96);
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.22);
}

.hero h1 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2.4rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.hero p {
  max-width: 46rem;
  margin: 0 0 1.4rem;
  color: #d1d5db;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions,
.section-actions,
.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  z-index: 3;
}

.hero-dot {
  width: 2.4rem;
  height: 0.32rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.is-active {
  width: 3.4rem;
  background: linear-gradient(90deg, #ef4444, #fb923c);
}

.page-shell {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.section {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.section-kicker {
  color: #f87171;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  letter-spacing: -0.045em;
}

.section-desc {
  max-width: 48rem;
  color: var(--muted);
  line-height: 1.78;
}

.panel {
  border: 1px solid rgba(55, 65, 81, 0.74);
  border-radius: 1.5rem;
  background: rgba(17, 24, 39, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel.pad {
  padding: clamp(1rem, 3vw, 2rem);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.movie-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.72);
  border-radius: 1rem;
  background: rgba(17, 24, 39, 0.9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(239, 68, 68, 0.68);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #030712;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.08));
  opacity: 0.82;
}

.card-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.card-year {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  border-radius: 999px;
  padding: 0.26rem 0.58rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.card-body h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.65rem 0;
  color: #9ca3af;
  font-size: 0.86rem;
}

.card-desc {
  flex: 1;
  color: #d1d5db;
  font-size: 0.92rem;
  line-height: 1.65;
}

.link-more {
  display: inline-flex;
  align-items: center;
  margin-top: 0.85rem;
  color: #fb923c;
  font-weight: 800;
}

.horizontal-list {
  display: grid;
  gap: 1rem;
}

.rank-item {
  display: grid;
  grid-template-columns: auto 9rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(55, 65, 81, 0.72);
  border-radius: 1rem;
  background: rgba(17, 24, 39, 0.72);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  background: rgba(31, 41, 55, 0.88);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #dc2626, #f59e0b);
}

.rank-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
}

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

.rank-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.rank-desc {
  margin: 0;
  color: #9ca3af;
  line-height: 1.6;
}

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 11rem;
  padding: 1.25rem;
  border: 1px solid rgba(55, 65, 81, 0.72);
  border-radius: 1.3rem;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.36), rgba(17, 24, 39, 0.88));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 68, 68, 0.62);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 0.6rem;
}

.category-tile p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.65;
}

.page-hero {
  border-bottom: 1px solid rgba(55, 65, 81, 0.45);
  background:
    linear-gradient(90deg, rgba(127, 29, 29, 0.38), rgba(30, 41, 59, 0.58), rgba(3, 7, 18, 0.92)),
    radial-gradient(circle at 75% 15%, rgba(248, 113, 113, 0.16), transparent 28rem);
}

.page-hero-inner {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
}

.page-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 52rem;
  margin: 0;
  color: #d1d5db;
  font-size: 1.08rem;
  line-height: 1.8;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  border: 1px solid rgba(75, 85, 99, 0.72);
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  color: #d1d5db;
  background: rgba(17, 24, 39, 0.76);
  font-size: 0.88rem;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1.5rem;
  align-items: start;
}

.player-panel {
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.75);
  border-radius: 1.35rem;
  background: #030712;
  box-shadow: var(--shadow);
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.2);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
}

.player-overlay span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  min-height: 8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 24px 60px rgba(220, 38, 38, 0.38);
  font-size: 1.2rem;
  font-weight: 900;
}

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

.player-message {
  min-height: 1.5rem;
  padding: 0.85rem 1rem;
  color: #fca5a5;
  background: rgba(17, 24, 39, 0.92);
}

.movie-info {
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.movie-info h1 {
  margin: 0.8rem 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.movie-info p {
  color: #d1d5db;
  line-height: 1.82;
}

.content-block {
  margin-top: 1.25rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(55, 65, 81, 0.72);
  border-radius: 1.2rem;
  background: rgba(17, 24, 39, 0.75);
}

.content-block h2 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: #9ca3af;
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #fb923c;
}

.side-card {
  position: sticky;
  top: 5.6rem;
}

.related-list {
  display: grid;
  gap: 0.85rem;
}

.related-link {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(55, 65, 81, 0.72);
  border-radius: 0.9rem;
  background: rgba(17, 24, 39, 0.76);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-link:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.6);
}

.related-link img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.7rem;
  object-fit: cover;
}

.related-link strong {
  display: block;
  margin-bottom: 0.25rem;
  line-height: 1.35;
}

.related-link span {
  color: #9ca3af;
  font-size: 0.86rem;
}

.site-footer {
  border-top: 1px solid rgba(55, 65, 81, 0.72);
  background: rgba(3, 7, 18, 0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 2.2rem 0;
  color: #d1d5db;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 0.8rem;
  color: #ffffff;
}

.footer-grid p,
.footer-grid a {
  color: #9ca3af;
  line-height: 1.75;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.no-results {
  display: none;
  padding: 2rem;
  border: 1px solid rgba(55, 65, 81, 0.72);
  border-radius: 1rem;
  color: #d1d5db;
  text-align: center;
  background: rgba(17, 24, 39, 0.72);
}

.no-results.is-visible {
  display: block;
}

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

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

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

  .side-card {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .rank-item {
    grid-template-columns: auto 7rem 1fr;
  }

  .rank-item .secondary-button {
    grid-column: 1 / -1;
    justify-content: center;
    text-align: center;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 1rem, 1280px);
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    bottom: 4rem;
  }

  .hero-actions,
  .section-header,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .grid.cards,
  .grid.categories {
    grid-template-columns: 1fr;
  }

  .card-body {
    padding: 0.9rem;
  }

  .rank-item,
  .related-link {
    grid-template-columns: 1fr;
  }

  .rank-cover,
  .related-link img {
    width: 100%;
  }

  .player-overlay span {
    min-width: 6rem;
    min-height: 6rem;
    font-size: 1rem;
  }
}
