:root {
  color-scheme: dark;
  --bg: #090713;
  --bg-2: #0d0a19;
  --panel: rgba(25, 20, 42, .82);
  --panel-solid: #181429;
  --panel-2: #211a38;
  --panel-3: #2a2146;
  --text: #fbfaff;
  --muted: #aaa5bb;
  --soft: #777187;
  --line: rgba(255, 255, 255, .10);
  --line-bright: rgba(255, 255, 255, .18);
  --lime: #d7ff43;
  --cyan: #6df7ff;
  --purple: #a66cff;
  --pink: #ff6bd6;
  --red: #ff6680;
  --green: #59eca0;
  --gold: #ffd65c;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
  --glow: 0 0 30px rgba(166, 108, 255, .22);
  --radius: 24px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(125, 70, 239, .23), transparent 34%),
    radial-gradient(circle at -10% 30%, rgba(109, 247, 255, .10), transparent 25%),
    linear-gradient(180deg, #090713 0%, #0b0915 58%, #07060d 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.optional { color: var(--soft); font-weight: 600; }

.ambient { position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(70px); opacity: .35; }
.ambient-one { width: 310px; height: 310px; top: 20%; left: -180px; background: var(--cyan); animation: floatOne 12s ease-in-out infinite; }
.ambient-two { width: 360px; height: 360px; top: 55%; right: -230px; background: var(--purple); animation: floatTwo 14s ease-in-out infinite; }
@keyframes floatOne { 50% { transform: translate(50px, 90px) scale(1.1); } }
@keyframes floatTwo { 50% { transform: translate(-50px, -80px) scale(.9); } }

.app-shell { width: min(820px, 100%); min-height: 100vh; margin: 0 auto; padding-bottom: 174px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(15px, env(safe-area-inset-top)) 16px 14px;
  background: linear-gradient(180deg, rgba(9, 7, 19, .98) 25%, rgba(9, 7, 19, .82) 75%, transparent);
  backdrop-filter: blur(18px);
}
.brand-lockup { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(215, 255, 67, .35);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(215, 255, 67, .22), rgba(166, 108, 255, .25));
  box-shadow: 0 0 22px rgba(166, 108, 255, .18), inset 0 1px rgba(255, 255, 255, .14);
}
.brand-mark span, .brand-mark i { position: absolute; font-size: 1.05rem; font-weight: 1000; font-style: normal; line-height: 1; }
.brand-mark span { transform: translate(-6px, -3px); color: var(--lime); }
.brand-mark i { transform: translate(6px, 5px); color: var(--cyan); }
.brand-copy { min-width: 0; }
.eyebrow { color: var(--lime); font-size: .64rem; letter-spacing: .18em; line-height: 1.1; font-weight: 1000; margin-bottom: 5px; }
.brand-copy h1 { margin: 0; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(1.08rem, 4.6vw, 1.55rem); line-height: 1; }
.top-actions { display: flex; align-items: center; gap: 7px; }
.status-pill, .player-pill {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px rgba(255, 255, 255, .05);
}
.status-pill { display: flex; align-items: center; gap: 7px; padding: 8px 10px; font-size: .69rem; color: var(--muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 214, 92, .08); }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 4px rgba(89, 236, 160, .09); }
.status-dot.syncing { background: var(--cyan); box-shadow: 0 0 0 4px rgba(109, 247, 255, .10); animation: statusPulse .9s ease-in-out infinite; }
@keyframes statusPulse { 50% { opacity: .35; } }
.player-pill { display: flex; align-items: center; gap: 7px; padding: 6px 9px 6px 6px; font-size: .72rem; font-weight: 900; }
.player-pill > span:first-child { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-3); }

.content { padding: 5px 14px 26px; animation: pageIn .25s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }
.week-strip {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  margin: 4px 2px 14px;
}
.week-strip button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.05); font-size: 1.3rem; }
.week-label { text-align: center; }
.week-label strong { display: block; font-size: .92rem; }
.week-label small { display: block; margin-top: 2px; color: var(--muted); font-size: .69rem; }

.hero-card, .card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 44px rgba(0,0,0,.23), inset 0 1px rgba(255,255,255,.035);
}
.hero-card { position: relative; overflow: hidden; padding: 22px; border-radius: 30px; }
.hero-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(215,255,67,.11), transparent 42%, rgba(166,108,255,.13)); }
.hero-card > * { position: relative; z-index: 1; }
.hero-card h2 { margin-bottom: 8px; font-size: clamp(2rem, 9vw, 3.5rem); line-height: .91; }
.hero-card p { margin-bottom: 0; }
.live-hero { min-height: 330px; padding: 25px 22px 22px; background: linear-gradient(145deg, rgba(31,24,53,.94), rgba(15,13,27,.92)); }
.live-hero::after { content: ""; position: absolute; width: 280px; height: 280px; right: -90px; top: -110px; border-radius: 50%; border: 38px solid rgba(109,247,255,.055); box-shadow: 0 0 0 38px rgba(166,108,255,.04), 0 0 0 76px rgba(215,255,67,.025); }
.live-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(255,102,128,.28); border-radius: 999px; background: rgba(255,102,128,.09); color: #ff9aad; font-size: .67rem; font-weight: 1000; letter-spacing: .08em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px var(--red); animation: livePulse 1.25s infinite; }
@keyframes livePulse { 50% { transform: scale(.65); opacity: .5; } }
.hero-leader { margin-top: 24px; }
.hero-leader-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; font-weight: 800; }
.hero-leader h2 { margin: 7px 0 7px; }
.hero-leader h2 .leader-name { background: linear-gradient(90deg, var(--lime), var(--cyan)); -webkit-background-clip: text; color: transparent; }
.hero-scoreline { display: flex; align-items: end; gap: 9px; }
.hero-scoreline strong { font-size: 3.3rem; line-height: .85; letter-spacing: -.07em; }
.hero-scoreline span { color: var(--muted); font-weight: 800; }
.hero-progress { height: 7px; margin-top: 16px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.hero-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--cyan), var(--lime)); box-shadow: 0 0 18px rgba(109,247,255,.25); transition: width .5s ease; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.countdown { color: var(--muted); font-size: .72rem; }
.countdown strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 1px; }
.mini-log-button { border: 0; border-radius: 16px; padding: 11px 14px; background: var(--lime); color: #12130b; font-weight: 1000; box-shadow: 0 10px 24px rgba(215,255,67,.16); }

.now-playing-banner { display: grid; grid-template-columns: 44px 1fr auto; gap: 11px; align-items: center; margin-top: 12px; padding: 12px; border: 1px solid rgba(109,247,255,.18); border-radius: 18px; background: linear-gradient(90deg, rgba(109,247,255,.08), rgba(166,108,255,.07)); }
.wave-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: rgba(109,247,255,.10); color: var(--cyan); font-size: 1.15rem; animation: waveGlow 1.6s ease-in-out infinite; }
@keyframes waveGlow { 50% { box-shadow: 0 0 24px rgba(109,247,255,.18); } }
.now-title { font-weight: 1000; line-height: 1.05; }
.now-sub { margin-top: 4px; color: var(--muted); font-size: .69rem; }
.now-time { color: var(--soft); font-size: .67rem; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 25px 4px 11px; }
.section-head h2 { margin: 0; font-size: 1.25rem; }
.section-head p { margin: 0; color: var(--muted); font-size: .74rem; }
.card { padding: 16px; border-radius: var(--radius); }
.card + .card { margin-top: 11px; }

.score-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(142px, 1fr); gap: 9px; overflow-x: auto; padding: 2px 1px 8px; scrollbar-width: none; }
.score-strip::-webkit-scrollbar { display: none; }
.player-score-card { position: relative; min-height: 132px; overflow: hidden; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(150deg, rgba(var(--player-rgb), .20), rgba(24,20,41,.91) 58%); }
.player-score-card.leader { border-color: rgba(215,255,67,.30); box-shadow: 0 0 28px rgba(215,255,67,.07); }
.player-score-card .crown { position: absolute; top: 9px; right: 10px; font-size: 1rem; }
.player-avatar { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(var(--player-rgb), .18); font-size: 1.18rem; }
.player-card-name { margin-top: 9px; font-weight: 1000; }
.player-card-score { margin-top: 3px; font-size: 1.7rem; line-height: 1; font-weight: 1000; letter-spacing: -.06em; }
.player-card-sub { margin-top: 4px; color: var(--muted); font-size: .66rem; }

.shared-pick-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 13px; width: 100%; text-align: left; border-color: rgba(215,255,67,.27); background: linear-gradient(120deg, rgba(215,255,67,.13), rgba(166,108,255,.11)), var(--panel); }
.shared-pick-card::after { content: "JACKPOT"; position: absolute; right: -14px; top: 7px; transform: rotate(18deg); color: rgba(255,255,255,.035); font-size: 2rem; font-weight: 1000; }
.shared-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(145deg, var(--lime), var(--cyan)); color: #11120b; font-size: 1.45rem; box-shadow: 0 0 25px rgba(109,247,255,.13); }
.shared-name { display: block; font-size: 1.2rem; font-weight: 1000; }
.shared-sub { display: block; margin-top: 4px; color: var(--muted); font-size: .71rem; }
.plus-pill { position: relative; z-index: 2; min-width: 48px; padding: 9px 10px; border-radius: 14px; background: var(--lime); color: #12130b; text-align: center; font-weight: 1000; }

.matchup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.matchup-card { position: relative; overflow: hidden; min-height: 154px; padding: 14px; border: 1px solid var(--line); border-radius: 21px; background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.025)); }
.matchup-label { color: var(--soft); font-size: .62rem; font-weight: 1000; letter-spacing: .13em; }
.matchup-side { display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; align-items: center; margin-top: 11px; }
.matchup-side + .matchup-side { padding-top: 10px; border-top: 1px solid var(--line); }
.matchup-emoji { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.06); }
.matchup-name { font-size: .78rem; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.matchup-record { color: var(--muted); font-size: .62rem; margin-top: 2px; }
.matchup-score { font-size: 1.25rem; font-weight: 1000; }
.matchup-status { position: absolute; right: 11px; top: 10px; font-size: .58rem; font-weight: 1000; color: var(--lime); }

.activity-stack { display: grid; gap: 9px; }
.activity-card { display: grid; grid-template-columns: 44px 1fr; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); }
.activity-art { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, rgba(var(--artist-rgb), .35), rgba(166,108,255,.22)); font-size: 1rem; font-weight: 1000; }
.activity-title { font-weight: 1000; line-height: 1.05; }
.activity-sub { margin-top: 4px; color: var(--muted); font-size: .69rem; line-height: 1.35; }
.activity-reactions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.reaction-button { min-width: 31px; height: 29px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); padding: 0 8px; font-size: .72rem; }
.reaction-button.active { border-color: rgba(109,247,255,.32); background: rgba(109,247,255,.09); }
.reaction-count { margin-left: 3px; color: var(--muted); font-size: .65rem; }

.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 8px; align-items: end; margin-top: 18px; }
.podium-card { position: relative; min-height: 142px; padding: 14px 9px; border: 1px solid var(--line); border-radius: 20px; text-align: center; background: rgba(255,255,255,.04); }
.podium-card.first { min-height: 178px; border-color: rgba(255,214,92,.30); background: linear-gradient(180deg, rgba(255,214,92,.12), rgba(255,255,255,.035)); }
.podium-rank { position: absolute; left: 9px; top: 8px; color: var(--soft); font-size: .68rem; font-weight: 1000; }
.podium-avatar { width: 48px; height: 48px; display: grid; place-items: center; margin: 10px auto 8px; border-radius: 17px; background: rgba(var(--player-rgb), .18); font-size: 1.35rem; }
.podium-card.first .podium-avatar { width: 58px; height: 58px; font-size: 1.55rem; box-shadow: 0 0 24px rgba(255,214,92,.12); }
.podium-name { overflow: hidden; text-overflow: ellipsis; font-size: .76rem; font-weight: 1000; white-space: nowrap; }
.podium-score { margin-top: 4px; font-size: 1.6rem; font-weight: 1000; letter-spacing: -.05em; }
.podium-sub { color: var(--muted); font-size: .61rem; }

.rank-list { padding: 5px 14px; }
.rank-row { display: grid; grid-template-columns: 38px 43px 1fr auto; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-number { color: var(--soft); font-size: 1.2rem; font-weight: 1000; }
.rank-row:first-child .rank-number { color: var(--gold); }
.rank-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: rgba(var(--player-rgb), .17); }
.rank-name { font-weight: 1000; }
.rank-sub { margin-top: 3px; color: var(--muted); font-size: .67rem; }
.rank-score { text-align: right; font-size: 1.3rem; font-weight: 1000; }
.movement { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 6px; font-size: .57rem; font-weight: 1000; }
.movement.up { color: var(--green); background: rgba(89,236,160,.08); }
.movement.down { color: var(--red); background: rgba(255,102,128,.08); }
.movement.same { color: var(--muted); background: rgba(255,255,255,.05); }

.season-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.season-card { padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); }
.season-player { display: flex; align-items: center; gap: 8px; font-weight: 1000; }
.season-record { margin-top: 10px; font-size: 1.55rem; font-weight: 1000; letter-spacing: -.05em; }
.season-meta { margin-top: 3px; color: var(--muted); font-size: .66rem; }

.award-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.award-card { min-height: 132px; padding: 15px; overflow: hidden; position: relative; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(166,108,255,.12), rgba(255,255,255,.035)); }
.award-card::after { content: attr(data-icon); position: absolute; right: -5px; bottom: -16px; font-size: 4rem; opacity: .08; }
.award-name { color: var(--lime); font-size: .62rem; font-weight: 1000; letter-spacing: .12em; }
.award-winner { margin-top: 17px; font-size: 1.05rem; font-weight: 1000; line-height: 1.05; }
.award-detail { margin-top: 5px; color: var(--muted); font-size: .68rem; }

.chart-hero { min-height: 245px; }
.chart-winner { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 16px; margin-top: 22px; }
.chart-art { width: 90px; height: 90px; position: relative; display: grid; place-items: center; border-radius: 28px; background: linear-gradient(145deg, rgba(var(--artist-rgb), .75), rgba(166,108,255,.64)); box-shadow: 0 18px 45px rgba(var(--artist-rgb), .13); font-size: 2rem; font-weight: 1000; }
.chart-art::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; }
.chart-winner h2 { margin: 0 0 7px; font-size: clamp(1.8rem, 8vw, 2.8rem); }
.chart-winner p { color: var(--muted); }
.chart-list { padding: 5px 13px; }
.chart-row { display: grid; grid-template-columns: 33px 48px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.chart-row:last-child { border-bottom: 0; }
.chart-rank { color: var(--soft); font-size: 1.25rem; font-weight: 1000; }
.chart-row:first-child .chart-rank { color: var(--gold); }
.chart-thumb { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, rgba(var(--artist-rgb), .55), rgba(166,108,255,.35)); font-weight: 1000; }
.chart-name { font-weight: 1000; }
.chart-meta { margin-top: 4px; color: var(--muted); font-size: .64rem; line-height: 1.3; }
.chart-points { text-align: right; font-size: 1.25rem; font-weight: 1000; }
.chart-points small { display: block; color: var(--muted); font-size: .58rem; font-weight: 700; }

.trend-chart { display: grid; grid-template-columns: repeat(6, minmax(44px, 1fr)); align-items: end; gap: 8px; min-height: 190px; padding: 17px 4px 3px; }
.trend-column { height: 155px; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 7px; }
.trend-bar { width: min(34px, 80%); min-height: 3px; position: relative; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, var(--lime), var(--cyan) 48%, var(--purple)); box-shadow: 0 0 18px rgba(109,247,255,.10); }
.trend-value { position: absolute; top: -19px; left: 50%; transform: translateX(-50%); font-size: .62rem; font-weight: 1000; }
.trend-label { width: 54px; overflow: hidden; color: var(--muted); font-size: .57rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.roster-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.progress-ring { --progress: 0; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--lime) calc(var(--progress) * 1%), rgba(255,255,255,.08) 0); }
.progress-ring::before { content: ""; width: 50px; height: 50px; border-radius: 50%; background: var(--panel-solid); }
.progress-ring strong { position: absolute; font-size: .72rem; }
.draft-member { margin-bottom: 11px; }
.draft-member-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 15px; background: rgba(var(--player-rgb), .17); font-size: 1.2rem; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
label { display: block; color: var(--muted); font-size: .76rem; font-weight: 800; }
input, select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: rgba(8,7,15,.72);
  color: var(--text);
  padding: 12px 13px;
}
input:focus, select:focus { border-color: rgba(109,247,255,.42); box-shadow: 0 0 0 3px rgba(109,247,255,.07); }
.rules { margin: 0; padding-left: 19px; color: var(--muted); }
.rules li + li { margin-top: 8px; }

.log-list { display: grid; gap: 9px; }
.log-card { padding: 13px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.035); }
.log-main { display: grid; grid-template-columns: 45px 1fr auto; gap: 10px; align-items: center; }
.log-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, rgba(var(--artist-rgb), .40), rgba(166,108,255,.25)); font-weight: 1000; }
.log-title { font-weight: 1000; }
.log-sub { margin-top: 4px; color: var(--muted); font-size: .68rem; line-height: 1.35; }
.undo-button { border: 0; background: transparent; color: var(--red); padding: 8px; font-size: .7rem; }
.empty { padding: 34px 18px; text-align: center; }
.empty-icon { margin-bottom: 10px; font-size: 2.5rem; }

.primary-button, .ghost-button, .danger-button, .small-button { border-radius: 15px; font-weight: 1000; }
.primary-button, .ghost-button, .danger-button { width: 100%; min-height: 49px; border: 1px solid transparent; padding: 12px 15px; }
.primary-button { background: linear-gradient(90deg, var(--lime), #bfff4d); color: #11130a; box-shadow: 0 12px 30px rgba(215,255,67,.13); }
.ghost-button { margin-top: 9px; border-color: var(--line); background: rgba(255,255,255,.035); }
.danger-button { border-color: rgba(255,102,128,.25); background: rgba(255,102,128,.08); color: var(--red); }
.small-button { border: 1px solid var(--line); background: rgba(255,255,255,.045); padding: 8px 10px; font-size: .7rem; }

.log-listen-fab {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 35;
  width: min(calc(100% - 28px), 520px);
  min-height: 62px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 21px;
  padding: 8px 10px;
  background: linear-gradient(100deg, #d7ff43, #8ffb87 50%, #6df7ff);
  color: #11130b;
  box-shadow: 0 18px 50px rgba(0,0,0,.50), 0 0 38px rgba(109,247,255,.13), inset 0 1px rgba(255,255,255,.65);
}
.log-listen-fab::before { content: ""; position: absolute; inset: -5px; z-index: -1; border-radius: 25px; background: linear-gradient(90deg, rgba(215,255,67,.25), rgba(109,247,255,.20)); filter: blur(12px); }
.fab-radio { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 15px; background: rgba(9,7,19,.88); color: var(--lime); font-size: 1.35rem; }
.log-listen-fab > span:nth-child(2) { text-align: left; }
.log-listen-fab strong { display: block; font-size: .82rem; letter-spacing: .04em; }
.log-listen-fab small { display: block; margin-top: 2px; font-size: .62rem; font-weight: 700; opacity: .66; }
.log-listen-fab i { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 14px; background: #11130b; color: var(--lime); font-style: normal; font-weight: 1000; }
.log-listen-fab:active { transform: translateX(-50%) scale(.985); }

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(820px, 100%);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 8px max(9px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(10,8,18,.94);
  backdrop-filter: blur(22px);
}
.nav-item { border: 0; border-radius: 13px; background: transparent; color: var(--muted); padding: 5px 3px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.nav-item span { font-size: 1.16rem; filter: grayscale(1); opacity: .56; transition: .2s; }
.nav-item small { font-size: .61rem; font-weight: 800; }
.nav-item.active { color: var(--text); background: rgba(255,255,255,.05); }
.nav-item.active span { transform: translateY(-2px); filter: none; opacity: 1; }

.dialog { width: min(94vw, 480px); max-height: 92vh; border: 0; padding: 0; overflow: visible; background: transparent; color: var(--text); }
.dialog::backdrop { background: rgba(3,2,8,.82); backdrop-filter: blur(8px); }
.dialog-card { position: relative; max-height: 92vh; overflow-y: auto; padding: 24px; border: 1px solid var(--line-bright); border-radius: 28px; background: linear-gradient(160deg, #1e1832, #100d1c); box-shadow: var(--shadow); }
.dialog-card.compact { max-width: 420px; margin: auto; }
.dialog-card h2 { margin-bottom: 8px; font-size: 1.75rem; }
.dialog-card label + label { margin-top: 12px; }
.dialog-close { position: absolute; right: 12px; top: 9px; z-index: 3; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.04); color: var(--muted); font-size: 1.6rem; }
.dialog-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.055); font-size: 1.4rem; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 18px 0; padding: 4px; border: 1px solid var(--line); border-radius: 15px; }
.segment { border: 0; border-radius: 11px; background: transparent; color: var(--muted); padding: 10px; font-weight: 1000; }
.segment.active { background: var(--panel-3); color: var(--text); }
.form-message { min-height: 18px; margin: 10px 0 0; color: var(--red); font-size: .75rem; }
.dialog-version { margin: 11px 0 0; color: var(--soft); font-size: .65rem; text-align: center; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 17px; }
.profile-choice { display: flex; align-items: center; gap: 10px; min-height: 64px; border: 1px solid var(--line); border-radius: 18px; padding: 10px; background: rgba(255,255,255,.035); text-align: left; }
.profile-choice.active { border-color: rgba(109,247,255,.38); background: rgba(109,247,255,.08); }
.profile-choice-avatar { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; background: rgba(var(--player-rgb), .20); font-size: 1.2rem; }
.profile-choice strong { display: block; }
.profile-choice small { display: block; margin-top: 2px; color: var(--muted); font-size: .63rem; }

.listen-dialog { width: min(96vw, 620px); }
.listen-card { padding: 22px; }
.listen-head { display: flex; align-items: center; gap: 13px; padding-right: 38px; }
.listen-head h2 { margin: 0; }
.broadcast-orb { width: 55px; height: 55px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 19px; background: linear-gradient(145deg, var(--lime), var(--cyan)); color: #10120b; box-shadow: 0 0 30px rgba(109,247,255,.13); font-size: 1.5rem; }
.artist-search { margin-top: 18px; }
.artist-select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 300px; overflow-y: auto; margin-top: 10px; padding-right: 2px; }
.artist-choice { min-height: 80px; display: grid; grid-template-columns: 42px 1fr; gap: 9px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 10px; background: rgba(255,255,255,.035); text-align: left; }
.artist-choice.selected { border-color: rgba(215,255,67,.45); background: linear-gradient(130deg, rgba(215,255,67,.12), rgba(109,247,255,.06)); box-shadow: 0 0 22px rgba(215,255,67,.05); }
.artist-choice-art { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, rgba(var(--artist-rgb), .55), rgba(166,108,255,.35)); font-size: .9rem; font-weight: 1000; }
.artist-choice-name { display: block; overflow: hidden; font-size: .82rem; font-weight: 1000; white-space: nowrap; text-overflow: ellipsis; }
.artist-choice-owner { display: block; margin-top: 4px; color: var(--muted); font-size: .61rem; line-height: 1.25; }
.award-preview { min-height: 48px; margin: 12px 0; padding: 12px; border: 1px solid rgba(109,247,255,.18); border-radius: 16px; background: rgba(109,247,255,.065); color: var(--muted); font-size: .75rem; line-height: 1.4; }
.award-preview strong { color: var(--cyan); }
.award-preview.warning { border-color: rgba(255,214,92,.24); background: rgba(255,214,92,.06); }
.listen-details { display: grid; grid-template-columns: 1.2fr .8fr; gap: 9px; }
.score-submit { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; text-align: left; }
.score-submit strong { width: 38px; height: 31px; display: grid; place-items: center; border-radius: 11px; background: #11130b; color: var(--lime); }

.score-burst { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; pointer-events: none; visibility: hidden; opacity: 0; background: rgba(5,3,12,.76); backdrop-filter: blur(7px); }
.score-burst.show { visibility: visible; opacity: 1; animation: burstBackdrop 2.25s ease both; }
@keyframes burstBackdrop { 0% { opacity: 0; } 12%, 80% { opacity: 1; } 100% { opacity: 0; } }
.burst-rays { position: absolute; width: 650px; height: 650px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(215,255,67,.12) 0deg 6deg, transparent 6deg 17deg); animation: spinRays 8s linear infinite; }
@keyframes spinRays { to { transform: rotate(360deg); } }
.burst-card { position: relative; width: min(88vw, 430px); padding: 31px 24px 27px; border: 1px solid rgba(255,255,255,.22); border-radius: 32px; background: linear-gradient(145deg, rgba(34,27,57,.96), rgba(12,10,22,.96)); box-shadow: 0 30px 100px rgba(0,0,0,.58), 0 0 55px rgba(109,247,255,.11); text-align: center; transform: scale(.72) rotate(-3deg); }
.score-burst.show .burst-card { animation: burstCard 2.25s cubic-bezier(.2,.9,.2,1) both; }
@keyframes burstCard { 0% { transform: scale(.55) rotate(-6deg); opacity: 0; } 15% { transform: scale(1.08) rotate(1deg); opacity: 1; } 27%, 78% { transform: scale(1) rotate(0); opacity: 1; } 100% { transform: scale(.92); opacity: 0; } }
.burst-icon { width: 86px; height: 86px; display: grid; place-items: center; margin: 13px auto; border-radius: 29px; background: linear-gradient(145deg, var(--lime), var(--cyan)); color: #10120b; box-shadow: 0 0 50px rgba(109,247,255,.22); font-size: 2.5rem; }
.burst-card h2 { margin-bottom: 7px; font-size: clamp(2rem, 10vw, 3.4rem); line-height: .93; }
.burst-card > p { margin-bottom: 15px; color: var(--cyan); font-size: 1.05rem; font-weight: 1000; }
.burst-players { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.burst-player { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.055); font-size: .72rem; font-weight: 900; }
.confetti-layer { position: absolute; inset: 0; overflow: hidden; }
.confetti { position: absolute; top: 44%; left: 50%; width: 9px; height: 16px; border-radius: 3px; background: var(--confetti); animation: confettiFly 1.55s ease-out forwards; }
@keyframes confettiFly { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: 155px; z-index: 80; max-width: calc(100vw - 28px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 15px; border-radius: 999px; background: #fbfaff; color: #11121a; box-shadow: var(--shadow); font-size: .76rem; font-weight: 1000; transition: .22s ease; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .brand-copy h1 { max-width: 150px; }
  .status-pill #connectionText { display: none; }
  .status-pill { width: 38px; justify-content: center; padding: 8px; }
  .player-pill #playerButtonName { display: none; }
  .player-pill { padding-right: 6px; }
  .matchup-grid, .season-grid, .award-grid { grid-template-columns: 1fr 1fr; }
  .chart-winner { grid-template-columns: 76px 1fr; }
  .chart-art { width: 76px; height: 76px; border-radius: 23px; }
}

@media (max-width: 420px) {
  .content { padding-left: 11px; padding-right: 11px; }
  .topbar { padding-left: 11px; padding-right: 11px; }
  .brand-mark { width: 39px; height: 39px; flex-basis: 39px; }
  .hero-card { padding: 19px; }
  .live-hero { min-height: 315px; }
  .matchup-grid { grid-template-columns: 1fr; }
  .input-grid, .artist-select-grid, .listen-details { grid-template-columns: 1fr; }
  .podium { gap: 5px; }
  .podium-card { padding-left: 6px; padding-right: 6px; }
  .profile-grid { grid-template-columns: 1fr; }
  .chart-row { grid-template-columns: 29px 43px 1fr auto; gap: 8px; }
  .trend-chart { gap: 4px; }
  .trend-label { width: 45px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
