:root {
  --bg: #0b0e0f;
  --bg-2: #111416;
  --panel: #181b1e;
  --panel-2: #212529;
  --panel-3: #2b3036;
  --border: #262a2f;
  --border-2: #343a41;
  --text: #eff2f4;
  --text-2: #c6cbd0;
  --muted: #8b939b;
  --accent: #53fc18;
  --accent-ink: #081002;
  --accent-soft: rgba(83, 252, 24, .12);
  --danger: #ff4d4f;
  --warn: #ffb020;
  --radius: 12px;
  --radius-sm: 8px;
  --topbar: 60px;
  --chat-w: 340px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--topbar);
  display: flex; align-items: center; gap: 28px; padding: 0 20px;
  background: rgba(11, 14, 15, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.02em; font-size: 19px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 17px; overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topnav { display: flex; gap: 4px; }
.topnav a { padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; transition: .15s; }
.topnav a:hover { color: var(--text); background: var(--panel); }
.topnav a.active { color: var(--text); }
.topnav a.active::after { content: ''; display: block; height: 2px; background: var(--accent); margin: 4px auto -6px; width: 18px; border-radius: 2px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.live-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 12px; letter-spacing: .06em;
}
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-ink); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Buttons & form ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--radius-sm); border: 0; cursor: pointer; font-weight: 700; font-size: 14px; white-space: nowrap;
  background: var(--panel-2); color: var(--text); transition: background .15s, transform .05s, opacity .15s;
}
.btn:hover { background: var(--panel-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.1); }
.btn-ghost { background: transparent; border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--panel); }
.btn-danger { background: rgba(255, 77, 79, .14); color: #ff7173; }
.btn-danger:hover { background: rgba(255, 77, 79, .24); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; min-width: 0; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .01em; }

/* ---------- Watch layout ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) var(--chat-w); min-height: calc(100vh - var(--topbar)); }
.watch.chat-hidden { grid-template-columns: minmax(0, 1fr) 0; }
.watch.chat-hidden .chat { display: none; }
.watch-main { min-width: 0; overflow: hidden; }
.watch.theater .player-wrap { max-height: calc(100vh - var(--topbar)); }

.player-wrap { position: relative; background: #000; aspect-ratio: 16 / 9; max-height: calc(100vh - var(--topbar) - 120px); width: 100%; }
.player-wrap video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }

/* Player */
.player { position: absolute; inset: 0; user-select: none; outline: none; }
.player.hide-ui { cursor: none; }
.player .p-overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.player .p-big {
  pointer-events: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff; transition: transform .15s, background .15s;
}
.player .p-big:hover { transform: scale(1.06); background: var(--accent); color: var(--accent-ink); }
.player .p-big svg { width: 34px; height: 34px; margin-left: 4px; }
.player .p-spinner { width: 54px; height: 54px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .15); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player .p-unmute {
  position: absolute; top: 16px; left: 16px; pointer-events: auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 8px; border: 0; cursor: pointer; background: rgba(0, 0, 0, .7); color: #fff; font-weight: 700; font-size: 13px;
}
.player .p-unmute svg { width: 18px; height: 18px; }
.player .p-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--text-2); font-weight: 600; padding: 20px; background: rgba(0,0,0,.5); }

.player .p-controls {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85)); transition: opacity .2s;
}
.player.hide-ui .p-controls, .player.hide-ui .p-top { opacity: 0; pointer-events: none; }
.p-top { position: absolute; top: 0; left: 0; right: 0; padding: 14px 16px 30px; background: linear-gradient(rgba(0,0,0,.7), transparent); display: flex; gap: 10px; align-items: center; transition: opacity .2s; pointer-events: none; }
.p-top .p-title { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px #000; }
.p-row { display: flex; align-items: center; gap: 4px; }
.p-btn { width: 40px; height: 40px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
.p-btn:hover { background: rgba(255, 255, 255, .12); }
.p-btn svg { width: 22px; height: 22px; }
.p-vol { display: flex; align-items: center; }
.p-vol input { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: var(--accent); }
.p-vol:hover input, .p-vol input:focus { width: 84px; opacity: 1; margin: 0 8px 0 2px; }
.p-time { font-size: 13px; font-weight: 600; color: #e8e8e8; margin-left: 8px; font-variant-numeric: tabular-nums; }
.p-live {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 4px 9px; border-radius: 6px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font-weight: 900; font-size: 12px; letter-spacing: .06em;
}
.p-live i { width: 7px; height: 7px; border-radius: 50%; background: #9a9a9a; }
.p-live.at-edge { background: var(--accent); color: var(--accent-ink); }
.p-live.at-edge i { background: var(--accent-ink); animation: pulse 1.4s infinite; }
.p-spacer { flex: 1; }
.p-progress { position: relative; height: 16px; display: flex; align-items: center; cursor: pointer; margin: 0 6px 4px; }
.p-progress .bar { position: relative; height: 4px; width: 100%; background: rgba(255, 255, 255, .22); border-radius: 4px; transition: height .12s; }
.p-progress:hover .bar { height: 6px; }
.p-progress .buf { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .3); border-radius: 4px; }
.p-progress .fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 4px; }
.p-progress .knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .12s; }
.p-progress:hover .knob { transform: scale(1); }
.p-progress .tip { position: absolute; bottom: 22px; transform: translateX(-50%); background: rgba(0,0,0,.85); padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; display: none; font-variant-numeric: tabular-nums; }
.p-progress:hover .tip { display: block; }

/* Offline screen */
.offline {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(1200px 500px at 20% 0%, rgba(83,252,24,.10), transparent 60%), radial-gradient(800px 400px at 100% 100%, rgba(77,171,247,.08), transparent 60%), #0d1012;
}
.offline .bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.35) blur(2px); transform: scale(1.03); }
.offline .card { position: relative; text-align: center; padding: 24px; max-width: 520px; }
.offline .avatar-xl { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; }
.offline h2 { margin: 0 0 6px; font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.offline p { margin: 0 0 18px; color: var(--text-2); }
.offline .off-badge { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,.1); font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--text-2); }

/* Avatar */
.avatar { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--panel-3); display: grid; place-items: center; font-weight: 900; font-size: 22px; color: var(--accent); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-ring { position: relative; padding: 3px; border-radius: 50%; border: 2px solid transparent; flex: none; }
.avatar-ring.is-live { border-color: var(--accent); }
.avatar-ring .tag { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 4px; letter-spacing: .06em; }

/* Channel info */
.ch-info { display: flex; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.ch-info .meta { flex: 1; min-width: 0; }
.ch-info .name { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 900; letter-spacing: -.01em; }
.ch-info .verified { width: 18px; height: 18px; color: var(--accent); }
.ch-info .title { margin: 4px 0 8px; font-size: 15px; font-weight: 600; color: var(--text-2); line-height: 1.45; word-break: break-word; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--panel-2); font-size: 12px; font-weight: 700; color: var(--text-2); }
.chip.cat { background: var(--accent-soft); color: var(--accent); }
.ch-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ch-stats .row { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--text-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.ch-stats .row span { display: inline-flex; gap: 6px; align-items: center; }
.ch-stats svg { width: 16px; height: 16px; }
.viewers { color: #ff6b6b; }
.ch-actions { display: flex; gap: 8px; }

/* Tabs */
.tabs { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs a, .tabs button { flex: none; padding: 14px 14px 12px; font-weight: 700; font-size: 14px; color: var(--muted); border: 0; background: none; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .active { color: var(--text); border-bottom-color: var(--accent); }
.section { padding: 22px 24px 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.section-head h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.section-head a { color: var(--accent); font-weight: 700; font-size: 13px; }

/* Video grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 16px; }
.vcard { display: block; min-width: 0; }
.vcard .thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--panel-2); transition: transform .2s, box-shadow .2s; }
.vcard:hover .thumb { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--accent); }
.vcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.vcard .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.badge-tl, .badge-br, .badge-bl { position: absolute; padding: 3px 7px; border-radius: 5px; font-size: 12px; font-weight: 800; background: rgba(0, 0, 0, .78); color: #fff; font-variant-numeric: tabular-nums; }
.badge-tl { top: 8px; left: 8px; }
.badge-br { bottom: 8px; right: 8px; }
.badge-bl { bottom: 8px; left: 8px; }
.badge-live { background: var(--accent); color: var(--accent-ink); }
.vcard .info { display: flex; gap: 10px; padding-top: 10px; }
.vcard .info .t { font-weight: 700; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard .info .s { font-size: 13px; color: var(--muted); margin-top: 4px; }
.vcard .info .c { font-size: 12px; color: var(--accent); font-weight: 700; margin-top: 3px; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border-2); border-radius: var(--radius); }
.empty svg { width: 40px; height: 40px; margin-bottom: 10px; opacity: .6; }
.empty b { display: block; color: var(--text); margin-bottom: 4px; font-size: 15px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h4 { margin: 0 0 12px; font-size: 15px; font-weight: 800; }
.bio { white-space: pre-wrap; line-height: 1.65; color: var(--text-2); margin: 0; }
.socials { display: flex; flex-direction: column; gap: 8px; }
.socials a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--panel-2); font-weight: 700; font-size: 14px; }
.socials a:hover { background: var(--panel-3); }
.socials svg { width: 18px; height: 18px; }
.banner { height: 200px; background: linear-gradient(120deg, #133d06, #0d1a10 45%, #0b0e0f); background-size: cover; background-position: center; border-bottom: 1px solid var(--border); }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; border-left: 1px solid var(--border); background: var(--bg-2); height: calc(100vh - var(--topbar)); position: sticky; top: var(--topbar); min-width: 0; }
.chat-head { height: 52px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 16px; border-bottom: 1px solid var(--border); font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.chat-head .sub { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 12px; margin-left: 8px; }
.chat-list { flex: 1; overflow-y: auto; padding: 10px 6px 10px 12px; overscroll-behavior: contain; }
.msg { position: relative; padding: 5px 8px; border-radius: 6px; line-height: 1.5; font-size: 14px; word-wrap: break-word; overflow-wrap: anywhere; }
.msg:hover { background: rgba(255, 255, 255, .04); }
.msg .time { color: var(--muted); font-size: 11px; margin-right: 6px; font-variant-numeric: tabular-nums; }
.msg .user { font-weight: 800; cursor: default; }
.msg .badge { display: inline-grid; place-items: center; vertical-align: -3px; width: 18px; height: 18px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); margin-right: 4px; }
.msg .badge svg { width: 12px; height: 12px; }
.msg .text { color: var(--text); }
.msg .text .mention { background: var(--accent-soft); color: var(--accent); padding: 0 3px; border-radius: 4px; font-weight: 700; }
.msg.system { color: var(--muted); font-size: 13px; font-style: italic; text-align: center; padding: 8px; }
.msg.host-msg { background: rgba(83, 252, 24, .06); }
.msg .mod { position: absolute; right: 4px; top: 2px; display: none; gap: 2px; background: var(--panel-2); border-radius: 6px; padding: 2px; border: 1px solid var(--border-2); }
.msg:hover .mod { display: flex; }
.msg .mod button { width: 26px; height: 26px; border: 0; background: none; color: var(--text-2); border-radius: 4px; cursor: pointer; display: grid; place-items: center; }
.msg .mod button:hover { background: var(--panel-3); color: var(--danger); }
.msg .mod svg { width: 14px; height: 14px; }
.chat-new { position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 3; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.chat-foot { flex: none; padding: 10px 12px 14px; border-top: 1px solid var(--border); position: relative; }
.chat-input { display: flex; align-items: flex-end; gap: 6px; background: var(--panel-2); border: 1px solid var(--border-2); border-radius: 10px; padding: 4px 4px 4px 12px; transition: border-color .15s; }
.chat-input:focus-within { border-color: var(--accent); }
.chat-input textarea { flex: 1; background: none; border: 0; outline: none; resize: none; padding: 8px 0; max-height: 96px; line-height: 1.4; font-size: 14px; }
.chat-input .p-btn { width: 34px; height: 34px; color: var(--muted); }
.chat-input .p-btn:hover { color: var(--text); background: var(--panel-3); }
.chat-input .p-btn svg { width: 20px; height: 20px; }
.chat-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; font-size: 12px; color: var(--muted); }
.chat-meta .who { display: inline-flex; align-items: center; gap: 6px; overflow: hidden; }
.chat-meta .who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-meta button.link { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font-size: 12px; text-decoration: underline; }
.chat-err { color: #ff7173; font-size: 12px; margin-top: 6px; }
.emoji-pop { position: absolute; bottom: calc(100% - 4px); left: 12px; right: 12px; background: var(--panel); border: 1px solid var(--border-2); border-radius: 12px; padding: 10px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; box-shadow: 0 10px 30px rgba(0,0,0,.5); z-index: 5; }
.emoji-pop button { border: 0; background: none; font-size: 21px; height: 36px; border-radius: 6px; cursor: pointer; }
.emoji-pop button:hover { background: var(--panel-3); }
.join { display: flex; flex-direction: column; gap: 8px; }
.join p { margin: 0; font-size: 13px; color: var(--text-2); }

/* VOD page */
.vod-info { padding: 18px 24px; border-bottom: 1px solid var(--border); }
.vod-info h1 { margin: 0 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.35; }
.vod-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.vod-meta .left { display: flex; align-items: center; gap: 12px; }
.vod-meta .who { font-weight: 800; }
.vod-meta .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - var(--topbar)); }
.dash-side { border-right: 1px solid var(--border); padding: 18px 12px; background: var(--bg-2); position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); display: flex; flex-direction: column; }
.dash-side .h { font-size: 11px; color: var(--muted); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 0 12px 10px; }
.dash-side a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.dash-side a svg { width: 19px; height: 19px; opacity: .85; }
.dash-side a:hover { background: var(--panel); color: var(--text); }
.dash-side a.active { background: var(--panel-2); color: var(--text); }
.dash-side a.active svg { color: var(--accent); opacity: 1; }
.dash-side .bottom { margin-top: auto; }
.dash-main { padding: 26px 30px 60px; min-width: 0; }
.dash-main h1 { margin: 0 0 4px; font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.dash-main .lead { margin: 0 0 22px; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat .v { font-size: 26px; font-weight: 900; margin-top: 6px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.status-card { display: flex; gap: 18px; align-items: center; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); flex: none; }
.status-dot.on { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); animation: pulse 1.4s infinite; }
.status-card .big { font-size: 20px; font-weight: 900; }
.status-card .small { color: var(--muted); font-size: 13px; margin-top: 2px; }
.preview { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.dash-chat { height: 620px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: sticky; top: calc(var(--topbar) + 20px); }
.dash-chat .chat { height: 100%; position: static; border: 0; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 40px; line-height: 1.55; color: var(--text-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.steps b { color: var(--text); }
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.kv td:first-child { color: var(--muted); width: 45%; }
.kv td:last-child { font-weight: 700; }
.kv tr:last-child td { border-bottom: 0; }
.vlist { display: flex; flex-direction: column; }
.vrow { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.vrow:last-child { border-bottom: 0; }
.vrow .thumb { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--panel-2); position: relative; }
.vrow .thumb img { width: 100%; height: 100%; object-fit: cover; }
.vrow .t { font-weight: 700; margin-bottom: 4px; word-break: break-word; }
.vrow .s { font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.vrow .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.status-tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; text-transform: uppercase; letter-spacing: .05em; }
.status-tag.ready { background: var(--accent-soft); color: var(--accent); }
.status-tag.processing, .status-tag.recording { background: rgba(255, 176, 32, .14); color: var(--warn); }
.status-tag.failed { background: rgba(255, 77, 79, .14); color: #ff7173; }
.status-tag.private { background: var(--panel-3); color: var(--text-2); }
.upload-box { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; margin-bottom: 18px; }
.upload-box .pv { aspect-ratio: 1; border-radius: 50%; background: var(--panel-2) center/cover; border: 1px solid var(--border-2); }
.upload-box.wide { grid-template-columns: 1fr; }
.upload-box.wide .pv { aspect-ratio: 5 / 1; border-radius: 10px; }
.upload-box .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.login { min-height: calc(100vh - var(--topbar)); display: grid; place-items: center; padding: 20px; }
.login .card { width: 100%; max-width: 380px; padding: 30px; }
.login h1 { margin: 0 0 6px; font-size: 22px; font-weight: 900; }
.login p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 32px; height: 32px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.swatches button.on { border-color: #fff; }
.banned { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.notice { padding: 12px 14px; border-radius: 10px; background: rgba(255, 176, 32, .1); color: #ffd27a; font-size: 13px; line-height: 1.5; border: 1px solid rgba(255,176,32,.2); }

/* Toast */
.toasts { position: fixed; z-index: 100; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--panel-2); border: 1px solid var(--border-2); padding: 11px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: tin .2s ease-out; }
.toast.ok { border-color: rgba(83,252,24,.4); }
.toast.err { border-color: rgba(255,77,79,.5); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

.skeleton { background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-chat { position: static; height: 520px; }
}
@media (max-width: 960px) {
  .watch, .watch.chat-hidden { display: flex; flex-direction: column; }
  .watch-main { display: contents; }
  .player-wrap { order: 1; position: sticky; top: var(--topbar); z-index: 20; }
  .ch-info, .vod-info { order: 2; }
  .watch.chat-hidden .chat { display: flex; }
  .chat { order: 3; position: static; height: 420px; border-left: 0; border-bottom: 1px solid var(--border); }
  .tabs, #tabBody, #more { order: 4; }
  .player-wrap { max-height: none; }
  .about { grid-template-columns: 1fr; }
  .hide-mobile { display: none !important; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 8px; gap: 4px; border-right: 0; border-bottom: 1px solid var(--border); }
  .dash-side .h { display: none; }
  .dash-side a { flex: none; margin: 0; }
  .dash-side .bottom { margin: 0; display: flex; }
  .dash-main { padding: 20px 16px 60px; }
}
@media (max-width: 640px) {
  .topbar { gap: 12px; padding: 0 12px; }
  .brand-name { display: none; }
  .topnav a { padding: 8px 10px; }
  .ch-info { padding: 14px 16px; flex-wrap: wrap; }
  .ch-stats { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .avatar { width: 46px; height: 46px; }
  .tabs, .section, .vod-info { padding-left: 16px; padding-right: 16px; }
  .grid { grid-template-columns: 1fr; }
  .vrow { grid-template-columns: 110px minmax(0, 1fr); }
  .vrow .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .row2 { grid-template-columns: 1fr; }
  .p-vol input { display: none; }
  .p-btn.opt { display: none; }
  .offline h2 { font-size: 20px; }
  .offline .avatar-xl { width: 64px; height: 64px; }
  .offline p { font-size: 14px; }
  .banner { height: 120px; }
}

/* =========================================================
   v2: kualitas, klip, studio, unggah, penyimpanan
   ========================================================= */
.p-qbadge { position: absolute; top: 4px; right: 2px; background: var(--accent); color: var(--accent-ink); font-size: 9px; font-weight: 900; padding: 1px 3px; border-radius: 3px; line-height: 1.2; }
.p-btn[data-a="settings"] { position: relative; }
.p-menu { position: absolute; right: 12px; bottom: 64px; z-index: 6; width: 230px; background: rgba(18, 21, 23, .96); backdrop-filter: blur(10px); border: 1px solid var(--border-2); border-radius: 12px; padding: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.p-menu-sec + .p-menu-sec { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.p-menu .h { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 4px 8px 6px; }
.p-menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; border: 0; background: none; color: var(--text); padding: 8px 10px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 14px; }
.p-menu button:hover { background: rgba(255,255,255,.08); }
.p-menu button.on { color: var(--accent); }
.p-menu button svg { width: 16px; height: 16px; }
.p-speeds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.p-speeds button { justify-content: center; padding: 7px 4px; font-size: 13px; }
.p-speeds button.on { background: var(--accent-soft); }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px; padding: 4px; }
.seg button { border: 0; background: none; color: var(--text-2); font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.seg button:hover { color: var(--text); background: var(--panel-2); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.seg button:disabled { opacity: .5; cursor: not-allowed; }
.seg button svg { width: 17px; height: 17px; }
.seg.sm button { padding: 6px 10px; font-size: 12px; }
.seg.big { display: flex; }
.seg.big button { flex: 1; justify-content: center; padding: 12px; font-size: 14px; }

.clip-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--accent) !important; color: var(--accent-ink) !important; font-size: 11px !important; letter-spacing: .05em; }
.clip-badge svg { width: 12px; height: 12px; }
.chip svg { width: 13px; height: 13px; }

/* Modal */
.modal-bg { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.65); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: tin .15s ease-out; }
.modal { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--border-2); border-radius: 16px; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal.wide { max-width: 640px; }
.modal-x { position: absolute; top: 12px; right: 12px; color: var(--muted); }
.modal-title { margin: 0 0 6px; font-size: 20px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.modal-title svg { width: 22px; height: 22px; color: var(--accent); }
.modal-sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.modal .seg { display: flex; }
.modal .seg button { flex: 1; justify-content: center; }
.clip-result { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border-2); margin-bottom: 14px; }
.clip-result.ok { border-color: rgba(83, 252, 24, .35); background: var(--accent-soft); }
.clip-result > svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.clip-result .hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.p-spinner.sm { width: 26px; height: 26px; border-width: 3px; border-radius: 50%; border-style: solid; border-color: rgba(255,255,255,.15); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }

/* Editor klip */
.clip-editor { margin-top: 16px; background: var(--panel); border: 1px solid var(--border-2); border-radius: 14px; padding: 16px; }
.ce-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ce-head b { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; }
.ce-head b svg { width: 18px; height: 18px; color: var(--accent); }
.ce-head .p-btn { width: 32px; height: 32px; color: var(--muted); }
.ce-track { position: relative; height: 40px; background: repeating-linear-gradient(90deg, var(--panel-2) 0 6px, var(--panel-3) 6px 7px); border-radius: 8px; cursor: pointer; overflow: hidden; }
.ce-win { position: absolute; top: 0; bottom: 0; background: var(--accent-soft); border: 2px solid var(--accent); border-radius: 8px; transition: left .15s, width .15s; pointer-events: none; }
.ce-head-pos { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; pointer-events: none; }
.ce-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; }
.ce-time { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.ce-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.ce-btns svg { width: 14px; height: 14px; }

/* Halaman klip */
.clip-page { max-width: 1200px; margin: 0 auto; }
.clip-page .player-wrap { max-height: 72vh; }
.clip-page .player-wrap.portrait { aspect-ratio: 9 / 16; max-width: 420px; margin: 0 auto; }
.watch.no-chat .chat { display: none !important; }
.watch.no-chat { grid-template-columns: 1fr !important; }

/* Unggah */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; border: 2px dashed var(--border-2); border-radius: 14px; background: var(--bg-2); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .drop-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 4px; }
.drop .drop-ic svg { width: 22px; height: 22px; }
.drop span { color: var(--muted); font-size: 13px; }
.up-item { margin-top: 10px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
.up-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 8px; }
.up-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-st { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.up-item.done .up-st { color: var(--accent); }
.up-item.fail .up-st { color: #ff7173; }
.pbar { height: 6px; background: var(--panel-3); border-radius: 6px; overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width .2s; }
.pbar.big { height: 10px; margin-top: 10px; }
.pbar.danger i { background: var(--danger); }
.status-tag svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 2px; }
.status-tag.hd { background: rgba(77, 171, 247, .14); color: #74c0fc; }
.status-tag.queued { background: rgba(255, 176, 32, .14); color: var(--warn); }
.vrow .thumb .ph { display: grid; place-items: center; height: 100%; color: var(--muted); font-weight: 800; }

/* Studio */
.studio-card { padding: 0; overflow: hidden; }
.studio-pv { position: relative; aspect-ratio: 16 / 9; background: #000; }
.studio-pv video { width: 100%; height: 100%; object-fit: contain; display: block; }
.studio-pv video.mirror { transform: scaleX(-1); }
.studio-empty { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 20px; background: radial-gradient(600px 300px at 50% 0%, var(--accent-soft), transparent 70%), #0d1012; }
.studio-empty svg { width: 40px; height: 40px; opacity: .7; }
.studio-badge { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px #000; }
.studio-meter { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 4px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; }
.studio-meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s; }
.studio-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; flex-wrap: wrap; }
.studio-stats { font-size: 13px; color: var(--text-2); font-weight: 600; }
.btn-go { height: 46px; padding: 0 26px; font-size: 15px; margin-left: auto; }

/* Penyimpanan */
.stat .v.warn { color: var(--warn); }
.stat .v small { font-size: 15px; color: var(--muted); font-weight: 700; }
.disk-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--text-2); }
.kv-status { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.kv-status b { display: inline-flex; gap: 6px; align-items: center; }
.kv-status b svg { width: 16px; height: 16px; }
.kv-status .ok { color: var(--accent); }
.kv-status .bad { color: #ff7173; }
.card h4 svg { width: 17px; height: 17px; vertical-align: -3px; margin-right: 4px; color: var(--accent); }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0 6px; cursor: pointer; font-size: 14px; }
.switch-row .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 26px; background: var(--panel-3); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); }
.checks { display: flex; gap: 16px; flex-wrap: wrap; }
.checks label { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--text); font-size: 14px; cursor: pointer; }
.checks input { accent-color: var(--accent); width: 16px; height: 16px; }
.guide code { font-family: var(--mono); font-size: 12px; background: var(--bg-2); border: 1px solid var(--border-2); padding: 2px 6px; border-radius: 5px; color: var(--text); word-break: break-all; }
.guide .steps li { padding-bottom: 14px; font-size: 14px; }

@media (max-width: 640px) {
  .p-menu { right: 8px; bottom: 56px; }
  .seg.big button { padding: 10px 6px; font-size: 12px; flex-direction: column; gap: 4px; }
  .btn-go { width: 100%; margin: 0; }
  .studio-bar .btn { flex: 1; }
  .clip-editor { margin: 12px 0 0; }
  .ce-btns .btn { flex: 1 1 auto; }
}

/* =========================================================
   v3: multi-saluran & olahraga
   ========================================================= */
.topnav { overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.stage-chip { margin-left: 6px; height: 24px; font-size: 12px; }

/* Papan skor (scorebug) */
.sb-wrap { position: absolute; top: 14px; left: 14px; z-index: 4; pointer-events: none; max-width: calc(100% - 28px); }
.scorebug { display: inline-flex; flex-direction: column; font-variant-numeric: tabular-nums; filter: drop-shadow(0 6px 18px rgba(0,0,0,.45)); animation: tin .25s ease-out; }
.sb-main { display: flex; align-items: stretch; background: #0d0f11; border-radius: 8px 8px 0 0; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-bottom: 0; }
.sb-team { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 38px; font-weight: 900; font-size: 15px; letter-spacing: .04em; color: #fff; background: #181c20; min-width: 0; }
.sb-team i { width: 5px; align-self: stretch; margin: 7px 0; border-radius: 3px; flex: none; }
.sb-team b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.sb-team.away { flex-direction: row; }
.sb-sets { font-size: 11px; background: rgba(255,255,255,.12); border-radius: 4px; padding: 1px 6px; font-weight: 800; }
.sb-score { width: 40px; display: grid; place-items: center; font-weight: 900; font-size: 20px; color: var(--accent-ink); background: var(--accent); }
.sb-score + .sb-score { border-left: 1px solid rgba(0,0,0,.25); }
.sb-vs { width: 44px; display: grid; place-items: center; font-weight: 900; font-size: 13px; background: var(--accent); color: var(--accent-ink); }
.sb-time { display: flex; flex-direction: column; justify-content: center; padding: 0 12px; background: #0d0f11; min-width: 70px; line-height: 1.15; }
.sb-clock { font-weight: 900; font-size: 16px; color: #fff; }
.sb-period { font-size: 10px; font-weight: 800; color: #aab2ba; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.sb-sub { align-self: flex-start; background: rgba(13,15,17,.92); color: #c6cbd0; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 0 0 8px 8px; border: 1px solid rgba(255,255,255,.08); border-top: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scorebug.finished .sb-period { color: var(--accent); }
.scorebug.combat .sb-team:first-child { background: linear-gradient(90deg, #7f1d1d, #181c20); }
.scorebug.combat .sb-team.away { background: linear-gradient(270deg, #1e3a8a, #181c20); }
.sb-wrap.big { top: 40px; left: 40px; }
.sb-wrap.big .scorebug { zoom: 1.6; }
@media (max-width: 640px) {
  .sb-wrap { top: 8px; left: 8px; }
  .sb-team { height: 30px; font-size: 12px; padding: 0 8px; }
  .sb-score, .sb-vs { width: 30px; font-size: 15px; }
  .sb-time { min-width: 54px; padding: 0 8px; }
  .sb-clock { font-size: 13px; }
  .sb-sub { display: none; }
  .scorebug.combat .sb-team b { max-width: 80px; }
}

/* Overlay OBS */
html.overlay-mode, html.overlay-mode body { background: transparent !important; }
html.overlay-mode .topbar, html.overlay-mode .toasts { display: none !important; }
html.overlay-mode .app { min-height: 0; }
.overlay-root { position: fixed; inset: 0; }

/* Live strip */
.live-strip { padding: 14px 24px; border-bottom: 1px solid var(--border); }
.ls-head { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.ls-list { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.ls-card { flex: none; width: 240px; display: flex; flex-direction: column; gap: 8px; }
.ls-thumb { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--panel-2); border: 2px solid var(--accent); }
.ls-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ls-info b { display: block; font-size: 14px; }
.ls-info span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Halaman umum */
.page { max-width: 1280px; margin: 0 auto; padding: 26px 24px 60px; }
.page-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.page-hero h1 { margin: 0 0 4px; font-size: 28px; font-weight: 900; letter-spacing: -.02em; display: flex; gap: 10px; align-items: center; }
.page-hero h1 svg { width: 26px; height: 26px; color: var(--accent); }
.page-hero p { margin: 0; color: var(--muted); }
.filter-row { margin-bottom: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.sched-sec { margin-bottom: 30px; }
.sched-sec h3 { font-size: 18px; font-weight: 800; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.sec-live i { width: 10px; height: 10px; border-radius: 50%; background: #ff3b3b; animation: pulse 1.2s infinite; }
.day-label { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 10px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }

/* Kartu pertandingan */
.mcard { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s; }
.mcard.live { border-color: rgba(255, 59, 59, .55); box-shadow: 0 0 0 1px rgba(255,59,59,.2) inset; }
.mc-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.mc-top > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-live { color: #ff5c5c; font-weight: 900; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mc-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b3b; animation: pulse 1.2s infinite; }
.mc-done { color: var(--text-2); white-space: nowrap; }
.mc-time { color: var(--accent); white-space: nowrap; }
.mc-row { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.mc-row i { width: 4px; height: 18px; border-radius: 2px; flex: none; }
.mc-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-row b { font-size: 18px; font-weight: 900; min-width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.mc-row.win span, .mc-row.win b { color: var(--text); }
.mc-row.lose span, .mc-row.lose b { color: var(--muted); font-weight: 600; }
.tbd { color: var(--muted) !important; font-style: italic; font-weight: 500 !important; }
.mc-sets { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.mc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.mc-foot .btn svg { width: 13px; height: 13px; }
.txt-live { color: #ff5c5c; }

/* Turnamen */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ccard { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px; transition: border-color .15s, transform .15s; }
.ccard:hover { border-color: var(--accent); transform: translateY(-2px); }
.cc-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; font-size: 26px; flex: none; }
.cc-icon.big { width: 72px; height: 72px; font-size: 38px; border-radius: 18px; }
.cc-icon.sm { width: 38px; height: 38px; font-size: 19px; border-radius: 10px; }
.cc-name { font-weight: 800; font-size: 16px; margin-bottom: 3px; }
.cc-meta { color: var(--muted); font-size: 13px; }
.comp-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.comp-hero h1 { margin: 0 0 4px; font-size: 28px; font-weight: 900; letter-spacing: -.02em; }
.champ-badge { display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 14px; background: linear-gradient(135deg, rgba(234,179,8,.25), rgba(234,179,8,.05)); border: 1px solid rgba(234,179,8,.45); font-size: 28px; }
.champ-badge span { display: block; font-size: 11px; font-weight: 800; color: #facc15; text-transform: uppercase; letter-spacing: .1em; }
.champ-badge b { font-size: 17px; }
#ctabs { margin-bottom: 0; }

/* Bagan */
.bracket-scroll { overflow-x: auto; padding-bottom: 10px; }
.bracket { display: flex; gap: 32px; min-width: max-content; }
.br-round { display: flex; flex-direction: column; width: 230px; }
.br-title { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.br-col { display: flex; flex-direction: column; flex: 1; }
.br-pair { flex: 1; display: flex; flex-direction: column; justify-content: space-around; position: relative; padding: 6px 0; }
.br-pair.two::after { content: ''; position: absolute; right: -17px; top: 25%; bottom: 25%; width: 16px; border: 2px solid var(--border-2); border-left: 0; border-radius: 0 8px 8px 0; }
.br-match { position: relative; display: block; background: var(--panel); border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; margin: 6px 0; }
a.br-match:hover { border-color: var(--accent); }
.br-match.live { border-color: #ff5c5c; }
.has-in .br-match::before, .has-in .br-champ::before { content: ''; position: absolute; left: -17px; top: 50%; width: 16px; border-top: 2px solid var(--border-2); }
.br-match { overflow: visible; }
.br-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 13px; font-weight: 700; }
.br-row + .br-row { border-top: 1px solid var(--border); }
.br-row i { width: 4px; height: 14px; border-radius: 2px; flex: none; }
.br-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-row b { min-width: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.br-row.win { background: var(--accent-soft); }
.br-row.win b, .br-row.win span { color: var(--text); }
.br-row.lose { color: var(--muted); }
.br-tag { position: absolute; top: -9px; right: 8px; font-size: 10px; font-weight: 800; background: var(--panel-3); color: var(--text-2); padding: 1px 6px; border-radius: 4px; z-index: 1; }
.br-tag.live { background: #ff3b3b; color: #fff; }
.br-champ { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(234,179,8,.25), rgba(234,179,8,.05)); border: 1px solid rgba(234,179,8,.45); text-align: center; }
.br-champ span { font-size: 34px; }
.br-champ b { font-size: 15px; }

/* Klasemen */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.stand { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.stand th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; padding: 12px 10px; background: var(--bg-2); text-align: center; }
.stand td { padding: 11px 10px; border-top: 1px solid var(--border); text-align: center; }
.stand .l { text-align: left; }
.stand td.l { font-weight: 700; white-space: nowrap; }
.stand td.l i { display: inline-block; width: 4px; height: 14px; border-radius: 2px; vertical-align: -2px; margin-right: 8px; }
.stand tr.top td:first-child { color: var(--accent); font-weight: 900; }
.form { display: inline-flex; gap: 3px; }
.form i { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 900; font-style: normal; }
.form .f-M { background: rgba(34,197,94,.2); color: #4ade80; }
.form .f-S { background: rgba(148,163,184,.2); color: #cbd5e1; }
.form .f-K { background: rgba(239,68,68,.2); color: #f87171; }
.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.team-chip { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.team-chip i { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 12px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.vod-matches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.vod-matches .chip { cursor: pointer; border: 0; }
.vod-matches .chip:hover { background: var(--accent-soft); color: var(--accent); }

/* Dashboard olahraga */
.stage-list { display: flex; flex-direction: column; }
.stage-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.stage-row:last-of-type { border-bottom: 0; }
.stage-row .small, .comp-row .small, .mrow .small { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stage-card .sc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.stage-card .sc-head b { font-size: 16px; }
.comp-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.comp-row:last-child { border-bottom: 0; }
.comp-row .acts, .mrow .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mlist { display: flex; flex-direction: column; }
.mrow { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.mrow:last-child { border-bottom: 0; }
.mr-time { font-size: 13px; font-weight: 700; color: var(--text-2); }
.mr-teams { font-size: 15px; }
.mr-score { display: inline-block; min-width: 46px; text-align: center; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; }
.team-edit { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; }
.te-row { display: flex; gap: 8px; align-items: center; }
.te-row input[type=color] { width: 40px; height: 40px; border: 0; background: none; padding: 0; cursor: pointer; flex: none; }

/* Operator papan skor */
.op-preview { position: relative; min-height: 70px; padding: 16px; background: repeating-linear-gradient(45deg, #15181b 0 12px, #121417 12px 24px); border-radius: 12px; margin-bottom: 14px; border: 1px solid var(--border); }
.op-preview .scorebug { zoom: 1.25; }
.op-bar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.op-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.op-side { background: var(--panel); border: 1px solid var(--border); border-top: 4px solid var(--tc); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.op-team { display: flex; gap: 10px; align-items: center; }
.op-team i { width: 12px; height: 36px; border-radius: 4px; background: var(--tc); flex: none; }
.op-team span { display: block; font-size: 11px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.op-team b { font-size: 18px; }
.op-score { font-size: 72px; font-weight: 900; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.op-btns { display: flex; gap: 8px; }
.op-plus { flex: 1; height: 64px; font-size: 22px; font-weight: 900; background: var(--accent); color: var(--accent-ink); }
.op-plus:hover { background: var(--accent); filter: brightness(1.1); }
.op-minus { width: 64px; height: 64px; font-size: 16px; }
.op-sets { text-align: center; color: var(--text-2); font-size: 14px; }
.op-clock { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-bottom: 14px; }
.op-clock-time { font-size: 56px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.op-clock-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.op-period { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.op-period b { font-size: 17px; min-width: 120px; text-align: center; }

@media (max-width: 960px) {
  .page { padding: 18px 16px 50px; }
  .page-hero h1, .comp-hero h1 { font-size: 22px; }
  #liveStrip { order: 2; }
  .live-strip { padding: 12px 16px; }
  .mrow { grid-template-columns: 1fr; gap: 6px; }
  .mrow .acts { justify-content: flex-start; }
  .page-head { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .mgrid, .cgrid { grid-template-columns: 1fr; }
  .op-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .op-side { padding: 12px; }
  .op-score { font-size: 54px; }
  .op-plus { height: 58px; }
  .op-minus { width: 50px; height: 58px; }
  .op-team b { font-size: 14px; }
  .op-clock-time { font-size: 44px; }
  .op-preview .scorebug { zoom: 1; }
  .br-round { width: 190px; }
}
.live-pill { white-space: nowrap; }
@media (max-width: 640px) { .topbar-right .btn { padding: 0 10px; } .topnav a { padding: 8px 8px; font-size: 13px; } }
.p-delay { margin-left: 8px; font-size: 12px; font-weight: 700; color: #cfd4d8; background: rgba(0,0,0,.45); padding: 3px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-delay.slow { color: #ffb020; }
@media (max-width: 640px) { .p-delay { display: none; } }

/* =========================================================
   v4: banner GOL, skor liga dunia, operator
   ========================================================= */
.flash { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); z-index: 6; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 34px 16px; border-radius: 16px; background: linear-gradient(135deg, var(--fc, var(--accent)), #0d0f11 140%); color: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: flashIn .45s cubic-bezier(.2, 1.4, .4, 1); text-align: center; border: 2px solid rgba(255,255,255,.25); }
.flash b { font-size: clamp(30px, 7vw, 64px); font-weight: 900; letter-spacing: .04em; line-height: 1; text-shadow: 0 4px 18px rgba(0,0,0,.45); font-style: italic; }
.flash span { font-size: clamp(13px, 2vw, 20px); font-weight: 800; white-space: nowrap; }
.flash.result { background: linear-gradient(135deg, #eab308, #0d0f11 140%); }
.flash.out { opacity: 0; transform: translateX(-50%) scale(.9); transition: opacity .5s, transform .5s; }
@keyframes flashIn { from { opacity: 0; transform: translateX(-50%) scale(.4) rotate(-4deg); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.overlay-root .flash { bottom: 12%; zoom: 1.4; }

.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; align-items: start; }
.lg { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.lg-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.lg-head img { width: 22px; height: 22px; object-fit: contain; background: #fff; border-radius: 4px; padding: 1px; }
.lg-head b { font-size: 14px; }
.lg-head span { font-size: 12px; color: var(--muted); margin-left: auto; }
.fx { display: grid; grid-template-columns: 62px 1fr; gap: 8px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--border); }
.fx:first-of-type { border-top: 0; }
.fx.live { background: rgba(255, 59, 59, .05); }
.fx-st { font-size: 12px; font-weight: 800; }
.fx-teams { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fx-team { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; min-width: 0; }
.fx-team img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.fx-team span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-team b { min-width: 18px; text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; }
.fx-team.lose { color: var(--muted); font-weight: 600; }
.fx-pen { grid-column: 2; font-size: 11px; color: var(--muted); }
.flash-row { animation: rowFlash 1.6s ease-out; }
@keyframes rowFlash { 0%, 30% { background: rgba(83, 252, 24, .25); } 100% { background: transparent; } }
.lg-checks { flex-direction: column; gap: 8px; }
.lg-checks .hint { font-weight: 500; font-size: 12px; color: var(--muted); }

.kbd-help { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; color: var(--text-2); }
.kbd-help h4 { width: 100%; margin-bottom: 4px; }
kbd { font-family: var(--mono); font-size: 11px; background: var(--panel-3); border: 1px solid var(--border-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--text); }
.op-page { max-width: 1000px; }
@media (max-width: 640px) { .lg-grid { grid-template-columns: 1fr; } .flash { padding: 10px 20px 12px; } }

/* v5: akan live + hitung mundur */
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.up-card { background: radial-gradient(400px 160px at 50% 0%, var(--accent-soft), transparent 70%), var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.up-top { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; }
.up-vs > span { font-weight: 900; color: var(--muted); font-size: 13px; }
.up-team { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.up-team i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 12px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.up-team b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-when { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.up-when b { font-size: 16px; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.off-next { display: flex; flex-direction: column; gap: 4px; align-items: center; margin: 4px 0 18px; }
.off-next > span { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.off-next b { font-size: 18px; }
.off-next b i { color: var(--muted); font-style: normal; font-size: 13px; margin: 0 4px; }
.off-next small { color: var(--text-2); font-size: 13px; }
.off-cd { margin-top: 8px; font-size: 34px; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
@media (max-width: 640px) { .off-cd { font-size: 24px; } .off-next b { font-size: 15px; } .up-grid { grid-template-columns: 1fr; } }
.section-head h3 { display: flex; align-items: center; gap: 8px; }
.section-head h3 svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* =========================================================
   v6: Skor & klasemen ala FotMob
   ========================================================= */
.sc-page { max-width: 1240px; }
.sc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.sc-main { background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 10px; }
.sc-bar { display: flex; align-items: center; gap: 10px; padding: 6px 4px 10px; }
.sc-livebtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--text-2); font-weight: 900; font-size: 11px; cursor: pointer; letter-spacing: .04em; }
.sc-livebtn.on { background: #ff3b3b; color: #fff; box-shadow: 0 0 0 4px rgba(255,59,59,.2); }
.sc-arrow { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
.sc-arrow:hover { background: var(--panel-2); }
.sc-date { flex: 1; text-align: center; font-weight: 800; font-size: 16px; }
.sc-cal { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; cursor: pointer; font-weight: 900; font-size: 13px; }
.sc-cal::before { content: ''; position: absolute; inset: 11px 11px 12px; border: 2px solid var(--text-2); border-radius: 4px; border-top-width: 4px; }
.sc-cal span { position: relative; top: 2px; font-size: 10px; }
.sc-cal input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.sc-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 0 4px 10px; }
.sc-days button { border: 0; background: none; color: var(--muted); border-radius: 10px; padding: 6px 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; }
.sc-days button b { font-size: 15px; color: var(--text-2); }
.sc-days button:hover { background: var(--panel); }
.sc-days button.on { background: var(--text); color: var(--bg); }
.sc-days button.on b { color: var(--bg); }
.lgx { margin-bottom: 10px; }
.lgx-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 8px; }
.lgx-head div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lgx-head b { font-size: 14px; }
.lgx-head span { font-size: 11px; color: var(--muted); }
.lgx-go { font-size: 22px; color: var(--text-2) !important; flex: none; }
a.lgx-head:hover b { color: var(--accent); }
.llogo { width: 22px; height: 22px; object-fit: contain; flex: none; }
.logo-ph { display: inline-block; border-radius: 50%; background: var(--panel-3); }
.fav-ic { display: grid; place-items: center; color: #facc15; font-size: 18px; }
.fxr { display: grid; grid-template-columns: 56px minmax(0, 1fr) 76px minmax(0, 1fr) 44px; align-items: center; min-height: 58px; margin: 6px 0; background: var(--panel); border-radius: 10px; cursor: pointer; transition: background .12s; }
.fxr:hover { background: var(--panel-2); }
.fxr.live { box-shadow: inset 3px 0 0 #ff3b3b; }
.fxr-st { text-align: center; font-size: 12px; font-weight: 800; border-right: 1px solid var(--border-2); padding: 8px 0; }
.fx-ft { color: var(--text-2); }
.fx-ko { color: var(--text); }
.fx-live { color: #ff5c5c; }
.fxr-team { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; font-size: 15px; padding: 0 6px; }
.fxr-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fxr-team.home { justify-content: flex-end; text-align: right; }
.fxr-team.lose { color: var(--text-2); font-weight: 600; }
.tlogo { width: 24px; height: 24px; object-fit: contain; flex: none; }
.fxr-score { text-align: center; font-weight: 900; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fxr-score i { font-style: normal; color: var(--muted); margin: 0 8px; }
.fxr.live .fxr-score { color: #ff5c5c; }
.pen-tag { font-size: 9px; font-weight: 900; background: var(--panel-3); color: var(--text-2); padding: 1px 4px; border-radius: 4px; flex: none; }
.fxr-star { border: 0; border-left: 1px solid var(--border-2); background: none; height: 34px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.fxr-star svg { width: 18px; height: 18px; }
.fxr-star svg path { fill: none; stroke: currentColor; stroke-width: 1.6; }
.fxr-star.on { color: #facc15; }
.fxr-star.on svg path { fill: currentColor; }
.sc-upd { padding: 4px 10px; }
.sc-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--topbar) + 16px); }
.sc-input { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 99px; padding: 0 16px; height: 46px; }
.sc-input svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.sc-input input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font-size: 14px; }
.sc-chips { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
.sc-chips .chip { flex: none; height: 32px; padding: 0 12px; background: var(--panel-2); color: var(--text); }
.sc-chips .chip:hover { background: var(--panel-3); }
.clogo { width: 16px; height: 16px; object-fit: contain; }
.sc-stand { padding: 14px 10px 10px; }
.sc-stand-h { display: flex; align-items: center; gap: 10px; padding: 0 6px 10px; }
.sc-stand-h b { flex: 1; font-size: 14px; }
.sc-stand-h span { font-size: 20px; color: var(--text-2); }
.sc-dots { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.sc-dots button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--text); font-size: 20px; cursor: pointer; }
.sc-dots div { display: flex; gap: 6px; }
.sc-dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--panel-3); transition: width .2s; }
.sc-dots i.on { width: 18px; background: var(--text); }

/* Tabel klasemen */
.st { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.st th { font-size: 11px; color: var(--muted); font-weight: 800; padding: 8px 6px; text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.st td { padding: 9px 6px; text-align: center; border-top: 1px solid var(--border); }
.st .l { text-align: left; }
.st td:first-child { position: relative; width: 34px; color: var(--text-2); font-weight: 700; }
.st-team { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; }
.st-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.st.compact .st-team span { max-width: 120px; }
.st.compact .tlogo { width: 20px; height: 20px; }
.st tr.hl td { background: var(--accent-soft); }
.zone { position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; }
.zone-legend .zone { position: static; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.z-ucl { background: #3b82f6; } .z-uel { background: #f97316; } .z-rel { background: #ef4444; } .z-oth { background: #22c55e; }
.zone-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 12px; color: var(--text-2); }
.fms { display: inline-flex; gap: 3px; }
.fm { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 900; font-style: normal; }
.fm-W { background: rgba(34,197,94,.22); color: #4ade80; } .fm-D { background: rgba(148,163,184,.22); color: #cbd5e1; } .fm-L { background: rgba(239,68,68,.22); color: #f87171; }
.lg-ic { background: #fff !important; padding: 8px; }
.biglogo { width: 100%; height: 100%; object-fit: contain; }

/* Modal detail laga */
.fxm-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; padding-right: 30px; }
.fxm-top a { color: var(--text); font-weight: 800; }
.fxm-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 20px; }
.fxm-team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.fxm-team .big { width: 64px; height: 64px; object-fit: contain; }
.fxm-team b { font-size: 15px; }
.fxm-score { text-align: center; }
.fxm-score .s { font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fxm-score .st { font-size: 13px; font-weight: 800; color: var(--text-2); }
.fxm-score .st.live { color: #ff5c5c; }
.fxm-score .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.fxm-ev { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; max-height: 42vh; overflow: auto; }
.evr { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; padding: 6px 0; font-size: 13px; }
.evr .ev-side:first-child { text-align: right; }
.ev-side small { display: block; color: var(--muted); font-size: 11px; }
.ev-min { text-align: center; font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ev-min span { margin-left: 4px; }
.ev-min sup { font-size: 8px; }
.fxm-info { display: flex; flex-wrap: wrap; gap: 6px 16px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 10px; font-size: 12px; color: var(--text-2); }

@media (max-width: 1000px) {
  .sc-layout { display: flex; flex-direction: column; gap: 14px; }
  .sc-side { display: contents; }
  .sc-search { order: -1; }
  .sc-stand { order: 2; }
}
@media (max-width: 640px) {
  .sc-main { padding: 6px; border-radius: 12px; }
  .fxr { grid-template-columns: 44px minmax(0, 1fr) 56px minmax(0, 1fr) 34px; min-height: 52px; }
  .fxr-team { font-size: 13px; gap: 6px; padding: 0 4px; }
  .tlogo { width: 20px; height: 20px; }
  .fxr-score { font-size: 14px; }
  .fxr-score i { margin: 0 4px; }
  .fxr-st { font-size: 11px; }
  .fxm-score .s { font-size: 30px; }
  .fxm-team .big { width: 48px; height: 48px; }
  .sc-days button b { font-size: 13px; }
}
.prov-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 18px; }
.prov { position: relative; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; border: 2px solid var(--border-2); background: var(--panel); color: var(--text); cursor: pointer; }
.prov b { font-size: 16px; }
.prov span { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.prov i { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: 11px; font-weight: 800; color: var(--accent); }
.prov.on { border-color: var(--accent); background: var(--accent-soft); }

/* ===================== v8: Mini Game ===================== */
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.back-link { display: inline-block; color: var(--muted); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.back-link:hover { color: var(--accent); }
.gph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 4px; color: #fff;
  background: radial-gradient(120% 90% at 20% 10%, hsl(var(--h) 85% 58%), hsl(calc(var(--h) + 50) 70% 26%)); }
.gph svg { width: 34%; max-width: 64px; height: auto; opacity: .9; }
.gph b { font-size: 13px; letter-spacing: .12em; opacity: .85; }
.gcard .thumb .gplay { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #000;
  display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.gcard .thumb .gplay svg { width: 18px; height: 18px; fill: currentColor; }
.gcard:hover .thumb .gplay { opacity: 1; transform: none; }
.gcard .gdesc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ggrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.game-page { max-width: 1180px; }
.gstage { position: relative; width: 100%; aspect-ratio: 16/9; max-height: calc(100vh - 170px); margin: 0 auto; background: #000; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.gstage.portrait { aspect-ratio: 9/16; width: auto; height: min(calc(100vh - 170px), 820px); max-width: 100%; }
.gstage.is-fs, .gstage:fullscreen { max-height: none; height: 100%; width: 100%; aspect-ratio: auto; border-radius: 0; border: 0; }
.gstage.is-fs { position: fixed; inset: 0; z-index: 1000; }
.gframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.gstart { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.gstart-bg { position: absolute; inset: -30px; background: var(--panel-2); }
.gstart-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(.45); }
.gstart-in { position: relative; text-align: center; padding: 20px; }
.gstart-thumb { position: relative; width: min(260px, 60vw); aspect-ratio: 16/9; margin: 0 auto 14px; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.5); background: var(--panel-2); }
.gstart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gstart h2 { margin: 0 0 16px; font-size: 22px; font-weight: 900; color: #fff; }
.gstart .btn svg { width: 18px; height: 18px; fill: currentColor; }
.gbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.gtitle { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.gmeta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.gdesc-full { color: var(--text-2, var(--muted)); white-space: pre-line; margin: 12px 0 0; max-width: 820px; }
.gnote { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.ggrid2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: stretch; }
.ggrid2 .drop { justify-content: center; }
.ggrid2 .card h4 { display: flex; gap: 8px; align-items: center; }
.ggrid2 .card h4 svg { width: 16px; height: 16px; color: var(--accent); }
.gthumb-edit { cursor: pointer; display: block; }
.gthumb-edit .gthumb-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px; font-size: 11px; font-weight: 700; text-align: center; color: #fff; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .15s; display: flex; gap: 4px; justify-content: center; align-items: center; }
.gthumb-edit .gthumb-cap svg { width: 12px; height: 12px; }
.gthumb-edit:hover .gthumb-cap { opacity: 1; }
.grow .gph svg { width: 28px; }
.grow .gph b { display: none; }
.gurl-s { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
label.btn { cursor: pointer; }
@media (max-width: 860px) {
  .ggrid2 { grid-template-columns: 1fr; }
  .gstage { border-radius: 10px; max-height: none; }
  .gstage.portrait { height: auto; width: 100%; aspect-ratio: 9/16; max-height: 80vh; }
  .gbar .ch-actions { width: 100%; }
  .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .gcard .gdesc { display: none; }
}

/* ===================== v9: Tata letak ala Kick ===================== */
:root { --side-w: 240px; }
body.side-mini { --side-w: 68px; }
.topbar { gap: 16px; padding: 0 16px 0 10px; }
.tb-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--text); cursor: pointer; flex: none; }
.tb-icon:hover { background: var(--panel); }
.tb-icon svg { width: 22px; height: 22px; }
.tb-search { position: relative; flex: 1; max-width: 460px; margin: 0 auto; display: flex; align-items: center; height: 40px; border: 1px solid var(--border-2); border-radius: 8px; background: var(--bg-2); padding: 0 12px; gap: 8px; transition: border-color .15s; }
.tb-search:focus-within { border-color: var(--accent); }
.tb-search > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.tb-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 14px; }
.tb-search input::-webkit-search-cancel-button { filter: invert(1); }
.topbar-right { margin-left: 0; }
.tb-search-m { display: none; }
.search-res { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--border-2); border-radius: 10px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.5); max-height: 70vh; overflow-y: auto; z-index: 60; }
.sr { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; }
.sr:hover, .sr.hl:hover { background: var(--panel-2); }
.sr-th { width: 64px; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: var(--panel-2); flex: none; display: grid; place-items: center; color: var(--muted); }
.sr-th img { width: 100%; height: 100%; object-fit: cover; }
.sr-th svg { width: 18px; height: 18px; }
.sr-tx { min-width: 0; display: flex; flex-direction: column; }
.sr-tx b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-tx small { color: var(--muted); font-size: 12px; }
.sr-empty { padding: 14px; color: var(--muted); font-size: 14px; text-align: center; }

.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); transition: grid-template-columns .2s; }
body.no-side .shell { grid-template-columns: minmax(0, 1fr); }
body.no-side .sidenav, body.no-side .side-backdrop { display: none; }
.app { min-width: 0; }
.sidenav { position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); overflow-y: auto; overflow-x: hidden; background: var(--bg-2); border-right: 1px solid var(--border); padding: 12px 10px; display: flex; flex-direction: column; scrollbar-width: thin; }
.sn-nav a, .sn-foot a { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px; border-radius: 9px; font-weight: 700; font-size: 15px; color: var(--text-2); position: relative; white-space: nowrap; }
.sn-nav a svg, .sn-foot a svg { width: 21px; height: 21px; flex: none; }
.sn-nav a:hover, .sn-foot a:hover { background: var(--panel); color: var(--text); }
.sn-nav a.active, .sn-foot a.active { background: var(--panel-2); color: var(--text); }
.sn-nav a.active svg { color: var(--accent); }
.sn-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; margin-left: auto; box-shadow: 0 0 0 3px rgba(255,59,59,.2); }
.sn-h { margin: 14px 0 6px; padding: 12px 14px 0; border-top: 1px solid var(--border); font-size: 15px; font-weight: 800; white-space: nowrap; }
.sn-ch { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; }
.sn-ch:hover, .sn-ch.active { background: var(--panel); }
.sn-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--panel-3); display: grid; place-items: center; flex: none; box-shadow: 0 0 0 2px var(--bg-2); }
.sn-ch.on .sn-av { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--accent); }
.sn-ch:not(.on) .sn-av { filter: grayscale(.7); opacity: .75; }
.sn-av img { width: 100%; height: 100%; object-fit: cover; }
.sn-av b { font-weight: 900; color: var(--accent); }
.sn-tx { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.sn-tx b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-tx small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-st { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.sn-st i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.sn-more { margin: 4px 0 0; padding: 8px 14px; border: 0; background: none; color: var(--text-2); font-weight: 700; font-size: 13px; text-align: left; cursor: pointer; }
.sn-more:hover { color: var(--text); }
.sn-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.sn-foot a { height: 40px; font-size: 14px; }
/* sidebar mini (ikon saja) */
body.side-mini .sidenav { padding: 12px 8px; }
body.side-mini .sn-nav a span, body.side-mini .sn-foot a span, body.side-mini .sn-tx, body.side-mini .sn-st, body.side-mini .sn-more { display: none; }
body.side-mini .sn-nav a, body.side-mini .sn-foot a { justify-content: center; padding: 0; }
body.side-mini .sn-dot { position: absolute; top: 9px; right: 10px; }
body.side-mini .sn-h { font-size: 0; padding: 10px 0 0; }
body.side-mini .sn-ch { justify-content: center; padding: 7px 0; }
.side-backdrop { display: none; }

/* ---------- Beranda ---------- */
.home { padding: 20px 24px 40px; max-width: 1700px; margin: 0 auto; }
.home .section { padding: 26px 0 0; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) var(--chat-w); gap: 16px; align-items: stretch; }
.hero { min-width: 0; }
.hero-stage { position: relative; aspect-ratio: 16/9; max-height: calc(100vh - var(--topbar) - 60px); width: 100%; border-radius: 14px; overflow: hidden; background: #000; isolation: isolate; }
.hero-stage > video, .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-stage > video { object-fit: contain; background: #000; }
.hero-bg-def { background: radial-gradient(90% 120% at 15% 0%, var(--accent-soft), transparent 60%), linear-gradient(135deg, var(--panel-2), var(--bg)); }
.hero-stage.vod .hero-bg, .hero-stage.offline .hero-bg { filter: brightness(.7); }
.hero-click { position: absolute; inset: 0; z-index: 1; }
.hero-top { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 3; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.hero-top > * { pointer-events: auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); border-radius: 8px; padding: 4px 10px 4px 4px; font-weight: 800; font-size: 14px; }
.hero-badge:not(:has(b)) { padding: 4px; }
.chip-dark { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: 13px; font-weight: 700; }
.chip-dark svg { width: 15px; height: 15px; }
.hero-mute { width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero-mute svg { width: 20px; height: 20px; }
.hero-info { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; background: rgba(11,14,15,.82); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 14px 16px 10px; pointer-events: none; }
.hero-info a, .hero-info button { pointer-events: auto; }
.hero-row { display: flex; align-items: center; gap: 14px; }
.hero-av .avatar-ring .tag { display: none; }
.hero-meta { flex: 1; min-width: 0; }
.hero-name { font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.hero-title { font-weight: 700; font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 6px; }
.hero-meta .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.hero-cta { flex: none; }
.hero-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.hero-dots { display: flex; gap: 6px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: width .2s, background .2s; }
.hero-dots button.on { width: 46px; background: #fff; }
.hero-arrows { display: flex; gap: 6px; }
.hero-arrows button { width: 32px; height: 28px; border: 0; border-radius: 6px; background: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.hero-arrows button:hover { background: rgba(255,255,255,.1); }
.hchat { position: relative; min-height: 380px; }
.hchat .chat { position: absolute; inset: 0; height: auto; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }

.evb { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 20px; margin-top: 22px; padding: 26px 26px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; }
.evb-label { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 13px; letter-spacing: .04em; padding: 3px 8px; border-radius: 5px; margin-bottom: 10px; }
.evb h2 { margin: 0 0 8px; font-size: 24px; font-weight: 900; letter-spacing: -.01em; }
.evb p { margin: 0 0 12px; color: var(--text-2); line-height: 1.55; max-width: 640px; }
.evb-when { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.evb-when svg { width: 15px; height: 15px; }
.evb-img { align-self: stretch; margin: -26px -26px -26px 0; min-height: 170px; position: relative; }
.evb-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.evb-gph { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.evb-btn { position: absolute; top: 20px; right: 20px; z-index: 2; }
.evb-btn svg { fill: currentColor; }

@media (max-width: 1200px) { .home-hero { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidenav { position: fixed; top: var(--topbar); left: 0; bottom: 0; height: auto; width: 270px; z-index: 45; transform: translateX(-102%); transition: transform .22s; box-shadow: 10px 0 40px rgba(0,0,0,.5); }
  body.side-open .sidenav { transform: none; }
  body.side-open .side-backdrop { display: block; position: fixed; inset: var(--topbar) 0 0 0; z-index: 44; background: rgba(0,0,0,.55); }
  body.side-mini .sn-nav a span, body.side-mini .sn-foot a span, body.side-mini .sn-tx, body.side-mini .sn-st { display: initial; }
  body.side-mini .sn-tx { display: flex; }
  .home { padding: 12px 12px 30px; }
  .home-hero { grid-template-columns: 1fr; }
  .hchat { display: none; }
  .hero-stage { border-radius: 10px; }
  .evb { grid-template-columns: 1fr; padding: 20px; }
  .evb-img { margin: 0 -20px -20px; min-height: 150px; }
  .evb-img img, .evb-gph { -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%); }
  .evb-btn { position: static; justify-self: start; }
}
@media (max-width: 640px) {
  .tb-search { display: none; }
  .tb-search-m { display: grid; }
  .topbar-right { margin-left: auto; }
  body.search-open .tb-search { display: flex; position: absolute; left: 8px; right: 8px; top: 10px; max-width: none; z-index: 70; background: var(--panel); }
  .hero-stage { aspect-ratio: 4/5; max-height: 72vh; }
  .hero-stage > video { object-fit: cover; }
  .hero-info { left: 8px; right: 8px; bottom: 8px; padding: 12px; }
  .hero-row { flex-wrap: wrap; gap: 10px; }
  .hero-av .avatar { width: 42px !important; height: 42px !important; }
  .hero-name { font-size: 17px; }
  .hero-cta { width: 100%; }
  .evb h2 { font-size: 20px; }
}

/* ===================== v10: Tampilan layar studio (seperti OBS) ===================== */
.scene-host { position: absolute; inset: 0; }
.scene-host canvas { width: 100%; height: 100%; display: block; }
.sc-edit { position: absolute; inset: 0; cursor: default; touch-action: none; z-index: 2; }
.sc-sel { position: absolute; outline: 2px solid var(--accent); outline-offset: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.6); cursor: move; pointer-events: none; }
.sc-sel .sc-h { position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; border-radius: 4px; background: var(--accent); border: 2px solid #000; cursor: nwse-resize; pointer-events: auto; }
.studio-pv .studio-badge, .studio-pv .studio-meter { z-index: 3; pointer-events: none; }
.sc-card h4 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.sc-card h4 svg { width: 17px; height: 17px; color: var(--accent); }
.sc-card h4 .hint { font-weight: 500; color: var(--muted); font-size: 13px; }
.sc-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.sc-sec { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.sc-sec .hint { text-transform: none; letter-spacing: 0; font-weight: 500; }
.sc-layouts, .sc-add, .sc-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-row { margin-top: 8px; }
.sc-note { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.sc-sw { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sc-sw button { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--border-2); cursor: pointer; padding: 0; }
.sc-sw button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.sc-sw input[type=color] { width: 34px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; }
.sc-layers { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.sc-li { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; font-weight: 600; }
.sc-li:last-child { border-bottom: 0; }
.sc-li:hover { background: var(--panel-2); }
.sc-li.on { background: var(--accent-soft); }
.sc-li.off .sc-ln { opacity: .45; text-decoration: line-through; }
.sc-li .p-btn { width: 30px; height: 30px; flex: none; font-size: 15px; }
.sc-li .p-btn svg { width: 16px; height: 16px; }
.sc-ln { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-propcol { border-left: 1px solid var(--border); padding-left: 20px; }
.sc-props h5 { margin: 14px 0 10px; font-size: 15px; font-weight: 800; }
.sc-props .field { margin-bottom: 12px; }
.sc-props input[type=range] { width: 100%; accent-color: var(--accent); }
.sc-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.sc-checks input { accent-color: var(--accent); margin-right: 6px; }
.sc-hint { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.sc-grid9 { display: grid; grid-template-columns: repeat(3, 28px); gap: 4px; margin-bottom: 12px; }
.sc-grid9 button { width: 28px; height: 20px; border-radius: 4px; border: 1px solid var(--border-2); background: var(--panel-2); cursor: pointer; }
.sc-grid9 button:hover { background: var(--accent); }
@media (max-width: 1100px) { .sc-cols { grid-template-columns: minmax(0, 1fr); } .sc-propcol { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); } }
.sc-card { min-width: 0; overflow: hidden; }
.sc-cols > div { min-width: 0; }
