
:root {
  --bg: #0a0e13;
  --bg-soft: #111722;
  --panel: #141b27;
  --panel-2: #192131;
  --card: #151c28;
  --border: rgba(245, 158, 11, 0.14);
  --text: #edeae3;
  --muted: #9ca3af;
  --accent: #f59e0b;
  --accent-2: #d97706;
  --accent-3: #fbbf24;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 16px;
  --container: min(1180px, calc(100vw - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(217, 119, 6, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.12), transparent 26%),
    linear-gradient(180deg, #0a0e13 0%, #0b1118 48%, #090c11 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(10, 14, 19, 0.96), rgba(10, 14, 19, 0.72));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.16);
  color: var(--accent-3);
  font-weight: 800;
  letter-spacing: 0.06em;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 1rem; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--muted); font-size: 0.8rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.site-nav a {
  padding: 11px 14px;
  border-radius: 999px;
  color: rgba(237, 234, 227, 0.9);
  border: 1px solid transparent;
  transition: 0.22s ease;
}
.site-nav a:hover,
.site-nav a.active {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.08);
  color: #fff;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: #f2efe8; margin: 4px auto; border-radius: 99px; }

.hero {
  padding: 28px 0 10px;
}
.hero-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(17, 23, 34, 0.96), rgba(14, 19, 28, 0.88)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 36%);
  box-shadow: var(--shadow);
}
.hero-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.04), transparent 24%),
    radial-gradient(circle at 24% 18%, rgba(251, 191, 36, 0.18), transparent 14%),
    radial-gradient(circle at 75% 30%, rgba(217, 119, 6, 0.22), transparent 18%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 18px;
  padding: 24px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-height: 540px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-3);
  border: 1px solid rgba(245, 158, 11, 0.18);
  letter-spacing: 0.06em;
  font-size: 0.86rem;
}
.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.hero-title span { color: var(--accent-3); }
.hero-desc {
  margin: 0;
  color: rgba(237, 234, 227, 0.78);
  max-width: 62ch;
  font-size: 1.02rem;
}
.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stat {
  min-width: 128px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.stat strong { display: block; font-size: 1.25rem; color: #fff; }
.stat span { color: var(--muted); font-size: 0.84rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: 0.2s ease;
  font-weight: 600;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #17120a;
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.22);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-search input {
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  padding: 0 8px;
}
.hero-search input::placeholder { color: rgba(255,255,255,0.45); }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: rgba(237, 234, 227, 0.88);
  border: 1px solid rgba(255,255,255,0.07);
}

.hero-slider {
  position: relative;
  min-height: 540px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.hero-track {
  height: 100%;
  display: flex;
  transition: transform 0.45s ease;
}
.hero-slide {
  min-width: 100%;
  position: relative;
  padding: 20px;
  display: flex;
  align-items: flex-end;
}
.hero-slide-inner {
  position: relative;
  width: 100%;
  min-height: 500px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10,14,19,0.18), rgba(10,14,19,0.88));
  display: grid;
  align-items: end;
}
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1.02);
}
.hero-slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 14, 19, 0.92) 0%, rgba(10, 14, 19, 0.45) 38%, rgba(10, 14, 19, 0.7) 100%);
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  padding: 28px;
  max-width: 72%;
}
.hero-slide-content h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
}
.hero-slide-content p { margin: 0 0 18px; color: rgba(237, 234, 227, 0.8); }
.hero-slide-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-slide-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.92);
  font-size: 0.82rem;
}
.hero-slide-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-controls {
  position: absolute;
  inset: auto 18px 18px auto;
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-control {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,14,19,0.52);
  color: #fff;
  backdrop-filter: blur(12px);
}
.hero-dots {
  position: absolute;
  inset: auto auto 18px 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}
.hero-dot.active { width: 28px; background: linear-gradient(135deg, var(--accent), var(--accent-3)); }

.section {
  padding: 32px 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
}
.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}
.section-link { color: var(--accent-3); font-weight: 600; }

.grid-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  min-height: 100%;
}
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: 0 20px 40px rgba(0,0,0,.32);
}
.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: block;
  background: linear-gradient(135deg, rgba(245,158,11,.16), rgba(217,119,6,.06));
}
.poster-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}
.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,19,0.08), rgba(10,14,19,0.86));
}
.poster-meta {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
  font-size: 0.8rem;
  z-index: 2;
}
.poster-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(10,14,19,.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
}
.movie-body { padding: 16px; }
.movie-kicker { color: var(--accent-3); font-size: 0.82rem; margin-bottom: 6px; }
.movie-title { margin: 0 0 8px; font-size: 1.03rem; line-height: 1.35; }
.movie-title a { color: #fff; }
.movie-desc { margin: 0; color: var(--muted); font-size: 0.92rem; min-height: 4.2em; }
.movie-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.movie-actions .btn { padding: 10px 14px; border-radius: 12px; font-size: 0.92rem; }

.panel {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.categories-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.category-card {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.07);
}
.category-card h3 { margin: 10px 0 6px; }
.category-card p { margin: 0; color: var(--muted); }
.category-card .count { color: var(--accent-3); font-size: 0.9rem; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.filter-bar input,
.filter-bar select {
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #fff;
  padding: 0 14px;
  outline: none;
}
.filter-bar input { min-width: min(100%, 360px); flex: 1 1 360px; }
.filter-bar select { min-width: 180px; }

.breadcrumbs {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.breadcrumbs a { color: #fff; }
.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 22px;
  padding: 20px;
}
.detail-poster {
  position: relative;
  aspect-ratio: 3 / 4.2;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.detail-poster .poster-bg { filter: saturate(0.95); }
.detail-info { padding: 8px 6px; }
.detail-info h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 2.6vw, 3rem); line-height: 1.08; }
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}
.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
}
.detail-synopsis {
  color: rgba(237,234,227,.82);
  font-size: 1rem;
  margin: 0 0 18px;
}
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.player-wrap { padding: 20px; }
.player-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.player-stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}
.player-stage video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.play-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(10,14,19,0.5);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}
.player-note { color: var(--muted); margin-top: 10px; }

.related-grid { padding: 20px; }
.related-grid .grid-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.long-copy {
  padding: 20px;
}
.long-copy h2 { margin-top: 0; }
.long-copy p { color: rgba(237,234,227,.82); }
.long-copy .text-block {
  display: grid;
  gap: 14px;
}

.site-footer {
  margin-top: 28px;
  padding: 26px 0 36px;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02));
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer-inner h3 { margin: 0 0 8px; }
.footer-inner p { margin: 0; color: var(--muted); max-width: 56ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-links a { color: rgba(255,255,255,.8); }
.footer-links a:hover { color: var(--accent-3); }

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(17,23,34,0.88);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s ease;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.muted { color: var(--muted); }
.center { text-align: center; }
.spacer { height: 6px; }

@media (max-width: 1080px) {
  .grid-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .categories-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { min-height: unset; }
  .hero-slider { min-height: 460px; }
  .hero-slide-content { max-width: 88%; }
  .detail-hero { grid-template-columns: 280px 1fr; }
}

@media (max-width: 780px) {
  .container { width: min(100vw - 24px, 100%); }
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(10,14,19,0.98);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .site-nav.open { display: flex; }
  .site-nav a { border-radius: 14px; }
  .grid-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { padding: 16px; }
  .hero-slide { padding: 12px; }
  .hero-slide-inner { min-height: 420px; }
  .hero-slide-content { max-width: 100%; padding: 18px; }
  .hero-controls, .hero-dots { position: static; margin-top: 12px; }
  .hero-slider { min-height: unset; }
  .detail-hero { grid-template-columns: 1fr; }
  .related-grid .grid-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .grid-tiles,
  .categories-overview,
  .related-grid .grid-tiles { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.1rem; }
  .section { padding: 24px 0; }
  .detail-hero, .player-wrap, .related-grid, .long-copy { padding: 16px; }
  .player-head { flex-direction: column; align-items: flex-start; }
}
