@font-face{font-family:Roboto;src:url('./fonts/roboto-regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Roboto;src:url('./fonts/roboto-bold.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:Roboto;src:url('./fonts/roboto-black.woff2') format('woff2');font-weight:900;font-display:swap}

:root{
  color-scheme:dark;
  --bg:#111016;
  --surface:#1b1922;
  --surface-high:#24212c;
  --border:#342e3b;
  --text:#faf5f9;
  --muted:#b6aeba;
  --pink:#ff62b8;
  --hot:#f747a2;
  --green:#6ce0aa;
  --danger:#ff9eaa;
  --shell:1160px;
  --gutter:40px;
  font-family:Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{min-height:100%;scroll-behavior:smooth}
body{
  margin:0;min-height:100vh;display:flex;flex-direction:column;
  padding-top:var(--safe-area-inset-top,env(safe-area-inset-top,0px));
  padding-right:var(--safe-area-inset-right,env(safe-area-inset-right,0px));
  padding-bottom:var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px));
  padding-left:var(--safe-area-inset-left,env(safe-area-inset-left,0px));
}
main{flex:1}
button,select,input{font:inherit}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.65}
a{color:inherit;text-decoration:none}
p,h1,h2,h3{margin:0}
img{display:block;width:100%;height:100%;object-fit:cover}
:focus-visible{outline:2px solid #ff9ed4;outline-offset:4px}
.sr-only,.symbols{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.skip-link{position:absolute;top:10px;left:10px;padding:10px 16px;z-index:3;background:var(--text);color:#171119;transform:translateY(-150%)}
.skip-link:focus{transform:none}
.shell{width:min(var(--shell),calc(100% - var(--gutter) * 2));margin-inline:auto}
.icon{width:20px;height:20px;display:inline-block;flex:none;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.muted{color:var(--muted);line-height:1.5}
.topbar{min-height:72px;border-bottom:1px solid #26232c}
.topbar-inner{min-height:72px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px}
.brand{display:inline-flex;align-items:center;gap:10px;justify-self:start;font-size:25px;line-height:1;letter-spacing:-1.05px;font-weight:900}
.brand-icon{width:35px;height:35px;background:var(--hot);color:#1b1020;display:grid;place-items:center;border-radius:10px}
.brand-icon .icon{width:21px;height:21px;stroke-width:2}
.brand-accent,.brand-dot{color:var(--pink)}
.nav{display:flex;gap:32px;align-self:stretch;align-items:stretch}
.nav a{display:flex;align-items:center;position:relative;white-space:nowrap;font-size:14px;color:var(--muted);font-weight:700;padding:0 2px}
.nav a:hover,.nav a[aria-current]{color:var(--text)}
.nav a[aria-current]::after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--hot);border-radius:2px 2px 0 0}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:47px;padding:0 18px;border-radius:10px;border:1px solid transparent;font-size:14px;font-weight:700;line-height:1.3;text-align:center;transition:background .16s,border-color .16s,box-shadow .16s,color .16s}
.button .icon{width:18px;height:18px}
.primary{background:var(--hot);color:#1b0b17}
.primary:hover:not(:disabled){background:#ff75c2;box-shadow:0 4px 20px #ee2b9650}
.secondary,.compact{background:var(--surface);color:var(--text);border-color:var(--border)}
.secondary:hover:not(:disabled),.compact:hover{background:var(--surface-high);border-color:#5f4562}
.compact{min-height:38px;font-size:13px;padding:0 12px;gap:7px}
.top-mic{justify-self:end}
.top-mic .icon{color:var(--pink);width:15px;height:15px}
.native-settings{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 16px}
.native-settings button:last-child{grid-column:1/-1}
.mic-dot{width:7px;height:7px;border-radius:50%;background:#776d7d}
.mic-dot.active{background:var(--green);box-shadow:0 0 9px #6ce0aa76}
.main{padding-block:27px 54px}
.hero{position:relative;overflow:hidden;isolation:isolate;display:grid;align-items:center;min-height:375px;border-radius:21px;border:1px solid #3d253b;background:#241020}
.hero::before,.hero::after{content:"";position:absolute;inset:0;z-index:-1}
.hero::before{background:url('./img/palco.webp') right 42% / 77% auto no-repeat}
.hero::after{background:linear-gradient(90deg,#251323 0%,#281326 18%,#261326 31%,#251121ea 38%,#200e2054 61%,#1b0c170a 78%),linear-gradient(0deg,#1a0e19ab,transparent 54%)}
.hero-body{padding:27px 50px 30px;max-width:575px}
.hero-category{display:flex;align-items:center;gap:8px;color:#ffa8d6;font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;margin-bottom:13px}
.hero-category .icon{width:17px;height:17px;stroke-width:1.8}
.hero h1{color:#fff7fc;font-size:clamp(69px,7vw,96px);font-weight:900;line-height:.93;letter-spacing:-.064em}
.hero h1 span{color:var(--pink)}
.hero p{max-width:410px;margin-top:18px;color:#f4ddea;line-height:1.45;font-size:16px}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.hero-secondary{background:#1b101baa;color:white;border-color:#9865879c}
.hero-secondary .icon{color:#ffa8db}
.hero-secondary:hover{background:#442638;border-color:#f686c6}
.search-section{margin-top:32px;scroll-margin-top:22px}
h2{font-size:25px;letter-spacing:-.46px;line-height:1.18;font-weight:900}
.search-section p{font-size:14px;margin-top:6px}
.search-form{display:flex;align-items:center;width:100%;gap:11px;background:var(--surface);border:1px solid var(--border);border-radius:12px;margin-top:15px;padding:5px 5px 5px 15px;transition:border-color .16s}
.search-form:focus-within{border-color:#a66b98}
.search-form .search-icon{color:#d387b7;width:21px;height:21px}
.search-form input{width:100%;min-width:0;flex:1;border:0;outline:none;color:var(--text);background:transparent;padding:9px 3px;font-size:16px}
.search-form input::placeholder{color:#a8a0ae;opacity:1}
.search-form input:focus-visible{outline:none}
.search-form .button{min-height:41px;min-width:94px}
.filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:15px}
.filter{border:1px solid var(--border);background:var(--surface);color:var(--muted);border-radius:100px;font-size:13px;font-weight:700;min-height:36px;padding:0 13px;white-space:nowrap;transition:background .16s,color .16s,border-color .16s}
.filter:hover{background:var(--surface-high);color:var(--text)}
.filter[aria-pressed="true"]{color:#ffb0dc;border-color:#92476e;background:#3a1c32}
.catalog{margin-top:30px}
.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:14px}
.search-status{font-size:13px;margin-top:5px}
.text-button{border:0;background:none;color:var(--pink);display:inline-flex;align-items:center;gap:7px;padding:0;font-weight:700;font-size:14px;text-align:left;line-height:1.4}
.text-button .icon{width:16px;height:16px}
.text-button:hover{color:#ffacda}
.section-heading .text-button{white-space:nowrap}
.song-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.song-card{padding:0;border:1px solid var(--border);background:var(--surface);border-radius:13px;color:var(--text);min-width:0;display:flex;flex-direction:column;overflow:hidden;text-align:left;transition:transform .2s,background .2s,border-color .2s}
.song-card:hover{background:var(--surface-high);border-color:#946185;transform:translateY(-3px)}
.song-art{display:block;position:relative;isolation:isolate;width:100%;aspect-ratio:2.25;background:#302035;overflow:hidden}
.song-art::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(165deg,#10081588,transparent 60%);pointer-events:none}
.song-art img{position:absolute;inset:0}
.song-card[data-provider=youtube] .song-art{aspect-ratio:16/9}
.song-card[data-provider=youtube] .song-art img{object-fit:contain}
.song-card[data-provider=youtube] .song-art::before,.song-card[data-provider=youtube] .song-category{display:none}
.song-category{position:absolute;z-index:2;top:10px;left:10px;background:#15101be6;border:1px solid #ffffff30;color:#fff7fd;font-size:11px;font-weight:700;border-radius:6px;padding:4px 7px;line-height:1.1}
.song-body{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 12px 13px;flex:1}
.song-text{display:grid;gap:4px;min-width:0}
.song-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:15px;line-height:1.23;font-weight:700}
.song-artist{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:12px;color:var(--muted)}
.song-play{border-radius:50%;width:32px;height:32px;background:#3e2139;color:#ffa5d4;display:grid;place-items:center;flex:none}
.song-play .icon{width:16px;height:16px}
.song-card:hover .song-play{background:var(--pink);color:#271422}
.external-search{display:inline-flex;align-items:center;gap:7px;color:var(--pink);font-size:14px;margin-top:15px;font-weight:700}
.external-search .icon{width:16px;height:16px}
.external-search:hover{text-decoration:underline}
.no-results{border:1px dashed var(--border);border-radius:14px;min-height:180px;padding:24px;text-align:center;display:grid;justify-items:center;align-content:center;gap:8px;background:#16131b}
.no-results>.icon{color:var(--pink);width:25px;height:25px}
.no-results h3{font-size:18px}
.no-results p{color:var(--muted);font-size:14px;line-height:1.45}
.no-results .button{margin-top:8px}
.site-footer{border-top:1px solid #292531;padding-block:19px 23px}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}
.footer-inner .icon{color:#db8bbb;width:16px;height:16px;margin-right:3px}
.footer-brand{font-weight:900;color:#eee4ec;font-size:16px;letter-spacing:-.5px}
.footer-brand span,.footer-separator{color:var(--pink)}
.footer-separator{margin:0 4px}
.footer-inner .text-button{font-size:12px}

.content-view{padding-top:3px}
.back-link{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:700;color:var(--muted);margin-bottom:23px}
.back-link:hover{color:var(--pink)}
.back-link .icon{width:17px;height:17px}
.studio-heading{margin-bottom:20px}
.studio-heading h1{font-size:clamp(33px,5vw,58px);letter-spacing:-.05em;line-height:1.08;overflow-wrap:anywhere}
.studio-heading p{margin-top:7px}
.track-category{font-size:13px;font-weight:700;color:var(--pink);margin-bottom:7px}
.studio-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,335px);gap:20px;align-items:start}
.studio-controls{display:grid;gap:12px;margin-bottom:14px}
.studio-controls .performer-form{margin-top:0;max-width:420px}
.studio-controls>.button{width:100%;max-width:420px}
.studio-controls .status-message{margin:0}
.studio-controls .status-message:empty,#track-artist:empty{display:none}
.studio-media>.turn-context{margin:0 0 12px}
.player-box{display:grid;place-items:center;border-radius:15px;background:#07070a;border:1px solid #342b3b;min-height:202px;aspect-ratio:16 / 9}
.player-box iframe,#youtube-player{border:0;display:block;width:100%;height:100%;min-height:200px;border-radius:14px}
.player-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;font-size:13px;margin-top:12px}
.player-meta .text-button{margin-left:auto;white-space:nowrap}
.studio-card,.dialog{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:22px}
.studio-card h2,.dialog h2{margin-top:15px;font-size:23px}
.studio-card>p.muted,.dialog>p.muted{margin-top:8px;font-size:14px}
.dialog>p a{color:var(--pink);text-decoration:underline;text-underline-offset:2px}
.panel-icon{display:grid;place-items:center;width:42px;height:42px;background:#42223b;color:#ff9bd0;border-radius:11px}
.panel-icon .icon{width:22px;height:22px}
.full{width:100%}
.setup-link{display:flex;justify-content:center;margin:13px auto 0;text-align:center}
.headphone-note{display:flex;gap:7px;margin-top:17px;padding-top:15px;border-top:1px solid var(--border);font-size:12px;line-height:1.4;color:#c5bac8}
.headphone-note .icon{width:16px;height:16px;color:#e78bc6}
.status-message{font-size:13px;line-height:1.45;color:var(--muted);margin:10px 0}
.status-message:empty{margin:0}
.status-message.error{color:var(--danger)}
.studio-card .recording-help{font-size:12px}
.recording-status{display:flex;gap:7px;align-items:center;color:var(--muted);font-size:12px;font-weight:700;margin:10px 0 0}
.recording-status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.recording-status.recording-live{color:var(--pink)}
.studio-card>.button{margin-top:12px}
.studio-card .panel-icon+.status-message{margin-top:15px}
.live-mic,.test-meter{padding:11px;border:1px solid var(--border);border-radius:9px;background:#15131b}
.live-mic{margin-top:14px}
.meter-heading{display:flex;gap:10px;justify-content:space-between;align-items:center;font-weight:700;color:#d3c5d2;font-size:12px;margin-bottom:7px}
.meter-heading span:first-child{overflow-wrap:anywhere}
.meter-heading span:last-child{color:var(--pink);white-space:nowrap}
.audio-meter{appearance:none;display:block;width:100%;height:8px;background:#2e2737;border:0;border-radius:10px;overflow:hidden}
.audio-meter::-webkit-meter-bar{background:#2e2737;border:0;border-radius:10px}
.audio-meter::-webkit-meter-optimum-value{background:linear-gradient(90deg,#a84add,var(--pink));border-radius:10px}
.audio-meter::-moz-meter-bar{background:linear-gradient(90deg,#a84add,var(--pink));border-radius:10px}
.practice-box{min-height:300px;display:grid;gap:10px;justify-items:center;align-content:center;text-align:center;background:radial-gradient(ellipse at 55% 30%,#522044 0%,#27182e 40%,#17131b 78%);border-radius:15px;border:1px solid var(--border);color:#f9dfef}
.practice-box .icon{color:var(--pink);width:26px;height:26px}
.practice-box strong{font-size:66px;font-weight:900;letter-spacing:-.06em;color:var(--pink)}
.practice-progress{display:flex;gap:5px;margin-top:8px}
.practice-progress span{width:12px;height:5px;border-radius:9px;background:#77506e}
.practice-progress .done{background:var(--pink)}
.score-number{font-size:59px;font-weight:900;letter-spacing:-.06em;line-height:1;color:var(--pink);margin-block:12px 6px}
.score-number span{font-size:18px;color:var(--muted);font-weight:700;letter-spacing:normal}
.score-detail,.score-explanation{color:var(--muted);font-size:13px;line-height:1.5;margin-block:6px 10px}
.score-metrics{display:grid;gap:5px;margin-block:12px;padding:11px;border-radius:9px;background:#15131b;font-size:13px}
.score-metrics div{display:flex;justify-content:space-between;gap:10px}
.score-metrics strong{color:#ffc7e7}
.history-list{display:grid;gap:9px;max-width:770px}
.history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 16px;padding:13px 16px;background:var(--surface);border:1px solid var(--border);border-radius:12px}
.history-title{font-weight:700;display:block;overflow-wrap:anywhere}
.history-title:hover{color:var(--pink)}
.history-row p{margin-top:4px;font-size:13px}
.history-row strong{color:var(--pink);white-space:nowrap}
.recording-controls{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:8px;padding-top:2px}
.recording-controls .button{min-height:40px}
.recording-controls .button:first-child{color:#ffc6e7;background:#3d2438;border-color:#63405e}
.recording-controls .button:first-child:hover{background:#522d4a}
.recording-controls audio{display:block;width:min(100%,430px);height:44px;flex-basis:100%}
.recording-controls p,.recording-unavailable{grid-column:1 / -1;font-size:12px}
.recording-controls p:empty{display:none}
.dialog{max-width:min(420px,calc(100% - 22px));width:100%;margin:auto;color:var(--text);max-height:calc(100% - 28px);overflow-y:auto;box-shadow:0 25px 100px #080611c4}
.dialog::backdrop{background:#09070cc9;backdrop-filter:blur(4px)}
.dialog-header{display:flex;justify-content:space-between;align-items:flex-start}
.icon-button{display:grid;place-items:center;border:1px solid var(--border);background:var(--surface-high);color:var(--text);border-radius:8px;width:36px;height:36px}
.icon-button:hover{border-color:var(--pink)}
.dialog .field-label{display:block;margin:17px 0 6px;font-size:13px;font-weight:700}
.dialog select{width:100%;min-height:42px;border:1px solid var(--border);border-radius:8px;background:#15131b;color:var(--text);padding:0 8px;font-size:16px}
.test-meter{margin-top:13px}
.dialog .button{margin-top:13px}
.test-practice{border-top:1px solid var(--border);margin-top:17px;padding-top:12px}
.test-practice .text-button{font-size:13px}

@media(max-width:950px){
  :root{--gutter:28px}
  .hero::before{background-size:auto 135%}
  .hero h1{font-size:78px}
  .song-grid{gap:11px}
  .song-body{padding:10px}
}
@media(max-width:720px){
  :root{--gutter:19px}
  .main{padding-top:20px}
  .hero{min-height:354px}
  .hero::before{background-position:right 41%;background-size:auto 114%}
  .hero::after{background:linear-gradient(90deg,#251323,#251323f5 22%,#2513236d 66%,#1d0c151f),linear-gradient(0deg,#1b0f1acf,transparent 64%)}
  .hero-body{padding:28px}
  .hero h1{font-size:70px}
  .song-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .studio-layout{grid-template-columns:minmax(0,1fr)}
  .studio-card{width:100%}
}
@media(max-width:470px){
  :root{--gutter:15px}
  .topbar,.topbar-inner{min-height:63px}
  .topbar-inner{gap:9px}
  .brand{gap:6px;font-size:20px}
  .brand-icon{width:29px;height:29px;border-radius:8px}
  .brand-icon .icon{width:18px;height:18px}
  .nav{gap:10px}
  .nav a{font-size:12px}
  .top-mic{min-height:36px;padding:0 8px;gap:4px;font-size:11px}
  .top-mic .mic-dot{display:none}
  .top-mic .icon{width:13px;height:13px}
  .hero{min-height:321px;border-radius:15px}
  .hero::before{background-position:70% 36%;background-size:auto 105%}
  .hero::after{background:linear-gradient(90deg,#251323eb 4%,#251323b3 37%,#1c091228 94%),linear-gradient(0deg,#1b0f1ae3 3%,#1b0f1a72 32%,transparent 66%)}
  .hero-body{padding:21px 18px 25px}
  .hero h1{font-size:62px}
  .hero p{font-size:14px;max-width:228px;margin-top:13px}
  .hero-actions{gap:7px;margin-top:17px}
  .hero-actions .button{padding:0 9px;font-size:12px;min-height:42px;gap:5px}
  .hero-actions .icon{width:15px;height:15px}
  .hero-category{font-size:10px;gap:5px;margin-bottom:10px}
  .hero-category .icon{width:15px;height:15px}
  .search-section{margin-top:24px}
  h2{font-size:22px}
  .search-section p{font-size:13px}
  .search-form{gap:6px;padding-left:10px;margin-top:11px}
  .search-form .button{min-width:68px;padding:0 9px}
  .search-form .search-icon{width:18px;height:18px}
  .search-form input{padding-left:1px}
  .filters{gap:6px;margin-top:11px}
  .filter{padding:0 9px;min-height:33px;font-size:12px}
  .catalog{margin-top:25px}
  .section-heading{gap:8px}
  .section-heading h2{font-size:20px}
  .section-heading .text-button{font-size:12px;gap:3px}
  .song-grid{gap:8px}
  .song-art{aspect-ratio:1.8}
  .song-body{padding:8px}
  .song-title{font-size:14px}
  .song-play{width:26px;height:26px}
  .song-play .icon{width:14px;height:14px}
  .song-category{font-size:10px;top:6px;left:6px}
  .footer-inner{font-size:10px}
  .footer-inner .icon{display:none}
  .studio-card,.dialog{padding:16px}
  .player-meta{flex-wrap:wrap}
}
@media(max-width:350px){
  .top-mic span:last-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .top-mic{padding:0 10px}
  .hero-actions .button{flex:1}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
}

/* Song collections, party controls and preferences. */
:root{
  --field-bg:#15131b;
  --accent-bg:#3a1c32;
  --accent-text:#ffc7e7;
  --accent-border:#92476e;
}
:root[data-theme="light"]{
  color-scheme:light;
  --bg:#faf6fa;
  --surface:#fff;
  --surface-high:#f8edf4;
  --border:#e7d7e3;
  --text:#221523;
  --muted:#665566;
  --pink:#9e1669;
  --green:#12764e;
  --danger:#952439;
  --field-bg:#fcf8fb;
  --accent-bg:#f9deed;
  --accent-text:#831353;
  --accent-border:#cf8ab4;
}
.topbar,.site-footer{border-color:var(--border)}
.topbar-inner{grid-template-columns:1fr auto 1fr}
.nav{gap:clamp(12px,2.5vw,30px)}
.nav-count{border-radius:20px;background:var(--accent-bg);color:var(--accent-text);padding:2px 5px;margin-left:4px;font-size:11px}
.hero h1 span{color:#ff62b8}
.search-form input::placeholder{color:var(--muted)}
.filter[aria-pressed="true"]{color:var(--accent-text);background:var(--accent-bg);border-color:var(--accent-border)}
.no-results,.live-mic,.test-meter,.score-metrics{background:var(--field-bg)}
.meter-heading,.headphone-note,.footer-brand{color:var(--muted)}
.score-metrics strong{color:var(--accent-text)}
.text-button:hover{color:var(--accent-text)}
.dialog .field-label,.field-label{display:block;margin:0 0 6px;font-size:13px;font-weight:700}
.dialog>.field-label{margin-top:16px}
.field{margin-top:15px}
.field input,.field select,.performer-form>input,.dialog select{
  width:100%;min-height:42px;padding:0 10px;border:1px solid var(--border);
  border-radius:9px;background:var(--field-bg);color:var(--text);font-size:16px;
}
.check-field{display:flex;gap:7px;align-items:center;margin-top:10px;font-size:13px;font-weight:700}
.check-field input{width:17px;height:17px;margin:0;accent-color:var(--hot)}
.performer-form{margin-top:16px}
.settings-subtitle{font-size:16px;margin-top:18px;padding-top:15px;border-top:1px solid var(--border)}
.settings-subtitle+.muted{font-size:13px;margin-top:6px}
.screen-help{margin-top:8px;font-size:12px}
.player-actions{display:flex;gap:12px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.player-actions .text-button{font-size:12px}
.pick-banner h1{font-size:clamp(25px,5vw,39px);letter-spacing:-.04em;overflow-wrap:anywhere}
.pick-banner+.search-section{margin-top:20px}
.collections{margin-top:27px}
.collections h2{font-size:21px;margin-bottom:11px}
.collection-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.collection-button{
  display:flex;align-items:center;gap:10px;min-height:64px;padding:11px 13px;border:1px solid var(--border);
  border-radius:12px;text-align:left;background:var(--surface);color:var(--text);font-weight:700;
}
.collection-button:hover,.collection-button[aria-pressed="true"]{background:var(--surface-high);border-color:var(--accent-border)}
.collection-mark{display:grid;place-items:center;width:32px;height:32px;background:var(--accent-bg);border-radius:9px;color:var(--pink);flex:none}
.collection-mark .icon{width:17px;height:17px}
.collection-name{flex:1;line-height:1.3;font-size:14px}
.collection-button>.icon{color:var(--pink);width:15px;height:15px}
.song-card{position:relative}
.song-open{display:flex;flex-direction:column;width:100%;flex:1;padding:0;border:0;background:none;text-align:left;color:inherit}
.song-open:focus-visible{outline-offset:-3px}
.song-actions{position:absolute;top:7px;right:7px;display:flex;gap:5px}
.song-action{display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff36;border-radius:9px;background:#18121de6;color:#faf5f9}
.song-action .icon{height:17px;width:17px}
.song-action:hover,.song-action[aria-pressed="true"]{border-color:#ff9ed4;color:#ff9ed4;background:#351e31}
.favorite-action[aria-pressed="true"] .icon{fill:currentColor}
.remove-added{min-height:35px;padding:5px 12px;border-top:1px solid var(--border)}
.remove-added .icon{width:14px;height:14px}
.more-songs{display:flex;margin:20px auto 0}
.view-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap}
.competition-form{max-width:650px}
.competition-form h1{font-size:32px;margin-top:12px;letter-spacing:-.035em}
.entrant-list{display:grid;gap:10px;margin-top:12px}
.entrant-field{
  display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:end;
  padding:10px;border:1px solid var(--border);background:var(--field-bg);border-radius:10px;
}
.entrant-field .field{margin:0}
.entrant-field>.field:last-child{grid-column:1 / -1;margin-top:8px}
.entrant-field .check-field{margin:0 5px 11px 0}
.competition-actions{margin-top:17px}
.party-dashboard{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(220px,1fr);gap:16px;max-width:950px}
.current-turn h2{font-size:clamp(25px,5vw,40px);margin:5px 0 0;overflow-wrap:anywhere}
.party-dashboard .participant-title{margin:0 0 14px;font-size:19px}
.party-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.party-row{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;
  padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface);
}
.party-row h3{font-size:17px;overflow-wrap:anywhere}
.party-row p{font-size:13px;margin-top:4px}
.turn-marker{color:var(--pink);font-weight:700;font-size:12px;display:block;margin:0 0 4px}
.party-index{min-width:33px;height:33px;padding:0 6px;display:grid;place-items:center;border-radius:9px;background:var(--accent-bg);color:var(--accent-text);font-weight:900}
.party-row-actions{display:flex;gap:7px;align-items:center}
.party-row-actions .icon-button{width:40px;height:40px}
.party-row-actions .compact{font-size:12px}
.active-entrants .party-row{background:var(--field-bg);grid-template-columns:minmax(0,1fr) auto;padding:8px 10px}
.active-entrants .party-row[aria-current]{border-color:var(--accent-border)}
.active-entrants .party-row>span:last-child{font-size:12px;color:var(--pink);font-weight:700}
.scoreboard{max-width:920px}
.scoreboard .party-row:first-child{border-color:var(--accent-border)}
.rank-value{display:grid;text-align:right;color:var(--pink);font-weight:900;font-size:24px}
.rank-value small{font-size:11px;color:var(--muted);font-weight:700}
.turn-context{overflow-wrap:anywhere}
.history-performer{color:var(--pink);font-weight:700}
.tv-mode{
  --bg:#08060b;--surface:#1b1922;--surface-high:#24212c;--border:#342e3b;--text:#fff4fa;--muted:#c6bcc8;
  --pink:#ff80c7;--accent-bg:#3a1c32;--accent-text:#ffc7e7;--field-bg:#15131b;
  color-scheme:dark;background:var(--bg);color:var(--text);
}
.tv-mode .shell{--shell:1500px}
.tv-mode .topbar-inner{grid-template-columns:1fr auto 1fr}
.tv-mode .top-mic,.tv-mode .site-footer{display:none}
#exit-screen{justify-self:end}
.tv-mode .studio-card{padding:14px}
.tv-mode .studio-heading{margin-bottom:12px}
.tv-mode .studio-heading h1{font-size:clamp(25px,4vw,50px)}
.tv-mode .studio-layout{grid-template-columns:minmax(0,1fr) minmax(215px,270px);gap:14px}
.tv-mode .scoreboard{max-width:none}
.tv-mode .scoreboard .party-row{padding:clamp(12px,2vw,22px)}
.tv-mode .scoreboard .party-row h3{font-size:clamp(20px,4vw,36px)}
.tv-mode .scoreboard .party-row p{font-size:clamp(14px,2vw,21px)}
.tv-mode .rank-value{font-size:clamp(23px,5vw,46px)}

@media(max-width:740px){
  .topbar-inner,.tv-mode .topbar-inner{grid-template-columns:1fr auto;column-gap:10px;row-gap:0;min-height:auto}
  .topbar-inner>.brand,.topbar-inner>.top-mic,#exit-screen{margin:10px 0}
  .nav{grid-column:1 / -1;grid-row:2;justify-content:space-between;gap:8px}
  .nav a{min-height:38px}
  .tv-mode .studio-layout{grid-template-columns:minmax(0,1fr)}
  .party-dashboard{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:500px){
  .collection-list{grid-template-columns:minmax(0,1fr);gap:6px}
  .collection-button{min-height:47px;padding:6px 10px}
  .collection-mark{width:28px;height:28px}
  .song-actions{top:5px;right:5px;gap:4px}
  .song-action{width:31px;height:31px}
  .song-action .icon{width:15px;height:15px}
  .song-category{max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .player-actions{gap:8px 12px;justify-content:flex-start}
  .party-row{gap:7px;padding:9px}
  .party-row-actions{gap:5px}
  .party-row-actions .compact{min-width:0;padding:0 7px}
  .party-row-actions .icon-button{width:33px;height:36px}
}
@media(max-width:350px){
  .nav a{font-size:11px}
  .hero-actions a.button{flex:1}
}

.nav .antrix-link { color: var(--accent-text); gap: 4px; }
.antrix-link .icon { width: 13px; height: 13px; }
.hero-actions .game-link { flex: 0 0 auto; }
@media (max-width: 500px) {
  .hero-actions .game-link { flex: 0 0 100%; }
  .nav .antrix-link { gap: 2px; }
  .antrix-link .icon { width: 11px; height: 11px; }
}

.update-banner { position: sticky; top: 0; z-index: 7; color: var(--text); background: var(--surface); border-bottom: 1px solid var(--border); }
.update-banner .shell { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 8px; }
.update-dialog { margin: auto; width: min(390px, calc(100% - 32px)); padding: 24px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.update-dialog::backdrop { background: #090610b8; }
.update-dialog p { margin-block: 13px 22px; }
.update-dialog > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
