/* Viola News — one stylesheet, no build step. Light and dark follow the phone. */

:root {
  color-scheme: light dark;
  --viola: #5f3394;
  --viola-deep: #2b1450;
  --accent: #5f3394;
  --bg: #f2f2f7;
  --card: #ffffff;
  --text: #16161a;
  --muted: #6c6c78;
  --line: rgba(60, 60, 67, 0.16);
  --fill: rgba(120, 120, 128, 0.12);
  --seg-on: #ffffff;
  --bar-bg: rgba(242, 242, 247, 0.86);
  --red: #e5322d;
  --green: #1f9d55;
  --orange: #e08a00;
  --blue: #2f7cf6;
  --yellow: #f5c400;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --tab-h: 54px;
  --mini-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", var(--font);
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #b38fe8;
    --bg: #000000;
    --card: #1c1c1e;
    --text: #f2f2f7;
    --muted: #a0a0ab;
    --line: rgba(84, 84, 88, 0.55);
    --fill: rgba(120, 120, 128, 0.24);
    --seg-on: #636366;
    --bar-bg: rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.4 var(--font);
  padding-bottom: calc(var(--tab-h) + var(--sab) + 16px);
}
body.has-mini { padding-bottom: calc(var(--tab-h) + var(--sab) + var(--mini-h) + 16px); }
body.noscroll { overflow: hidden; }

button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
.muted { color: var(--muted); }
.boot-msg { padding: 40px 24px; text-align: center; }

/* ------------------------------------------------------------ icons and small parts */

.ico { display: inline-flex; width: 22px; height: 22px; flex: none; vertical-align: middle; }
.ico svg { width: 100%; height: 100%; }
.ico.big { width: 44px; height: 44px; }
.ico.green { color: var(--green); }
.ico.red { color: var(--red); }
.ico.orange { color: var(--orange); }
.ico.blue { color: var(--blue); }
.ico.muted { color: var(--muted); }
.ico.accent { color: var(--accent); }

.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); flex: none; }
.icon-btn:active { background: var(--fill); }
.refresh.busy .ico { animation: spin 0.9s linear infinite; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px; background: var(--fill);
  color: var(--accent); font-weight: 600; font-size: 15px;
}
.btn .ico { width: 18px; height: 18px; }
.btn.primary { background: var(--viola); color: #fff; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn:active { opacity: 0.7; }

.spin { width: 20px; height: 20px; border: 2.5px solid var(--fill); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; flex: none; }
.spin.small { width: 12px; height: 12px; border-width: 2px; }
.loading { display: flex; gap: 10px; justify-content: center; align-items: center; padding: 56px 0; color: var(--muted); }

.empty { text-align: center; padding: 48px 24px; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.empty h3 { color: var(--text); font-size: 18px; }

.note-line { padding: 0 16px 6px; font-size: 13px; color: var(--muted); max-width: 1100px; margin: 0 auto; }
.note-line:empty { display: none; }
.note { display: flex; gap: 8px; align-items: center; color: var(--muted); margin: 12px 0; }

.live-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(229, 50, 45, 0.16); color: var(--red); font-weight: 800; font-size: 11px; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.03em; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.2s ease-in-out infinite; }

.logo { object-fit: contain; flex: none; }
.logo.fallback { display: inline-grid; place-items: center; border-radius: 50%; background: var(--fill); font-size: 11px; font-weight: 700; color: var(--muted); }

.card-shape { display: inline-block; width: 10px; height: 14px; border-radius: 2px; }
.card-shape.yellow { background: var(--yellow); }
.card-shape.red { background: var(--red); }

/* ------------------------------------------------------------ chrome: header, tabs, chips */

.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(var(--sat) + 10px) 12px 6px 16px;
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
}
.bar h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }

#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + var(--sab)); padding-bottom: var(--sab);
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  border-top: 0.5px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; font-weight: 500; color: var(--muted); }
.tab .ico { width: 26px; height: 26px; }
.tab.on { color: var(--accent); }
.tab.on .ico svg { stroke-width: 2.2; }

.toolbar { padding: 4px 16px 6px; max-width: 1100px; margin: 0 auto; }
input[type="search"] {
  width: 100%; appearance: none; -webkit-appearance: none; border: 0; outline: 0;
  background: var(--fill); color: var(--text); border-radius: 12px;
  padding: 10px 14px; font: inherit; font-size: 16px; /* 16px stops iOS zooming in on focus */
}
.segmented { display: flex; background: var(--fill); border-radius: 10px; padding: 2px; margin-top: 10px; gap: 2px; }
.segmented button { flex: 1; text-align: center; padding: 7px 4px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
.segmented button.on { background: var(--seg-on); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 16px 8px; scrollbar-width: none; max-width: 1100px; margin: 0 auto; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--fill); font-size: 14.5px; white-space: nowrap; }
.chip.on { background: var(--viola); color: #fff; font-weight: 600; }

.content { padding: 8px 16px 16px; max-width: 1100px; margin: 0 auto; }
.content.narrow { max-width: 760px; }
.section-title { font-size: 15px; font-weight: 600; color: var(--muted); margin: 22px 4px 8px; }

/* ------------------------------------------------------------ articles */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; }
.card { background: var(--card); border-radius: 16px; display: block; }
.card:active { opacity: 0.85; }

.article { display: flex; gap: 12px; padding: 12px; min-height: 120px; }
.a-text { flex: 1; min-width: 0; display: grid; gap: 5px; align-content: start; }
.a-text h3 { font-size: 16.5px; line-height: 1.25; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.a-text p { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumb { flex: none; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--fill); }
.thumb img, .hero-img img, .reader-hero img { width: 100%; height: 100%; object-fit: cover; }

.a-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.a-meta b { color: var(--accent); font-weight: 650; }
.a-meta .badge { background: rgba(95, 51, 148, 0.16); border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 600; color: var(--text); white-space: nowrap; }
.a-src { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.a-meta.on-dark { color: rgba(255, 255, 255, 0.85); }
.a-meta.on-dark b { color: #fff; }

.hero { position: relative; overflow: hidden; min-height: 240px; color: #fff; grid-column: 1 / -1; background: linear-gradient(135deg, var(--viola), #7d57b3); }
.hero-img { position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, 0.86)); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; z-index: 1; display: grid; gap: 6px; }
.hero-text h2 { font-size: 21px; line-height: 1.2; font-weight: 750; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 760px) { .hero { min-height: 300px; } .hero-text h2 { font-size: 26px; } }

/* ------------------------------------------------------------ match cards, calendar */

.next-match { background: linear-gradient(135deg, var(--viola), var(--viola-deep)); color: #fff; border-radius: 22px; padding: 18px; display: grid; gap: 14px; }
.nm-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 600; opacity: 0.92; gap: 8px; }
.nm-top > span { display: inline-flex; align-items: center; gap: 6px; }
.nm-top .ico { width: 16px; height: 16px; }
.nm-top .tag { font-size: 11px; letter-spacing: 0.1em; font-weight: 800; }
.next-match .live-badge { background: rgba(255, 255, 255, 0.92); }
.nm-main { display: flex; align-items: flex-start; gap: 4px; }
.nm-team { flex: 1; display: grid; justify-items: center; gap: 7px; min-width: 0; text-align: center; font-size: 15px; }
.nm-team .me { font-weight: 800; }
.logo-disc { background: rgba(255, 255, 255, 0.93); border-radius: 50%; padding: 6px; display: grid; place-items: center; }
.nm-center { min-width: 116px; text-align: center; display: grid; gap: 4px; padding-top: 6px; }
.nm-center strong { font: 800 34px/1 var(--rounded); font-variant-numeric: tabular-nums; }
.nm-center small { font-size: 12.5px; opacity: 0.9; font-variant-numeric: tabular-nums; }
.nm-count { text-align: center; font-size: 13px; opacity: 0.85; }
.nm-venue { text-align: center; font-size: 12.5px; opacity: 0.8; display: flex; gap: 5px; justify-content: center; align-items: center; }
.nm-venue .ico { width: 15px; height: 15px; }
.scorers { font-size: 11px; opacity: 0.85; line-height: 1.3; font-weight: 400; }

.list { background: var(--card); border-radius: 16px; overflow: hidden; }
.match-row { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-top: 0.5px solid var(--line); }
.match-row:first-child { border-top: 0; }
.mr-when { width: 84px; flex: none; display: grid; gap: 1px; }
.mr-when b { font-size: 14.5px; }
.mr-when small { color: var(--muted); font-size: 12px; }
.mr-teams { flex: 1; min-width: 0; display: grid; gap: 6px; }
.tl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl.me .tl-name { font-weight: 700; color: var(--accent); }
.tl-score { margin-left: auto; font-variant-numeric: tabular-nums; }
.mr-end { flex: none; min-width: 26px; display: grid; place-items: center; }
.res { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.res-V { background: var(--green); } .res-N { background: #8e8e93; } .res-P { background: var(--red); }
.warn-text { color: var(--orange); font-size: 12px; }

/* ------------------------------------------------------------ standings */

.table { background: var(--card); border-radius: 16px; overflow: hidden; padding: 4px 0; margin-bottom: 16px; }
.table h3 { padding: 10px 14px 4px; font-size: 16px; }
.st-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) repeat(5, 28px) 34px; align-items: center; padding: 8px 8px 8px 0; border-top: 0.5px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.st-head { border-top: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.st-head > span:first-child { text-align: center; }
.st-rank { text-align: center; position: relative; }
.st-rank::before { content: ""; position: absolute; left: 0; top: 50%; height: 22px; width: 4px; transform: translateY(-50%); border-radius: 2px; background: var(--zone, transparent); }
.st-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.st-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-n { text-align: center; color: var(--muted); }
.st-pts { text-align: center; font-weight: 700; }
.st-row.me { background: rgba(95, 51, 148, 0.16); font-weight: 700; }
.legend { display: grid; gap: 6px; padding: 4px; font-size: 12.5px; color: var(--muted); }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend i { width: 4px; height: 14px; border-radius: 2px; }

/* ------------------------------------------------------------ radio */

.now-card { display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: 22px; background: rgba(95, 51, 148, 0.12); }
.now-card.idle p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.now-card h2 { font-size: 22px; }
.now-info { display: grid; gap: 4px; min-width: 0; }
.artwork { display: grid; place-items: center; color: #fff; flex: none; }
.artwork .ico { width: 44%; height: 44%; }
.status { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.status.live { color: var(--red); }
.status.warn { color: var(--orange); letter-spacing: 0; font-weight: 600; }
.status .ico { width: 16px; height: 16px; }
.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.bars i { width: 3px; background: var(--red); border-radius: 1px; animation: eq 0.9s ease-in-out infinite; height: 100%; transform-origin: bottom; }
.bars i:nth-child(2) { animation-delay: 0.2s; } .bars i:nth-child(3) { animation-delay: 0.4s; }
.btn-row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

.stations { display: grid; gap: 12px; margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.station { display: flex; gap: 14px; align-items: center; padding: 14px; width: 100%; }
.station.current { outline: 2px solid var(--viola); }
.st-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.st-info b { font-size: 17px; }
.st-info small { color: var(--muted); font-size: 12.5px; }
.st-info em { color: var(--accent); font-style: normal; font-size: 12px; font-weight: 600; }
.round { width: 40px; height: 40px; border-radius: 50%; background: var(--viola); color: #fff; display: grid; place-items: center; flex: none; }
.round .ico { width: 20px; height: 20px; }

.match-center { margin-top: 16px; }
.mc-card { background: var(--card); border-radius: 22px; padding: 14px; display: grid; gap: 12px; }
.scoreboard { border-radius: 18px; padding: 16px; }
.mc-foot { color: var(--muted); font-size: 11.5px; }
.timeline .tl-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 0.5px solid var(--line); font-size: 14.5px; }
.timeline .tl-row:first-child { border-top: 0; }
.tl-min { width: 44px; flex: none; color: var(--muted); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.tl-ico { width: 22px; flex: none; display: grid; place-items: center; }
.tl-ico .ico { width: 20px; height: 20px; }
.tl-text { flex: 1; min-width: 0; }
.tl-row.goal .tl-text { font-weight: 650; }
.tl-row.period { font-style: italic; color: var(--muted); }
.timeline .btn { margin-top: 8px; }

.sheets { display: grid; gap: 16px; }
.sheet-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.sheet-head b { font-size: 17px; }
.formation { margin-left: auto; background: rgba(95, 51, 148, 0.16); border-radius: 999px; padding: 3px 9px; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sheet h4 { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); margin: 12px 0 4px; }
.pl-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.jersey { width: 28px; height: 22px; border-radius: 5px; background: var(--fill); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; font-variant-numeric: tabular-nums; }
.jersey.on { background: rgba(95, 51, 148, 0.18); }
.pl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.pl-name.off { color: var(--muted); }
.pl-role { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.pl-badges { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.pl-badges .ico { width: 14px; height: 14px; }
.pl-badges span { display: inline-flex; align-items: center; gap: 2px; }
.badge-g { color: var(--green); } .badge-r { color: var(--red); }
@media (min-width: 760px) { .sheets { grid-template-columns: 1fr 1fr; gap: 28px; } .only-narrow { display: none; } }
@media (max-width: 759px) {
  .lineups[data-side="mine"] .sheet.opp, .lineups[data-side="opp"] .sheet.mine { display: none; }
}

.next-line { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--card); margin-top: 16px; }
.next-line div { flex: 1; display: grid; }
.next-line small { color: var(--muted); font-size: 12px; }
.next-line > span:last-child { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------ YouTube */

.channel { margin-top: 30px; }
.channel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.channel-head h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.yt-card { display: grid; gap: 6px; align-content: start; }
.yt-card b { font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-card small { color: var(--muted); font-size: 12.5px; }
.yt-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, 0.5); color: #fff; display: grid; place-items: center; }
.yt-play .ico { width: 20px; height: 20px; }
.yt-live { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; width: 100%; margin-bottom: 16px; background: rgba(229, 50, 45, 0.1); border: 1px solid rgba(229, 50, 45, 0.4); }
.yt-live-thumb { width: 150px; flex: none; }
.yt-live-text { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.yt-live-text b { font-size: 15px; line-height: 1.25; }
.yt-live-text small { color: var(--muted); }

/* ------------------------------------------------------------ mini player */

#miniplayer { position: fixed; left: 10px; right: 10px; bottom: calc(var(--tab-h) + var(--sab) + 8px); z-index: 19; }
.mini-bar { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 999px; padding: 8px 8px 8px 10px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18); border: 0.5px solid var(--line); }
.mini-open { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.mini-text { display: grid; min-width: 0; }
.mini-text b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-text small { color: var(--muted); font-size: 12px; }
.mini-score { display: grid; text-align: right; font-variant-numeric: tabular-nums; }
.mini-score b { font-size: 14.5px; white-space: nowrap; }
.mini-score small { color: var(--red); font-size: 12px; font-weight: 600; }

/* ------------------------------------------------------------ full-screen layers */

.overlay { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; }
.overlay-bar { display: flex; align-items: center; gap: 4px; padding: calc(var(--sat) + 6px) 8px 6px; background: var(--bar-bg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 0.5px solid var(--line); }
.overlay-title { flex: 1; text-align: center; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overlay-actions { display: flex; }
.overlay-scroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(var(--sab) + 24px); }

.reader { max-width: 720px; margin: 0 auto; padding: 16px 20px 24px; }
.reader-hero { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--fill); }
.reader-meta { margin-top: 14px; font-size: 14px; color: var(--muted); }
.reader-meta b { color: var(--accent); }
.r-title { font: 700 28px/1.2 var(--serif); margin: 8px 0 16px; letter-spacing: -0.01em; }
.r-sub { font: 20px/1.4 var(--serif); color: var(--muted); margin-bottom: 18px; }
.r-text { font: 19px/1.65 var(--serif); margin-bottom: 16px; }
.r-heading { font: 600 21px/1.3 var(--serif); margin: 26px 0 10px; }
.r-quote { border-left: 3px solid var(--viola); margin: 16px 0; padding-left: 14px; font: italic 19px/1.6 var(--serif); }
.r-bullet { display: flex; gap: 10px; font: 19px/1.6 var(--serif); margin-bottom: 8px; }
.r-bullet span { color: var(--accent); }
.reader-foot { margin-top: 28px; }
@media (min-width: 760px) { .r-text, .r-bullet, .r-quote { font-size: 20px; } .r-title { font-size: 34px; } }

.video-page { max-width: 960px; margin: 0 auto; padding: 16px; display: grid; gap: 12px; justify-items: start; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-title { font-size: 20px; line-height: 1.25; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--sab) + 24px); transform: translateX(-50%); background: rgba(30, 30, 32, 0.94); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 100; font-size: 14px; }

/* ------------------------------------------------------------ wide screens: a sidebar, like the Mac app */

@media (min-width: 900px) {
  body { padding-left: 220px; padding-bottom: 24px; }
  body.has-mini { padding-bottom: calc(var(--mini-h) + 24px); }
  #tabbar {
    top: 0; bottom: 0; left: 0; right: auto; width: 220px; height: auto;
    display: flex; flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: 28px 12px; border-top: 0; border-right: 0.5px solid var(--line);
  }
  .tab { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
  .tab .ico { width: 22px; height: 22px; }
  .tab.on { background: var(--fill); }
  #miniplayer { left: 232px; right: 12px; bottom: 12px; max-width: 520px; }
  .bar { padding-top: 20px; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.3; } }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .spin, .refresh.busy .ico, .live-badge i, .bars i { animation-duration: 3s; } }
