:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#e8eefb;background:#0b1220;line-height:1.4;--card:#121c2f;--muted:#9aa8bd;--line:#23314a;--accent:#5d8cff;--accent2:#74e1b5}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 20% -20%,#1e3158 0,transparent 35%),#0b1220;padding-bottom:108px}.topbar{height:72px;position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:rgba(11,18,32,.9);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.brand{display:flex;gap:11px;align-items:center}.brand img{width:38px;height:38px}.brand strong{display:block;font-size:18px}.brand span{display:block;font-size:12px;color:var(--muted)}button,input,select{font:inherit}.ghost,.secondary,.controls button{background:#172238;color:#e8eefb;border:1px solid var(--line)}button{border:0;border-radius:11px;padding:11px 15px;background:var(--accent);color:white;cursor:pointer;font-weight:650}button:hover{filter:brightness(1.08)}.layout{max-width:1250px;margin:auto;padding:22px}.tabs{display:flex;gap:8px;overflow:auto;padding:4px 0 18px}.tab{white-space:nowrap;background:#111a2b;border:1px solid var(--line);color:#aebbd0}.tab.active{background:#244b9c;color:#fff;border-color:#3a67c8}.panel{display:none}.panel.active{display:block}.hero{background:linear-gradient(135deg,#173365,#18243e);border:1px solid #2b4472;border-radius:22px;padding:25px;margin-bottom:18px}.hero h1,.section-title h2{margin:0 0 7px}.hero p,.section-title p{margin:0;color:#bdcae0}.section-title{margin:8px 0 18px}.filters{display:grid;grid-template-columns:2fr 1.1fr 1.2fr auto auto;gap:10px;margin-bottom:12px}.filters.compact{grid-template-columns:1fr auto;max-width:680px}.filters input,.filters select{width:100%;background:#101a2c;border:1px solid var(--line);color:#eef4ff;border-radius:11px;padding:11px 12px;outline:none}.filters input:focus,.filters select:focus{border-color:var(--accent)}.status{min-height:28px;color:var(--muted);font-size:14px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px}.card{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--line);border-radius:15px;background:rgba(18,28,47,.92);min-height:82px}.art{width:54px;height:54px;flex:0 0 54px;border-radius:12px;background:#1d2a42;display:grid;place-items:center;overflow:hidden;font-size:22px}.art img{width:100%;height:100%;object-fit:cover}.cardtext{min-width:0;flex:1}.cardtext strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cardtext span{display:block;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cardactions{display:flex;gap:5px}.iconbtn{width:36px;height:36px;padding:0;border-radius:50%;background:#1b2a45;color:#dce7ff}.iconbtn.fav{color:#ffd76a}.filepick{display:inline-block;background:var(--accent);padding:12px 16px;border-radius:11px;font-weight:700;cursor:pointer}.filepick input{display:none}.eq{display:grid;grid-template-columns:auto repeat(3,minmax(150px,1fr));gap:14px;align-items:center;margin:18px 0;background:#111b2e;border:1px solid var(--line);padding:15px;border-radius:14px}.eq label{font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center}.eq input{width:100%}.tracklist{border:1px solid var(--line);border-radius:14px;overflow:hidden}.track{display:flex;align-items:center;gap:10px;padding:11px 13px;border-bottom:1px solid var(--line);background:#101a2b}.track:last-child{border-bottom:0}.track button{padding:7px 10px}.track .name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.muted{color:var(--muted);padding:14px}.player{position:fixed;z-index:40;left:18px;right:18px;bottom:14px;max-width:1214px;margin:auto;height:78px;border:1px solid #304466;border-radius:18px;background:rgba(14,24,42,.96);backdrop-filter:blur(22px);display:grid;grid-template-columns:minmax(250px,1fr) auto minmax(180px,1fr);align-items:center;padding:9px 14px;box-shadow:0 15px 60px rgba(0,0,0,.35)}.now{display:flex;gap:10px;align-items:center;min-width:0}.cover{width:55px;height:55px;flex:0 0 55px;border-radius:12px;background:#243654;display:grid;place-items:center;overflow:hidden;font-size:22px}.cover img{width:100%;height:100%;object-fit:cover}.nowtext{min-width:0}.nowtext strong,.nowtext span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nowtext span{color:var(--muted);font-size:12px}.controls{display:flex;gap:7px;align-items:center}.controls button{width:38px;height:38px;padding:0;border-radius:50%}.controls .play{width:46px;height:46px;background:#fff;color:#111827;border:0}.volume{display:flex;gap:8px;align-items:center;justify-content:flex-end}.volume input{max-width:160px;width:100%}@media(max-width:800px){.layout{padding:14px}.topbar{padding:0 14px}.filters{grid-template-columns:1fr 1fr}.filters input:first-child{grid-column:1/-1}.cards{grid-template-columns:1fr}.eq{grid-template-columns:1fr}.player{left:8px;right:8px;bottom:8px;grid-template-columns:1fr auto;height:82px;padding:8px}.volume{display:none}.now{min-width:0}.cover{width:48px;height:48px;flex-basis:48px}.controls button:not(.play){display:none}.brand span{display:none}}
.podcast-detail{margin-top:18px}.podcast-head{display:flex;gap:16px;align-items:center;background:#111b2e;border:1px solid var(--line);border-radius:16px;padding:15px;margin-bottom:12px}.podcast-head .art{width:72px;height:72px;flex-basis:72px}.podcast-head h3{margin:0 0 4px}.episodes{border:1px solid var(--line);border-radius:14px;overflow:hidden}.episode{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 13px;background:#101a2b;border-bottom:1px solid var(--line)}.episode:last-child{border-bottom:0}.episode .eptext{min-width:0}.episode .eptext strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.episode .eptext span{display:block;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.episode .iconbtn{width:38px;height:38px}@media(max-width:800px){.podcast-head{align-items:flex-start}.episode{grid-template-columns:auto minmax(0,1fr)}.episode .epmeta{display:none}}

.station-card{cursor:pointer;touch-action:manipulation}.station-card:active{transform:scale(.992)}.station-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Android/mobile width hardening — v5 */
html,body{width:100%;max-width:100%;overflow-x:hidden}
@media(max-width:800px){
  body{width:100vw;max-width:100vw;overflow-x:hidden}
  .topbar{width:100vw;max-width:100vw}
  main.layout{display:block;width:100vw;max-width:100vw;margin:0;padding:12px;overflow:hidden}
  .tabs,.panel,.panel.active,.hero,.filters,.cards,.section-title{width:100%;max-width:100%;min-width:0}
  .tabs{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .hero{padding:18px}
  .filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .filters input:first-child{grid-column:1/-1}
  .filters>*{min-width:0;max-width:100%}
  .cards{display:grid;grid-template-columns:minmax(0,1fr)}
  .card{width:100%;max-width:100%;min-width:0}
  .cardtext{min-width:0}
  .player{max-width:calc(100vw - 16px)}
}

/* Podcast transport controls — v7 */
.podcast-progress{display:flex;align-items:center;gap:7px;margin-top:4px;min-width:0;font-size:11px;color:var(--muted)}
.podcast-progress[hidden],.seekbtn[hidden]{display:none!important}
.podcast-progress input{width:100%;min-width:70px;accent-color:var(--accent)}
.podcast-progress span{flex:0 0 auto;font-variant-numeric:tabular-nums}
.controls .seekbtn{font-size:11px;font-weight:800;letter-spacing:-.3px}
@media(max-width:800px){
  .player.podcast-mode .controls .seekbtn{display:block}
  .player.podcast-mode .controls{gap:5px}
  .player.podcast-mode .controls .seekbtn{width:40px;height:40px}
  .player.podcast-mode .nowtext{min-width:0}
  .player.podcast-mode .podcast-progress{gap:4px;font-size:10px}
}

/* Player close control — v8 */
.player.player-hidden{transform:translateY(calc(100% + 28px));opacity:0;pointer-events:none}
.player{transition:transform .22s ease,opacity .22s ease}
.player-close{
  position:absolute;
  top:7px;
  right:9px;
  z-index:6;
  width:28px;
  height:28px;
  padding:0;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid var(--line);
  background:#172238;
  color:#dce7ff;
  font-size:14px;
  line-height:1;
  font-weight:700;
}
.player-close:hover{filter:brightness(1.12)}
@media(max-width:800px){
  .player-close{top:5px;right:5px;width:26px;height:26px;font-size:13px}
}

/* Full-screen podcast player — v9 */
.player-expand{
  position:absolute;top:7px;right:43px;z-index:6;width:28px;height:28px;padding:0;
  display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);
  background:#172238;color:#dce7ff;font-size:14px;line-height:1
}
.player-expand[hidden]{display:none!important}
.podcast-fullscreen{
  position:fixed;inset:0;z-index:1000;background:#0b1220;color:#eef4ff;
  padding:max(14px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom));
  overflow:auto
}
.podcast-fullscreen[hidden]{display:none!important}
.podcast-full-top{display:flex;align-items:center;justify-content:space-between;max-width:760px;margin:0 auto}
.podcast-full-brand{font-weight:800;font-size:15px;color:#c9d7ee}
.podcast-full-close{
  width:46px;height:46px;padding:0;border-radius:50%;background:#172238;color:#fff;
  border:1px solid var(--line);font-size:28px;line-height:1
}
.podcast-full-main{
  min-height:calc(100dvh - 90px);max-width:760px;margin:0 auto;
  display:flex;flex-direction:column;align-items:center;justify-content:center
}
.podcast-full-cover{
  width:min(52vw,280px);aspect-ratio:1;border-radius:24px;background:#1d2a42;
  display:grid;place-items:center;overflow:hidden;font-size:52px;box-shadow:0 20px 70px rgba(0,0,0,.34)
}
.podcast-full-cover img{width:100%;height:100%;object-fit:cover}
.podcast-full-show{margin-top:24px;color:#9fb0c9;font-size:15px;text-align:center}
.podcast-full-title{
  width:100%;max-width:680px;margin:8px 0 22px;text-align:center;font-size:clamp(22px,5vw,34px);
  line-height:1.2
}
.podcast-full-progress{width:100%;max-width:680px}
.podcast-full-progress input{width:100%;height:34px;accent-color:var(--accent);touch-action:pan-y}
.podcast-full-times{display:flex;justify-content:space-between;color:#aab8cc;font-variant-numeric:tabular-nums;font-size:14px}
.podcast-full-controls{
  display:flex;align-items:center;justify-content:center;gap:clamp(10px,3vw,22px);margin-top:24px;width:100%
}
.podcast-full-controls button{
  width:62px;height:62px;padding:0;border-radius:50%;background:#172641;color:#fff;
  border:1px solid #314765;font-size:21px;display:grid;place-items:center
}
.podcast-full-controls button strong{font-size:17px}
.podcast-full-controls button span{font-size:15px}
.podcast-full-controls .podcast-full-play{
  width:82px;height:82px;background:#fff;color:#0b1220;border:0;font-size:31px
}
.podcast-full-hint{color:#7f91aa;font-size:12px;text-align:center;margin:24px 0 0}
body.podcast-full-open{overflow:hidden}
@media(max-width:800px){
  .player-expand{top:5px;right:36px;width:26px;height:26px;font-size:13px}
  .podcast-fullscreen{padding-left:16px;padding-right:16px}
  .podcast-full-main{justify-content:flex-start;padding-top:18px}
  .podcast-full-cover{width:min(62vw,250px);border-radius:22px}
  .podcast-full-show{margin-top:18px}
  .podcast-full-title{font-size:24px;margin-bottom:18px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .podcast-full-progress input{height:42px}
  .podcast-full-controls{gap:10px;margin-top:20px}
  .podcast-full-controls button{width:56px;height:56px}
  .podcast-full-controls .podcast-full-play{width:78px;height:78px}
}
@media(max-width:390px){
  .podcast-full-controls{gap:6px}
  .podcast-full-controls button{width:51px;height:51px;font-size:18px}
  .podcast-full-controls .podcast-full-play{width:70px;height:70px;font-size:28px}
}

/* Enlarged compact podcast player — v10 */
@media(max-width:800px){
  .player.podcast-mode{
    height:118px;
    min-height:118px;
    grid-template-columns:1fr;
    grid-template-rows:auto auto;
    align-content:center;
    gap:6px;
    padding:10px 12px 9px;
  }

  .player.podcast-mode .now{
    width:100%;
    padding-right:64px;
  }

  .player.podcast-mode .cover{
    width:46px;
    height:46px;
    flex-basis:46px;
  }

  .player.podcast-mode .nowtext{
    min-width:0;
  }

  .player.podcast-mode .nowtext strong{
    font-size:14px;
  }

  .player.podcast-mode .nowtext span{
    font-size:11px;
  }

  .player.podcast-mode .podcast-progress{
    width:100%;
    margin-top:3px;
  }

  .player.podcast-mode .controls{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
  }

  .player.podcast-mode #prevBtn,
  .player.podcast-mode #nextBtn{
    display:none!important;
  }

  .player.podcast-mode .controls .seekbtn{
    display:grid!important;
    width:44px;
    height:44px;
    flex:0 0 44px;
  }

  .player.podcast-mode .controls .play{
    width:52px;
    height:52px;
    flex:0 0 52px;
  }

  .player.podcast-mode .player-expand{
    top:7px;
    right:40px;
  }

  .player.podcast-mode .player-close{
    top:7px;
    right:7px;
  }
}

/* Car-friendly mobile controls — v10 */
@media(max-width:800px) and (orientation:portrait){
  .player.podcast-mode{
    height:132px;
    min-height:132px;
    padding:12px 14px 10px;
  }
  .player.podcast-mode .controls{
    gap:14px;
  }
  .player.podcast-mode .controls .seekbtn{
    width:56px;
    height:56px;
    flex:0 0 56px;
    font-size:13px;
    font-weight:800;
  }
  .player.podcast-mode .controls .play{
    width:64px;
    height:64px;
    flex:0 0 64px;
    font-size:24px;
  }
  .player.podcast-mode .podcast-progress input{
    min-height:28px;
  }
  .player.podcast-mode .player-expand,
  .player.podcast-mode .player-close{
    width:30px;
    height:30px;
  }
}

/* Car-friendly compact player fit — v11 */
@media(max-width:800px) and (orientation:portrait){
  .player.podcast-mode{
    height:166px;
    min-height:166px;
    grid-template-columns:1fr;
    grid-template-rows:72px 70px;
    align-content:center;
    gap:4px;
    padding:10px 14px 10px;
  }

  .player.podcast-mode .now{
    height:72px;
    align-items:center;
    padding-right:76px;
  }

  .player.podcast-mode .cover{
    width:52px;
    height:52px;
    flex-basis:52px;
  }

  .player.podcast-mode .nowtext{
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-width:0;
  }

  .player.podcast-mode .nowtext strong{
    font-size:15px;
    line-height:1.15;
  }

  .player.podcast-mode .nowtext > span{
    margin-top:2px;
    font-size:11px;
  }

  .player.podcast-mode .podcast-progress{
    margin-top:5px;
    width:100%;
  }

  .player.podcast-mode .podcast-progress input{
    height:24px;
    min-height:24px;
  }

  .player.podcast-mode .controls{
    height:70px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
    overflow:visible;
  }

  .player.podcast-mode .controls .seekbtn{
    width:56px;
    height:56px;
    flex:0 0 56px;
  }

  .player.podcast-mode .controls .play{
    width:66px;
    height:66px;
    flex:0 0 66px;
    font-size:25px;
  }

  .player.podcast-mode .player-expand{
    display:grid!important;
    top:8px;
    right:45px;
    width:30px;
    height:30px;
  }

  .player.podcast-mode .player-close{
    top:8px;
    right:8px;
    width:30px;
    height:30px;
  }
}

/* Mobile podcast controls refinement — v12 */
@media(max-width:800px) and (orientation:portrait){
  .player.podcast-mode .controls .seekbtn{
    width:56px;
    height:56px;
    flex:0 0 56px;
    font-size:10px;
    line-height:1;
    padding:0;
    letter-spacing:-.4px;
    white-space:nowrap;
  }

  .player.podcast-mode .controls .seekbtn strong{
    font-size:10px;
    line-height:1;
  }

  .player.podcast-mode .controls .seekbtn span{
    font-size:11px;
    line-height:1;
  }

  .player.podcast-mode .now{
    width:100%;
  }

  .player.podcast-mode .nowtext{
    width:100%;
    min-width:0;
  }

  .player.podcast-mode .podcast-progress{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:6px;
    width:100%;
    max-width:none;
  }

  .player.podcast-mode .podcast-progress input{
    width:100%;
    min-width:0;
    height:30px;
  }
}

/* True full-width mobile podcast transport — v13 */
@media(max-width:800px) and (orientation:portrait){
  .player.podcast-mode{
    height:190px;
    min-height:190px;
    display:block;
    padding:12px 14px;
  }

  .player.podcast-mode .now{
    height:60px;
    width:100%;
    padding-right:80px;
    align-items:center;
  }

  .player.podcast-mode .cover{
    width:52px;
    height:52px;
    flex-basis:52px;
  }

  .player.podcast-mode .nowtext{
    width:auto;
    min-width:0;
  }

  .player.podcast-mode .nowtext strong{
    font-size:15px;
    line-height:1.15;
  }

  .player.podcast-mode .nowtext > span{
    font-size:11px;
    margin-top:2px;
  }

  .player.podcast-mode .podcast-progress{
    position:absolute;
    left:14px;
    right:14px;
    top:76px;
    width:auto;
    max-width:none;
    display:grid;
    grid-template-columns:46px minmax(0,1fr) 58px;
    align-items:center;
    gap:8px;
    margin:0;
    font-size:13px;
  }

  .player.podcast-mode .podcast-progress input{
    width:100%;
    min-width:0;
    height:34px;
    margin:0;
  }

  .player.podcast-mode .podcast-progress span{
    font-size:13px;
    line-height:1;
  }

  .player.podcast-mode .controls{
    position:absolute;
    left:14px;
    right:14px;
    bottom:10px;
    height:72px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:20px;
  }

  .player.podcast-mode #prevBtn,
  .player.podcast-mode #nextBtn{
    display:none!important;
  }

  .player.podcast-mode .controls .seekbtn{
    display:flex!important;
    align-items:center;
    justify-content:center;
    gap:2px;
    width:64px;
    height:64px;
    flex:0 0 64px;
    padding:0;
    font-size:18px;
    line-height:1;
    letter-spacing:0;
    white-space:nowrap;
  }

  .player.podcast-mode .controls .seekbtn strong{
    font-size:19px;
    line-height:1;
    font-weight:800;
  }

  .player.podcast-mode .controls .seekbtn .seek-arrow{
    font-size:15px;
    line-height:1;
  }

  .player.podcast-mode .controls .play{
    width:72px;
    height:72px;
    flex:0 0 72px;
    font-size:27px;
  }

  .player.podcast-mode .player-expand{
    display:grid!important;
    top:8px;
    right:45px;
    width:30px;
    height:30px;
  }

  .player.podcast-mode .player-close{
    top:8px;
    right:8px;
    width:30px;
    height:30px;
  }
}

/* Mobile podcast text/progress separation — v14 */
@media(max-width:800px) and (orientation:portrait){
  .player.podcast-mode{
    align-content:normal;
  }

  .player.podcast-mode .now{
    position:absolute;
    left:14px;
    right:14px;
    top:12px;
    width:auto;
    height:56px;
    padding-right:82px;
    margin:0;
    align-items:center;
  }

  .player.podcast-mode .nowtext{
    min-width:0;
    overflow:hidden;
  }

  .player.podcast-mode .nowtext strong{
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .player.podcast-mode .nowtext > span{
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .player.podcast-mode .podcast-progress{
    top:76px;
    left:12px;
    right:12px;
    grid-template-columns:42px minmax(0,1fr) 54px;
    gap:6px;
  }
}

/* Mobile podcast spacing refinement — v15 */
@media(max-width:800px) and (orientation:portrait){
  .player.podcast-mode .podcast-progress{
    top:64px;
  }

  .player.podcast-mode .controls{
    bottom:8px;
  }
}

/* Podcast home / resume / history — v16 */
.podcast-home-section{margin:24px 0}
.podcast-home-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:10px}
.podcast-home-title h3{margin:0}
.podcast-home-title span{color:var(--muted);font-size:12px;text-align:right}
.resume-card,.followed-episode,.history-item{cursor:pointer}
.resume-card .cardtext span:last-child{color:#b9c9e2}
@media(max-width:800px){
 .podcast-home-title{display:block}
 .podcast-home-title span{display:block;margin-top:3px;text-align:left}
}

/* Version badge — v17 */
.brandline{display:flex;align-items:center;gap:7px}
.app-version{
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  line-height:1;
  padding:3px 5px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#101a2c;
}

/* Connectivity badge — v18 */
.network-status{
  font-size:10px;
  font-weight:700;
  line-height:1;
  padding:3px 5px;
  border-radius:6px;
  border:1px solid #8b3c46;
  background:#3a1820;
  color:#ffd3d8;
}
.network-status.reconnected{
  border-color:#35694a;
  background:#173221;
  color:#c9f5d8;
}

/* Podcast comfort controls — v19 */
.podcast-full-tools{
  width:min(560px,92vw);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin:2px auto 0;
}
.podcast-full-tools label{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:12px;
}
.podcast-full-tools select{
  min-height:38px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#101a2c;
  color:var(--text);
  padding:0 10px;
  font:inherit;
}
.podcast-sleep-status{
  min-height:16px;
  color:var(--muted);
  font-size:11px;
}
@media(max-width:520px){
 .podcast-full-tools{gap:8px}
 .podcast-full-tools label{font-size:11px}
 .podcast-full-tools select{min-height:36px;padding:0 8px}
}
