/* ============ NovaPlay TV — design system ============ */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #07050f;
  --bg2: #0d0a1c;
  --card: rgba(22, 16, 44, .55);
  --line: rgba(168, 130, 255, .18);
  --violet: #8b5cf6;
  --purple: #a855f7;
  --magenta: #e879f9;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --text: #f4f1ff;
  --muted: #a69fc4;
  --grad: linear-gradient(120deg, var(--cyan), var(--violet) 45%, var(--magenta));
  --glow: 0 0 24px rgba(168, 85, 247, .55), 0 0 64px rgba(34, 211, 238, .18);
  --r: 20px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.booting { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
:focus { outline: none; }
:focus-visible, .tv-focus {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(34, 211, 238, .18), var(--glow);
}
::selection { background: var(--violet); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--violet), var(--cyan)); border-radius: 10px; }
::-webkit-scrollbar-track { background: #0a0716; }

/* ---------- backgrounds ---------- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -4; }
.grid-floor {
  position: fixed; left: -50%; right: -50%; bottom: -10%; height: 70vh; z-index: -3;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 80px 80px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor 5s linear infinite;
  opacity: .55;
}
@keyframes floor { to { background-position: 0 80px, 80px 0; } }
.noise {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scanlines {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px);
}
.cursor {
  position: fixed; top: 0; left: 0; width: 320px; height: 320px; margin: -160px 0 0 -160px; z-index: -1;
  pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .22), transparent 65%);
  transition: opacity .3s;
}

/* ---------- glass ---------- */
.glass {
  background: var(--card);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-radius: var(--r);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* ---------- boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 200; background: #05030b;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: opacity .7s, visibility .7s, transform .7s;
}
.boot.done { opacity: 0; visibility: hidden; transform: scale(1.08); }
.boot-logo { font-size: clamp(2rem, 7vw, 4rem); letter-spacing: .25em; font-weight: 300; display: flex; align-items: center; gap: 18px; text-shadow: var(--glow); }
.boot-logo b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.boot-bar { width: min(380px, 70vw); height: 4px; background: #1b1433; border-radius: 4px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: var(--glow); animation: load 1.7s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes load { to { width: 100%; } }
.boot-log { font: 12px/1.6 var(--mono); color: var(--cyan); min-height: 6.5em; opacity: .8; }

/* ---------- logo ---------- */
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; position: relative; flex: none;
  background: conic-gradient(from var(--ang), var(--cyan), var(--violet), var(--magenta), var(--cyan));
  animation: spin 6s linear infinite; box-shadow: var(--glow);
}
.logo-mark::after {
  content: ""; position: absolute; inset: 3px; border-radius: 8px; background: var(--bg);
  clip-path: none;
}
.logo-mark::before {
  content: ""; position: absolute; z-index: 2; inset: 0; background: var(--grad);
  clip-path: polygon(38% 28%, 74% 50%, 38% 72%);
}
@keyframes spin { to { --ang: 360deg; } }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { font-weight: 300; letter-spacing: .22em; font-size: 1.05rem; }
.brand-text b { font-weight: 800; }
.brand-text em { font-style: normal; font-weight: 700; margin-left: .5em; font-size: .62em; padding: 2px 7px; border-radius: 6px; background: var(--grad); color: #07050f; letter-spacing: .1em; vertical-align: middle; }
.brand.small .logo-mark { width: 26px; height: 26px; }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 80;
  width: min(1240px, calc(100% - 28px)); padding: 10px 14px 10px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 999px; transition: top .3s, background .3s;
}
.topbar.scrolled { background: rgba(10, 7, 22, .8); }
.menu { display: flex; gap: 4px; position: relative; }
.menu a { padding: 8px 16px; border-radius: 999px; font-size: .92rem; color: var(--muted); transition: .25s; }
.menu a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.menu a.active { color: #fff; background: linear-gradient(120deg, rgba(34, 211, 238, .18), rgba(168, 85, 247, .3)); box-shadow: inset 0 0 0 1px rgba(168, 130, 255, .4); }
.status { display: flex; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; font-size: .78rem; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.pad.on { color: var(--lime); border-color: rgba(163, 230, 53, .5); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); display: inline-block; animation: blink 2s infinite; }
.chip .dot.off { background: #f43f5e; box-shadow: 0 0 10px #f43f5e; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 14px;
  font-weight: 600; letter-spacing: .02em; position: relative; isolation: isolate; transition: transform .25s, box-shadow .25s;
}
.btn.primary { background: var(--grad); color: #07050f; box-shadow: var(--glow); }
.btn.primary::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); background-size: 250% 100%; background-position: 150% 0; z-index: -1; transition: background-position .8s; }
.btn.primary:hover::before { background-position: -50% 0; }
.btn.ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.btn.ghost:hover { border-color: var(--cyan); box-shadow: 0 0 24px rgba(34, 211, 238, .25); }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); transition: .2s; font-size: 1.1rem; }
.icon-btn:hover { background: rgba(168, 85, 247, .3); transform: translateY(-2px); }
.icon-btn.on { color: var(--magenta); background: rgba(232, 121, 249, .15); border-color: var(--magenta); }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; padding: 130px max(24px, 5vw) 70px; position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; max-width: 1400px; margin: 0 auto;
}
.eyebrow { display: inline-flex; gap: 10px; align-items: center; font: 600 .75rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); padding: 6px 14px; border: 1px solid rgba(34, 211, 238, .3); border-radius: 999px; background: rgba(34, 211, 238, .06); }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: 1; font-weight: 800; letter-spacing: -.035em; margin: 22px 0; background: linear-gradient(180deg, #fff 20%, #b9a5ff); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: .0; background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }
.glitch:hover::before { opacity: .8; background: var(--cyan); -webkit-background-clip: text; background-clip: text; transform: translate(-3px, 1px); clip-path: inset(10% 0 55% 0); animation: gl 0.5s steps(2) infinite; }
.glitch:hover::after { opacity: .8; background: var(--magenta); -webkit-background-clip: text; background-clip: text; transform: translate(3px, -1px); clip-path: inset(55% 0 8% 0); animation: gl 0.4s steps(2) infinite reverse; }
@keyframes gl { 50% { transform: translate(2px, 2px); } }
.lead { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 54ch; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 32px 0 38px; }
.stats { display: flex; gap: 14px; list-style: none; flex-wrap: wrap; }
.stats li { padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); min-width: 104px; }
.stats b { display: block; font-size: 1.45rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font-size: .75rem; color: var(--muted); }

.hero-stage { perspective: 1400px; display: grid; place-items: center; }
.tv3d { position: relative; width: min(600px, 100%); transform-style: preserve-3d; transition: transform .15s ease-out; }
.tv-frame {
  padding: 12px; border-radius: 26px; position: relative;
  background: linear-gradient(145deg, #2a1f4d, #0d0a1c); box-shadow: 0 40px 100px rgba(0, 0, 0, .7), 0 0 80px rgba(139, 92, 246, .35);
}
.tv-frame::before { content: ""; position: absolute; inset: -2px; border-radius: 28px; z-index: -1; background: conic-gradient(from var(--ang), var(--cyan), var(--violet), var(--magenta), var(--cyan)); animation: spin 5s linear infinite; filter: blur(2px); }
.tv-screen { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; position: relative; background: #05030b; }
#heroViz { width: 100%; height: 100%; display: block; }
.tv-hud { position: absolute; inset: 14px 16px auto; display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .12em; }
.live { display: inline-flex; gap: 7px; align-items: center; font-weight: 700; color: #fff; background: rgba(244, 63, 94, .85); padding: 3px 10px; border-radius: 6px; }
.live i { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: blink 1s infinite; }
.tv-eq { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 4px; align-items: flex-end; height: 32px; }
.tv-eq i { width: 5px; border-radius: 2px; background: var(--grad); height: 20%; animation: eq 1s ease-in-out infinite alternate; }
.tv-eq i:nth-child(odd) { animation-duration: .7s; }
.tv-eq i:nth-child(3n) { animation-duration: 1.3s; }
.tv-eq i:nth-child(4n) { animation-delay: .2s; }
@keyframes eq { to { height: 100%; } }
.tv-stand { width: 28%; height: 14px; margin: 0 auto; background: linear-gradient(#2a1f4d, #0d0a1c); border-radius: 0 0 14px 14px; }
.float { position: absolute; padding: 10px 16px; border-radius: 14px; display: grid; transform: translateZ(70px); animation: bob 5s ease-in-out infinite; }
.float b { font-size: .95rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.float span { font-size: .7rem; color: var(--muted); }
.f1 { top: -22px; right: -18px; }
.f2 { bottom: 30px; left: -30px; animation-delay: -1.5s; }
.f3 { bottom: -26px; right: 8%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateZ(70px) translateY(-12px); } }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; transform: translateX(-50%); }
.scroll-hint i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--cyan); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { to { transform: translateY(16px); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(139, 92, 246, .06); transform: rotate(-1deg); margin: 20px -20px 40px; padding: 14px 0; }
.track { display: flex; gap: 40px; width: max-content; animation: marq 28s linear infinite; font: 800 1.6rem var(--font); letter-spacing: .2em; white-space: nowrap; }
.track span { -webkit-text-stroke: 1px rgba(196, 170, 255, .6); color: transparent; }
.track span:nth-child(4n+1) { color: var(--text); -webkit-text-stroke: 0; }
.track span:nth-child(even) { color: var(--cyan); -webkit-text-stroke: 0; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: 1400px; margin: 0 auto; padding: 70px max(24px, 5vw); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.03em; margin-top: 12px; line-height: 1.05; }
h3 { font-size: 1.15rem; }
.reveal { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .8s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- live ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; color: var(--muted); transition: .2s; }
.filters button:hover { color: #fff; }
.filters button.on { background: var(--grad); color: #07050f; font-weight: 600; border-color: transparent; }
.live-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 22px; }
.player-card { padding: 14px; overflow: hidden; }
.video-wrap { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; }
.video-wrap video { width: 100%; height: 100%; display: block; background: #000; }
.video-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(circle at 50% 50%, #1a1240, #05030b 70%); color: var(--muted); transition: opacity .4s; }
.video-overlay.hide { opacity: 0; pointer-events: none; }
.pulse-ring { width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--violet); position: relative; }
.pulse-ring::before, .pulse-ring::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--cyan); animation: ring 2s infinite; }
.pulse-ring::after { animation-delay: 1s; }
@keyframes ring { to { transform: scale(2.2); opacity: 0; } }
.video-msg { position: absolute; left: 12px; bottom: 56px; right: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(244, 63, 94, .85); font-size: .85rem; display: none; }
.video-msg.show { display: block; }
.player-info { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 16px 6px 6px; flex-wrap: wrap; }
.player-info p { color: var(--muted); font-size: .9rem; }
.player-actions { display: flex; gap: 8px; }
.player-stats { display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 6px 2px; font-size: .72rem; color: var(--cyan); border-top: 1px dashed var(--line); margin-top: 12px; }
.channel-list { padding: 10px; max-height: 560px; overflow: auto; display: grid; gap: 6px; align-content: start; }
.ch { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid transparent; text-align: left; transition: .2s; position: relative; }
.ch:hover { background: rgba(255, 255, 255, .05); transform: translateX(4px); }
.ch.active { background: linear-gradient(90deg, rgba(34, 211, 238, .15), rgba(168, 85, 247, .2)); border-color: rgba(168, 130, 255, .45); }
.ch .num { width: 54px; height: 40px; border-radius: 10px; display: grid; place-items: center; font: 700 .95rem var(--mono); background: var(--c, #3b2a7a); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.ch b { display: block; font-size: .95rem; }
.ch small { color: var(--muted); font-size: .76rem; }
.ch .heart { color: var(--magenta); font-size: .9rem; opacity: 0; }
.ch.fav .heart { opacity: 1; }
.ch.active .num { animation: pulseNum 1.6s infinite; }
@keyframes pulseNum { 50% { box-shadow: 0 0 20px var(--cyan); } }

/* ---------- movies ---------- */
.rail { display: flex; gap: 20px; overflow-x: auto; padding: 14px 6px 30px; scroll-snap-type: x proximity; }
.poster { flex: none; width: 230px; aspect-ratio: 2/3; border-radius: 20px; position: relative; overflow: hidden; scroll-snap-align: start; text-align: left; border: 1px solid var(--line); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; transform-style: preserve-3d; background: var(--pbg); }
.poster::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .35), transparent 50%); opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light; }
.poster:hover::before, .poster.tv-focus::before { opacity: 1; }
.poster:hover, .poster:focus-visible { transform: translateY(-10px) scale(1.04); box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 40px var(--pglow, rgba(139, 92, 246, .5)); }
.poster svg.art { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster .meta { position: absolute; inset: auto 0 0; padding: 60px 16px 16px; background: linear-gradient(transparent, rgba(5, 3, 11, .95)); }
.poster .meta b { display: block; font-size: 1.05rem; }
.poster .meta span { font-size: .78rem; color: var(--muted); }
.poster .tag { position: absolute; top: 12px; left: 12px; font: 700 .65rem var(--mono); padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .55); border: 1px solid var(--line); letter-spacing: .1em; }
.poster .play { position: absolute; right: 14px; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #07050f; opacity: 0; transform: scale(.6); transition: .3s; }
.poster:hover .play, .poster.tv-focus .play { opacity: 1; transform: none; }

/* ---------- games ---------- */
.games-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.game-stage { padding: 18px; }
.game-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.score { display: flex; gap: 18px; font-size: .8rem; color: var(--muted); align-items: center; }
.score b { color: var(--cyan); font-size: 1.1rem; margin-left: 4px; }
.canvas-wrap { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #04020a; box-shadow: inset 0 0 60px rgba(139, 92, 246, .2); }
#gameCanvas { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.game-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 3, 11, .7); backdrop-filter: blur(4px); transition: opacity .3s; text-align: center; }
.game-overlay.hide { opacity: 0; pointer-events: none; }
.game-overlay p { margin-bottom: 14px; color: var(--muted); }
.touch-pad { display: none; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.touch-pad button { padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 1.1rem; }
.touch-pad button:active { background: var(--violet); }
@media (pointer: coarse) { .touch-pad { display: grid; } }
.game-cards { display: grid; gap: 16px; align-content: start; }
.gcard { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 16px; text-align: left; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); transition: .3s; position: relative; overflow: hidden; }
.gcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .08) 50%, transparent 60%); transform: translateX(-100%); transition: transform .7s; }
.gcard:hover::after { transform: translateX(100%); }
.gcard:hover, .gcard.sel { transform: translateX(6px); border-color: var(--cyan); box-shadow: 0 0 30px rgba(34, 211, 238, .2); }
.gcard.sel { background: linear-gradient(120deg, rgba(34, 211, 238, .1), rgba(168, 85, 247, .2)); }
.gcard .ico { width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; font-size: 2rem; background: var(--gbg); box-shadow: 0 0 24px var(--gglow); }
.gcard h4 { font-size: 1.05rem; }
.gcard p { font-size: .85rem; color: var(--muted); }
.gcard .badge { display: inline-block; margin-top: 6px; font: 700 .65rem var(--mono); letter-spacing: .1em; padding: 3px 8px; border-radius: 6px; background: rgba(163, 230, 53, .12); color: var(--lime); border: 1px solid rgba(163, 230, 53, .4); }
.gcard.soon { opacity: .6; cursor: not-allowed; }
.gcard.soon .badge { background: rgba(255, 255, 255, .06); color: var(--muted); border-color: var(--line); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { padding: 26px; position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
.tile.wide { grid-column: span 2; }
.tile:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, .5); }
.tile::before { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; background: radial-gradient(circle, rgba(139, 92, 246, .4), transparent 70%); transition: .5s; }
.tile:hover::before { transform: scale(1.5); }
.tile h4 { font-size: 1.1rem; margin-bottom: 8px; position: relative; }
.tile p { color: var(--muted); font-size: .92rem; position: relative; }
.spark { height: 70px; margin-top: 16px; display: flex; align-items: flex-end; gap: 4px; position: relative; }
.spark i { flex: 1; background: var(--grad); border-radius: 3px 3px 0 0; opacity: .85; transition: height .6s; }
.dpad { width: 84px; height: 84px; margin-top: 14px; position: relative; }
.dpad i { position: absolute; width: 28px; height: 28px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line); border-radius: 8px; animation: dp 3.2s infinite; }
.dpad i:nth-child(1) { top: 0; left: 28px; }
.dpad i:nth-child(2) { top: 28px; right: 0; animation-delay: .8s; }
.dpad i:nth-child(3) { bottom: 0; left: 28px; animation-delay: 1.6s; }
.dpad i:nth-child(4) { top: 28px; left: 0; animation-delay: 2.4s; }
@keyframes dp { 0%, 20%, 100% { background: rgba(255, 255, 255, .1); } 8% { background: var(--cyan); box-shadow: 0 0 18px var(--cyan); } }
.padviz { display: flex; gap: 10px; margin-top: 16px; }
.padviz i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); transition: .1s; }
.padviz i.on { background: var(--magenta); border-color: var(--magenta); box-shadow: 0 0 18px var(--magenta); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; position: relative; }
.pills span { font: .75rem var(--mono); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }

/* ---------- footer / toast ---------- */
.footer { text-align: center; padding: 50px 24px 70px; display: grid; gap: 10px; justify-items: center; border-top: 1px solid var(--line); margin-top: 40px; }
.footer .mono { font-size: .75rem; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 30px); padding: 12px 22px; z-index: 120; opacity: 0; pointer-events: none; transition: .35s; border-radius: 999px; font-size: .9rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- fullscreen "TV mode" ---------- */
.player-card:fullscreen { background: #000; padding: 0; border: 0; border-radius: 0; display: grid; grid-template-rows: 1fr auto; }
.player-card:fullscreen .video-wrap { aspect-ratio: auto; border-radius: 0; }
.player-card:fullscreen .player-stats { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-stage { order: -1; }
  .live-layout, .games-layout { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .channel-list { max-height: 420px; }
}
@media (max-width: 760px) {
  .menu { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); padding: 6px; border-radius: 999px; background: rgba(10, 7, 22, .92); border: 1px solid var(--line); backdrop-filter: blur(18px); z-index: 85; width: calc(100% - 24px); justify-content: space-between; }
  .menu a { padding: 8px 9px; font-size: .75rem; }
  .status .chip:not(.pad) + .chip { display: none; }
  #padTxt { display: none; }
  .topbar { padding: 8px 12px; }
  .brand-text { font-size: .9rem; }
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .f1, .f2, .f3 { display: none; }
  .poster { width: 170px; }
  .footer { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
}
/* telas de TV grandes */
@media (min-width: 1900px) { html { font-size: 19px; } }
body.using-pad :focus { outline: 2px solid var(--cyan); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(34,211,238,.18), var(--glow); }

/* ---------- showcase: parede 3D de telas em movimento ---------- */
.menu a.hot { color: #07050f; background: var(--grad); font-weight: 700; }
.showcase { max-width: 1500px; margin: 0 auto; padding: 60px max(24px, 5vw) 100px; display: grid; grid-template-columns: .9fr 1.3fr; gap: 30px; align-items: center; position: relative; }
.show-copy h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin: 18px 0; }
.show-copy h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feat { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; }
.feat li { padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.feat b { display: block; font-size: 1.3rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wall-3d { perspective: 1600px; height: min(640px, 80vh); position: relative; mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.wall-3d::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 50%, rgba(139,92,246,.18), transparent 70%); pointer-events: none; }
.wall { height: 100%; display: flex; gap: 18px; justify-content: center; transform: rotateX(18deg) rotateY(-18deg) rotateZ(8deg) scale(1.02); transform-style: preserve-3d; transition: transform .6s; }
.wall-3d:hover .wall { transform: rotateX(8deg) rotateY(-8deg) rotateZ(3deg) scale(1.04); }
.wcol { width: 34%; overflow: hidden; }
.wtrack { display: grid; gap: 18px; animation: wup 38s linear infinite; }
.wcol.c1 .wtrack { animation-name: wdown; animation-duration: 46s; }
.wcol.c2 .wtrack { animation-duration: 54s; }
@keyframes wup { to { transform: translateY(-50%); } }
@keyframes wdown { from { transform: translateY(-50%); } to { transform: none; } }
.wtile { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 30px rgba(139,92,246,.25); margin: 0; background: #05030c; }
.wtile canvas { width: 100%; height: auto; display: block; image-rendering: auto; }
.wtile::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px), radial-gradient(120% 100% at 50% 50%, transparent 60%, rgba(0,0,0,.5)); pointer-events: none; }
.wtile figcaption { position: absolute; left: 10px; bottom: 8px; z-index: 2; font: 700 .65rem var(--mono); letter-spacing: .16em; display: flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: rgba(5,3,12,.75); border: 1px solid var(--line); }
.wtile figcaption i { width: 6px; height: 6px; border-radius: 50%; background: #f43f5e; animation: blink 1s infinite; }
@media (max-width: 1050px) { .showcase { grid-template-columns: 1fr; } .wall-3d { height: 460px; } }
@media (max-width: 560px) { .wcol { width: 44%; } .wcol.c2 { display: none; } .feat { grid-template-columns: 1fr 1fr; } }
.pwa-install { position: fixed; right: 16px; bottom: 16px; z-index: 96; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; font: 600 .9rem var(--font); color: #07050f; background: var(--grad); box-shadow: var(--glow); animation: pwaIn .5s; }
.pwa-install .pwa-x { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.2); font-size: .7rem; }
@keyframes pwaIn { from { transform: translateY(30px); opacity: 0; } }
html.is-app .pwa-install { display: none; }
@media (max-width: 760px) { .pwa-install { bottom: 80px; } }
