
:root {
  color-scheme: dark;
  --bg: #08111f;
  --panel: rgba(14, 24, 46, 0.84);
  --text: #eef3ff;
  --muted: #a6b4d6;
  --soft: #7183b0;
  --accent: #7c6cff;
  --accent-2: #3dc9ff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --site-max: 1280px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 108, 255, 0.24), transparent 30%),
    radial-gradient(circle at top right, rgba(61, 201, 255, 0.16), transparent 26%),
    linear-gradient(180deg, #07101b 0%, #0a1323 36%, #050910 100%);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
.wrap { width: min(calc(100% - 32px), var(--site-max)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 12px; background: #fff; color: #111; padding: 10px 14px; border-radius: 999px; z-index: 100; }
.skip-link:focus { left: 12px; }
.site-header { position: sticky; top: 0; z-index: 60; backdrop-filter: blur(18px); background: rgba(7, 12, 24, 0.74); border-bottom: 1px solid rgba(255,255,255,0.06); }
.header-inner { min-height: 74px; 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: 0.04em; }
.brand-mark { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 14px 35px rgba(124,108,255,0.3); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.02rem; }
.brand-text span { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav a, .nav button { padding: 10px 14px; border-radius: 999px; color: var(--muted); background: transparent; transition: 0.25s ease; }
.nav a:hover, .nav a.active, .nav button:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-toggle { display: none; }
.hero { padding: 22px 0 16px; }
.hero-panel { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); border-radius: calc(var(--radius-xl) + 6px); background: linear-gradient(135deg, rgba(14,26,52,0.92), rgba(8,12,25,0.86)); box-shadow: var(--shadow); }
.hero-panel::before, .hero-panel::after { content: ''; position: absolute; pointer-events: none; }
.hero-panel::before { width: 320px; height: 320px; right: -110px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(61,201,255,0.34), transparent 70%); filter: blur(8px); }
.hero-panel::after { width: 220px; height: 220px; left: -90px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(124,108,255,0.28), transparent 70%); filter: blur(10px); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; padding: 28px; }
.hero-copy { display: grid; gap: 16px; align-content: start; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.08); color: #fff; width: fit-content; font-size: 0.86rem; }
.hero-title { margin: 0; font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.04em; }
.hero-desc { margin: 0; color: var(--muted); max-width: 58ch; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 999px; transition: 0.25s ease; font-weight: 700; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 16px 28px rgba(124,108,255,0.22); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.06); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-pill { padding: 9px 12px; border-radius: 999px; background: rgba(255,255,255,0.07); color: var(--muted); border: 1px solid rgba(255,255,255,0.06); font-size: 0.86rem; }
.hero-slider { position: relative; min-height: 430px; border-radius: 28px; overflow: hidden; background: rgba(7,10,19,0.45); border: 1px solid rgba(255,255,255,0.08); }
.hero-slide { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; opacity: 0; transform: translateY(10px) scale(0.99); transition: opacity 0.55s ease, transform 0.55s ease; }
.hero-slide.is-active { opacity: 1; transform: translateY(0) scale(1); z-index: 2; }
.hero-cover { position: absolute; inset: 0; background: linear-gradient(135deg, var(--c1), var(--c2)); opacity: 0.95; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,20,0.14), rgba(6,10,20,0.88)); }
.hero-slide-body { position: relative; z-index: 1; padding: 26px; display: grid; align-content: start; gap: 12px; }
.slide-title { margin: 0; font-size: clamp(1.6rem, 2.8vw, 2.8rem); line-height: 1.1; }
.slide-text { margin: 0; max-width: 32ch; color: rgba(255,255,255,0.9); line-height: 1.7; }
.slide-foot { position: relative; z-index: 1; padding: 18px 26px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid rgba(255,255,255,0.08); background: linear-gradient(180deg, rgba(5,7,12,0), rgba(5,7,12,0.64)); }
.hero-thumbs { display: grid; gap: 10px; }
.hero-thumb { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; padding: 11px; border-radius: 18px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06); transition: 0.25s ease; }
.hero-thumb:hover, .hero-thumb.is-active { transform: translateX(-2px); background: rgba(255,255,255,0.1); }
.hero-thumb-cover { width: 72px; height: 90px; border-radius: 14px; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; color: #fff; font-size: 1.45rem; font-weight: 800; }
.hero-thumb h3 { margin: 0 0 6px; font-size: 0.96rem; }
.hero-thumb p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.section { padding: 18px 0 6px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 0 16px; }
.section-head h2 { margin: 0; font-size: 1.45rem; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.search { position: relative; min-width: min(100%, 320px); flex: 1 1 260px; }
.search input { width: 100%; padding: 14px 18px; padding-left: 46px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08); outline: none; background: rgba(255,255,255,0.06); color: var(--text); }
.search input::placeholder { color: rgba(255,255,255,0.42); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: rgba(255,255,255,0.52); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid rgba(255,255,255,0.06); transition: 0.25s ease; }
.chip:hover, .chip.is-active { background: rgba(124,108,255,0.2); color: #fff; border-color: rgba(124,108,255,0.34); }
.cards-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 16px; }
.movie-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 12px 34px rgba(0,0,0,0.18); transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease; min-height: 100%; }
.movie-card:hover { transform: translateY(-4px); border-color: rgba(124,108,255,0.26); background: rgba(20,30,55,0.96); }
.poster { position: relative; aspect-ratio: 2 / 3; background: linear-gradient(135deg, var(--c1), var(--c2)); overflow: hidden; }
.poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.18) 50%, rgba(0,0,0,0.64)); }
.poster-inner { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; }
.poster-year { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 7px 10px; border-radius: 999px; background: rgba(0,0,0,0.25); color: #fff; font-size: 0.8rem; }
.poster-title { font-size: 1.2rem; font-weight: 800; line-height: 1.08; text-shadow: 0 10px 16px rgba(0,0,0,0.36); }
.poster-foot { display: flex; justify-content: space-between; gap: 8px; align-items: end; }
.poster-type { font-size: 0.8rem; color: rgba(255,255,255,0.9); }
.poster-badge { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,0.16); backdrop-filter: blur(8px); font-size: 0.8rem; }
.card-body { display: grid; gap: 9px; padding: 14px 14px 16px; }
.card-body h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.62; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px; color: var(--soft); font-size: 0.8rem; }
.inline-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-tags span { padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--muted); font-size: 0.78rem; }
.panel { background: var(--panel); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.panel-pad { padding: 18px; }
.category-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.category-card { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); border: 1px solid rgba(255,255,255,0.06); }
.category-card h3 { margin: 0; font-size: 1.04rem; }
.category-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.category-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--soft); font-size: 0.82rem; }
.list-rank { display: grid; gap: 12px; }
.rank-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06); }
.rank-num { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, rgba(124,108,255,0.24), rgba(61,201,255,0.18)); }
.rank-copy h3 { margin: 0 0 5px; font-size: 1rem; }
.rank-copy p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.rank-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
.rank-actions .btn { padding: 10px 14px; }
.detail-hero { padding: 20px 0 10px; }
.detail-layout { display: grid; grid-template-columns: 330px 1fr; gap: 18px; }
.detail-poster { position: relative; aspect-ratio: 2 / 3; border-radius: 26px; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow); }
.detail-poster-inner { position: absolute; inset: 0; display: grid; align-content: space-between; padding: 20px; background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.56)); }
.detail-poster h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.08; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-tags span { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,0.14); backdrop-filter: blur(8px); font-size: 0.8rem; }
.detail-panel { display: grid; gap: 16px; align-content: start; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.84rem; }
.detail-summary, .detail-review, .detail-info { background: var(--panel); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 18px; }
.detail-summary h2, .detail-review h2, .detail-info h2, .player-shell h2, .related-shell h2 { margin: 0 0 12px; font-size: 1.2rem; }
.detail-summary p, .detail-review p { margin: 0; color: var(--muted); line-height: 1.85; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 16px; }
.info-item { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06); }
.info-item strong { display: block; margin-bottom: 4px; color: #fff; }
.player-shell, .related-shell, .detail-related-shell { background: var(--panel); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 18px; }
.player-frame { position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(124,108,255,0.22), rgba(61,201,255,0.14)); border: 1px solid rgba(255,255,255,0.07); }
.player-frame video { width: 100%; height: 100%; display: block; background: #000; object-fit: cover; }
.player-overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.player-play-btn { pointer-events: auto; width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.16); color: #fff; backdrop-filter: blur(10px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.player-play-btn svg { width: 30px; height: 30px; margin-left: 3px; }
.player-note { margin-top: 12px; color: var(--muted); line-height: 1.75; font-size: 0.92rem; }
.related-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; }
.footer { margin-top: 26px; padding: 24px 0 32px; color: var(--muted); }
.footer-inner { padding: 18px; border-radius: 24px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.backtop { position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 16px 32px rgba(0,0,0,0.3); display: grid; place-items: center; opacity: 0; transform: translateY(16px); pointer-events: none; transition: 0.25s ease; }
.backtop.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.empty-state { grid-column: 1 / -1; padding: 28px; border-radius: 24px; background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.12); color: var(--muted); }
.muted { color: var(--muted); }
.nav-mobile { display: none; }
@media (max-width: 1200px) {
  .cards-grid, .related-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .hero-grid, .detail-layout { grid-template-columns: 1fr; }
  .hero-slider { min-height: 380px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 16px; right: 16px; top: 74px; padding: 14px; border-radius: 24px; background: rgba(7,12,24,0.96); border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow); display: none; flex-direction: column; align-items: stretch; }
  .nav.is-open { display: flex; }
  .hero-grid { padding: 18px; }
  .hero-slider { min-height: 340px; }
  .cards-grid, .related-grid, .category-strip, .info-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rank-item { grid-template-columns: 52px 1fr; }
  .rank-actions { grid-column: 1 / -1; justify-content: start; }
}
@media (max-width: 560px) {
  .wrap { width: min(calc(100% - 20px), var(--site-max)); }
  .header-inner { gap: 10px; }
  .brand-text span { display: none; }
  .hero { padding-top: 14px; }
  .hero-grid, .hero-slide-body, .slide-foot, .panel-pad, .detail-summary, .detail-review, .detail-info, .player-shell, .related-shell, .category-card { padding-left: 14px; padding-right: 14px; }
  .hero-slider { min-height: 320px; }
  .cards-grid, .related-grid, .category-strip, .info-grid { grid-template-columns: 1fr; }
}
