/* GoodLobe — styles follow the Figma wireframes: blue top bar, light grey page, rounded grey panels,
   pill buttons, Mulish. Scoreboard numbers use Barlow Condensed so games read like a stadium board. */

:root {
  --blue: #4086f4;   /* GoodLobe brand blue (from the logo) */
  --blue-deep: #2b6fde;
  --blue-soft: #e8f0fe;
  --ink: #1e2330;
  --ink-2: #4b5260;
  --muted: #7a808c;
  --line: #d6d9df;
  --page: #f3f4f6;
  --panel: #e6e8ec;
  --panel-2: #eef0f3;
  --card: #ffffff;
  --live: #e5484d;
  --online: #22c55e;
  --gold: #d4a017;
  --focus: #1d4ed8;
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --pill: 999px;
  --font: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --board: 'Barlow Condensed', 'Mulish', system-ui, sans-serif;
  --shadow: 0 6px 24px rgba(30, 35, 48, .10);
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink);
  background: var(--page); min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; outline: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap-ok { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid #8a909b; background: transparent; color: var(--ink);
  border-radius: var(--pill); padding: 7px 18px; font-weight: 600; font-size: 13px;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: rgba(30, 35, 48, .06); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sm { padding: 4px 12px; font-size: 12px; }
.btn.lg { padding: 11px 26px; font-size: 15px; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.live { background: var(--live); border-color: var(--live); color: #fff; }
.btn.ghost { border-color: transparent; }
.btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; color: var(--ink-2); padding: 0;
}
.icon-btn:hover { background: rgba(30, 35, 48, .08); }
.icon-btn svg { width: 18px; height: 18px; }
.heart[aria-pressed="true"] { color: var(--live); }
.heart[aria-pressed="true"] svg path { fill: currentColor; }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue); color: #fff; position: sticky; top: 0; z-index: 40; }
.topbar .inner { max-width: 1400px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; text-decoration: none; letter-spacing: .2px; }
.brand .brand-icon { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.brand .brand-word { height: 22px; width: auto; }
.footer-logo { width: 100%; display: block; }
.footer-logo img { height: 30px; width: auto; }
.quick-leagues { display: flex; gap: 10px; }
.quick-leagues a { display: block; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav > .nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 7px; border-radius: 8px; white-space: nowrap;
  text-decoration: none; font-size: 13px; font-weight: 600; color: #fff; background: none; border: 0; cursor: pointer;
}
.nav-link svg { width: 15px; height: 15px; }
.nav-link:hover { background: rgba(255, 255, 255, .14); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 #fff; border-radius: 0; }
.menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; background: #fff; color: var(--ink);
  border-radius: 14px; box-shadow: var(--shadow); padding: 14px; min-width: 200px; display: none;
}
.nav-item:hover > .menu, .nav-item:focus-within > .menu, .menu.open { display: block; }
.menu .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-width: 330px; }
.menu h4 { font-size: 11px; color: var(--muted); font-weight: 600; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.menu a.menu-row { display: flex; align-items: center; gap: 10px; padding: 5px 4px; border-radius: 8px; text-decoration: none; font-size: 13px; }
.menu a.menu-row:hover { background: var(--panel-2); }
.menu .sub { font-size: 11px; color: var(--muted); display: block; line-height: 1.1; }
.menu.more { min-width: 170px; right: 0; left: auto; }
.menu.more a { display: block; padding: 6px 8px; font-size: 13px; text-decoration: none; border-radius: 6px; }
.menu.more a:hover { background: var(--panel-2); }
.menu.more .sep { border-top: 1px solid var(--line); margin: 6px 0; }

.search { position: relative; width: 230px; flex: none; }
.search input {
  width: 100%; border: 1.5px solid rgba(255,255,255,.75); background: transparent; color: #fff; border-radius: var(--pill);
  padding: 6px 12px 6px 32px; font-size: 13px;
}
.search input::placeholder { color: rgba(255,255,255,.75); }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; }
.search .menu { left: 0; right: 0; min-width: 0; }
.auth-links { display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 700; }
.auth-links a { text-decoration: none; }
.user-menu { position: relative; }
.user-menu > button { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.user-menu .menu { right: 0; left: auto; min-width: 210px; }
.user-menu .menu a, .user-menu .menu button { display: block; width: 100%; text-align: left; padding: 7px 8px; border-radius: 6px; text-decoration: none; font-size: 14px; background: none; border: 0; cursor: pointer; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--panel-2); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(229,72,77,.22); }
.nav-toggle { display: none; }

@media (max-width: 1280px) { .quick-leagues { display: none; } }
@media (max-width: 1180px) {
  .search { width: 180px; }
  .nav-link svg { display: none; }
}
@media (max-width: 900px) {
  .topbar .inner { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav .menu { display: none !important; }
  .search { flex: 1; width: auto; order: 2; }
  .auth-links { order: 2; gap: 12px; }
}

/* ---------- Badges & avatars ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--panel); position: relative; }
.avatar-wrap { position: relative; display: inline-block; flex: none; line-height: 0; }
.avatar-wrap .online { position: absolute; right: 0; bottom: 1px; width: 26%; height: 26%; min-width: 8px; min-height: 8px; border-radius: 50%; background: var(--online); border: 2px solid #fff; }
.initials { display: grid; place-items: center; color: #fff; font-weight: 700; border-radius: 50%; }
.team-badge {
  display: inline-grid; place-items: center; flex: none; border-radius: 30% 30% 46% 46% / 22% 22% 60% 60%;
  font-family: var(--board); font-weight: 700; letter-spacing: .3px; line-height: 1; border: 2px solid rgba(0,0,0,.08);
}
.league-badge { display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #fff; font-family: var(--board); font-weight: 700; line-height: 1; background: #fff; }
.crown { width: 13px; height: 13px; color: var(--ink-2); flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; background: #fff; border-radius: var(--pill); font-size: 12px; font-weight: 600; text-decoration: none; }
.chip.grey { background: var(--panel); }
.tag-live { display: inline-flex; align-items: center; gap: 6px; background: var(--live); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: var(--pill); letter-spacing: .3px; }
.tag-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tag-live::before { animation: none; } }

/* ---------- Page scaffolding ---------- */
.page { padding: 28px 0 56px; }
.page-title { font-size: 26px; font-weight: 800; color: var(--ink-2); text-align: center; margin-bottom: 26px; }
.titled { display: inline-block; font-size: 20px; font-weight: 800; color: var(--ink-2); position: relative; padding-bottom: 6px; }
.titled::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 56%; transform: translateX(-30%); height: 2px; background: var(--ink-2); border-radius: 2px; }
.panel { background: var(--panel); border-radius: var(--radius-lg); padding: 20px; }
.panel-head { text-align: center; font-weight: 700; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1.5px solid #fff; }
.card { background: var(--card); border-radius: var(--radius-lg); padding: 20px; }
.empty { text-align: center; color: var(--muted); padding: 18px 8px; font-size: 14px; }
.empty .btn { margin-top: 10px; }
.layout-home { display: grid; grid-template-columns: 200px 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .layout-home { grid-template-columns: 1fr; gap: 24px; } .sidebar, .sidebar-slot { order: 2; } }

/* ---------- First-visit homepage ---------- */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; background: #fff; border-radius: var(--radius-lg); padding: 40px 44px; margin-bottom: 20px; }
.hero-copy h1 { font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -.3px; max-width: 18ch; }
.hero-copy > p { font-size: 16px; color: var(--ink-2); margin: 14px 0 22px; max-width: 46ch; }
.hero-copy > p.small { font-size: 13px; margin: 14px 0 0; }
.hero-demo { background: var(--panel); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.hero-demo-top { display: flex; align-items: center; gap: 12px; }
.hero-demo-name { font-weight: 800; }
.hero-demo-wave { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; background: #fff; border-radius: var(--pill); overflow: hidden; }
.hero-demo-wave i { display: block; width: 4px; border-radius: 2px; background: #9aa0aa; flex: none; }
.hero-demo-controls { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.hero-demo-controls svg { width: 22px; height: 22px; }
.hero-demo-controls .delay { font-family: var(--board); background: #cfd3da; border-radius: 5px; padding: 1px 10px; font-size: 16px; }
.hero-demo-controls .live-pill { background: var(--live); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: var(--pill); }
.spotlight { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--team-a, #111); color: #fff; border-radius: var(--radius-lg); padding: 18px 24px; margin-bottom: 20px; border-left: 8px solid var(--team-b, #c4ced4); }
.spotlight .team-badge { border-color: rgba(255,255,255,.35); }
.spotlight-title { font-family: var(--board); font-size: 26px; font-weight: 700; letter-spacing: .3px; line-height: 1.1; }
.spotlight-sub { font-size: 14px; opacity: .85; margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.btn.spot-primary { background: #fff; border-color: #fff; color: #111; }
.btn.spot-primary:hover { background: #e9ecef; }
.btn.spot-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn.spot-ghost:hover { background: rgba(255,255,255,.12); }
.how { margin-bottom: 32px; }
.how h2 { font-size: 18px; color: var(--ink-2); margin-bottom: 12px; }
.how-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 18px 18px 18px 64px; position: relative; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); }
.how-steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--board); font-weight: 700; font-size: 19px; display: grid; place-items: center; }
.how-steps strong { color: var(--ink); font-size: 15px; }
.pitch-card { margin-top: 28px; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pitch-card h2 { font-size: 20px; margin-bottom: 10px; }
.pitch-card ul { list-style: disc; padding-left: 20px; font-size: 14px; opacity: .9; display: grid; gap: 4px; }
.contact-cta { gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 26px 22px; gap: 24px; }
  .hero-copy h1 { font-size: 27px; }
  .how-steps { grid-template-columns: 1fr; }
}

/* Sidebar favorite cards (wireframe: blue cap header, white body) */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.fav-card { background: #fff; border-radius: 14px; overflow: hidden; }
.fav-card h3 { background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; text-align: center; padding: 8px; }
.fav-card ul li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.fav-card ul li a { text-decoration: none; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.fav-card .foot { padding: 12px; text-align: center; }
.fav-card .sub { font-size: 10px; color: var(--muted); display: block; line-height: 1.1; }
@media (max-width: 860px) { .sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

/* Trending panel */
.trending { background: var(--panel); border-radius: var(--radius-lg); padding: 28px 24px 40px; }
.trending > header { text-align: center; margin-bottom: 18px; }
.trend-section { margin: 0 auto; max-width: 560px; }
.trend-section + .trend-section { margin-top: 44px; }
.trend-section h3 { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.trend-section .more { text-align: center; margin-top: 16px; }

/* A game row: [badge] Home  time/score  Away [badge] */
.game {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 16px 6px;
  border-bottom: 1.5px solid #fff; text-decoration: none; border-radius: 10px;
}
.game:last-of-type { border-bottom: 0; }
.game:hover { background: rgba(255,255,255,.45); }
.game .side { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.game .side.home { justify-content: flex-end; }
.game .side.home .team-name { text-align: right; }
.game .mid { text-align: center; min-width: 92px; }
.game .mid .time { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.game .mid .score { font-family: var(--board); font-size: 26px; font-weight: 700; letter-spacing: 1px; line-height: 1; }
.game .mid .date { font-size: 12px; color: var(--muted); }
.game .meta { grid-column: 1 / -1; display: flex; justify-content: center; gap: 12px; font-size: 11px; color: var(--muted); margin-top: -6px; }
.game.titled-event .mid { grid-column: 1 / -1; }
@media (max-width: 520px) {
  .game { gap: 8px; }
  .game .team-name { font-size: 13px; }
  .game .mid { min-width: 70px; }
}

/* Narrator rows / grids */
.narr-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1.5px solid #fff; text-decoration: none; }
.narr-row:last-child { border-bottom: 0; }
.narr-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
@media (max-width: 560px) { .narr-pair { grid-template-columns: 1fr; } }
.narr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 34px 26px; }
.narr-tile { display: flex; gap: 14px; align-items: flex-start; }
.narr-tile .name { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.narr-tile .subs { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.narr-tile .they { font-size: 13px; color: var(--ink-2); margin: 8px 0 6px; }
.badge-grid { display: grid; grid-template-columns: repeat(2, 28px); gap: 8px 10px; }

/* Forms */
.form { max-width: 380px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.form.wide { max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 56px; }
.form.wide .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form.wide { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-size: 13px; color: var(--ink-2); margin: 0 0 6px 14px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #8a909b; background: #fff; border-radius: 14px; padding: 10px 14px; font-size: 14px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input[type="checkbox"] { width: auto; }
.field .err { color: #b42318; font-size: 12px; margin: 5px 0 0 14px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d92d20; }
.field .help { font-size: 12px; color: var(--muted); margin: 6px 0 0 14px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; justify-content: center; }
.check input { width: 16px; height: 16px; }
.form-error { background: #fef3f2; color: #b42318; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.form-ok { background: #ecfdf3; color: #067647; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.upload-box {
  display: grid; place-items: center; width: 160px; height: 96px; margin: 0 auto; border: 1px solid #8a909b; border-radius: 14px;
  background: #fff; cursor: pointer; overflow: hidden; position: relative;
}
.upload-box img { width: 100%; height: 100%; object-fit: cover; }
.upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box svg { width: 22px; height: 22px; color: var(--muted); }

/* ---------- Broadcast (listener) page ---------- */
.bc-top { display: grid; grid-template-columns: 220px 220px 1fr; gap: 20px; align-items: stretch; }
.bc-info { background: var(--panel); border-radius: var(--radius-lg); padding: 18px; text-align: center; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.bc-info strong { font-weight: 700; }
.bc-info .src { display: block; color: var(--blue-deep); font-weight: 800; }
.bc-banner { justify-self: end; align-self: center; border-radius: var(--radius-lg); background: var(--panel); min-height: 0; display: flex; align-items: center; color: var(--muted); }
.bc-banner:empty { display: none; }
.banner-btn { background: transparent; border: 0; padding: 18px 34px; font: inherit; font-weight: 800; font-size: 16px; color: var(--ink-2); cursor: pointer; border-radius: inherit; white-space: nowrap; }
.banner-btn:hover { background: #dcdfe5; }
.banner-hold { padding: 18px 34px; font-weight: 700; font-size: 15px; color: var(--muted); white-space: nowrap; }
.bc-banner.sponsored { background: #fff; border: 2px solid var(--gold); padding: 8px 22px; min-height: 60px; max-width: 420px; }
.banner-sponsor { display: flex; align-items: center; gap: 12px; color: var(--ink-2); min-width: 0; }
.banner-sponsor > div { min-width: 0; }
.banner-sponsor .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-sponsor .tiny { text-transform: none; letter-spacing: 0; color: var(--muted); }
.sponsor-name { font-family: var(--board); font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.sponsor-name a { text-decoration: none; }
.sponsor-name a:hover { text-decoration: underline; }
.sponsor-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: var(--panel-2); flex: none; }
.msg.system { justify-content: center; background: #fff7e0; }
.msg.system .text { color: var(--ink); }
.poll-card { background: var(--panel); border-radius: var(--radius-lg); padding: 14px 16px; }
.poll-card h3 { font-size: 14px; text-align: center; padding-bottom: 8px; border-bottom: 1.5px solid #fff; margin-bottom: 10px; }
.poll-opt { display: block; width: 100%; position: relative; border: 0; background: rgba(255,255,255,.6); border-radius: 8px; padding: 6px 10px; margin-bottom: 6px; text-align: left; font-size: 12px; cursor: pointer; overflow: hidden; }
.poll-opt .fill { position: absolute; inset: 0 auto 0 0; background: rgba(59,127,245,.22); transition: width .4s; }
.poll-opt .lbl { position: relative; display: flex; justify-content: space-between; gap: 8px; }
.poll-opt.mine { outline: 2px solid var(--blue); }
.scoreline { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-2); }
.scoreline .board { font-family: var(--board); background: #cfd3da; border-radius: 5px; padding: 1px 8px; font-size: 16px; letter-spacing: 1px; }
.scoreline .clock { font-family: var(--board); background: #cfd3da; border-radius: 5px; padding: 1px 8px; font-size: 14px; }
.bc-headrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 26px 0 16px; flex-wrap: wrap; }
.bc-headrow h1 { font-size: 20px; color: var(--ink-2); margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.join-btn { background: var(--panel); border: 0; border-radius: var(--radius-lg); padding: 18px 34px; font-weight: 800; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.join-btn:hover { background: #dcdfe5; }
.bc-main { display: grid; grid-template-columns: 1.65fr 1fr; gap: 36px; align-items: stretch; }
@media (max-width: 980px) {
  .bc-top { grid-template-columns: 1fr 1fr; }
  .bc-banner { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
  .bc-banner .banner-btn { width: 100%; }
  .bc-main { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .bc-top { grid-template-columns: 1fr; } }

.player { background: var(--panel); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.player .stage { position: relative; aspect-ratio: 16 / 9; background: #dfe2e7; display: grid; place-items: center; }
.player .stage iframe, .player .stage .yt-host { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .stage .audio-art { display: grid; place-items: center; gap: 12px; text-align: center; padding: 20px; }
.player .stage .audio-art .avatar-wrap { line-height: 0; }
.player .stage .tap { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(30,35,48,.35); border: 0; cursor: pointer; color: #fff; font-weight: 800; font-size: 16px; }
.player .stage .tap span { white-space: nowrap; background: var(--blue); padding: 12px 22px; border-radius: var(--pill); display: inline-flex; gap: 8px; align-items: center; }
.player .progress { height: 4px; background: #fff; position: relative; }
.player .progress .bar { position: absolute; inset: 0 auto 0 0; background: #8a909b; width: 100%; }
.controls { display: flex; align-items: center; gap: 10px; padding: 12px 16px; flex-wrap: wrap; }
.controls .delay { font-family: var(--board); background: #cfd3da; border-radius: 5px; padding: 1px 8px; font-size: 14px; min-width: 36px; text-align: center; }
.controls .live-pill { border: 0; border-radius: var(--pill); padding: 2px 10px; font-size: 11px; font-weight: 800; background: #b9bec7; color: #fff; cursor: pointer; }
.controls .live-pill.at-live { background: var(--live); }
.wave { flex: 1; min-width: 140px; height: 34px; background: rgba(255,255,255,.7); border-radius: var(--pill); display: block; }
.sync-help { font-size: 12px; color: var(--muted); padding: 0 16px 12px; }

.chat { background: var(--panel); border-radius: var(--radius-lg); display: flex; flex-direction: column; min-height: 380px; max-height: 560px; padding: 14px; position: relative; }
.chat-head { display: flex; align-items: center; justify-content: center; position: relative; padding-bottom: 10px; border-bottom: 1.5px solid #fff; }
.chat-head h2 { font-size: 18px; color: var(--ink-2); }
.chat-head .count { position: absolute; right: 4px; font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.chat-list { flex: 1; overflow-y: auto; padding: 10px 2px; display: flex; flex-direction: column; gap: 4px; }
.msg { display: flex; gap: 10px; padding: 7px 10px; border-radius: 14px; align-items: flex-start; }
.msg.narrator { background: rgba(255,255,255,.75); }
.msg .who { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.msg .who a { text-decoration: none; }
.msg .text { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.msg .del { margin-left: auto; opacity: 0; }
.msg:hover .del { opacity: 1; }
.chat-form { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.75); border-radius: var(--pill); padding: 6px 6px 6px 14px; }
.chat-form input { flex: 1; border: 0; background: transparent; font-size: 13px; outline: none; min-width: 0; }
.popover { position: absolute; z-index: 30; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; width: 260px; font-size: 13px; }
.popover p { color: var(--muted); font-size: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ink-2); margin: 4px 0 8px; }
.popover a { font-weight: 700; text-decoration: none; }

.bc-bottom { display: grid; grid-template-columns: auto auto 1fr auto; gap: 28px; align-items: start; margin-top: 30px; }
@media (max-width: 860px) { .bc-bottom { grid-template-columns: 1fr; } }
.venmo-dot { width: 34px; height: 34px; border-radius: 50%; background: #3d95ce; color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 18px; font-style: italic; }
.others { margin-top: 36px; }
.others h3 { font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.others .list { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Event page ---------- */
.event-hero { background: var(--card); border-radius: var(--radius-lg); padding: 28px 20px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.event-hero .side { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 700; }
.event-hero .mid { text-align: center; }
.event-hero .big { font-family: var(--board); font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: 2px; }
.event-hero .when { font-family: var(--board); font-size: 28px; font-weight: 700; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pick { background: var(--card); border-radius: var(--radius-lg); padding: 16px; display: flex; gap: 14px; align-items: center; text-decoration: none; border: 2px solid transparent; }
.pick:hover { border-color: var(--blue); }
.pick .name { font-weight: 800; display: flex; align-items: center; gap: 6px; }
.section-h { font-size: 16px; font-weight: 800; color: var(--ink-2); margin: 34px 0 14px; display: flex; align-items: center; gap: 10px; }

/* ---------- Studio (Broadcaster toolbox) ---------- */
.studio-top { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start; }
.studio-top .title { font-size: 34px; font-weight: 800; color: var(--ink-2); text-align: center; align-self: center; }
.profile-mini { background: #fff; border-radius: 14px; padding: 14px; font-size: 13px; }
.profile-mini .rule { border-top: 1px solid var(--line); margin: 10px 0; }
.studio-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 28px; }
.studio-grid > .panel { min-width: 0; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; } .span-3 { grid-column: span 3; }
@media (max-width: 980px) {
  .studio-top { grid-template-columns: 1fr; }
  .studio-grid > * { grid-column: span 12 !important; }
}
.bar-row { position: relative; background: #c8ccd3; border-radius: 6px; height: 28px; margin-bottom: 8px; overflow: hidden; font-size: 12px; color: #fff; }
.bar-row .fill { position: absolute; inset: 0 auto 0 0; background: #9aa0aa; }
.bar-row .lbl { position: relative; display: flex; justify-content: space-between; padding: 0 12px; line-height: 28px; font-weight: 600; }
.stat-row { display: flex; justify-content: space-between; align-items: center; background: #b9bec7; color: #fff; border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.stat-row b { font-family: var(--board); font-size: 18px; }
.circle-opts { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.circle-btn { width: 50px; height: 50px; border-radius: 50%; background: #c8ccd3; border: 0; font-weight: 700; color: var(--ink-2); cursor: pointer; font-size: 13px; display: grid; place-items: center; text-align: center; line-height: 1.05; padding: 2px; }
.circle-btn.on { background: var(--ink); color: #fff; }
.circle-btn.playing { background: var(--blue); color: #fff; }
.go-live { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.source-tabs { display: inline-flex; background: #fff; border-radius: var(--pill); padding: 4px; gap: 4px; }
.source-tabs button { border: 0; background: none; padding: 7px 16px; border-radius: var(--pill); font-weight: 700; font-size: 13px; cursor: pointer; }
.source-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.meter { width: 100%; height: 10px; background: #fff; border-radius: var(--pill); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--online); transition: width .08s; }
.tip-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 0; }
.tip-row .vote { display: flex; flex-direction: column; align-items: center; font-size: 10px; color: var(--muted); }
.list-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.short-link { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid #8a909b; border-radius: 14px; padding: 8px 12px; font-size: 13px; }
.short-link code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(30,35,48,.48); z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: 14px; width: min(760px, 100%); max-height: 90vh; overflow: auto; padding: 32px; position: relative; }
.modal .x { position: absolute; top: 12px; right: 12px; }
.modal h2 { font-size: 20px; margin-bottom: 14px; }
.modal-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.modal-choices .btn { padding: 14px 18px; font-size: 14px; white-space: normal; border-radius: 14px; }
@media (max-width: 600px) { .modal-choices { grid-template-columns: 1fr; } }

/* ---------- Profile ---------- */
.prof-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.prof-head .name { font-weight: 800; display: flex; align-items: center; gap: 6px; font-size: 16px; }
.prof-tags { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 10px 14px; align-items: center; font-size: 13px; margin-top: 14px; padding-top: 12px; border-top: 1.5px solid #8a909b; max-width: 560px; }
.prof-tags .k { font-weight: 700; }
@media (max-width: 560px) { .prof-tags { grid-template-columns: auto 1fr; } }
.about { background: #fff; border-radius: var(--radius-lg); padding: 28px; max-width: 720px; margin: 32px auto; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; min-height: 150px; }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; } }
.socials a { display: flex; align-items: center; gap: 8px; font-size: 13px; text-decoration: none; padding: 3px 0; }
.socials svg { width: 15px; height: 15px; }
.prof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
@media (max-width: 900px) { .prof-grid { grid-template-columns: 1fr; } }
.prof-grid .panel { min-height: 200px; }
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-top: 40px; }
.sponsor { aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; display: grid; place-items: center; text-decoration: none; background: var(--panel); text-align: center; font-weight: 800; color: var(--ink-2); padding: 12px; }
.sponsor img { width: 100%; height: 100%; object-fit: cover; }
.sponsor.slot { border: 2px dashed #b9bec7; background: transparent; font-weight: 600; color: var(--muted); font-size: 14px; }

/* Subscribers page */
.subs-card { background: #fff; border-radius: var(--radius-lg); max-width: 560px; margin: 0 auto; padding: 24px 16px 30px; }
.subs-tabs { display: flex; gap: 40px; justify-content: center; }
.subs-tabs button { background: none; border: 0; cursor: pointer; text-align: center; font-weight: 700; font-size: 13px; padding-bottom: 2px; }
.subs-tabs button b { display: block; font-size: 14px; }
.subs-tabs button[aria-selected="true"] { box-shadow: inset 0 -1.5px 0 var(--ink); }
.subs-card .head { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 0 10px 14px; flex-wrap: wrap; }
.search-inline { position: relative; max-width: 300px; margin: 22px auto 16px; }
.search-inline input { width: 100%; border: 1px solid var(--line); border-radius: var(--pill); padding: 6px 12px 6px 32px; font-size: 13px; }
.search-inline svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.subs-list { max-width: 300px; margin: 0 auto; }
.subs-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 12px; }

/* League page */
.league-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 40px 60px; }
.league-card { background: #fff; border-radius: var(--radius-lg); padding: 22px 18px 16px; }
.league-card .t { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 18px; text-decoration: none; }
.league-card .people { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 10px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.person button.who { display: flex; align-items: center; gap: 4px; border: 0; background: none; font-weight: 700; font-size: 13px; color: var(--ink-2); cursor: pointer; padding: 0; white-space: nowrap; }
.person button.who > svg { width: 12px; height: 12px; flex: none; }
.person .more-info { font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.dots { display: flex; justify-content: center; gap: 5px; margin-top: 16px; }
.dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: #c8ccd3; cursor: pointer; }
.dots button[aria-current="true"] { background: var(--ink-2); }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: 12px; overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { background: var(--panel-2); font-weight: 700; }
.totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.totals .card { text-align: center; }
.totals b { display: block; font-family: var(--board); font-size: 34px; }
@media (max-width: 700px) { .totals { grid-template-columns: repeat(2, 1fr); } .admin-table { display: block; overflow-x: auto; } }

/* ---------- Footer ---------- */
.footer { background: #dcdee2; margin-top: 40px; border-top: 34px solid #fff; }
.footer .inner { max-width: var(--wrap); margin: 0 auto; padding: 48px 20px 60px; display: flex; gap: 30px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.footer .pitch { border: 1.5px solid #8a909b; border-radius: 14px; padding: 18px 20px; font-size: 13px; font-weight: 700; color: var(--ink-2); max-width: 270px; text-decoration: none; display: block; }
.footer .pitch:hover { background: rgba(255,255,255,.4); }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; }
.footer nav a { text-decoration: none; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.footer nav a svg { width: 15px; height: 15px; }
.footer nav a:hover { text-decoration: underline; }
.footer .legal { font-size: 12px; color: var(--muted); width: 100%; }
.contact-cta { display: flex; justify-content: center; margin-top: 56px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--pill); font-size: 14px; box-shadow: var(--shadow); pointer-events: auto; }
.toast.err { background: #b42318; }

/* Loading skeleton */
.loading { padding: 80px 0; text-align: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; margin: 0 auto 10px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sound library */
.lib-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lib-item { display: flex; align-items: center; gap: 12px; background: var(--panel-2); border-radius: 12px; padding: 10px 12px; }
.lib-item .circle-btn { width: 40px; height: 40px; flex: none; }
@media (max-width: 600px) { .lib-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .brand .brand-icon { width: 26px; height: 26px; }
  .brand .brand-word { height: 17px; }
  .search { min-width: 90px; }
}

/* Narrator's picture behind the live page */
.bc-page { position: relative; isolation: isolate; }
.bc-backdrop { position: fixed; inset: 0; z-index: -1; background: center / cover no-repeat; pointer-events: none; }
.bc-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(243,244,246,.25), rgba(243,244,246,.55)); }
.bc-page.has-bg .bc-info, .bc-page.has-bg .poll-card, .bc-page.has-bg .bc-banner:not(.sponsored), .bc-page.has-bg .chat,
.bc-page.has-bg .player, .bc-page.has-bg .bc-bottom, .bc-page.has-bg .card, .bc-page.has-bg .join-btn {
  background-color: rgba(236, 238, 242, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.bc-page.has-bg .bc-bottom { border-radius: var(--radius-lg); padding: 16px 20px; }
.bc-page.has-bg .bc-headrow > div:first-child { background: rgba(255,255,255,.88); border-radius: var(--radius-lg); padding: 10px 18px 12px; backdrop-filter: blur(10px); }
.bc-page.has-bg .bc-headrow h1 { margin-top: 8px; }
.player .stage { background-size: cover; background-position: center; }
.player .stage .audio-art strong { color: inherit; }
.bc-page.has-bg .player .stage .audio-art { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.bc-page.has-bg .player .stage .audio-art .muted { color: #f1f3f6; }
/* Toolbox: stream background picker */
.bg-box { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 10px 14px; max-width: 520px; width: 100%; text-align: left; }
.bg-thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.bg-thumb.empty { display: grid; place-items: center; background: var(--panel-2); color: var(--muted); font-size: 11px; }

/* ---- Tips in chat + fixed sponsor price ---- */
.msg.tip { background: #eef4ff; border-left: 3px solid var(--blue); border-radius: 10px; padding: 8px 10px; }
.msg.tip .text { font-weight: 700; color: #1f3d7a; }
.tip-chip { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; margin-right: 6px; vertical-align: 1px; }
.sponsor-price { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 700; color: var(--blue); }

/* ---- Take a break ---- */
.break-box { width: 100%; max-width: 560px; margin: 0 auto; background: var(--panel-2); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.break-box select, .break-box input[type=text] { border-radius: 10px; border: 1px solid #8a909b; padding: 6px 10px; background: #fff; }
.break-box input[type=text] { flex: 1; min-width: 180px; }
.chip-btn { border: 1px solid #8a909b; background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.chip-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.break-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.break-track { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid transparent; border-radius: 10px; padding: 6px 8px; cursor: pointer; }
.break-track.on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.break-track input { accent-color: var(--blue); }
.break-track .grow { display: flex; flex-direction: column; line-height: 1.2; }
.break-on { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.break-clock { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .break-tracks { grid-template-columns: 1fr; } }
.break-card { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px;
  background: radial-gradient(circle at 50% 30%, #2f5fb8 0%, #1d2a48 70%); color: #fff; border-radius: inherit; }
.break-card .break-kind { font-family: var(--board); font-size: 44px; font-weight: 700; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.break-card .break-msg { font-size: 17px; opacity: .92; max-width: 460px; }
.break-card .break-time { font-variant-numeric: tabular-nums; font-size: 14px; opacity: .8; }
.break-card .break-track-name { font-size: 13px; opacity: .75; display: flex; align-items: center; gap: 6px; }
.break-card .break-track-name svg { width: 14px; height: 14px; }
.break-card .break-sponsor { margin-top: 6px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,214,102,.6); border-radius: 999px; padding: 6px 16px; font-size: 13px; }
.break-card .break-sponsor strong { color: #ffd666; }
.break-card .btn { margin-top: 6px; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: #fff; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 14px; } }
@media (max-width: 560px) { .break-card .break-kind { font-size: 32px; } }
.break-card[hidden] { display: none; }
.break-box > .btn { align-self: flex-start; }
.break-box .btn svg { width: 16px; height: 16px; }
.bc-banner { min-width: 294px; min-height: 60px; justify-content: center; }
.bc-banner.sponsored { padding: 6px 22px; min-height: 60px; max-width: 420px; justify-content: flex-start; }
.bc-banner.sponsored .sponsor-name { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.break-card { overflow: auto; justify-content: safe center; }
@media (max-width: 560px) {
  .break-card { gap: 4px; padding: 12px; }
  .break-card .break-kind { font-size: 26px; }
  .break-card .break-msg { font-size: 14px; }
  .break-card .break-time, .break-card .break-track-name, .break-card .break-sponsor { font-size: 12px; }
  .break-card .break-sponsor { padding: 4px 12px; }
  .bc-banner { min-width: 0; }
}

/* ---- Advertise (self-serve preview) ---- */
.adv-preview-note { display: inline-flex; align-items: center; gap: 6px; background: #fff7e0; color: #7a5b00; border: 1px solid #f0d58a; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; margin-bottom: 16px; }
.adv-preview-note svg { width: 14px; height: 14px; }
.adv-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: linear-gradient(120deg, var(--blue) 0%, #2b4f9e 100%); color: #fff; border-radius: var(--radius-lg); padding: 28px 32px; margin-bottom: 22px; flex-wrap: wrap; }
.adv-hero h1 { font-family: var(--board); font-size: 38px; line-height: 1.05; margin: 0 0 8px; }
.adv-hero p { margin: 0; max-width: 560px; opacity: .92; }
.adv-hero-stats { display: flex; gap: 12px; }
.adv-hero-stats div { background: rgba(255,255,255,.14); border-radius: 14px; padding: 10px 16px; display: flex; flex-direction: column; align-items: center; min-width: 96px; }
.adv-hero-stats strong { font-family: var(--board); font-size: 28px; line-height: 1; }
.adv-hero-stats span { font-size: 12px; opacity: .85; text-align: center; }
.adv-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 20px; flex-wrap: wrap; }
.adv-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--panel); color: var(--muted); font-weight: 700; font-size: 14px; }
.adv-steps li .n { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 13px; }
.adv-steps li.on { background: var(--ink); color: #fff; } .adv-steps li.on .n { color: var(--ink); }
.adv-steps li.done { background: var(--blue-soft); color: var(--blue-deep); }
.adv-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.adv-h { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.adv-main > p { margin: 0 0 14px; }
.adv-main > .row { margin-bottom: 14px; }
.adv-games { display: flex; flex-direction: column; gap: 12px; }
.adv-game { background: #fff; border-radius: var(--radius-lg); padding: 14px 16px; }
.adv-game header { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.adv-date { display: flex; flex-direction: column; align-items: center; background: var(--panel-2); border-radius: 12px; padding: 6px 12px; min-width: 70px; line-height: 1.1; }
.adv-date strong { font-family: var(--board); font-size: 20px; text-transform: uppercase; }
.adv-date span { font-size: 12px; color: var(--muted); }
.adv-gname { display: flex; align-items: center; gap: 8px; }
.adv-slots { display: flex; flex-direction: column; gap: 6px; }
.adv-slot { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.adv-slot input { accent-color: var(--blue); width: 18px; height: 18px; }
.adv-slot .grow { display: flex; flex-direction: column; line-height: 1.25; }
.adv-slot.on { border-color: var(--blue); background: var(--blue-soft); }
.adv-slot.taken { opacity: .55; cursor: not-allowed; }
.adv-price { font-family: var(--board); font-size: 22px; color: var(--ink); }
.adv-addon { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 2px dashed #b9c9ec; border-radius: var(--radius-lg); padding: 14px 16px; margin-top: 14px; cursor: pointer; }
.adv-addon input { accent-color: var(--blue); width: 18px; height: 18px; margin-top: 3px; }
.adv-addon .grow { display: flex; flex-direction: column; }
.adv-side { position: sticky; top: 84px; }
.adv-summary { background: #fff; border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.adv-summary h3 { margin: 0; font-size: 16px; }
.adv-sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.adv-sum-row.total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 16px; color: var(--ink); }
.adv-sum-row.total strong { font-family: var(--board); font-size: 26px; }
.adv-reach { display: flex; align-items: center; gap: 8px; background: var(--blue-soft); color: var(--blue-deep); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.adv-reach svg { width: 18px; height: 18px; }
.adv-next { width: 100%; }
.adv-back { margin-top: 18px; }
.adv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.adv-form { background: #fff; border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.adv-form .field { display: flex; flex-direction: column; gap: 4px; }
.adv-form input, .adv-form select { border: 1px solid #8a909b; border-radius: 10px; padding: 8px 10px; font: inherit; }
.adv-upload { display: flex; align-items: center; gap: 10px; }
.adv-logo { width: 40px; height: 40px; border-radius: 10px; background: #2f7d4f; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.adv-wave { letter-spacing: -1px; color: var(--blue); font-size: 16px; }
.adv-rules { display: flex; gap: 10px; background: #f3faf5; border: 1px solid #bfe3cb; border-radius: 12px; padding: 10px 12px; color: #1f5e37; }
.adv-rules svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.adv-rules p { margin: 2px 0 0; }
.adv-prev { background: var(--panel); border-radius: var(--radius-lg); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.adv-prev-label { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.adv-prev-banner { justify-self: start; align-self: flex-start; min-width: 0; }
.adv-prev .msg.system { margin: 0; }
.adv-prev-break { background: radial-gradient(circle at 50% 30%, #2f5fb8 0%, #1d2a48 75%); color: #fff; border-radius: 14px; padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.adv-prev-break .break-kind { font-family: var(--board); font-size: 28px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.adv-prev-break .break-sponsor { background: rgba(255,255,255,.12); border: 1px solid rgba(255,214,102,.6); border-radius: 999px; padding: 4px 12px; font-size: 12px; }
.adv-prev-break .break-sponsor strong { color: #ffd666; }
.adv-review { margin-bottom: 14px; }
.adv-pay { display: flex; flex-direction: column; gap: 12px; max-width: 460px; }
.adv-applepay { background: #000; color: #fff; border-color: #000; width: 100%; font-weight: 800; }
.adv-or { text-align: center; color: var(--muted); font-size: 12px; position: relative; }
.adv-card { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; border: 1px solid #8a909b; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.adv-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.adv-tile { background: #fff; border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; }
.adv-tile strong { font-family: var(--board); font-size: 34px; line-height: 1; color: var(--ink); }
.adv-tile > span:not(.tiny) { font-weight: 700; color: var(--ink-2); }
.adv-bookings { max-width: 900px; }
.adv-earn { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; background: #e7f6ec; color: #067647; border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.adv-earn strong { font-family: var(--board); font-size: 24px; }
@media (max-width: 900px) { .adv-grid, .adv-two { grid-template-columns: 1fr; } .adv-side { position: static; } .adv-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .adv-hero { padding: 20px; } .adv-hero h1 { font-size: 30px; } .adv-hero-stats div { min-width: 0; padding: 8px 10px; } .adv-game header { gap: 10px; } .adv-review { overflow-x: auto; } }
.adv .chip-btn:disabled { opacity: .55; cursor: not-allowed; } .adv .chip-btn { display: inline-flex; align-items: center; }

/* ---- I'm calling this game ---- */
.calling { background: #fff; border-radius: var(--radius-lg); padding: 18px 20px; margin: 22px 0 8px; }
.calling-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 12px; }
.calling-card { display: flex; gap: 12px; align-items: center; background: var(--panel-2); border-radius: 14px; padding: 10px 12px; }
.calling-card .name { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; text-decoration: none; color: var(--ink); }
.calling-card .grow { min-width: 0; }
.calling-note { color: var(--ink-2); font-style: italic; }
.calling-cta { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.call-form input { flex: 1; min-width: 220px; border: 1px solid #8a909b; border-radius: 999px; padding: 9px 14px; font: inherit; }
.call-form .btn svg, .call-row .btn svg { width: 16px; height: 16px; }
.calling-me { font-weight: 800; color: #067647; background: #e7f6ec; border-radius: 999px; padding: 6px 14px; }
.calling-chip { display: inline-flex; align-items: center; gap: 4px; color: var(--blue-deep); font-weight: 700; }
.calling-chip svg { width: 12px; height: 12px; }
.call-list { display: flex; flex-direction: column; gap: 6px; }
.call-row { display: grid; grid-template-columns: 110px 1fr auto auto; gap: 14px; align-items: center; background: #fff; border-radius: 12px; padding: 8px 12px; border: 1px solid transparent; }
.call-row.on { border-color: #9fd8b3; background: #f3faf5; }
.call-when { display: flex; flex-direction: column; line-height: 1.15; } .call-when span { font-size: 12px; color: var(--muted); }
.call-game { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.btn.calling-on { background: #e7f6ec; color: #067647; border-color: #9fd8b3; }
.call-mini { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); background: #fff; border-radius: 10px; padding: 6px 10px; }
.call-mini .grow { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.call-mini-when { display: flex; flex-direction: column; align-items: center; min-width: 64px; line-height: 1.1; font-size: 12px; }
.call-mini-when span { color: var(--muted); font-size: 11px; }
@media (max-width: 700px) { .call-row { grid-template-columns: 1fr auto; } .call-row .call-when { grid-column: 1 / -1; flex-direction: row; gap: 6px; } .call-row > .tiny { display: none; } }
.calling-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.calling-card .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.calling-card .name .crown, .calling-card .name svg { flex: none; }

/* ---- Account switcher ---- */
.user-menu .menu .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.user-menu .switch-label { padding: 2px 8px 4px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.user-menu .switch-to { display: flex !important; align-items: center; gap: 10px; width: 100%; text-align: left; }
.user-menu .switch-to .grow { display: flex; flex-direction: column; line-height: 1.2; }
.user-menu .add-account { color: var(--blue-deep) !important; font-weight: 700; }

/* ---- Admin: users list ---- */
.totals .total-btn { border: 0; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: box-shadow .15s; }
.totals .total-btn:hover { box-shadow: 0 0 0 2px var(--blue) inset; }
.totals .new-users { color: #067647; font-weight: 700; margin-top: 4px; }
.modal:has(.users-modal) { width: min(980px, 100%); }
.users-modal input[type=search] { border: 1px solid #8a909b; border-radius: 999px; padding: 9px 14px; font: inherit; }
.users-list { max-height: 60vh; overflow: auto; }
.user-cell { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.user-cell > span { display: flex; flex-direction: column; line-height: 1.2; }
.chip.role-admin { background: #fde7e7; color: #b42318; }
.chip.role-narr { background: var(--blue-soft); color: var(--blue-deep); }

/* ---- Co-host mic check ---- */
.mic-check { max-width: 520px; }
.mic-check h2 { margin: 0; }
.mic-check p { margin: 0; }
.mic-check-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-deep); display: grid; place-items: center; }
.mic-check-icon svg { width: 30px; height: 30px; }
.mic-check-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.mic-check-confirm { justify-content: flex-start !important; background: #f3faf5; border: 1px solid #bfe3cb; border-radius: 12px; padding: 12px 14px; gap: 10px; }
.mic-check-confirm input { width: 20px; height: 20px; accent-color: #067647; }
.mic-check .btn.live svg { width: 18px; height: 18px; }
.mic-check .btn:disabled { opacity: .45; cursor: not-allowed; }
.mic-check-list li { list-style: disc; }
.msg.system.join-request { background: var(--panel-2); }
.msg.system.cohost { background: #e7f6ec; }
.msg.system.join-request .text, .msg.system.cohost .text { display: block; }
.msg.system svg { width: 14px; height: 14px; vertical-align: -2px; }
.msg.system a { color: inherit; text-decoration: none; }
.req-name { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; }

/* ---- Money box: tip amount circles ---- */
.money-wrap { position: relative; display: inline-flex; }
.money-circle { width: 64px; height: 64px; border-radius: 50%; border: 2px solid transparent; background: #c5cad2; color: var(--ink-2); font: inherit; font-weight: 800; font-size: 16px; text-align: center; padding: 0 0 0 10px; -moz-appearance: textfield; cursor: pointer; transition: background .15s, color .15s; }
.money-circle::-webkit-outer-spin-button, .money-circle::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.money-circle:hover { background: #b6bcc6; }
.money-circle:focus { background: var(--blue); color: #fff; outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 3px var(--blue-soft); cursor: text; }
.money-sign { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--ink-2); pointer-events: none; font-size: 14px; }
.money-wrap:focus-within .money-sign { color: #fff; }
