/* Discovery view: shares player, colors and navigation with the catalog. */
:root{--space:clamp(20px,3vw,48px);--shadow:0 14px 38px #0003;--bar:82px;--home-title:clamp(40px,4.5vw,72px)}
body:not(.has-session){padding-bottom:0}body.has-session{padding-bottom:102px}
body[data-view=home] .layout,body[data-view=history] .layout,body:not(.has-current) .layout{display:block}
body[data-view=home] .sidebar,body[data-view=history] .sidebar,body:not(.has-current) .sidebar{display:none}
body[data-view=home] .layout{padding-top:0;max-width:1740px}
body[data-view=home] .topbar{background:#0c151bc9}
body[data-view=home] #main{isolation:isolate}
.home-hero{position:relative;min-height:350px;display:flex;align-items:center;padding:42px 24px 32px;margin:0 -24px;background:linear-gradient(90deg,#0c1218 1%,#0c1218eb 18%,#0c121859 59%,#0c12180d),linear-gradient(0deg,var(--bg),transparent 40%),url('assets/home-concert.webp') center 45%/cover}
.home-intro{position:relative;max-width:650px;z-index:1}
.home-eyebrow{font-size:12px;font-weight:700;letter-spacing:.18em;color:var(--accent);margin-bottom:12px}
.home-intro h1{font-size:var(--home-title);line-height:1;letter-spacing:-.04em;font-weight:800;margin-bottom:20px}
.home-intro h1 span{color:var(--accent)}.home-intro>p:not(.home-eyebrow){max-width:530px;color:#d2dce4;font-size:16px;line-height:1.55}
.home-actions{display:flex;gap:14px;margin-top:24px}.home-actions button{font-size:16px;font-weight:700;padding:12px 24px;border-radius:12px;min-height:50px}.primary{background:var(--accent);color:#10200e}.primary:hover{background:#d9ff97}.secondary{border:1px solid #8a9caa;background:#101c24a8}.secondary:hover{background:var(--panel2)}.home-intro .home-hint{font-size:12px!important;margin-top:16px}
.home-search-wrap{display:flex;gap:10px;align-items:center;max-width:820px;margin:10px auto 26px}.home-search{display:flex;gap:16px;align-items:center;width:100%;border:1px solid #71838e;border-radius:32px;padding:7px 20px;background:#16242de8;box-shadow:var(--shadow)}.home-search:focus-within{outline:2px solid var(--accent);outline-offset:3px}.home-search>span{font-size:28px}.home-search input{border:0;outline:none;background:transparent;color:var(--text);width:100%;min-width:0;height:42px;font-size:16px}.home-search input::placeholder{color:#bdcbd4}.home-search kbd{border:1px solid var(--line);border-radius:5px;padding:3px 9px}
.home-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 16px}.home-section-heading h2,.home-bottom h2{font-size:24px;letter-spacing:-.025em}.home-section-heading h2:before{content:'';display:inline-block;width:5px;height:22px;background:var(--accent);border-radius:3px;margin-right:13px;vertical-align:-2px}.home-section-heading p,.home-bottom>section>p{color:var(--muted);margin-top:4px}.text-action{background:transparent;color:var(--accent);font-weight:600;white-space:nowrap}
.featured-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.featured-card{position:relative;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#14212a;transition:border-color .15s,transform .15s}.featured-card:hover{border-color:#83968f;transform:translateY(-3px)}.featured-open{display:block;width:100%;padding:0 14px 14px;text-align:left;background:transparent;border:0;border-radius:0;min-height:240px}.featured-open:focus-visible{outline-offset:-4px}.featured-image{display:flex;align-items:center;justify-content:center;height:138px;margin:0 -14px 12px;background:linear-gradient(0deg,#14212a,#10202d55),url('assets/home-concert.webp') 65% 55%/600px}.featured-card:nth-child(2) .featured-image{background-position:50% 65%}.featured-card:nth-child(3) .featured-image{background-position:75% 60%}.featured-card:nth-child(4) .featured-image{background-position:40% 40%}.featured-card:nth-child(5) .featured-image{background-position:90% 70%}.featured-card:nth-child(6) .featured-image{background-position:60% 20%}
.featured-image img{height:98px;width:145px;object-fit:contain;filter:drop-shadow(0 5px 10px #0008)}.featured-open strong{display:block;font-size:15px;padding-right:35px;line-height:1.35}.featured-open>span:not(.featured-image){display:block;font-size:12px;color:#ccd8df;min-height:36px;padding-right:15px}.featured-open small{display:block;color:var(--accent);font-size:12px;margin-top:7px}.featured-play{position:absolute;right:10px;bottom:65px;width:44px;height:44px;border-radius:50%;background:var(--accent);color:#152410;font-size:17px;padding:0;border:3px solid var(--panel)}.featured-state{display:none;padding:0 14px 10px;color:var(--accent);font-size:12px}.featured-card[data-playback=playing],.featured-card[data-playback=connecting],.featured-card[data-playback=buffering]{border-color:var(--accent)}.featured-card:not([data-playback=idle]) .featured-state{display:block}.featured-card[data-playback=playing] .featured-state:before{content:'▂ ▆ ▃';margin-right:8px;display:inline-block;animation:pulse-signal 1s infinite alternate}
.home-bottom{display:grid;grid-template-columns:1.2fr 1fr;gap:32px;margin-top:32px}.home-bottom>section+section{border-left:1px solid var(--line);padding-left:32px}.home-style-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.home-style-chips button{border:1px solid #697c85;background:transparent;border-radius:24px;padding:8px 16px}.home-style-chips button[aria-pressed=true]{background:var(--accent);color:#13200f;border-color:var(--accent)}
#home-results{margin:24px 0}#home-result-count{font-size:20px;margin-bottom:16px}#home-result-list,#recent-history-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-result{display:flex;align-items:center;gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px;min-width:0}.home-result img{width:52px;height:52px;object-fit:contain;border-radius:7px}.home-result>div{flex:1;min-width:0}.home-result strong{display:block;font-size:14px}.home-result span{display:block;font-size:12px;color:var(--muted)}.home-result button{width:44px;flex:none;padding:0;font-size:19px}.home-result button[data-home-play]{border:1px solid #7b8f9a;border-radius:50%;background:transparent}.home-result button[aria-pressed=true]{color:var(--accent)}#home-resume-card{margin-top:16px}
#listening-history-view>p{margin:8px 0 24px;color:var(--muted)}#recent-history-list{margin-bottom:32px}#history-channel{margin:12px;max-width:90%}body[data-view=home] .main-footer{margin-top:32px}
/* Compact transport; the original advanced controls move into the existing dialog. */
.mini-player{min-height:82px;grid-template-columns:48px minmax(120px,1fr) 92px 44px 180px 44px;gap:14px;padding:10px 24px}.mini-player #visualizer,.mini-player #quality-control{display:none}.mini-controls{display:block;grid-column:4;grid-row:1}.mini-live{display:none}.mini-play{width:44px;height:44px;background:var(--accent);color:#13200f;border-radius:50%;padding:0;font-size:18px}.mini-player #expand-player{display:block;grid-column:6;grid-row:1;min-width:44px;font-size:24px;background:var(--panel2)}.compact-volume{display:flex;align-items:center;gap:8px;grid-column:5;grid-row:1;color:var(--muted);font-size:12px}.compact-volume input{width:110px}.mini-navigation{grid-column:3;grid-row:1}#player-details{width:min(640px,calc(100% - 24px));max-height:92dvh;overflow:auto}#player-details #history{display:block}#player-details #visualizer{margin-top:12px}#player-details .quality-label{display:flex;margin-top:16px}.history-section{margin-top:24px}
@media(min-width:901px){body[data-view=home] #player-details{inset:0;margin:auto}#player-details .dialog-heading{position:sticky;top:0;background:var(--panel);z-index:2}}
@media(max-width:1300px){.featured-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.featured-open{min-height:225px}.featured-image{height:125px}.home-hero{min-height:350px}.home-bottom{grid-template-columns:1fr}.home-bottom>section+section{padding-left:0;border-left:0}.home-result{max-width:100%}}
@media(max-width:900px){body.has-session{padding-bottom:calc(100px + env(safe-area-inset-bottom))}.home-hero{padding:30px 12px;margin:0 -12px;background-position:center,center,65% center}.home-intro{max-width:520px}.home-intro>p:not(.home-eyebrow){font-size:15px;max-width:420px}.home-intro h1{font-size:clamp(42px,7vw,62px)}.home-section-heading{align-items:start}.home-section-heading h2,.home-bottom h2{font-size:22px}.home-section-heading p{font-size:13px}.home-search-wrap{margin-top:12px}.home-search{padding:5px 14px;gap:8px}.mini-player{grid-template-columns:44px minmax(0,1fr) 44px 44px;gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom))}.mini-controls{grid-column:3}.mini-player #expand-player{grid-column:4}.compact-volume,.mini-navigation{display:none}#player-details{width:100%;height:94dvh;max-height:94dvh}.featured-play{bottom:65px}}
@media(max-width:600px){.home-hero{min-height:370px;background-image:linear-gradient(90deg,#0c1218ed,#0c121896),linear-gradient(0deg,var(--bg),transparent 60%),url('assets/home-concert.webp')}.home-eyebrow{font-size:11px}.home-actions{gap:10px}.home-actions button{padding:10px 14px;font-size:14px}.home-section-heading{display:block}.text-action{padding-left:0}.featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.featured-open{min-height:235px;padding:0 10px 12px}.featured-image{margin:0 -10px 10px;height:110px}.featured-image img{width:110px;height:82px}.featured-open strong{font-size:14px;padding-right:0}.featured-open>span:not(.featured-image){padding-right:0;min-height:38px}.featured-play{top:78px;bottom:auto;right:6px}.featured-open small{font-size:11px;padding-top:4px}.home-bottom{margin-top:26px;gap:24px}#home-result-list,#recent-history-list{grid-template-columns:1fr}.home-result{gap:8px;padding:10px}.home-result img{width:38px;height:38px}.home-search kbd{display:none}.home-search input{font-size:14px}.home-search-wrap{flex-wrap:wrap}.home-section-heading p{line-height:1.5}}

.global-catalog .network-hero{display:none}
@media(prefers-reduced-motion:reduce){.featured-card:hover{transform:none}}
@media(min-width:901px) and (max-width:1150px){.home-hero{margin:0 -18px;padding-left:18px;padding-right:18px}}

.home-result[data-playback=playing]{border-color:var(--accent)}.home-result .home-result-state{color:var(--accent)}
