:root{color-scheme:light;--bg:#f8f5ff;--surface:#fff;--ink:#171717;--text:#2c2c2c;--muted:#5d5d5d;--accent:#7257e8;--soft:#f0edff;--line:#e5e2eb;--border:#b9b6c2;--link:#392588;font-family:Inter,"Avenir Next","Segoe UI",Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:17px;line-height:1.6}header{max-width:1040px;margin:auto;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line)}.brand{font-size:28px;font-weight:850;color:var(--ink);text-decoration:none;letter-spacing:-1px;display:flex;align-items:center;flex-wrap:wrap;line-height:1.3}.brand span{color:var(--accent)}.badge{font-size:14px;color:var(--muted)}main{max-width:980px;margin:auto;padding:40px 24px 48px}h1,h2,h3{color:var(--ink);font-family:"Arial Rounded MT Bold",Inter,"Avenir Next","Segoe UI",sans-serif;letter-spacing:-.035em}h1{font-size:clamp(2.3rem,5.3vw,4rem);line-height:1.12;margin:18px 0 24px;font-weight:850}h2{font-size:1.5rem;line-height:1.3;margin:8px 0 16px}h3{font-size:1.15rem}.lead{font-size:1.2rem;max-width:760px;color:var(--muted)}.eyebrow{font-weight:800;letter-spacing:.13em;font-size:14px;color:var(--link)}.card{padding:28px;border:1px solid rgba(23,23,23,.13);border-radius:18px;background:var(--surface);box-shadow:0 10px 28px #1717170d;margin:26px 0}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:30px 0}.grid p{font-size:16px;color:var(--muted)}.grid h2{font-size:1.2rem}.muted,.notice,small{color:var(--muted)}small{font-size:14px}.notice{font-size:15px}.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:22px}button,.button{font:inherit;font-size:16px;font-weight:750;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--ink);padding:12px 20px;cursor:pointer;display:inline-block;text-decoration:none;line-height:1.35;box-shadow:0 3px 0 #17171720}button:hover,.button:hover{background:var(--soft);border-color:var(--accent)}button:disabled{opacity:.45;cursor:default;box-shadow:none}.primary{background:#171717;color:#fff;border-color:#171717}.primary:hover{background:#34246d;color:#fff}.quiet{background:transparent;box-shadow:none}a{color:var(--link)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #7257e870;outline-offset:4px}label{display:block;font-weight:650}input:not([type=checkbox]),select{width:100%;font:inherit;color:var(--text);border:1.5px solid var(--border);border-radius:14px;background:#fff;padding:12px 14px;margin:8px 0 12px}input[hidden]{display:none}.country-label{margin-top:20px}#country{width:210px;display:block}select{appearance:none;padding-right:35px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%235d5d5d' fill='none' stroke-width='2'/%3E%3C/svg%3E");background-position:right 14px center;background-repeat:no-repeat}.choices{display:flex;gap:9px;flex-wrap:wrap}.choice{display:flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:99px;padding:8px 14px;font-size:15px;cursor:pointer;background:var(--bg)}input[type=checkbox]{accent-color:var(--accent);width:17px;height:17px}.choice:has(input:checked){background:#e9e1ff;border-color:#9278dc;color:var(--link)}.topline{display:flex;justify-content:space-between;gap:18px;font-size:14px;color:var(--muted);flex-wrap:wrap}progress{width:100%;height:7px;accent-color:var(--accent);margin:18px 0}.question-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.question-header h1{font-size:clamp(2rem,5vw,3rem)}.player{text-align:center}.song-credit{margin:12px auto 22px}.song-credit strong{font-size:24px;color:var(--ink)}.song-credit a{font-size:14px}#youtube-mount{max-width:640px;margin:0 auto 20px}#youtube-mount iframe{display:block;width:100%;min-height:230px;aspect-ratio:16/9;border:0;border-radius:14px}div#youtube-player:empty{display:none}.ratings{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:24px}.rating{border-radius:14px;padding:14px 5px;background:var(--soft);border-color:#d7ccff;box-shadow:none;min-height:90px}.rating b{display:block;font-size:25px}.rating span{font-size:14px;display:block}.rating[aria-pressed=true]{background:var(--accent);color:white;border-color:var(--accent)}.familiar-label{margin-top:24px;font-size:15px}.row{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);align-items:center}.row span{white-space:nowrap}.trait-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:30px}.trait{background:var(--bg);border-radius:14px;padding:16px;display:grid;grid-template-columns:1fr auto;gap:6px}.trait meter,.trait small{grid-column:1/-1}.trait meter{width:100%;height:13px}.trait strong{font-size:16px}.trait span{font-size:15px}.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.comparison-grid p{font-size:15px}.metric{font-weight:850;font-size:2.5rem;color:var(--accent)}.match{padding:26px 0;border-top:1px solid var(--line);margin-top:22px}details{margin:22px 0}summary{cursor:pointer;color:var(--link);font-weight:650}footer{max-width:980px;margin:auto;padding:0 24px 30px;color:var(--muted);font-size:14px}#message{min-height:24px}@media(max-width:640px){header{padding:20px;align-items:start}.brand{font-size:25px}.badge{max-width:115px;text-align:right;font-size:12px}main{padding:26px 18px}.grid{grid-template-columns:1fr;gap:5px}.grid p{margin-top:0}.card{padding:20px}.question-header{display:block}.question-header button{margin-bottom:12px}.ratings{gap:6px}.rating span{font-size:11px}.rating b{font-size:22px}.trait-grid{grid-template-columns:1fr 1fr}.trait{padding:12px;display:block}.trait span,.trait small{display:block}.row{flex-wrap:wrap}.comparison-grid{grid-template-columns:1fr}.actions button{max-width:100%}}

textarea{display:block;width:100%;max-width:100%;font:inherit;font-size:16px;line-height:1.5;color:var(--text);background:white;border:1.5px solid var(--border);border-radius:14px;padding:12px 14px;margin:8px 0 16px;resize:vertical}textarea:focus-visible{outline:3px solid #7257e870;outline-offset:4px}#taste-prompt{font-size:14px}

.routing-choices{display:grid;gap:12px;margin:26px 0}.routing-choices button{text-align:left;white-space:normal}

/* Keep the playing excerpt and response controls together on laptop screens. */
body:has(.question-screen) header{max-width:1180px;padding:12px 20px}
main.question-screen{max-width:1180px;padding:12px 20px 28px}
.question-screen .topline{gap:8px;font-size:13px}
.question-screen .question-header{gap:12px;margin:8px 0}
.question-screen .question-header h1{font-size:1.75rem;line-height:1.15;margin:0}
.question-screen .question-header h1 br{display:none}
.question-screen .question-header button{padding:8px 14px;font-size:14px}
.question-screen > .lead{font-size:16px;line-height:1.4;max-width:none;margin:8px 0}
.question-screen > .notice{font-size:14px;line-height:1.4;margin:6px 0}
.question-screen #message:empty{display:none}
.question-screen #message{min-height:0}
.listening-card{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px;padding:18px;margin:14px 0;align-items:start}
.listening-card .player,.response-panel{min-width:0}
.listening-card .song-credit{margin:0 0 10px;line-height:1.35}
.listening-card .song-credit strong{font-size:18px}
.listening-card .song-credit span{font-size:14px}
.listening-card #youtube-mount{max-width:480px;margin:0 auto 10px}
.listening-card #youtube-mount iframe{height:auto;min-height:200px;aspect-ratio:16/9}
.listening-card #play{padding:8px 16px;font-size:14px}
.listening-card #listen-note{font-size:14px;line-height:1.35;margin:10px 0}
.listening-card .playback-help{margin:10px 0 0;text-align:left;font-size:14px}
.response-panel h2{font-size:18px;margin:0 0 12px}
.response-panel .routing-choices{gap:10px;margin:0}
.response-panel .routing-choices button{padding:12px 16px}
.response-panel .ratings{margin:0;gap:6px}
.response-panel .rating{min-height:76px;padding:10px 4px}
.response-panel .rating span{font-size:13px}
.response-panel .familiar-label{margin-top:18px}
.response-panel select{font-size:15px;padding:10px 32px 10px 12px}
.response-panel .actions{gap:10px;margin-top:16px}
.response-panel .actions button{padding:10px 14px;font-size:15px}
@media(max-width:719px){
 main.question-screen{padding:12px 14px 24px}
 .question-screen .question-header{display:flex;align-items:start}
 .question-screen .question-header h1{font-size:1.4rem}
 .question-screen .question-header button{font-size:13px;max-width:130px;margin:0}
 .listening-card{grid-template-columns:1fr;gap:18px;padding:14px}
 .listening-card .song-credit strong{font-size:17px}
 .response-panel .rating span{font-size:12px}
}

.media-heading{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:8px}
.media-heading .song-credit{text-align:left;margin:0;flex:1;min-width:0}
.media-heading #play{flex-shrink:0;max-width:115px}
.listening-card > .playback-help{grid-column:1/-1;margin:0}
@media(max-width:719px){
 body:has(.question-screen) header{padding:8px 12px}
 body:has(.question-screen) .brand{font-size:20px}
 body:has(.question-screen) .badge{display:none}
 main.question-screen{padding:6px 10px 20px}
 .question-screen .topline{font-size:12px;line-height:1.3}
 .question-screen .topline span:last-child{display:none}
 .question-screen .question-header{margin:6px 0;gap:8px}
 .question-screen .question-header h1{font-size:20px;line-height:1.15}
 .question-screen .question-header button{font-size:12px;padding:6px 9px;max-width:110px;line-height:1.2}
 .question-screen > .lead,.question-screen > .notice:not(#message){display:none}
 .question-screen #message{font-size:12px;margin:4px 0;line-height:1.3}
 .listening-card{padding:10px;margin:8px 0;gap:10px}
 .listening-card .media-heading{align-items:center;gap:8px;margin-bottom:6px}
 .listening-card .song-credit{line-height:1.2}
 .listening-card .song-credit strong{font-size:15px}
 .listening-card .song-credit span{font-size:12px}
 .listening-card .song-credit a{display:none}
 .listening-card #play{font-size:12px;padding:6px 10px;max-width:90px;min-height:36px}
 .listening-card #youtube-mount{margin-bottom:4px}
 .listening-card #youtube-mount iframe{border-radius:8px}
 .listening-card #listen-note{font-size:12px;line-height:1.25;margin:4px 0}
 .response-panel h2{display:none}
 .response-panel .routing-choices{gap:7px}
 .response-panel .routing-choices button{font-size:14px;min-height:40px;padding:9px 12px}
 .response-panel .ratings{gap:5px}
 .response-panel .rating{min-height:60px;padding:6px 3px}
 .response-panel .rating b{font-size:20px}
 .response-panel .rating span{font-size:11px}
 .response-panel .familiar-label{font-size:12px;margin-top:8px;line-height:1.25}
 .response-panel .familiar-label small{font-size:12px}
 .response-panel select{font-size:13px;padding:7px 28px 7px 10px;margin:4px 0}
 .response-panel .actions{margin-top:8px;gap:7px;flex-wrap:nowrap;justify-content:space-between}
 .response-panel .actions button{font-size:13px;padding:9px 11px;min-height:38px}
 .listening-card > .playback-help{font-size:12px;line-height:1.25;margin-top:2px}
}

@media(max-width:719px){
 .listening-card .song-credit span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .question-screen > #message{margin-top:8px}
}

/* A playful listening-invitation feel, with clear stages and stable controls. */
:root{--bg:#f5efff;--accent:#7347e8;--soft:#f0e7ff;--line:#d8cbea}
body{background:radial-gradient(ellipse at 8% 0%,#ffd9ee66,transparent 50%),var(--bg)}
.site-brand{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;min-width:0}
.brand{display:inline;white-space:nowrap}
.brand-credit{font-size:14px;line-height:1.3;padding:4px 12px;font-weight:700;background:#ffccea;color:#402057;border:1px solid #825494;border-radius:99px;text-decoration:none;white-space:nowrap}
.brand-credit:hover{text-decoration:underline}
h1{letter-spacing:-.045em}
.card{border:1.5px solid #302237;border-radius:22px;box-shadow:4px 5px 0 #d3c1ec}
.primary{background:#dcf78a;color:#211b27;border-color:#211b27;box-shadow:0 3px 0 #211b27}
.primary:hover{background:#cced6b;color:#211b27}
.rating[aria-pressed=true]{background:#ffcced;color:#211b27;border-color:#211b27;box-shadow:0 2px 0 #211b27}
.journey{display:flex;gap:7px;align-items:center}
.journey-step{flex:1;padding:5px 12px;border:1px solid #c6b5df;border-radius:999px;font-size:13px;font-weight:750;text-align:center;background:#fff8;color:#665676}
.journey-step.active{background:#ffccea;border-color:#39233e;color:#25182a;box-shadow:0 2px 0 #39233e}
.journey-step.done{background:#e2f1b8;color:#35451c;border-color:#91a55f}
.journey-status{font-size:13px;color:#61526e;margin:5px 0 2px;line-height:1.3}
.same-excerpt{font-size:14px;line-height:1.3;color:var(--muted);margin:0 0 10px}
@media(max-width:719px){
 .journey-step{font-size:12px;padding:3px 5px;line-height:1.2}
 .journey-status{font-size:12px;margin:4px 0 0}
 .listening-card{box-shadow:2px 3px 0 #d3c1ec}
 .same-excerpt{font-size:12px;margin:0 0 7px}
}

@media(max-width:719px){
 .same-excerpt{display:none}
 .listening-card .song-credit br:last-of-type{display:none}
 .listening-card .song-credit strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .listening-card .song-credit strong+br{display:none}
}

.branch-context{font-size:12px;line-height:1.3;margin:4px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--link);font-weight:650}
.familiarity-details{margin:10px 0 0;font-size:13px}
.familiarity-details summary{font-size:13px}
.familiarity-details .familiar-label{margin-top:8px}
.catalog-list{list-style:none;padding:0;margin:0}
.catalog-list li{padding:12px 0;border-bottom:1px solid var(--line)}
.catalog-list li small{display:block}
.catalog-list li[hidden]{display:none}
.song-page #youtube-mount{max-width:640px}
@media(min-width:720px) and (max-height:720px){
 body:has(.question-screen) header{padding:8px 16px}
 main.question-screen{padding:8px 16px 20px}
 .question-screen > .lead,.question-screen > .notice:not(#message){display:none}
 .question-screen .question-header h1{font-size:23px}
 .question-screen .question-header{margin:6px 0}
 .listening-card{margin:8px 0;padding:14px;gap:16px}
 .listening-card #youtube-mount{max-width:420px}
 .listening-card .song-credit strong{font-size:16px}
 .listening-card .song-credit span{font-size:13px}
 .listening-card .song-credit{line-height:1.25}
 .listening-card .song-credit strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}
@media(max-width:719px){
 .question-screen .question-header h1{font-size:18px;line-height:1.12}
 .question-screen .question-header button{font-size:11px;line-height:1.1;padding:5px 8px}
 .listening-card{gap:8px;margin:6px 0}
 .familiarity-details,.familiarity-details summary{font-size:12px;margin-top:5px;line-height:1.25}
 .listening-card #listen-note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .response-panel .actions button{min-height:35px}
}
.round-progress{display:block;width:100%;height:6px;accent-color:#7257e8;margin:5px 0 8px}
.interest-summary{font-size:20px;line-height:1.5;font-weight:700}.favorite-list{list-style:none;padding:0}.favorite-list li{padding:10px 0;border-bottom:1px solid #e8dfef}.favorite-list span{display:block;font-size:14px;color:#61526e}.profile-summary h3{font-size:17px}
.routing-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}.routing-choices button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;white-space:normal;min-width:0;min-height:68px;padding:10px 12px}.routing-choices button strong{font-size:16px}.routing-choices button span{font-size:12px;font-weight:400;line-height:1.25;margin-top:4px}.response-panel .area-question{display:block;font-size:17px;margin:0 0 4px;line-height:1.25}.area-caption{font-size:13px;line-height:1.3;margin:0 0 10px;color:#61526e}@media(max-width:719px){.response-panel .area-question{font-size:14px;margin:0 0 3px}.area-caption{font-size:12px;margin:0 0 6px}.response-panel .routing-choices{gap:6px}.response-panel .routing-choices button{min-height:61px;padding:7px 9px}.routing-choices button strong{font-size:14px}.routing-choices button span{font-size:11px;margin-top:3px}}
.welcome-art{display:block;width:100%;height:auto;max-height:none;object-fit:contain;border:1px solid #171717;border-radius:22px;margin:24px 0;box-shadow:0 5px 0 #17171720}@media(max-width:719px){.welcome-art{margin:18px 0;border-radius:16px}}
.site-nav{display:flex;align-items:center;gap:14px;flex-shrink:0}.site-nav a{font-size:14px;font-weight:700;white-space:nowrap}.saved-profile{padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--line)}@media(max-width:719px){.site-nav{gap:10px}.site-nav a{font-size:12px}}

header .site-nav{display:flex;gap:12px;align-items:center}header .site-nav a{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border:1px solid var(--border);border-radius:999px;text-decoration:none;background:#ffffff90;line-height:1.3}@media(max-width:719px){header .site-nav{gap:6px}header .site-nav a{padding:5px 8px}}
/* Keep the complete default listening card inside phone browser chrome. */
@media(max-width:719px){
 body:has(.question-screen) header{padding:7px 10px;gap:8px}
 body:has(.question-screen) .brand{font-size:21px}
 main.question-screen{padding:4px 10px max(12px,env(safe-area-inset-bottom))}
 .question-screen .question-header h1{font-size:16px;margin:0;line-height:1.2}
 .question-screen .question-header{margin:4px 0}
 .question-screen .journey-status{font-size:11px}
 .question-screen .round-progress{margin:4px 0 6px;height:4px}
 .listening-card{padding:9px;gap:6px;margin:5px 0}
 .listening-card .song-credit strong{font-size:14px;-webkit-line-clamp:1}
 .listening-card .song-credit span{-webkit-line-clamp:1;font-size:12px}
 .listening-card .media-heading{margin-bottom:4px}
 .listening-card #play{min-height:32px;padding:5px 8px}
 .listening-card #youtube-mount iframe{height:clamp(200px,calc(100svh - 405px),240px)!important;min-height:200px}
 .listening-card #listen-note{font-size:11px;margin:3px 0;line-height:1.2}
 .response-panel .area-question{font-size:14px;line-height:1.2}
 .area-caption{font-size:11px;line-height:1.2;margin-bottom:5px}
 .response-panel .routing-choices button{min-height:52px;padding:6px 9px}
 .response-panel .routing-choices{gap:5px}
 .routing-choices button span{margin-top:2px}
 .response-panel .actions{margin-top:6px}
 .response-panel .actions button{min-height:32px;padding:6px 10px}
 .listening-card > .playback-help{margin:0;font-size:11px;line-height:1.2}
 .response-panel .familiarity-details{margin-top:5px}
 .response-panel .familiarity-details summary{font-size:11px}
}
@media(max-width:719px){
 /* Reserve browser-toolbar clearance and room for a longer category label. */
 .listening-card #youtube-mount iframe{height:clamp(200px,calc(100svh - 450px),220px)!important}
 body:has(.question-screen) header{padding-top:5px;padding-bottom:5px}
 .question-screen .branch-context{font-size:11px;margin:2px 0;line-height:1.2}
 .question-screen .question-header{margin:3px 0}
 .response-panel .routing-choices button{min-height:48px;padding:5px 8px}
 .response-panel .routing-choices{gap:4px}
 .listening-card{margin:4px 0;gap:5px;padding:8px}
 .response-panel .actions{margin-top:5px}
}
.music-account-dialog{max-width:680px;width:calc(100% - 24px);max-height:85dvh;border:1px solid var(--border);border-radius:20px;padding:24px;overflow:auto;background:var(--bg)}.music-account-dialog label{display:block;margin:14px 0}.music-account-dialog input[type=checkbox]{width:auto;display:inline;margin-right:10px}.music-account-dialog::backdrop{background:#17171788}

header .music-account-link{font-size:14px;padding:6px 10px;line-height:1.3;white-space:nowrap}
@media(max-width:719px){
 header:has(.site-brand){flex-wrap:wrap;gap:6px;padding:7px 10px}
 header .brand,body:has(.question-screen) header .brand{font-size:21px}
 .site-brand{gap:4px 8px}
 .brand-credit{font-size:11px;padding:3px 7px}
 header:has(.music-account-link) .site-brand{flex-basis:100%}
 header .music-account-link{font-size:12px;padding:5px 8px}
 header .site-nav{gap:5px;flex-wrap:wrap}
 header .site-nav:has(.music-account-link){flex:1 1 100%;min-width:0}
}

.music-account-identity{display:flex;align-items:center;gap:12px;margin-block:14px}
.music-account-identity img,.music-account-identity .music-account-initials{width:48px;height:48px;border-radius:50%;flex:none;object-fit:cover}
.music-account-initials{display:grid;place-items:center;background:var(--soft);color:var(--link);font-weight:750}
.music-account-identity p{margin:0;overflow-wrap:anywhere}

.music-account-identity[hidden]{display:none}
header .music-account-link:has(.music-account-name){display:inline-flex;align-items:center;gap:6px;max-width:18rem;min-width:0;text-align:left;white-space:normal}
.music-account-link img,.music-account-link .music-account-initials{width:24px;height:24px;border-radius:50%;object-fit:cover;flex:none}
.music-account-name{min-width:0;overflow-wrap:anywhere}
@media(max-width:719px){
 header .music-account-link:has(.music-account-name){margin-inline-start:auto;padding:4px 7px;gap:5px;max-width:100%;flex:0 1 auto}
 header .music-account-link img,header .music-account-link .music-account-initials{width:19px;height:19px}
}

.music-account-dialog .account-empty-status:empty{margin:0}
.music-account-settings{margin-top:18px}
.music-account-settings summary{width:fit-content;cursor:pointer}
.music-account-settings .actions{margin-top:12px}

#save-to-account[hidden], [data-profile-save-status]:empty{display:none}
