:root {
  --bg: #0a0a0c;
  --glass: rgba(255, 255, 255, .055);
  --glass2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .09);
  --text: #f4f5f7;
  --dim: #9aa0ab;
  --dim2: #6b717c;
  --red: #e82127;
  --ok: #34d399;
  --radius: 20px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(232, 33, 39, .20), transparent 62%),
    radial-gradient(900px 600px at -12% 108%, rgba(70, 110, 255, .13), transparent 60%),
    radial-gradient(700px 400px at 50% 120%, rgba(255, 255, 255, .04), transparent 70%),
    var(--bg);
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Kopfzeile ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 14px 28px; background: linear-gradient(rgba(10,10,12,.92), rgba(10,10,12,.72)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--red); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(232,33,39,.45); }
.brand .mark svg { width: 15px; height: 15px; fill: #fff; stroke: none; margin-left: 2px; }
.spacer { flex: 1; }
.clock { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--dim); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #3a3f4b, #22252c); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; text-decoration: none; }

main { max-width: 1680px; margin: 0 auto; padding: 8px 28px 150px; }

/* ---------- Dock ---------- */
.dock { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; display: flex; gap: 4px; padding: 8px; border-radius: 26px; background: rgba(28, 29, 34, .78); border: 1px solid var(--line); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.dock a { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 86px; padding: 9px 0 7px; border-radius: 18px; text-decoration: none; color: var(--dim); font-size: 12px; font-weight: 600; transition: background .2s, color .2s; }
.dock a svg.i { width: 26px; height: 26px; }
.dock a.on { color: #fff; background: var(--glass2); }
.dock a:active { transform: scale(.96); }

/* ---------- Überschriften ---------- */
.page-head { display: flex; align-items: center; gap: 16px; margin: 18px 0 22px; }
.page-head .app-ico { width: 56px; height: 56px; border-radius: 17px; }
.page-head .app-ico svg.i { width: 28px; height: 28px; }
.page-head h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.page-head p { margin: 2px 0 0; color: var(--dim); }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; }
.sec h2 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.sec a { color: var(--dim); text-decoration: none; font-weight: 600; font-size: 15px; }
.dim { color: var(--dim); }
.small { font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; border-radius: 28px; overflow: hidden; min-height: 330px; display: flex; align-items: flex-end; background: #15161a center/cover no-repeat; border: 1px solid var(--line); margin-top: 6px; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,10,.94) 0%, rgba(8,8,10,.75) 38%, rgba(8,8,10,.15) 75%), linear-gradient(0deg, rgba(8,8,10,.7), transparent 55%); }
.hero.welcome { background: radial-gradient(800px 400px at 85% 10%, rgba(232,33,39,.35), transparent 60%), linear-gradient(135deg, #17181d, #0e0f12); align-items: center; }
.hero.welcome::after { display: none; }
.hero .in { position: relative; z-index: 1; padding: 38px 42px; max-width: 760px; width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.chip.live { background: var(--red); }
.hero h1 { font-size: 40px; line-height: 1.08; letter-spacing: -.035em; margin: 14px 0 8px; font-weight: 850; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero p { color: #c9ccd3; margin: 0 0 20px; font-size: 17px; }
.hero .bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); max-width: 420px; margin: 0 0 22px; overflow: hidden; }
.hero .bar i { display: block; height: 100%; background: var(--red); }

/* ---------- Knöpfe & Eingaben ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--glass); padding: 14px 22px; border-radius: 14px; font-weight: 650; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, background .2s; }
.btn:hover { background: var(--glass2); }
.btn:active { transform: scale(.97); }
.btn.white { background: #f2f2f2; color: #0b0b0c; border-color: #f2f2f2; }
.btn.white:hover { background: #fff; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.sm { padding: 9px 15px; font-size: 14px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }
.btn svg.i { width: 20px; height: 20px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.searchbox { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 20px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); margin-bottom: 18px; transition: border-color .2s, background .2s; }
.searchbox:focus-within { border-color: rgba(255,255,255,.28); background: var(--glass2); }
.searchbox svg.i { color: var(--dim); }
.searchbox input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; font-size: 19px; padding: 12px 0; }
.searchbox .btn { padding: 12px 22px; }
.input { width: 100%; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; outline: none; transition: border-color .2s; }
.input:focus { border-color: rgba(255,255,255,.3); }
label.lbl { display: block; font-size: 14px; color: var(--dim); margin: 14px 0 7px; font-weight: 600; }
textarea.input { min-height: 120px; font: 13px/1.4 ui-monospace, monospace; }

.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--dim); padding: 10px 16px; border-radius: 10px; font-weight: 650; cursor: pointer; }
.seg button.on { background: #f2f2f2; color: #0b0b0c; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; border: 1px solid var(--line); background: var(--glass); color: var(--dim); padding: 9px 16px; border-radius: 999px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chips button.on { background: #f2f2f2; color: #0b0b0c; border-color: #f2f2f2; }

.panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.panel h3 { margin: 0 0 6px; font-size: 18px; font-weight: 750; }
.panel > p.dim { margin: 0 0 12px; }
.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 8px 0; font-weight: 550; }
.switch input { display: none; }
.switch .tg { width: 52px; height: 30px; border-radius: 15px; background: rgba(255,255,255,.15); position: relative; flex: none; transition: background .2s; }
.switch .tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .tg { background: var(--ok); }
.switch input:checked + .tg::after { transform: translateX(22px); }
table.list { width: 100%; border-collapse: collapse; }
table.list td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
code { background: rgba(255,255,255,.07); padding: 3px 7px; border-radius: 7px; font-size: 13px; word-break: break-all; }

/* ---------- App-Icons ---------- */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 10px; margin-top: 30px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 9px; text-decoration: none; font-size: 14px; font-weight: 600; color: #dfe2e8; cursor: pointer; }
.app:active .app-ico { transform: scale(.93); }
.app-ico { position: relative; width: 78px; height: 78px; border-radius: 23px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 26px rgba(0,0,0,.4); transition: transform .15s; }
.app-ico svg.i { width: 38px; height: 38px; stroke-width: 2.2; }
.app-ico .bdg { position: absolute; top: -7px; right: -9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; border: 2px solid var(--bg); }
.g-yt { background: linear-gradient(145deg, #ff4d4d, #c4111b); }
.g-tw { background: linear-gradient(145deg, #a970ff, #5b2fc9); }
.g-tv { background: linear-gradient(145deg, #ffb347, #ef4f1a); }
.g-link { background: linear-gradient(145deg, #5ab2ff, #1b5fe0); }
.g-fav { background: linear-gradient(145deg, #ffd86b, #f29b11); }
.g-ch { background: linear-gradient(145deg, #ff7ab8, #c2185b); }
.g-set { background: linear-gradient(145deg, #8a93a3, #3c424d); }
.g-adm { background: linear-gradient(145deg, #3ee08f, #0b8f55); }
.g-code { background: linear-gradient(145deg, #4b5563, #1f2430); }

/* ---------- Kacheln ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px 18px; }
.grid.logos { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; margin: 0 -28px; padding-left: 28px; padding-right: 28px; scroll-padding-left: 28px; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { width: 310px; flex: none; scroll-snap-align: start; }
.card { position: relative; cursor: pointer; }
.card .thumb { position: relative; aspect-ratio: 16/9; border-radius: 16px; background: #1b1c21 center/cover no-repeat; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .2s, box-shadow .2s; }
.card:hover .thumb { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.5); }
.card:active .thumb { transform: scale(.98); }
.card .thumb.logo { background-size: 62%; background-color: #17181d; border: 1px solid var(--line); }
.card .thumb.round { aspect-ratio: 1; border-radius: 50%; background-size: cover; max-width: 170px; margin: 0 auto; }
.card .noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #555b66; }
.badge { position: absolute; right: 9px; bottom: 9px; background: rgba(0,0,0,.78); padding: 3px 8px; border-radius: 7px; font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); }
.badge.live { background: var(--red); left: 9px; right: auto; top: 9px; bottom: auto; letter-spacing: .05em; }
.badge.off { background: rgba(0,0,0,.65); color: #bbb; left: 9px; right: auto; top: 9px; bottom: auto; }
.prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.prog i { display: block; height: 100%; background: var(--red); }
.card .meta { padding: 11px 2px 0; }
.card.center .meta { text-align: center; }
.card .t { font-weight: 650; font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .s { color: var(--dim); font-size: 14px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .s a { text-decoration: none; }
.card .s a:hover { color: #fff; }
.cact { position: absolute; top: 9px; right: 9px; display: flex; gap: 6px; z-index: 2; }
.cact button { width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(10,10,12,.62); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(10px); }
.cact button svg.i { width: 19px; height: 19px; }
.cact button.on { color: #ffd24a; }
.cact button.on svg.i { fill: #ffd24a; }

.empty { color: var(--dim); padding: 34px 0; text-align: center; }
.spin { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,.12); border-top-color: #fff; border-radius: 50%; animation: sp .8s linear infinite; margin: 40px auto; }
@keyframes sp { to { transform: rotate(360deg); } }
.fade { animation: fd .35s ease both; }
@keyframes fd { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Twitch-Vorschläge ---------- */
.sugg { display: flex; flex-direction: column; gap: 8px; transition: opacity .2s; }
.sugg.busy { opacity: .55; }
.srow { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); cursor: pointer; transition: background .15s, transform .1s; }
.srow:hover { background: var(--glass2); }
.srow:active { transform: scale(.99); }
.srow.off { opacity: .75; }
.srow .av { width: 56px; height: 56px; border-radius: 50%; background: #2a2b33 center/cover no-repeat; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #bbb; }
.srow .av.live { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--red); }
.srow .txt { flex: 1; min-width: 0; }
.srow .t { font-weight: 750; font-size: 18px; }
.srow .s { color: var(--dim); font-size: 14px; margin-top: 2px; }
.srow .s2 { color: #c9ccd3; font-size: 14px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .lv { background: var(--red); color: #fff; font-weight: 800; font-size: 11px; padding: 2px 6px; border-radius: 5px; letter-spacing: .05em; }
.srow .pv { width: 170px; aspect-ratio: 16/9; border-radius: 12px; background: #1b1c21 center/cover no-repeat; flex: none; }
.ibtn.sm { width: 46px; height: 46px; }
.ibtn.sm svg.i { width: 21px; height: 21px; }

/* ---------- Anmeldung ---------- */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.auth-top { display: flex; align-items: center; padding: 22px 30px; }
.auth { margin: auto; width: min(960px, calc(100% - 32px)); display: grid; grid-template-columns: 1fr 1fr; background: rgba(22,23,27,.78); border: 1px solid var(--line); border-radius: 28px; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden; margin-bottom: 60px; }
.auth .side { padding: 40px; }
.auth .side + .side { border-left: 1px solid var(--line); }
.auth h2 { margin: 0 0 4px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.qrframe { width: 254px; margin: 18px auto 12px; padding: 12px; border-radius: 6px;
  background:
    linear-gradient(var(--red), var(--red)) 0 0 / 38px 4px no-repeat, linear-gradient(var(--red), var(--red)) 0 0 / 4px 38px no-repeat,
    linear-gradient(var(--red), var(--red)) 100% 0 / 38px 4px no-repeat, linear-gradient(var(--red), var(--red)) 100% 0 / 4px 38px no-repeat,
    linear-gradient(var(--red), var(--red)) 0 100% / 38px 4px no-repeat, linear-gradient(var(--red), var(--red)) 0 100% / 4px 38px no-repeat,
    linear-gradient(var(--red), var(--red)) 100% 100% / 38px 4px no-repeat, linear-gradient(var(--red), var(--red)) 100% 100% / 4px 38px no-repeat; }
.qr { aspect-ratio: 1; border-radius: 16px; background: #fff; padding: 6px; overflow: hidden; }
.qr svg { width: 100%; height: 100%; display: block; }
.code { text-align: center; font: 800 30px/1 ui-monospace, "SF Mono", monospace; letter-spacing: 6px; margin: 6px 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 14px; color: var(--dim); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.center { text-align: center; }
.err { color: #ff6b70; margin-top: 12px; min-height: 1.2em; font-size: 15px; }

/* ---------- Modal & Toast ---------- */
#modal { position: fixed; inset: 0; background: rgba(0,0,0,.66); backdrop-filter: blur(6px); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
#modal .box { background: rgba(26,27,32,.96); border-radius: 24px; padding: 30px; max-width: 560px; width: 100%; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: fd .25s ease both; }
#modal h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.02em; }
#modal p { color: #c9ccd3; }
#toast { position: fixed; left: 50%; bottom: 118px; transform: translateX(-50%); background: rgba(40,42,50,.95); padding: 13px 22px; border-radius: 14px; z-index: 60; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.5); border: 1px solid var(--line); font-weight: 550; backdrop-filter: blur(12px); }

/* ---------- Player ---------- */
#player { position: fixed; inset: 0; background: #000; z-index: 40; display: flex; user-select: none; }
#screen { flex: 1; min-width: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
#chat { width: 360px; background: rgba(14,14,17,.98); border-left: 1px solid #1f2026; display: flex; flex-direction: column; }
.chat-head { padding: 18px 18px 12px; font-weight: 800; font-size: 17px; border-bottom: 1px solid #1f2026; display: flex; align-items: center; gap: 8px; }
#chatLog { flex: 1; overflow-y: auto; padding: 10px 16px 130px; font-size: 15px; line-height: 1.5; word-wrap: break-word; }
#chatLog .m { padding: 3px 0; }
#chatLog .n { font-weight: 750; }
#chatLog img { height: 26px; vertical-align: middle; }
.pbar { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 18px 24px; transition: opacity .3s; z-index: 2; }
#pTop { top: 0; background: linear-gradient(rgba(0,0,0,.8), transparent); padding-bottom: 50px; }
#pBottom { bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); padding-top: 60px; flex-direction: column; align-items: stretch; gap: 10px; }
#player.chat-on #pTop, #player.chat-on #pBottom { right: 360px; }
#player.idle .pbar, #player.idle #pCenter.ctl { opacity: 0; pointer-events: none; }
.ptitle { flex: 1; min-width: 0; }
#pTitle { font-weight: 750; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
#pStats { color: #b9bcc4; font-size: 14px; margin-top: 2px; }
.ibtn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255,255,255,.13); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); flex: none; transition: transform .12s, background .2s; font-weight: 800; font-size: 13px; }
.ibtn:hover { background: rgba(255,255,255,.22); }
.ibtn:active { transform: scale(.92); }
.ibtn svg.i { width: 26px; height: 26px; }
.ibtn.big { width: 72px; height: 72px; background: #fff; color: #000; }
.ibtn.big svg.i { width: 32px; height: 32px; fill: #000; stroke: #000; }
.ibtn.on { color: #ffd24a; }
.ibtn.on svg.i { fill: #ffd24a; }
.ibtn .lbl10 { position: absolute; font-size: 10px; font-weight: 800; margin-top: 2px; }
.ctrls { display: flex; align-items: center; gap: 12px; }
#pSeekWrap { position: relative; height: 26px; display: flex; align-items: center; }
#pTrack { position: absolute; left: 0; right: 0; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; pointer-events: none; }
#pBuf { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.35); }
#pDone { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); }
#pSeek { position: relative; width: 100%; margin: 0; height: 26px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
#pSeek::-webkit-slider-runnable-track { height: 6px; background: transparent; }
#pSeek::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; margin-top: -7px; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
#pTime { font-variant-numeric: tabular-nums; font-weight: 650; color: #e6e7ea; padding: 0 6px; }
.vol { display: flex; align-items: center; gap: 8px; color: #ddd; }
.vol input { width: 120px; accent-color: #fff; }
#pCenter { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 3; max-width: 80%; }
#player.chat-on #pCenter { left: calc(50% - 180px); }
#pCenter .msg { background: rgba(20,20,24,.82); padding: 22px 30px; border-radius: 22px; font-size: 18px; font-weight: 600; backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.08); min-width: 280px; }
#pCenter .bar { height: 5px; background: rgba(255,255,255,.15); border-radius: 3px; margin-top: 14px; overflow: hidden; }
#pCenter .bar i { display: block; height: 100%; background: #fff; width: 0; transition: width .3s; }
#pToast { position: absolute; left: 50%; top: 100px; transform: translateX(-50%); background: rgba(24,24,28,.92); padding: 12px 20px; border-radius: 16px; z-index: 4; display: flex; gap: 14px; align-items: center; backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.08); font-weight: 550; }

@media (max-width: 820px) {
  .topbar { padding: 12px 16px; }
  main { padding: 6px 16px 130px; }
  .rail { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .rail .card { width: 250px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .grid.logos { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .dock { bottom: 10px; padding: 6px; border-radius: 22px; }
  .dock a { width: 60px; font-size: 11px; }
  .hero { min-height: 280px; }
  .hero .in { padding: 26px; }
  .hero h1 { font-size: 28px; }
  .page-head h1 { font-size: 28px; }
  .auth { grid-template-columns: 1fr; }
  .auth .side + .side { border-left: 0; border-top: 1px solid var(--line); }
  .auth .side { padding: 28px; }
  .apps { grid-template-columns: repeat(4, 1fr); }
  .app-ico { width: 64px; height: 64px; border-radius: 19px; }
  .app-ico svg.i { width: 30px; height: 30px; }
  .app { font-size: 12px; }
  #chat { position: absolute; right: 0; top: 0; bottom: 0; width: 72%; z-index: 1; opacity: .94; }
  #player.chat-on #pTop, #player.chat-on #pBottom { right: 0; }
  .vol, #pFwd30 { display: none; }
  .srow .pv { display: none; }
  .ibtn { width: 46px; height: 46px; }
  .ibtn.big { width: 58px; height: 58px; }
}
