/* 3nabi stream — Vercel-style dark theme */
:root {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --panel: #0e0e10;
  --panel-2: #131316;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --fg: #ededed;
  --muted: #a1a1a1;
  --faint: #6b6b6b;
  --white: #fff;
  --accent: #ffffff;
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  --maxw: 1100px;
  --maxw-wide: 1320px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Cairo', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: var(--panel-2); border: 1px solid var(--border); padding: .12em .42em; border-radius: 6px; color: #e3e3e3; }

/* ambient glow */
.glow {
  position: fixed; inset: -30vh 0 auto 0; height: 70vh; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, rgba(88, 101, 242, 0.18), rgba(120, 80, 240, 0.07) 40%, transparent 70%);
  filter: blur(10px);
}

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: var(--maxw-wide); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(0, 0, 0, 0.62);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.nav-inner.wide { max-width: var(--maxw-wide); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #fff, #8b8b8b); box-shadow: 0 0 14px rgba(255,255,255,.5); }
.brand-sub { color: var(--faint); font-weight: 500; margin-left: 2px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.user { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; padding: 5px 10px 5px 5px; border: 1px solid var(--border); border-radius: 999px; transition: border-color .15s, background .15s; }
.user:hover { border-color: var(--border-strong); background: var(--panel); }
.user img { border-radius: 50%; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font: inherit; font-weight: 600; font-size: 14px; border-radius: 999px; padding: 9px 16px; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .15s, border-color .15s, opacity .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-primary { background: var(--white); color: #000; }
.btn-primary:hover { opacity: .88; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--panel); border-color: #2c2c2c; }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: var(--discord-hover); }
.btn-tg { background: #2aabee; color: #fff; }
.btn-tg:hover { background: #1f97d6; }
.tg-login { margin-top: 18px; display: flex; justify-content: center; }

/* ---------- auth / centered cards ---------- */
.auth { min-height: calc(100vh - 60px - 60px); display: grid; place-items: center; padding: 48px 0; }
.auth-card {
  width: 100%; max-width: 460px; text-align: center;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border); border-radius: 18px; padding: 40px 34px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.03em; margin: 12px 0 8px; }
.auth-badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }
.auth-badge.warn { color: #ffd9a8; border-color: rgba(255, 170, 80, .35); background: rgba(255, 170, 80, .07); }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 18px; }
.grad { background: linear-gradient(120deg, #fff, #9aa7ff 60%, #c4a7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); margin: 6px 0 0; }
.fine { color: var(--faint); font-size: 12.5px; margin-top: 16px; }
.fine a { color: var(--muted); text-decoration: underline; }
.steps { text-align: left; color: var(--muted); font-size: 14px; line-height: 1.9; margin: 18px 0 0; padding-left: 18px; }
.steps code { color: #e7e7e7; }

/* ---------- hero ---------- */
.hero { position: relative; border-radius: 18px; overflow: hidden; margin: 28px 0 36px; min-height: 360px; display: flex; align-items: flex-end; border: 1px solid var(--border); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); transform: scale(1.03); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.15) 100%), linear-gradient(0deg, rgba(0,0,0,.9), transparent 60%); }
.hero-body { position: relative; padding: 40px; max-width: 620px; }
.hero-tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-title { font-size: clamp(30px, 5vw, 52px); letter-spacing: -0.03em; line-height: 1.02; margin: 10px 0 12px; }
.hero-desc { color: #cfcfcf; font-size: 15px; max-width: 520px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.hero-meta { color: var(--muted); font-size: 14px; }

/* ---------- rows + grid ---------- */
.row { margin: 8px 0 48px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.row-head h2 { font-size: 20px; letter-spacing: -0.02em; margin: 0; }
.search { background: var(--panel); border: 1px solid var(--border); color: var(--fg); border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 14px; width: 240px; max-width: 50vw; transition: border-color .15s, background .15s; }
.search:focus { outline: none; border-color: var(--border-strong); background: var(--panel-2); }
.search::placeholder { color: var(--faint); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card-poster { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--panel); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-poster { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 16px 40px rgba(0,0,0,.55); }
.card:hover .card-poster img { transform: scale(1.06); }
.card-play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.card-play svg { color: #000; background: #fff; border-radius: 50%; padding: 12px; width: 22px; height: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.card:hover .card-play { opacity: 1; background: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,.15)); }
.poster-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-size: 44px; font-weight: 800; color: rgba(255,255,255,.9); background: linear-gradient(135deg, hsl(var(--h), 55%, 22%), hsl(calc(var(--h) + 40), 60%, 12%)); }
.poster-fallback.sm { font-size: 20px; }
.card-meta { padding: 0 2px; }
.card-title { font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; }
.card-sub { color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }
.empty { color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); padding: 40px; text-align: center; }
.card.is-hidden { display: none; }

/* ---------- watch ---------- */
.back { display: inline-block; color: var(--muted); font-size: 14px; margin: 24px 0 16px; }
.back:hover { color: var(--fg); }
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding-bottom: 56px; }
.watch-main { min-width: 0; }
.player { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #000; box-shadow: var(--shadow); }
.player video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }
.watch-info { padding: 22px 2px 0; }
.watch-info h1 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 8px; }
.watch-meta { color: var(--muted); font-size: 14px; }
.watch-desc { color: #c9c9c9; margin-top: 14px; max-width: 70ch; }
.watch-side h3 { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 14px; }
.side-list { display: flex; flex-direction: column; gap: 12px; }
.side-item { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; padding: 6px; border-radius: var(--radius-sm); transition: background .15s; }
.side-item:hover { background: var(--panel); }
.side-item img, .side-item .poster-fallback { width: 120px; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.side-title { font-size: 14px; font-weight: 600; }
.side-sub { font-size: 12.5px; color: var(--faint); margin-top: 2px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--border); color: var(--faint); font-size: 13px; padding: 22px 0; margin-top: 24px; }
.foot .wrap { padding-top: 0; padding-bottom: 0; }

@media (max-width: 860px) {
  .watch { grid-template-columns: 1fr; }
  .hero-body { padding: 26px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
}

/* ---------- live + chat (Twitch-style) ---------- */
.live { padding: 20px 0 40px; }
.stage { display: flex; gap: 18px; align-items: stretch; }
.player-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.player { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #000; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }

.status { position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; backdrop-filter: blur(8px); border: 1px solid var(--border); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; }
.status.on { background: rgba(237,33,58,.18); color: #ff6076; border-color: rgba(237,33,58,.45); }
.status.on .dot { background: #ff2d4d; animation: pulse 1.6s infinite; }
.status.off { background: rgba(255,255,255,.06); color: var(--muted); }
.status.off .dot { background: var(--faint); }

.overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; text-align: center; background: radial-gradient(60% 60% at 50% 45%, rgba(22,22,28,.55), rgba(0,0,0,.92)); }
.overlay-inner { padding: 24px; max-width: 380px; }
.overlay-inner h2 { font-size: 20px; letter-spacing: -0.02em; margin: 14px 0 6px; }
.pulse { width: 50px; height: 50px; border-radius: 50%; margin: 0 auto; background: rgba(255,255,255,.05); border: 1px solid var(--border); position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,45,77,.5); } 70% { box-shadow: 0 0 0 8px rgba(255,45,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,45,77,0); } }

.live-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 16px 4px 0; }
.live-info h1 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 4px; }
.live-info .muted { font-size: 14px; max-width: 60ch; }
.viewers { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; white-space: nowrap; border: 1px solid var(--border); border-radius: 8px; padding: 6px 11px; }
.viewers .vdot { width: 7px; height: 7px; border-radius: 50%; background: #ff2d4d; }

.unmute { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); z-index: 4; background: rgba(0,0,0,.78); color: #fff; border: 1px solid var(--border-strong); border-radius: 999px; padding: 9px 18px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.unmute:hover { background: rgba(0,0,0,.92); }
.fsbtn { position: absolute; top: 12px; right: 12px; z-index: 4; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--border); background: rgba(0,0,0,.55); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); }
.fsbtn:hover { background: rgba(0,0,0,.82); }

/* chat panel */
.chat { position: relative; flex: 0 0 340px; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; max-height: calc(100vh - 132px); }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.chat-online { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.chat-online .odot { width: 7px; height: 7px; border-radius: 50%; background: #3fb950; box-shadow: 0 0 8px rgba(63,185,80,.7); }
.chat-msgs { flex: 1 1 auto; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 11px; scrollbar-width: thin; scrollbar-color: #2a2a2a transparent; }
.chat-msgs::-webkit-scrollbar { width: 8px; }
.chat-msgs::-webkit-scrollbar-thumb { background: #222; border-radius: 8px; }
.cmsg { display: flex; gap: 9px; align-items: flex-start; }
.cavatar { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; border: 1px solid var(--border); object-fit: cover; }
.cbody { font-size: 13.5px; line-height: 1.45; word-break: break-word; min-width: 0; }
.cname { font-weight: 700; color: #c7cfff; margin-inline-end: 6px; }
.ctext { color: #e6e6e6; }
.cmod { display: none; gap: 4px; margin-inline-start: auto; align-self: flex-start; flex: 0 0 auto; }
.cmsg:hover .cmod { display: inline-flex; }
.cmod button { background: transparent; border: 0; cursor: pointer; font-size: 13px; line-height: 1; padding: 2px 3px; border-radius: 6px; }
.cmod button:hover { background: rgba(255,255,255,.08); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1 1 auto; min-width: 0; background: var(--bg-2); border: 1px solid var(--border); color: var(--fg); border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 13.5px; }
.chat-form input:focus { outline: none; border-color: var(--border-strong); }
.chat-form input:disabled { opacity: .5; }
.chat-send { background: var(--white); color: #000; border: none; border-radius: 9px; padding: 0 14px; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; flex: 0 0 auto; }
.chat-send:hover { opacity: .88; }
.chat-icon { flex: 0 0 auto; height: 38px; min-width: 38px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; color: var(--fg); font-size: 17px; line-height: 1; cursor: pointer; }
.chat-icon:hover { border-color: var(--border-strong); }
.chat-icon-gif { font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--muted); }
.chat-foot { padding: 0 14px 10px; font-size: 11.5px; color: var(--faint); }

/* chat emoji + gif pickers */
.picker { position: absolute; left: 10px; right: 10px; bottom: 60px; z-index: 6; background: var(--panel-2); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.6); padding: 8px; }
.picker[hidden] { display: none; }
.emoji-panel { display: flex; flex-wrap: wrap; gap: 2px; max-height: 190px; overflow-y: auto; }
.emoji { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 8px; font-size: 20px; cursor: pointer; }
.emoji:hover { background: rgba(255,255,255,.08); }
.gif-panel { display: flex; flex-direction: column; gap: 8px; }
.gif-search { background: var(--bg-2); border: 1px solid var(--border); color: var(--fg); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; }
.gif-search:focus { outline: none; border-color: var(--border-strong); }
.gif-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 240px; overflow-y: auto; }
.gif-thumb { width: 100%; height: 84px; object-fit: cover; border-radius: 8px; cursor: pointer; background: var(--panel); border: 1px solid var(--border); }
.gif-thumb:hover { border-color: var(--border-strong); }
.gif-hint { grid-column: 1 / -1; padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.cgif { max-height: 150px; max-width: 100%; border-radius: 10px; display: block; margin-top: 4px; }

@media (max-width: 980px) {
  .stage { flex-direction: column; }
  .chat { flex: 1 1 auto; max-height: 58vh; min-height: 320px; }
}

/* ---------- home hub ---------- */
.hub { padding: 22px 0 52px; }
.hub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.hub-main { min-width: 0; }
.hub-chat { align-self: start; }
.hub-chat .chat { height: 480px; max-height: calc(100vh - 100px); }

/* community predictions (vote who wins) */
.community { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); overflow: hidden; }
.community-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 15px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 13.5px; }
.community-h .sub { font-size: 11.5px; color: var(--faint); font-weight: 500; }
.cpred-list { max-height: 230px; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.cmatch { padding: 2px; }
.cmatch-teams { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.cvote { display: flex; flex-direction: column; gap: 5px; }
.cvote-btn { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-2); color: var(--fg); font: inherit; font-size: 12.5px; cursor: pointer; overflow: hidden; }
.cvote-btn:hover { border-color: var(--border-strong); }
.cvote-btn.sel { border-color: #7aa7ff; }
.cvote-bar { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 0; background: rgba(96,165,250,.16); z-index: 0; transition: width .3s ease; }
.cvote-btn.sel .cvote-bar { background: rgba(96,165,250,.3); }
.cvote-lab { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cvote-pct { position: relative; z-index: 1; flex: 0 0 auto; font-weight: 700; color: var(--muted); }
.cpred-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 12.5px; }

/* mobile chat drawer */
.chat-fab { display: none; }
.chat-backdrop { display: none; }
.chat-close { display: none; flex: 0 0 auto; width: 30px; height: 30px; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--muted); font-size: 15px; cursor: pointer; border-radius: 8px; }
.chat-close:hover { background: rgba(255,255,255,.08); color: var(--fg); }
@keyframes chatslide { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (max-width: 1000px) {
  .chat-fab { display: inline-flex; position: fixed; inset-block-end: 18px; inset-inline-end: 18px; z-index: 56; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--white); color: #000; border: none; font-size: 24px; box-shadow: 0 12px 32px rgba(0,0,0,.55); cursor: pointer; }
  .hub-chat .chat { display: none; }
  .chat-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 58; }
  body.chat-open .chat-fab { display: none; }
  body.chat-open .chat-backdrop { display: block; }
  body.chat-open .chat-close { display: inline-flex; }
  body.chat-open .hub-chat .chat {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    height: 82vh; max-height: 82vh; z-index: 60;
    border-radius: 16px 16px 0 0;
    animation: chatslide .22s ease-out;
  }
}

/* live hero */
.live-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 24px 26px; border-radius: 20px; border: 1px solid var(--border); overflow: hidden; margin-bottom: 26px; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.live-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background: radial-gradient(120% 140% at 90% 0%, rgba(255,255,255,.05), transparent 50%); }
.live-hero:hover { transform: translateY(-2px); }
.live-hero.off { background: linear-gradient(135deg, var(--panel), var(--bg-2)); }
.live-hero.off:hover { border-color: var(--border-strong); }
.live-hero.on { background: linear-gradient(135deg, rgba(237,33,58,.24), rgba(120,28,70,.12)); border-color: rgba(237,33,58,.5); box-shadow: 0 18px 55px rgba(237,33,58,.18); }
.live-hero.on:hover { box-shadow: 0 24px 70px rgba(237,33,58,.3); }
.lh-left { position: relative; z-index: 1; min-width: 0; }
.lh-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.live-hero.on .lh-badge { color: #ff7187; border-color: rgba(237,33,58,.45); background: rgba(237,33,58,.14); }
.lh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.live-hero.on .lh-dot { background: #ff2d4d; animation: pulse 1.5s infinite; }
.lh-title { font-size: clamp(20px, 3.2vw, 28px); font-weight: 800; letter-spacing: -.02em; margin: 13px 0 6px; }
.lh-sub { color: var(--muted); font-size: 14px; }
.lh-cta { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 12px; white-space: nowrap; }
.live-hero.off .lh-cta { background: var(--panel-2); color: var(--fg); border: 1px solid var(--border-strong); }
.live-hero.on .lh-cta { background: #fff; color: #000; }
.lh-arrow { transition: transform .2s ease; }
.live-hero:hover .lh-arrow { transform: translateX(-5px); }
@media (max-width: 560px) { .live-hero { flex-direction: column; align-items: flex-start; gap: 16px; } .lh-cta { width: 100%; justify-content: center; } }

/* section headers */
.section-h { display: flex; align-items: baseline; gap: 12px; margin: 26px 2px 14px; }
.section-h h2 { font-size: 18px; letter-spacing: -.02em; margin: 0; }
.sh-sub { color: var(--faint); font-size: 12.5px; }

.pad { padding: 16px; }

/* prediction cards */
.pred-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pcard { display: flex; flex-direction: column; gap: 13px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); text-decoration: none; color: inherit; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.pcard:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 16px 38px rgba(0,0,0,.5); }
.pcard-q { font-size: 13.5px; font-weight: 600; line-height: 1.45; min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-mid { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcard-pct { display: flex; flex-direction: column; }
.pcard-pct .big { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.pcard-pct .lbl { font-size: 11px; color: var(--faint); margin-top: 5px; text-transform: uppercase; letter-spacing: .05em; }
.spark-wrap { flex: 0 0 auto; }
.spark { width: 128px; height: 42px; display: block; }
.pcard-bar { height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.pcard-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #60a5fa, #a78bfa); }
.pcard-foot { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--faint); }
.pcard-foot .vol { margin-inline-start: auto; color: var(--muted); font-weight: 600; }

/* match cards */
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.mcard { padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); display: flex; flex-direction: column; gap: 12px; transition: transform .16s ease, border-color .16s ease; }
.mcard:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.mcard.is-live { border-color: rgba(237,33,58,.4); }
.mcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mcard-comp { font-size: 11.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team .tn { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team.t-h { justify-content: flex-start; }
.team.t-a { justify-content: flex-end; }
.crest { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.mcard-score { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 0 6px; white-space: nowrap; }
.mbadge { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; white-space: nowrap; }
.mbadge.live { background: rgba(237,33,58,.18); color: #ff7187; }
.mbadge.fin { background: rgba(255,255,255,.06); color: var(--muted); }
.mbadge.sch { background: rgba(96,165,250,.14); color: #7aa7ff; }
.mbadge .blink { width: 6px; height: 6px; border-radius: 50%; background: #ff2d4d; animation: pulse 1.4s infinite; }

/* skeleton loaders */
.skel { border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 37%, var(--panel) 63%); background-size: 400% 100%; animation: shimmer 1.5s ease-in-out infinite; }
.skel-pred { height: 168px; }
.skel-match { height: 96px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

@media (max-width: 1000px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-chat { position: static; }
  .hub-chat .chat { height: 460px; max-height: 70vh; min-height: 0; }
}

/* ---------- admin (ban list) ---------- */
.admin { padding: 26px 0 56px; max-width: 720px; }
.admin h1 { font-size: 24px; letter-spacing: -0.02em; margin: 14px 0 4px; }
.banlist { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.banrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.banleft { display: flex; align-items: center; gap: 11px; min-width: 0; }
.banleft .cavatar { width: 34px; height: 34px; }
.baninfo { min-width: 0; }
.banname { font-weight: 600; font-size: 14.5px; }
.banmeta { font-size: 12px; color: var(--faint); margin-top: 2px; word-break: break-all; }
.banrow .btn { flex: 0 0 auto; }
