:root{--paper:#fbf8f1;--ink:#27251f;--muted:#827d72;--line:#e9e1d3;--accent:#8c6c31;--pale:#f5f0e6}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans','Manrope',sans-serif;font-size:15px}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px}.brand{display:flex;align-items:center;width:195px;height:54px;overflow:hidden;text-decoration:none}.brand img{width:100%;height:100%;object-fit:contain;object-position:center}.header-actions{display:flex;align-items:center;gap:14px;color:#7b858c}.icon-button,.dots,.text-button,.control,.smile{border:0;background:none;color:inherit;cursor:pointer}.icon-button{font-size:25px}.my-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover}.chevron{font-size:20px;margin-left:-9px}.app-shell{display:grid;grid-template-columns:286px minmax(620px,1fr) 306px;min-height:calc(100vh - 76px)}.left-rail{border-right:1px solid var(--line);padding:26px 22px 18px;display:flex;flex-direction:column}.navigation{display:grid;gap:5px}.nav-item{height:43px;display:flex;align-items:center;gap:19px;padding:0 20px;border-radius:8px;color:#464239;text-decoration:none;font-size:17px}.nav-item.active{background:#f4efe6;color:#27251f;font-weight:600}.nav-icon{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;color:#8a806d}.nav-icon svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-item:hover .nav-icon,.nav-item.active .nav-icon{color:var(--accent)}.nav-count{margin-left:auto;background:#f0e4c8;color:#684f26;border-radius:20px;width:24px;height:24px;text-align:center;line-height:24px;font-size:14px}.round-card{margin-top:auto;background:linear-gradient(140deg,#f5f0e6,#f2ebdd);padding:20px;border-radius:12px;margin-bottom:36px}.round-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;letter-spacing:.08em;font-weight:600;color:#484233}.round-head b{background:#eadbb7;color:#735825;padding:3px 8px;border-radius:5px;letter-spacing:0}.round-card h2{font-size:18px;line-height:1.55;margin:20px 0 10px;font-weight:600}.countdown{font-size:30px;letter-spacing:-.04em;margin-bottom:20px}.dark-button{width:100%;height:45px;background:#27251f;color:white;border:0;border-radius:8px;font:inherit;cursor:pointer}.rail-footer{font-size:13px;line-height:2.2;color:#899096;padding:0 13px}.rail-footer a{color:inherit;text-decoration:none;margin-right:18px}.main-column{min-width:0;border-right:1px solid var(--line)}.card{background:rgba(255,253,248,.72)}.player{min-height:304px;padding:26px 28px;display:grid;grid-template-columns:minmax(190px,259px) 1fr;gap:24px;border-bottom:1px solid var(--line)}.hero-art{width:100%;height:250px;object-fit:cover;border-radius:11px}.player-content{padding-top:4px;min-width:0}.player-top{display:flex;justify-content:space-between}.eyebrow{font-size:12px;font-weight:600;letter-spacing:.12em}.accent{color:#735825}.player h1{font-size:27px;letter-spacing:-.03em;margin:15px 0 5px;font-weight:600}.byline{margin:0;font-size:16px}.dots{color:#8c9698;letter-spacing:2px}.waveform{height:40px;margin-top:24px;position:relative;background:repeating-linear-gradient(90deg,#e2ded6 0 2px,transparent 2px 5px);clip-path:polygon(0 42%,2% 37%,4% 50%,6% 30%,8% 40%,10% 20%,12% 35%,14% 17%,16% 42%,18% 25%,20% 48%,22% 20%,24% 45%,26% 4%,28% 48%,30% 14%,32% 48%,34% 22%,36% 48%,38% 0,40% 50%,42% 20%,44% 45%,46% 12%,48% 42%,50% 24%,52% 45%,54% 13%,56% 48%,58% 12%,60% 40%,62% 22%,64% 50%,66% 24%,68% 43%,70% 16%,72% 48%,74% 15%,76% 45%,78% 20%,80% 45%,82% 12%,84% 43%,86% 20%,88% 45%,90% 21%,92% 47%,94% 22%,96% 42%,98% 20%,100% 45%,100% 58%,98% 80%,96% 57%,94% 78%,92% 53%,90% 79%,88% 55%,86% 80%,84% 57%,82% 84%,80% 55%,78% 80%,76% 55%,74% 85%,72% 52%,70% 84%,68% 57%,66% 76%,64% 50%,62% 78%,60% 55%,58% 88%,56% 52%,54% 87%,52% 55%,50% 76%,48% 58%,46% 88%,44% 55%,42% 80%,40% 50%,38% 92%,36% 52%,34% 78%,32% 52%,30% 88%,28% 52%,26% 96%,24% 54%,22% 80%,20% 52%,18% 75%,16% 58%,14% 83%,12% 55%,10% 80%,8% 60%,6% 77%,4% 56%,2% 75%,0 58%)}.wave-progress{height:100%;width:42%;background:repeating-linear-gradient(90deg,#8c6c31 0 2px,transparent 2px 5px)}.times{display:flex;justify-content:space-between;color:#9aa0a3;font-size:12px;margin-top:3px}.controls{display:flex;align-items:center;justify-content:space-around;margin:6px 20px 0;color:#82734f}.control{font-size:22px}.play{width:67px;height:67px;border:0;border-radius:50%;background:#7d602c;color:white;font-size:24px;padding-left:6px;cursor:pointer}.up-next{padding:16px 28px 0;border-bottom:1px solid var(--line)}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.section-heading h2,.section-title,.online-heading h2{font-size:12px;letter-spacing:.1em;font-weight:600;margin:0}.text-button{color:#5f696d;font-size:13px}.track-row{height:70px;display:flex;align-items:center;gap:18px;border-bottom:1px solid #f1ece2}.track-row:last-child{border:0}.track-row img{width:58px;height:58px;border-radius:8px;object-fit:cover}.track-copy{min-width:130px}.track-copy h3{font-size:16px;font-weight:500;margin:0 0 4px}.track-copy p{margin:0;color:#747c81;font-size:14px}.track-status{margin-left:auto;text-align:right;color:#838a90;font-size:14px}.track-status small{display:block;margin-top:5px;font-size:12px}.position{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;color:#899094;margin-left:3px}.chat{padding:16px 28px 22px}.section-title{margin-bottom:17px}.messages{display:grid;gap:8px}.message{display:flex;align-items:center;gap:13px;min-height:28px;font-size:14px}.message img{width:28px;height:28px;border-radius:50%;object-fit:cover}.message b{font-size:14px;font-weight:600}.message span{color:#747c81}.message time{margin-left:auto;color:#a0a6aa;font-size:12px}.chat-form{height:48px;border:1px solid #e7dece;border-radius:9px;display:flex;align-items:center;margin-top:16px;padding:0 8px 0 20px;box-shadow:0 0 0 1px rgba(0,0,0,.015)}.chat-form input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;color:var(--ink)}.chat-form input::placeholder{color:#959b9e}.smile{font-size:20px;color:#8b806e;margin-right:17px}.send{width:43px;height:43px;border:0;border-radius:50%;background:#7d602c;color:#fff;font-size:20px;cursor:pointer}.right-rail{padding:26px 26px 20px;display:flex;flex-direction:column}.online-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.online-heading h2{color:#554f43}.online-heading span{font-size:13px;color:#777f84}.online-heading i,.person:after{display:inline-block;width:7px;height:7px;background:#a88436;border-radius:50%;margin-right:6px}.people{display:grid;gap:14px}.person{display:flex;align-items:center;gap:14px;position:relative}.person img{width:40px;height:40px;border-radius:50%;object-fit:cover}.person div{display:grid;gap:4px}.person b{font-size:14px;font-weight:500}.person span{color:#7c858a;font-size:14px}.person:after{content:'';position:absolute;left:30px;bottom:0;border:2px solid var(--paper);margin:0}.person.browsing:after{display:none}.all-online{height:47px;margin-top:auto;border:0;border-radius:8px;background:#f0e9dc;color:#27251f;font:inherit;cursor:pointer}.mobile-online{display:none}
@media(max-width:1120px){.app-shell{grid-template-columns:220px minmax(520px,1fr)}.right-rail{display:none}.left-rail{padding-left:18px;padding-right:18px}.player{gap:20px;padding:20px}.up-next,.chat{padding-left:22px;padding-right:22px}}
@media(max-width:760px){.topbar{height:64px;padding:0 18px}.brand{width:166px;height:46px}.header-actions{gap:9px}.icon-button{font-size:22px}.my-avatar{width:31px;height:31px}.app-shell{display:block;min-height:0;padding-bottom:62px}.left-rail{display:none}.main-column{border:0}.player{display:block;padding:14px 16px 17px;border-bottom:1px solid var(--line)}.hero-art{height:auto;width:100%;aspect-ratio:1.45;object-position:center 54%;border-radius:10px}.player-content{padding-top:14px}.player h1{font-size:24px;margin-top:9px}.byline{font-size:14px}.waveform{margin-top:14px;height:34px}.controls{margin:9px 14px 0}.play{width:56px;height:56px}.control{font-size:19px}.up-next{padding:15px 16px 14px;border-bottom:1px solid var(--line);overflow:hidden}.section-heading{margin-bottom:14px}.track-list{display:flex;gap:11px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:3px}.track-row{height:auto;min-width:154px;max-width:154px;display:grid;grid-template-columns:45px 1fr;gap:9px;border:1px solid #ece4d6;border-radius:9px;padding:9px;scroll-snap-align:start;background:#fff}.track-row img{width:45px;height:45px;grid-row:span 2;border-radius:6px}.track-copy{min-width:0;align-self:end}.track-copy h3{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.track-copy p{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.track-status{display:none}.position{grid-column:2;grid-row:2;width:auto;height:auto;border:0;border-radius:0;display:block;font-size:11px;color:#897c5f;margin:0;align-self:start}.position:before{content:'#'} .chat{padding:15px 16px 18px}.message{gap:9px;font-size:13px}.message b{font-size:13px}.message time{font-size:11px}.chat-form{margin-top:14px;height:48px;padding-left:14px}.send{width:39px;height:39px}.mobile-online{position:fixed;z-index:4;bottom:0;left:0;right:0;height:56px;border:0;border-top:1px solid var(--line);background:rgba(251,248,241,.97);display:flex;align-items:center;justify-content:center;font:500 14px 'DM Sans',sans-serif;color:#55431e}.mobile-online>span{position:absolute;right:20px;color:#8c7444;font-size:18px}.right-rail{display:none;position:fixed;z-index:5;left:0;right:0;bottom:56px;max-height:65vh;overflow:auto;background:var(--paper);border-top:1px solid var(--line);padding:20px 22px;box-shadow:0 -10px 24px #1c28301a}.right-rail.open{display:flex}.online-heading{margin-bottom:18px}.people{grid-template-columns:1fr 1fr;gap:14px}.person img{width:36px;height:36px}.person:after{left:27px}.all-online{margin-top:18px}.chat{padding-bottom:28px}}

::selection{background:#eadbb7;color:#27251f} :focus-visible{outline:2px solid #8c6c31;outline-offset:3px} .nav-item,.dark-button,.play,.send,.all-online,.text-button{transition:background-color .18s ease,color .18s ease,transform .18s ease} .nav-item:hover{background:#f3ebdb} .dark-button:hover{background:#3a352a} .play:hover,.send:hover{background:#684f26;transform:translateY(-1px)} .all-online:hover{background:#eadfc9} .text-button:hover{color:#735825}

.icon-button{display:grid;place-items:center;width:36px;height:36px;padding:0}.icon-button svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.icon-button:hover{color:var(--accent)}

.toast{position:fixed;z-index:12;left:50%;bottom:20px;transform:translateX(-50%);max-width:min(92vw,480px);padding:12px 16px;border-radius:9px;background:#27251f;color:#fbf8f1;box-shadow:0 8px 26px #27251f24;font-size:14px;line-height:1.4}.toast.error{background:#8a3d30}.toast[hidden]{display:none}@media(max-width:760px){.toast{bottom:70px}}

/* Desktop home layout: player and lottery queue share the top row; chat gets the remaining height. */
@media(min-width:961px){
  .main-column{display:flex;flex-direction:column}
  .feature-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);align-items:stretch}
  .player{height:100%;min-height:320px;padding:22px 24px}
  .up-next{min-width:0;min-height:320px;padding:16px 14px 8px}
  .up-next .section-heading{gap:5px;align-items:flex-start}
  .up-next .section-heading h2{font-size:10.5px;letter-spacing:.075em;line-height:1.4}
  .up-next .text-button{font-size:11px;white-space:nowrap}
  .track-row{height:auto;min-height:76px;display:grid;grid-template-columns:18px 44px minmax(0,1fr);grid-template-rows:auto auto;gap:3px 8px;padding:8px 0}
  .track-row img{grid-column:2;grid-row:1 / span 2;width:44px;height:44px}
  .track-copy{grid-column:3;grid-row:1;min-width:0}
  .track-copy h3{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .track-copy p{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .track-status{grid-column:3;grid-row:2;margin:0;text-align:left;font-size:10px;line-height:1.15;white-space:normal}
  .track-status small{display:none}
  .position{grid-column:1;grid-row:1;width:18px;height:18px;border:0;border-radius:0;margin:0;font-size:12px;align-self:start}
  .chat{display:flex;flex:1;min-height:320px;flex-direction:column}
  .messages{flex:1;align-content:start;gap:14px;overflow:auto}
  .chat-form{margin-top:18px}
}

@media(max-width:1320px){
  .app-shell{grid-template-columns:220px minmax(0,1fr)}
  .right-rail{display:none}
}

@media(max-width:960px){
  .feature-row{display:contents}
}

/* Mobile listening view: compact player and queue, with chat filling the remaining screen. */
@media(max-width:760px){
  .app-shell{height:calc(100vh - 120px);height:calc(100dvh - 120px);min-height:0;padding:0;display:flex;flex-direction:column;overflow:hidden}
  .main-column{height:100%;min-height:0;display:flex;flex:1;flex-direction:column;overflow:hidden;border:0}
  .feature-row{display:contents}
  .player{height:22%;min-height:116px;max-height:210px;flex:0 0 22%;display:grid;grid-template-columns:68px minmax(0,1fr);align-items:center;gap:10px;padding:9px 12px;overflow:hidden;border-bottom:1px solid var(--line)}
  .hero-art{width:68px;height:68px;aspect-ratio:1;object-fit:cover;border-radius:8px}
  .player-content{min-width:0;padding:0}
  .player-top{align-items:flex-start}
  .player-top .eyebrow{font-size:10px;letter-spacing:.1em}
  .player h1{font-size:17px;line-height:1.15;margin:3px 0 2px}
  .byline{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .player-top .dots{display:none}
  .waveform{height:16px;margin-top:6px}
  .times{display:none}
  .controls{height:31px;margin:2px 3px 0;justify-content:space-between}
  .control{font-size:15px;padding:0}
  .play{width:31px;height:31px;font-size:15px;padding-left:3px}
  .up-next{height:62px;min-height:62px;max-height:62px;flex:0 0 62px;display:flex;flex-direction:column;overflow:hidden;padding:4px 12px 5px;border-bottom:1px solid var(--line)}
  .up-next .section-heading{flex:0 0 auto;margin:0 0 3px;gap:8px;align-items:center}
  .up-next .section-heading h2{font-size:9px;letter-spacing:.08em;line-height:1.2;white-space:nowrap}
  .up-next .text-button{font-size:10px;line-height:1;padding:0}
  .track-list{display:flex;flex:1;min-height:0;gap:7px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;padding:0 0 2px}
  .track-row{height:34px;min-height:34px;min-width:142px;max-width:160px;display:grid;grid-template-columns:12px 28px minmax(0,1fr);grid-template-rows:1fr;align-items:center;gap:4px;padding:2px 4px;border:1px solid #ece4d6;border-radius:7px;background:#fff;scroll-snap-align:start}
  .track-row img{grid-column:2;grid-row:1;width:28px;height:28px;border-radius:4px}
  .track-copy{grid-column:3;grid-row:1;min-width:0;align-self:center}
  .track-copy h3{font-size:10px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 2px}
  .track-copy p{font-size:9px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .track-status{display:none}
  .position{grid-column:1;grid-row:1;width:12px;height:auto;display:block;border:0;border-radius:0;margin:0;font-size:9px;color:#897c5f}
  .position:before{content:'#'}
  .chat{height:auto;min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden;padding:9px 12px 8px}
  .section-title{flex:0 0 auto;font-size:11px;margin:0 0 6px}
  .messages{flex:1;min-height:0;align-content:start;gap:9px;overflow-y:auto;overscroll-behavior:contain}
  .message{min-height:28px;gap:8px;font-size:12px}
  .message img{width:26px;height:26px;flex:0 0 26px}
  .message b{font-size:12px}
  .message span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .message time{font-size:10px}
  .chat-form{height:40px;min-height:40px;flex:0 0 40px;margin-top:8px;padding-left:10px}
  .smile{margin-right:8px}
  .send{width:34px;height:34px;font-size:17px}
}

@media(max-width:760px) and (max-height:480px){
  .app-shell{height:auto;min-height:calc(100vh - 120px);min-height:calc(100dvh - 120px);overflow:visible}
  .main-column{height:auto;min-height:calc(100vh - 120px);min-height:calc(100dvh - 120px);overflow:visible}
  .player{height:auto;min-height:120px;max-height:none;flex-basis:120px}
  .up-next{height:50px;min-height:50px;max-height:50px;flex-basis:50px}
  .chat{min-height:220px;flex:none}
  .messages{min-height:100px}
}
