
:root {
  --bg: #050816;
  --bg-soft: #0b1120;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.95);
  --line: rgba(148, 163, 184, 0.16);
  --text: #e5eefc;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #f97316;
  --accent-3: #60a5fa;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --wrap: min(1240px, calc(100vw - 32px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.12), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.10), transparent 24%),
    linear-gradient(180deg, #040712 0%, #060816 50%, #03040a 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.wrap { width: var(--wrap); margin: 0 auto; }
.hidden { display: none !important; }
.page-shell { padding-top: 92px; }
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .4px; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 14px;
  color: #09111f;
  background: linear-gradient(135deg, #34d399, #22d3ee 55%, #f97316);
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.22);
}
.brand-text { font-size: 1.08rem; }
.nav { display: flex; align-items: center; gap: 10px; }
.nav a {
  color: var(--muted);
  padding: 12px 16px;
  border-radius: 999px;
  transition: .25s ease;
}
.nav a:hover, .nav a.active {
  color: white;
  background: rgba(255,255,255,.06);
}
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; margin: 4px auto;
  background: #fff; border-radius: 999px;
}
.hero {
  width: var(--wrap);
  margin: 24px auto 0;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 35%),
    radial-gradient(circle at left, rgba(249, 115, 22, 0.10), transparent 26%);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-carousel {
  position: relative;
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.44);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
  padding: 42px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .55s ease, transform .55s ease;
  background:
    linear-gradient(135deg, rgba(2,6,23,.16), rgba(2,6,23,.88)),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-copy { max-width: 640px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(34, 211, 238, .12);
  border: 1px solid rgba(34, 211, 238, .18);
  color: #c7f9ff; font-size: .92rem;
}
.hero h1, .hero h2 { margin: 18px 0 12px; line-height: 1.06; letter-spacing: -.03em; }
.hero h1 { font-size: clamp(2.6rem, 4vw, 5rem); }
.hero p { margin: 0; color: rgba(226, 232, 240, .86); font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  transition: .24s ease; cursor: pointer; font-weight: 700;
}
.btn-primary { background: linear-gradient(135deg, #22d3ee, #3b82f6); color: #05111d; }
.btn-secondary { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: white; }
.btn:hover { transform: translateY(-1px); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.04); color: #d7e1f4; font-size: .86rem;
}
.hero-poster {
  min-height: 460px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(2,6,23,.10), rgba(2,6,23,.78)),
    var(--poster-bg);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .36);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
}
.hero-poster strong { font-size: 1.14rem; }
.hero-poster span { color: rgba(255,255,255,.78); font-size: .93rem; }
.hero-controls {
  position: absolute; inset: auto 18px 18px auto;
  display: flex; gap: 10px;
}
.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(7, 12, 24, .55); color: white; cursor: pointer;
}
.section { margin: 26px auto 0; width: var(--wrap); }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 18px;
  margin-bottom: 16px;
}
.section-head h2 { margin: 0; font-size: 1.45rem; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(148,163,184,.14); color: #dbe7f7;
}
.panel {
  background: var(--panel);
  border: 1px solid rgba(148,163,184,.14);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 20px;
  backdrop-filter: blur(18px);
}
.searchbar {
  display: grid;
  grid-template-columns: 1.3fr .7fr auto;
  gap: 12px;
  align-items: center;
}
.searchbar input, .searchbar select, .toolbar input, .toolbar select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  padding: 0 14px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(2,6,23,.55);
  color: var(--text);
  outline: none;
}
.searchbar input::placeholder, .toolbar input::placeholder { color: rgba(148,163,184,.9); }
.searchbar .btn { min-height: 48px; }
.toolbar {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr auto;
  gap: 12px;
  margin-bottom: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(15,23,42,.82);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34,211,238,.32);
  box-shadow: 0 26px 72px rgba(0,0,0,.34);
}
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background-image: var(--poster-bg);
  background-size: cover;
  background-position: center;
}
.poster::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,.06), rgba(2,6,23,.82));
}
.poster-badge, .poster-type {
  position: absolute; z-index: 1; left: 12px; padding: 6px 10px;
  border-radius: 999px; font-size: .78rem; backdrop-filter: blur(10px);
}
.poster-badge {
  top: 12px; background: rgba(34,211,238,.18); border: 1px solid rgba(34,211,238,.28); color: #d8fbff;
}
.poster-type {
  bottom: 12px; background: rgba(2,6,23,.42); border: 1px solid rgba(255,255,255,.12); color: #fff;
}
.movie-card-body { padding: 14px 14px 16px; }
.movie-title { font-weight: 800; line-height: 1.35; font-size: 1.04rem; }
.movie-meta { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.movie-summary { color: #c9d5ea; font-size: .92rem; margin: 10px 0 0; }
.two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}
.feature-list { display: grid; gap: 14px; }
.mini-card {
  display: grid; grid-template-columns: 84px 1fr; gap: 14px;
  padding: 12px; border-radius: 18px; border: 1px solid rgba(148,163,184,.12);
  background: rgba(255,255,255,.03);
}
.mini-poster {
  border-radius: 14px;
  aspect-ratio: 2/3;
  background-image: var(--poster-bg);
  background-size: cover; background-position: center;
}
.mini-info { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.mini-info strong { font-size: 1rem; }
.mini-info span { color: var(--muted); font-size: .88rem; }
.category-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
}
.category-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px; min-height: 136px;
  border-radius: 22px; border: 1px solid rgba(148,163,184,.14);
  background:
    linear-gradient(135deg, rgba(34,211,238,.10), rgba(249,115,22,.10)),
    rgba(15,23,42,.75);
}
.category-card strong { font-size: 1.08rem; }
.category-card span { color: var(--muted); font-size: .92rem; }
.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.meta-box {
  padding: 16px; border-radius: 20px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(148,163,184,.12);
}
.meta-box b { display: block; font-size: 1.1rem; margin-top: 6px; }
.detail-hero {
  display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: stretch;
}
.detail-poster {
  border-radius: 26px; min-height: 520px; background-image: var(--poster-bg); background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.detail-poster::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,.10), rgba(2,6,23,.84));
}
.detail-poster .poster-label {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1;
  display: flex; flex-direction: column; gap: 8px;
}
.detail-panel {
  padding: 24px; border-radius: 26px; border: 1px solid rgba(148,163,184,.14);
  background: var(--panel); box-shadow: var(--shadow);
}
.breadcrumb { color: var(--muted); margin-bottom: 12px; font-size: .95rem; }
.detail-title { margin: 0; font-size: clamp(2rem, 3vw, 3.4rem); line-height: 1.1; }
.detail-sub { margin: 14px 0 0; color: #d7e2f3; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.detail-block {
  margin-top: 20px; padding: 20px; border-radius: 22px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(148,163,184,.12);
}
.detail-block h3 { margin: 0 0 10px; }
.detail-block p { margin: 0; color: #d9e5f7; }
.video-shell {
  margin-top: 18px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,.12);
  background: rgba(2,6,23,.60);
}
.video-topline { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.player-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,.10);
}
.player-wrap video {
  width: 100%; aspect-ratio: 16/9; display: block; background: #000;
}
.player-overlay {
  position: absolute; inset: auto 20px 20px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, rgba(2,6,23,.78), rgba(15,23,42,.42));
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 14px;
}
.related-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.site-footer {
  margin-top: 30px;
  border-top: 1px solid rgba(148,163,184,.14);
  background: rgba(3,7,18,.72);
  backdrop-filter: blur(18px);
}
.footer-grid {
  width: var(--wrap); margin: 0 auto; padding: 28px 0 40px;
  display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 22px;
}
.footer-logo { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.site-footer h3 { margin: 0 0 10px; }
.site-footer p { margin: 0; color: var(--muted); }
.site-footer a { color: #dbeafe; }
.kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi .meta-box { text-align: left; }
.note { color: var(--muted); font-size: .92rem; }
.filter-empty {
  display: none; padding: 18px; border-radius: 18px; margin-top: 16px;
  background: rgba(255,255,255,.04); border: 1px dashed rgba(148,163,184,.2); color: var(--muted);
}
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav {
    position: absolute; top: 92px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch;
    padding: 12px; background: rgba(3,7,18,.96); border-bottom: 1px solid rgba(148,163,184,.12);
  }
  .nav.is-open { display: flex; }
  .nav a { border-radius: 14px; }
  .hero-slide, .two-col, .detail-hero { grid-template-columns: 1fr; }
  .hero-slide { padding: 22px; }
  .hero-carousel { min-height: auto; }
  .hero-poster, .detail-poster { min-height: 320px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar, .searchbar, .kpi, .meta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-shell { padding-top: 82px; }
  .header-inner { min-height: 82px; }
  .wrap, .hero, .section { width: min(100vw - 20px, 100vw); }
  .hero { padding: 12px; border-radius: 24px; }
  .grid, .related-grid, .category-grid { grid-template-columns: 1fr; }
  .panel, .detail-panel, .video-shell { padding: 16px; border-radius: 20px; }
  .movie-card, .mini-card, .category-card { border-radius: 18px; }
}
