/* SSV Aurach Dart Control – Vereinsdesign */
:root {
  --lila: #7B4AA3; --lila-d: #5E3680; --lila-l: #EFE7F6; --lila-ll: #F7F3FB;
  --gold: #B08A2E; --gold-l: #F5EEDC;
  --weiss: #FFFFFF; --anthrazit: #23262C; --dunkel: #2F333A; --grau: #3A3F47;
  --bg: #F4F3F6; --card: #FFFFFF; --soft: #F6F4F8; --line2: var(--line2); --track: #E6E2EC; --text2: #4a4552; --inp: #FFFFFF; --line: #E3E0E8; --text: #1E2026; --muted: #6B6F78;
  --ok: #2E9E5B; --ok-l: #E3F4EA; --warn: #D4952A; --warn-l: #FBF1DE; --err: #D64545; --err-l: #FBE7E7; --info: #3C7BD9;
  --r: 10px; --r-s: 6px; --shadow: 0 1px 2px rgba(20,16,30,.06), 0 4px 16px rgba(20,16,30,.06);
  --side: 232px; --top: 58px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 var(--font); color: var(--text); background: var(--bg); -webkit-tap-highlight-color: transparent; }
a { color: var(--lila); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.grow { flex: 1; } .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .col { display: flex; flex-direction: column; gap: 8px; }
.spacer { flex: 1; }

/* ---------- Buttons & Formulare ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--weiss); color: var(--text);
  padding: 7px 12px; border-radius: var(--r-s); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; min-height: 34px; transition: background .12s, border-color .12s, transform .05s; }
.btn:hover { border-color: var(--line); background: var(--lila-ll); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--lila); border-color: var(--lila); color: #fff; } .btn.primary:hover { background: var(--lila-d); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: rgba(123,74,163,.08); }
.btn.icon { padding: 6px 9px; min-width: 34px; }
.btn.sm { min-height: 28px; padding: 4px 9px; font-size: 13px; }
.btn.xl, .btn.xxl { white-space: normal; text-align: center; }
.btn.xl { min-height: 64px; font-size: 18px; padding: 10px 18px; border-radius: var(--r); }
.btn.xxl { min-height: 86px; font-size: 22px; border-radius: 14px; }
input, select, textarea { font: inherit; color: inherit; border: 1px solid var(--line); border-radius: var(--r-s); padding: 7px 10px; background: var(--inp); min-height: 34px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(123,74,163,.35); border-color: var(--lila); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--lila); }
input[type=range] { padding: 0; border: 0; accent-color: var(--lila); min-height: 24px; }
input[type=color] { padding: 2px; width: 48px; }
textarea { min-height: 80px; resize: vertical; }
label.f { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 12px; color: var(--muted); }
label.f > input, label.f > select, label.f > textarea { font-weight: 400; font-size: 14px; color: var(--text); }
label.chk { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form .full { grid-column: 1 / -1; }
.search { position: relative; } .search input { padding-left: 32px; }
.search::before { content: "⌕"; position: absolute; left: 10px; top: 50%; transform: translateY(-52%); color: var(--muted); font-size: 17px; }

/* ---------- Layout ---------- */
#app { height: 100%; }
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); grid-template-rows: var(--top) 1fr; height: 100%; }
.side { grid-row: 1 / 3; background: var(--anthrazit); color: #d9d6de; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.07); min-height: var(--top); }
.brand .logo { width: 38px; height: 38px; object-fit: contain; }
.brand b { color: #fff; font-size: 14px; display: block; letter-spacing: .2px; }
.brand span { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; }
.logo-fallback { width: 38px; height: 38px; border-radius: 50%; background: var(--lila); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; border: 2px solid var(--gold); }
.nav { padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.nav .sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; color: #8b8794; padding: 12px 10px 4px; font-weight: 700; }
.nav a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: #d9d6de; text-decoration: none; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: var(--lila); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav a .ic { width: 20px; text-align: center; }
.top { background: var(--weiss); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 18px; position: relative; z-index: 5; min-width: 0; }
.top .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.top .tsel { min-width: 90px; flex: 0 1 260px; }
.top .title { font-weight: 700; font-size: 16px; }
.top .tsel { max-width: 260px; }
.content { overflow: auto; padding: 18px 18px 110px; position: relative; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--lila-l); color: var(--lila-d); white-space: nowrap; }
.pill.ok { background: var(--ok-l); color: #1f7443; } .pill.warn { background: var(--warn-l); color: #8a5c0e; } .pill.err { background: var(--err-l); color: #a52c2c; } .pill.gold { background: var(--gold-l); color: #7a5f1c; } .pill.grey { background: #ECEBEF; color: #555; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #aaa; }
.dot.ok { background: var(--ok); } .dot.err { background: var(--err); } .dot.warn { background: var(--warn); }
.userchip { display: flex; align-items: center; gap: 8px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--lila); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card > .hd { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
.card > .bd { padding: 14px; }
.page-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { margin: 0; }
.toolbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; margin-bottom: 10px; }
.toolbar .sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.banner { padding: 10px 14px; border-radius: var(--r-s); background: var(--warn-l); color: #7a520d; margin-bottom: 12px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.banner.err { background: var(--err-l); color: #9b2828; } .banner.info { background: var(--lila-l); color: var(--lila-d); }

/* ---------- Tabelle (Excel-Stil) ---------- */
.tablewrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: auto; max-height: calc(100vh - 230px); }
table.grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13.5px; }
table.grid th, table.grid td { border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); padding: 6px 10px; text-align: left; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
table.grid th { position: sticky; top: 0; background: var(--soft); font-weight: 700; color: var(--text2); cursor: pointer; user-select: none; z-index: 1; font-size: 12.5px; }
table.grid th:hover { background: var(--lila-l); }
table.grid th .s { color: var(--lila); margin-left: 4px; }
table.grid tbody tr:hover td { background: var(--lila-ll); }
table.grid tbody tr.sel td { background: #E6DAF1; }
table.grid td.c, table.grid th.c { width: 34px; text-align: center; padding: 4px; }
table.grid tbody tr { cursor: default; }
table.grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.rowimg { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; vertical-align: middle; background: #ddd; }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(20,16,30,.45); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .12s; }
.modal { background: var(--card); border-radius: 14px; width: min(760px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.sm { width: min(440px, 100%); } .modal.lg { width: min(1040px, 100%); }
.modal .mh { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.modal .mh h2 { margin: 0; flex: 1; }
.modal .mb { padding: 16px 18px; overflow: auto; }
.modal .mf { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: -4px 0 14px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 9px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--lila); border-bottom-color: var(--lila); }
@keyframes fade { from { opacity: 0; } }

/* ---------- Toast ---------- */
.toasts { position: fixed; top: 70px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--anthrazit); color: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); font-weight: 600; animation: fade .15s; border-left: 4px solid var(--gold); }
.toast.err { border-left-color: var(--err); } .toast.ok { border-left-color: var(--ok); }

/* ---------- Dashboard ---------- */
.dash-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.dash-tabs .t { padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; cursor: pointer; }
.dash-tabs .t.on { background: var(--lila); border-color: var(--lila); color: #fff; }
.dgrid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 64px; gap: 12px; }
.widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.widget > .wh { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 13.5px; min-height: 40px; }
.widget > .wh .wt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget > .wb { padding: 10px 12px; overflow: auto; flex: 1; min-height: 0; }
.dgrid.edit .widget { outline: 2px dashed rgba(123,74,163,.45); outline-offset: -2px; }
.dgrid.edit .widget > .wh { cursor: move; background: var(--lila-ll); touch-action: none; }
.dgrid.edit .widget > .wb { pointer-events: none; opacity: .75; }
.rz { position: absolute; right: 2px; bottom: 2px; width: 18px; height: 18px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, var(--lila) 50%); border-radius: 0 0 8px 0; touch-action: none; }
.dghost { position: absolute; border: 2px dashed var(--lila); border-radius: var(--r); background: rgba(123,74,163,.08); pointer-events: none; z-index: 10; }
.widget.dragging { opacity: .6; z-index: 20; }
.editbar { position: sticky; top: -18px; z-index: 6; background: var(--gold-l); border: 1px solid #e6d7ad; border-radius: var(--r); padding: 8px 10px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.wcatalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.wcatalog button { text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); cursor: pointer; font: inherit; }
.wcatalog button:hover { border-color: var(--lila); background: var(--lila-ll); }
.wcatalog b { display: block; margin-bottom: 2px; }

/* ---------- Listen ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line2); min-height: 44px; }
.li:last-child { border-bottom: 0; }
.li .main { flex: 1; min-width: 0; padding: 0; overflow: hidden; }
.li .main b, .li .main .sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .sub { font-size: 12px; color: var(--muted); }
.li.now { background: var(--ok-l); border-radius: 8px; }
.li.prep { background: var(--warn-l); border-radius: 8px; }
.li.done { opacity: .55; }
.li.drop { box-shadow: inset 0 3px 0 var(--lila); }
.handle { cursor: grab; color: #aaa; padding: 0 4px; user-select: none; touch-action: none; }
.qnum { width: 26px; height: 26px; border-radius: 50%; background: var(--lila-l); color: var(--lila-d); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }

/* ---------- Regie ---------- */
.live-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.regie { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.onair { border-radius: 14px; padding: 18px; background: var(--anthrazit); color: #fff; position: relative; overflow: hidden; }
.onair .state { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.onair.live { background: linear-gradient(135deg, #5E3680, #7B4AA3); }
.onair.live .state { color: #fff; } .onair.live .state::before { content: "● "; color: #ff5d5d; animation: blink 1s infinite; }
.onair.fading { background: linear-gradient(135deg, #6c5a2b, #B08A2E); }
.onair.prepared { background: linear-gradient(135deg, #3A3F47, #4c4f57); box-shadow: inset 0 0 0 3px var(--gold); }
.onair .who { font-size: 28px; font-weight: 800; margin: 6px 0 2px; line-height: 1.15; }
.onair .song { color: #e8e2ef; font-size: 15px; }
.onair .bar { height: 8px; background: rgba(255,255,255,.18); border-radius: 4px; margin: 14px 0 6px; overflow: hidden; }
.onair .bar i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .25s linear; }
.onair .times { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; font-size: 13px; color: #ddd; }
.ctrl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.ctrl .wide { grid-column: 1 / -1; }
@keyframes blink { 50% { opacity: .2; } }
.director { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: var(--lila-ll); border: 1px solid var(--lila-l); font-weight: 600; flex-wrap: wrap; }

/* ---------- Soundboard ---------- */
.sb { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.sbt { position: relative; border: 0; border-radius: 12px; min-height: 92px; color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; box-shadow: 0 2px 0 rgba(0,0,0,.18); text-shadow: 0 1px 1px rgba(0,0,0,.25); transition: transform .05s, filter .1s; }
.sbt:hover { filter: brightness(1.07); } .sbt:active { transform: scale(.97); }
.sbt .ico { font-size: 26px; line-height: 1; }
.sbt .key { position: absolute; top: 6px; right: 8px; font-size: 11px; background: rgba(0,0,0,.25); padding: 1px 6px; border-radius: 4px; }
.sbt.playing { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ok); }
.sbt.nofile { opacity: .55; }
.sb.compact { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; } .sb.compact .sbt { min-height: 70px; font-size: 13px; } .sb.compact .ico { font-size: 20px; }

/* ---------- Musikleiste ---------- */
.mbar { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 400px; max-width: calc(100vw - 24px); background: var(--anthrazit); color: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); border-top: 3px solid var(--gold); }
.mbar .mh { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; cursor: pointer; user-select: none; }
.mbar .mh .tt { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; font-size: 13px; }
.mbar .mb { padding: 0 14px 12px; }
.mbar .btn { background: rgba(255,255,255,.08); border-color: transparent; color: #fff; }
.mbar .btn:hover { background: rgba(255,255,255,.16); }
.mbar .btn.primary { background: var(--lila); } .mbar .btn.on { background: var(--gold); }
.mbar select { background: #3a3e46; color: #fff; border-color: #4a4e56; }
.mbar .prog { height: 6px; background: rgba(255,255,255,.15); border-radius: 3px; cursor: pointer; margin: 8px 0 3px; }
.mbar .prog i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 3px; }
.mbar .tm { display: flex; justify-content: space-between; font-size: 11px; color: #bbb; font-variant-numeric: tabular-nums; }
.mbar.collapsed { width: auto; }
.mbar .wchip { background: var(--err); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.mbar .plist { max-height: 160px; overflow: auto; margin-top: 8px; font-size: 12.5px; background: rgba(0,0,0,.2); border-radius: 8px; }
.mbar .plist div { padding: 5px 10px; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mbar .plist div.cur { color: var(--gold); font-weight: 700; }
.mbar .plist div:hover { background: rgba(255,255,255,.06); }

/* ---------- Studio ---------- */
.wave-wrap { position: relative; background: #1f1b26; border-radius: var(--r); overflow-x: auto; overflow-y: hidden; height: 190px; user-select: none; }
.wave-wrap canvas { display: block; height: 190px; cursor: crosshair; }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.vlist .li { cursor: pointer; border-radius: 8px; padding: 8px; }
.vlist .li.on { background: var(--lila-l); }
.timefield { font-variant-numeric: tabular-nums; }

/* ---------- Login ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 20% 0%, #8f5cbb 0%, #5E3680 45%, #2a1d38 100%); }
.login .box { background: var(--card); border-radius: 18px; width: min(420px, 100%); padding: 30px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.35); text-align: center; border-top: 5px solid var(--gold); }
.login .crest { width: 112px; height: 112px; object-fit: contain; margin: -4px auto 8px; display: block; }
.login .crest-fb { width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; background: var(--lila); color: #fff; display: grid; place-items: center; font-weight: 800; border: 4px solid var(--gold); font-size: 22px; }
.login h1 { font-size: 22px; margin-bottom: 2px; }
.login .sub { color: var(--gold); font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; font-size: 12px; margin-bottom: 20px; }
.login form { text-align: left; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.login details { margin-top: 18px; text-align: left; }
.login summary { cursor: pointer; color: var(--muted); font-weight: 600; }
body.plain { display: grid; place-items: center; min-height: 100vh; background: var(--bg); }
.plain-card { background: var(--card); padding: 30px; border-radius: 16px; max-width: 480px; box-shadow: var(--shadow); text-align: center; border-top: 5px solid var(--gold); }
.plain-logo { width: 90px; }

/* ---------- Mobile (eigene Oberfläche, nicht nur verkleinert) ---------- */
.bnav { display: none; }
@media (max-width: 860px) {
  /* Ganzer Bildschirm, mit Platz für Statusleiste (oben) und Home-Balken (unten) am iPhone */
  .shell { position: fixed; inset: 0; height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: calc(54px + env(safe-area-inset-top)) minmax(0, 1fr) calc(60px + env(safe-area-inset-bottom)); }
  .side { display: none; }
  .side.open { display: flex; position: fixed; inset: 0 30% 0 0; z-index: 90; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .top { padding: env(safe-area-inset-top) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left)); gap: 8px; } .top .title { font-size: 15px; } .top .tsel { max-width: 46vw; }
  .top .hide-m { display: none; }
  .content { padding: 12px 10px 150px; }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--anthrazit); border-top: 2px solid var(--gold); padding-bottom: env(safe-area-inset-bottom); }
  .bnav a { color: #cfcbd6; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10.5px; gap: 2px; font-weight: 600; }
  .bnav a .ic { font-size: 20px; }
  .bnav a.on { color: #fff; background: rgba(123,74,163,.5); }
  .dgrid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .dgrid .widget { grid-column: 1 !important; grid-row: auto !important; min-height: 160px; max-height: 520px; }
  .regie, .live-grid { grid-template-columns: minmax(0, 1fr); }
  .top .title { display: none; }
  .ctrl { grid-template-columns: 1fr 1fr; }
  .onair { padding: 14px; }
  .onair .who { font-size: 24px; }
  .form { grid-template-columns: minmax(0, 1fr); } .form code, .form .small { overflow-wrap: anywhere; }
  .pl-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .studio { grid-template-columns: 1fr; }
  .mbar { right: 8px; left: 8px; bottom: calc(68px + env(safe-area-inset-bottom)); width: auto; max-width: none; }
  .mbar.collapsed { left: auto; }
  .modal-bg { padding: 0; align-items: end; }
  .modal { border-radius: 16px 16px 0 0; max-height: 92vh; width: 100%; padding-bottom: env(safe-area-inset-bottom); }
  .toolbar .lbl { display: none; }
  .tablewrap { max-height: none; }
  .btn { min-height: 40px; }
  .toasts { top: auto; bottom: calc(140px + env(safe-area-inset-bottom)); left: 10px; right: 10px; max-width: none; }
}
.mcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.mcard.sel { border-color: var(--lila); background: var(--lila-ll); }
.mcard .main { flex: 1; min-width: 0; padding: 0; }
.mcard b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Engine ---------- */
.engine { max-width: 960px; margin: 0 auto; padding: 20px; }
.engine .big { font-size: 20px; font-weight: 800; }
.meter { height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; } .meter i { display: block; height: 100%; background: var(--ok); width: 0; }
.log { font: 12px/1.5 Consolas, monospace; background: #1f1b26; color: #d6d0df; padding: 10px; border-radius: 8px; height: 220px; overflow: auto; white-space: pre-wrap; }

.rbadge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #E5484D; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.bnav a { position: relative; } .bnav .rbadge { position: absolute; top: 2px; right: 18%; margin: 0; }
.roster { border: 2px solid var(--gold, #B08A2E); background: #FFF9E8; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.roster h3 { margin: 0 0 8px; font-size: 15px; }
.roster .it { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #F0E3BD; flex-wrap: wrap; }
.roster .it .nm { flex: 1; min-width: 160px; font-weight: 600; }
.toast.warn { border-left-color: #B08A2E; }

.spot { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.12); }
.spot .spl { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #1DB954; text-transform: uppercase; }
.spot .sptt { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } }
.sp-now { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.sp-cover { width: 128px; height: 128px; border-radius: 10px; overflow: hidden; background: #1E1728; display: flex; align-items: center; justify-content: center; color: #1DB954; font-size: 48px; flex: none; }
.sp-cover img { width: 100%; height: 100%; object-fit: cover; }
.sp-t { font-size: 22px; font-weight: 800; line-height: 1.15; }
.sp-bar { height: 8px; background: var(--track); border-radius: 4px; margin: 14px 0 4px; cursor: pointer; overflow: hidden; }
.sp-bar i { display: block; height: 100%; background: #1DB954; width: 0; }
.btn.big { min-width: 56px; min-height: 48px; font-size: 20px; }
.sp-h { font-size: 14px; margin: 6px 0 8px; color: var(--muted, #6b6577); text-transform: uppercase; letter-spacing: .06em; }
.sp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 14px; }
.sp-tile { cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 10px; border: 1px solid var(--line2); min-width: 0; }
.sp-tile:hover { background: var(--lila-ll, #F6F1FA); }
.sp-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #1E1728; }
.sp-tile b, .sp-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-li { display: flex; align-items: center; gap: 10px; }
.sp-thumb { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; background: #1E1728; flex: none; }

.sp-ph, .sp-tph { display: flex; align-items: center; justify-content: center; color: #1DB954; background: #1E1728; }
.sp-tph { width: 100%; aspect-ratio: 1; border-radius: 6px; font-size: 32px; }
@media (max-width: 600px) { .sp-cover { width: 96px; height: 96px; font-size: 32px; } .sp-t { font-size: 18px; } }

/* Musikleiste (neu) */
.ico { display: block; flex: none; }
.mbar { width: 380px; }
.mbar .mh { gap: 10px; }
.mbar .mtt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.mbar .msrc { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b8b2c2; }
.mbar .mh .tt { font-size: 13px; }
.mbar .chev { color: #bbb; }
.mdot { width: 10px; height: 10px; border-radius: 50%; background: #666; flex: none; }
.mdot.playing { background: var(--gold); box-shadow: 0 0 0 3px rgba(176,138,46,.25); animation: mdp 1.4s ease-in-out infinite; }
.mdot.playing.spot { background: #1DB954; box-shadow: 0 0 0 3px rgba(29,185,84,.25); }
.mdot.paused { background: #8a8494; } .mdot.off { background: var(--err); }
@keyframes mdp { 50% { opacity: .45; } }
.mtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: rgba(0,0,0,.25); padding: 3px; border-radius: 10px; margin-bottom: 10px; }
.mtabs button { display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; color: #cfcad6; font: 600 12.5px var(--font, inherit); padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.mtabs button.on { background: rgba(255,255,255,.12); color: #fff; }
.mtabs button.hidden { display: none; }
.mtabs:has(button.hidden) { grid-template-columns: 1fr; }
.mtabs i.st { width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.mtabs i.st.playing { background: #1DB954; } .mtabs button[data-tab=own] i.st.playing { background: var(--gold); } .mtabs i.st.paused { background: #8a8494; }
.mnow { min-height: 38px; margin-bottom: 2px; }
.mnow.sp { display: flex; gap: 10px; align-items: center; }
.mcov { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; background: #111; display: flex; align-items: center; justify-content: center; flex: none; }
.mcov img { width: 100%; height: 100%; object-fit: cover; }
.mnt { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mns { font-size: 11.5px; color: #b8b2c2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbar .prog.sp i { background: #1DB954; }
.mctl { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0 4px; }
.mbar .btn.icon { width: 38px; height: 38px; min-height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.mbar .btn.icon.play { width: 50px; height: 50px; border-radius: 50%; background: var(--lila); }
.mbar .btn.icon.play.spb { background: #1DB954; color: #08130c; }
.mbar .btn.on { background: var(--gold); color: #17121F; }
.mbar .mrow { margin-top: 6px; gap: 6px; flex-wrap: nowrap; }
.mbar .mrow select { flex: 1; min-width: 0; min-height: 32px; padding: 3px 8px; }
.mbar .mrow input[type=range] { flex: 1; }
.mbar .mvi { color: #cfcad6; }
.mbar .btn.sm { display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.mbar.collapsed .mh { padding-right: 12px; }
.mbar.collapsed { max-width: 360px; }

/* Spotify-Seite */
.btn.icon { display: inline-flex; align-items: center; justify-content: center; }
.spctl { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.btn.icon.spc { width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; color: #3b3644; }
.btn.icon.spc.on { color: #1DB954; background: #E9F8EE; border-color: #BFE9CE; }
.btn.icon.spplay { width: 58px; height: 58px; min-height: 58px; padding: 0; border-radius: 50%; background: #1DB954; border-color: #1DB954; color: #fff; }
.btn.icon.spplay:hover { background: #19a34a; }
.sp-state { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #6b6577); margin-bottom: 2px; }
.sp-state.on { color: #1DB954; }
.btn.icon.sprow { width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 50%; background: #1DB954; border-color: #1DB954; color: #fff; }
.btn.icon.sprow2 { width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 50%; }
.spsearch { flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; background: var(--card); color: #7a7485; }
.spsearch input { border: 0; outline: 0; flex: 1; min-height: 38px; background: transparent; font-size: 14px; }
.sp-cover .ico { width: 64px; height: 64px; }
.btn .ico { display: inline-block; vertical-align: -3px; }
.sp-now input[type=range] { accent-color: #1DB954; } .mbar [data-pane=sp] input[type=range] { accent-color: #1DB954; }

/* ===== Dunkles Design (ganze Software) ===== */
html[data-theme=dark] { color-scheme: dark;
  --weiss: #221D29; --card: #221D29; --bg: #15121A; --soft: #2A2432; --line: #3A3245; --line2: #2E2837; --track: #3A3443; --inp: #1B1721;
  --text: #ECE8F2; --text2: #D6D0DF; --muted: #A39DAE; --lila-l: #3A2A4B; --lila-ll: #2B2236; --gold-l: #3A3122;
  --ok-l: #1C3A28; --warn-l: #3D3020; --err-l: #46222A; --anthrazit: #100E14;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.35); }
html[data-theme=dark] a { color: #C9A6EA; }
html[data-theme=dark] .nav a, html[data-theme=dark] .btn.primary, html[data-theme=dark] .bnav a { color: #fff; }
html[data-theme=dark] .nav a { color: #d9d6de; }
html[data-theme=dark] .pill.ok { color: #7FDCA2; } html[data-theme=dark] .pill.warn { color: #F1C77A; } html[data-theme=dark] .pill.err { color: #FF9A9A; } html[data-theme=dark] .pill.grey { background: #2E2837; color: #C9C3D3; } html[data-theme=dark] .pill.gold { color: #E9CF8A; }
html[data-theme=dark] .banner { color: #F1C77A; } html[data-theme=dark] .banner.err { color: #FF9A9A; } html[data-theme=dark] .banner.info { color: #D9C2F0; }
html[data-theme=dark] table.grid tbody tr:hover td { background: #2B2236; } html[data-theme=dark] table.grid tbody tr.sel td { background: #3A2A4B; }
html[data-theme=dark] .roster { background: #2E2618; border-color: #6B5522; } html[data-theme=dark] .roster .it { border-top-color: #4A3C1E; }
html[data-theme=dark] .btn.icon.spc { color: #D6D0DF; } html[data-theme=dark] .btn.icon.spc.on { background: #173525; border-color: #22573A; color: #4BE07F; }
html[data-theme=dark] .sp-tile:hover { background: #2B2236; }
html[data-theme=dark] .rowimg { background: #3A3443; }
html[data-theme=dark] img.crest-img, html[data-theme=dark] .brand img { filter: none; }
html[data-theme=dark] input::placeholder, html[data-theme=dark] textarea::placeholder { color: #7E778A; }
html[data-theme=dark] .modal-bg { background: rgba(0,0,0,.6); }
.theme-btn .ico { width: 20px; height: 20px; }
.dash-tabs .t { text-decoration: none; color: var(--text); }
.sp-qh { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 4px; }
.sp-hd { width: 22px; display: inline-flex; justify-content: center; color: var(--muted); cursor: grab; flex: none; }
.sp-fixed { background: var(--lila-ll); border-radius: 8px; }
.sp-dim { opacity: .75; }
.li.drop { box-shadow: inset 0 3px 0 var(--lila); }

.sp-embed { width: 100%; border: 0; border-radius: 12px; display: block; }
.btn.icon.sprow2.sbdone { color: #1DB954; border-color: #BFE9CE; font-weight: 800; }
.sbt.spt::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px #1DB954; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--soft); padding: 3px; border-radius: 10px; border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 7px 6px; border-radius: 8px; font: 600 13px var(--font); color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

.sp-tile { position: relative; }
.sp-foreign { position: absolute; top: 12px; left: 12px; z-index: 1; background: rgba(0,0,0,.65); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; letter-spacing: .03em; }
.sp-info { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; line-height: 1.5; }
.btn.sm.sppre { border-radius: 999px; }

.eq { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-items: end; }
.eqb { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.eqb input[type=range] { writing-mode: vertical-lr; direction: rtl; width: 34px; height: 150px; padding: 0; min-height: 0; accent-color: var(--lila); }
.eqv { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.eqn { font-size: 11.5px; color: var(--muted); text-align: center; }

.mbar .mann { border: 0; background: rgba(255,255,255,.08); color: #fff; border-radius: 999px; height: 28px; min-width: 32px; padding: 0 8px; cursor: pointer; font: 700 12px var(--font); white-space: nowrap; }
.mbar .mann:hover { background: rgba(255,255,255,.16); }
.mbar .mann.on { background: var(--err); animation: mdp 1.4s ease-in-out infinite; }
.mbar .mwarn { margin: 0 12px 10px; padding: 8px 10px; border-radius: 10px; background: #5a2328; color: #ffd9d9; font-size: 12.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mbar .mwarn.hidden { display: none; }
.mbar .mwarn .btn { background: #fff; color: #5a2328; }
.sp-warn { background: var(--err-l); color: #9b2828; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.ann-big { width: 100%; min-height: 110px; border-radius: 16px; border: 2px solid var(--line); font: 800 22px var(--font); cursor: pointer; background: var(--soft); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ann-big.on { background: var(--err); color: #fff; animation: mdp 1.4s ease-in-out infinite; }

.sp-drag { cursor: grab; touch-action: none; user-select: none; }
.sp-drag:active { cursor: grabbing; }
.sp-drag:hover { background: var(--lila-ll); border-radius: 8px; }

.sp-ghost { position: fixed; z-index: 999; pointer-events: none; background: var(--card); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: .95; }
[data-mine].dropzone { outline: 2px dashed var(--lila); outline-offset: 2px; border-radius: 8px; }
[data-mine] { min-height: 46px; }
.sp-sim { color: #1DB954; font-weight: 600; }

/* ---- Turnier (3K) ---- */
.tcount { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 9px 14px; border-radius: var(--r-s); margin-bottom: 12px; background: var(--ok-l); color: #1f5c38; }
.tcount.warn { background: var(--warn-l); color: #7a520d; } .tcount a { color: inherit; font-weight: 700; }
.tov { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); }
.tgroups { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); align-items: start; }
.tgroup .bd { overflow-x: auto; } .tgroups > * { min-width: 0; }
.ttable td, .ttable th { padding: 6px 8px; } .ttable tr.through td { background: color-mix(in srgb, var(--tc, var(--ok)) 12%, transparent); }
.ttable tr.through td:first-child { box-shadow: inset 4px 0 0 var(--tc, var(--ok)); } .ttable tr.retired td { opacity: .55; text-decoration: line-through; }
.tthr { font-size: 11px; font-weight: 700; color: var(--tc, #1f7443); text-transform: uppercase; letter-spacing: .03em; margin-left: 4px; }
.tmatches td.win, .km .kp.win { font-weight: 800; } .tmatches td.lose, .km .kp.lose { opacity: .55; }
.tmatches tr.tlive td { background: var(--ok-l); }
.th3 { margin: 18px 0 8px; font-size: 16px; } .tproj { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ktree { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 10px; align-items: stretch; }
.kcol { min-width: 210px; display: flex; flex-direction: column; } .kh { font-weight: 800; text-align: center; padding: 6px; color: var(--lila); }
.kms { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 10px; }
.km { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.km.live { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-l); } .km .kp { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; }
.km .kp + .kp { border-top: 1px solid var(--line); } .km .kp b { min-width: 18px; text-align: right; } .km .kf:empty { display: none; } .km .kf { padding: 3px 8px 6px; }
html[data-theme=dark] .tcount { background: #1d3426; color: #bfe8cd; } html[data-theme=dark] .tcount.warn { background: #3a2f14; color: #f1d79a; }
html[data-theme=dark] .tmatches tr.tlive td { background: #1d3426; }
@media (max-width: 700px) { .tov, .tgroups { grid-template-columns: 1fr; } }

/* Handy verbinden */
.phone { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; } .phone .qr svg { display: block; border-radius: 8px; border: 1px solid var(--line); }
.purl { font: 700 26px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .02em; padding: 10px 14px; background: var(--lila-l); color: var(--lila-d); border-radius: 8px; display: inline-block; user-select: all; margin: 4px 0 8px; }

/* ---------- App-Gefühl am Handy ---------- */
.app-home { display: flex; flex-direction: column; gap: 14px; }
.ah-status { display: flex; flex-wrap: wrap; gap: 6px; } .ah-status .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ah-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ah-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none; min-height: 92px; }
.ah-tile .ic { font-size: 26px; line-height: 1; margin-bottom: 6px; } .ah-tile b { font-size: 15px; } .ah-tile .small { color: var(--muted); }
.ah-tile:active { transform: scale(.97); background: var(--lila-ll); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) {
  html, body { overscroll-behavior: none; -webkit-text-size-adjust: 100%; }
  .content { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  /* kein Zoom beim Doppeltippen, keine Textmarkierung auf Knöpfen */
  button, .btn, a, .bnav, .ah-tile, .chip, .sbt, .ann-big, [data-tab] { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  /* iPhone zoomt bei Eingabefeldern unter 16 px automatisch hinein – deshalb 16 px */
  input, select, textarea { font-size: 16px !important; }
  .btn:active { transform: scale(.97); }
  .page-head { flex-wrap: wrap; gap: 8px; } .page-head h1 { font-size: 20px; width: 100%; margin: 0; }
  /* Dashboard-Reiter: eine Zeile zum Wischen statt drei Zeilen */
  .dash-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .dash-tabs::-webkit-scrollbar { display: none; } .dash-tabs .t { flex: none; } .dash-tabs [data-edit] { display: none; }
  .tabs { scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
  /* Partien als Karten */
  table.tmatches thead { display: none; } table.tmatches, table.tmatches tbody { display: block; }
  table.tmatches tr { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 2px 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); align-items: center; }
  table.tmatches td { display: block; padding: 0 !important; border: 0 !important; background: none !important; }
  table.tmatches tr.tlive { background: var(--ok-l); }
  table.tmatches .c-nr { display: none; } table.tmatches .c-rd { grid-column: 1 / -1; color: var(--muted); }
  table.tmatches .c-h { text-align: right; font-weight: 600; } table.tmatches .c-g { font-weight: 600; } table.tmatches .c-s { text-align: center; font-size: 16px; }
  table.tmatches .c-st { grid-column: 1 / -1; text-align: center; margin-top: 4px; } table.tmatches .c-w { grid-column: 1 / -1; text-align: center; }
  table.tmatches .c-w:empty { display: none; }
  .tov { grid-template-columns: 1fr; } .ktree { gap: 12px; } .kcol { min-width: 180px; }
  .tcount .spacer { display: none; } .tcount > .small { width: 100%; }
}
html[data-theme=dark] .ah-tile:active { background: #2B2236; }
html[data-theme=dark] table.tmatches tr.tlive { background: #1d3426; }
