/* MindStream v0.12.0 Visual System Candidate 3 — scoped visual only; no media or rights-handling changes. */
:root{
  --bg:#081322;--card:#152a3c;--panel:#102235;--soft:#21384a;
  --text:#f3fafc;--muted:#a8bdcf;--mint:#6ee2d2;
  --line:rgba(159,219,226,.15);--shadow:0 18px 56px rgba(0,8,19,.29);
  --ms-glass:rgba(13,31,48,.91);--ms-field:#0d2235;
  --ms-hero-a:#122e49;--ms-hero-b:#23335c;--ms-focus:#85f3df;
  font-family:'Vazirmatn',Tahoma,'Segoe UI',sans-serif;
}
html[data-ms-font="system"]{font-family:Tahoma,'Segoe UI',Arial,sans-serif}
html[data-ms-font="vazirmatn"]{font-family:'Vazirmatn',Tahoma,'Segoe UI',sans-serif}
html{font-size:16px;scroll-padding-top:18px}
html[data-ms-size="large"]{font-size:18px}
body{font-family:inherit;line-height:1.75;background:
  radial-gradient(ellipse 72% 28% at 83% -3%,rgba(78,125,180,.18),transparent 78%),
  radial-gradient(ellipse 65% 43% at -12% 51%,rgba(45,171,158,.075),transparent 70%),var(--bg);
  color:var(--text);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
:focus-visible{outline:3px solid var(--ms-focus)!important;outline-offset:3px}
.topbar{position:relative;z-index:9}
.brand-title{letter-spacing:-.045em}
.logo{background:linear-gradient(140deg,#174f62,#243057);border-color:rgba(122,242,220,.34)}
.iconbtn{background:var(--ms-glass);color:var(--text);border-color:var(--line);transition:background .18s,transform .18s,border-color .18s}
.iconbtn:hover,.iconbtn:focus-visible{background:var(--soft);border-color:var(--mint)}
.ms-appearance-btn svg{width:21px;height:21px}
.desktop-nav{background:var(--panel);border-color:var(--line)}
.desktop-nav button.active{background:var(--soft);color:var(--mint)}
.hero{background:linear-gradient(118deg,var(--ms-hero-a),var(--ms-hero-b));border-color:rgba(142,224,216,.22);box-shadow:var(--shadow);border-radius:27px}
.hero::after{background:radial-gradient(circle at 10% 45%,rgba(75,229,202,.11),transparent 60%)}
.hero h1{letter-spacing:-.035em;line-height:1.45}
.hero h1 em{color:var(--mint)}
.hero p{line-height:2.05;color:var(--muted)}
.orb{animation-duration:10s}
.section-head h2{font-weight:850;font-size:clamp(1.04rem,2vw,1.35rem);letter-spacing:-.03em}
.section-head{margin-block:25px 14px}
.episode-grid{gap:15px}
.episode-card{background:linear-gradient(160deg,var(--card),var(--panel));border-color:var(--line);border-radius:22px;box-shadow:0 5px 28px rgba(0,0,0,.08);transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
.episode-card:hover{box-shadow:0 13px 35px rgba(0,0,0,.15);border-color:rgba(91,222,202,.46)}
.episode-card:focus-within{border-color:var(--ms-focus)}
.episode-title{font-size:.9rem;line-height:1.78;letter-spacing:-.016em}
.episode-desc{font-size:.77rem;color:var(--muted)}
.episode-meta,.card-bottom{color:var(--muted)}
.ms-series-card{border:1px solid var(--line);background:linear-gradient(140deg,var(--card),var(--panel));border-radius:20px;transition:border-color .2s,transform .2s}
.ms-series-card:hover,.ms-series-card:focus-within{border-color:var(--mint);transform:translateY(-2px)}
.ms-series-click{min-height:92px}
.ms-series-mark{background:linear-gradient(145deg,#256b71,#203b60);border-radius:16px}
.primary{background:var(--mint);color:#092934;box-shadow:0 8px 24px rgba(61,204,185,.16);transition:filter .18s,transform .18s}
.primary:active,.secondary:active{transform:translateY(1px)}
.secondary{background:var(--soft);border-color:var(--line);color:var(--text)}
.stat-tile,.feature-card,.form-card,.cr-card{background:var(--card);border-color:var(--line)}
.stat-tile{border-radius:19px;box-shadow:0 9px 28px rgba(0,0,0,.08)}
.pill{color:var(--mint);background:rgba(73,198,178,.14)}
.chips button{background:var(--panel);border-color:var(--line);color:var(--muted);white-space:nowrap}
.chips button.active{background:rgba(76,197,171,.21);border-color:var(--mint);color:var(--text)}
.searchbar,.field input,.field textarea,.field select{background:var(--ms-field);border-color:var(--line);color:var(--text)}
.searchbar input{color:var(--text)}
.searchbar:focus-within{border-color:var(--mint);box-shadow:0 0 0 3px rgba(94,231,209,.1)}
.bottom-nav{background:var(--ms-glass);border-color:var(--line)}
.bottom-nav button{color:var(--muted);min-height:45px}
.bottom-nav button.active{color:var(--mint);background:rgba(89,215,194,.12)}
.mini-player{background:var(--ms-glass);border-color:var(--line);box-shadow:0 11px 50px rgba(0,0,0,.27)}
.player-sheet{background:radial-gradient(circle at 34% 8%,var(--ms-hero-b),var(--bg) 62%);color:var(--text)}
.sheet-art{border-radius:28px;box-shadow:0 24px 60px rgba(0,0,0,.3)}
.cr-tabs{background:var(--panel);border-color:var(--line)}
.cr-tabs button{background:var(--soft);border-color:var(--line);color:var(--muted)}
.cr-tabs button.active{background:var(--mint);border-color:var(--mint);color:#072b31}
.cr-card{background:linear-gradient(155deg,var(--card),var(--panel));border-radius:18px}
.cr-card small{color:var(--muted)}
.ms-listening-tools,.ms-learning-panel,.ms-queue-panel,.learning-editor{border-color:var(--line);background:var(--panel)}
.ms-transcript{color:var(--text)}
.ms-chapter{background:var(--card);color:var(--text);border-color:var(--line)}
.ms-chapter time{color:var(--mint)}
/* Appearance modal: isolated from application data and media controls. */
.ms-appearance-dialog{border:1px solid var(--line);border-radius:24px;padding:0;width:min(95vw,500px);max-height:min(85vh,720px);overflow-y:auto;color:var(--text);background:var(--panel);box-shadow:0 35px 110px rgba(0,0,0,.55);direction:rtl}
.ms-appearance-dialog::backdrop{background:rgba(4,11,24,.72);backdrop-filter:blur(5px)}
.ms-appearance-dialog>*{margin:0}
.ms-appearance-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:25px 24px 10px}
.ms-appearance-eyebrow{font-size:.73rem;color:var(--mint);font-weight:850}
.ms-appearance-head h2{font-size:1.38rem;line-height:1.4;margin:3px 0 4px;color:var(--text)}
.ms-appearance-head p{margin:0;font-size:.82rem;color:var(--muted);line-height:1.85}
.ms-appearance-close{flex:none;border:1px solid var(--line);background:var(--soft);color:var(--text);border-radius:12px;min-width:40px;min-height:40px}
.ms-theme-fieldset{margin:12px 24px 16px;border:0;padding:0;min-width:0}
.ms-theme-fieldset legend{font-size:.84rem;font-weight:800;margin-bottom:9px}
.ms-theme-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.ms-theme-choice{display:flex;flex-direction:column;gap:3px;align-items:center;text-align:center;border:1px solid var(--line);border-radius:14px;padding:9px 4px;cursor:pointer;min-width:0}
.ms-theme-choice:has(input:checked){border-color:var(--mint);background:rgba(103,220,200,.10);box-shadow:0 0 0 1px var(--mint)}
.ms-theme-choice input{position:absolute;opacity:0;width:1px;height:1px}
.ms-theme-choice:has(input:focus-visible){outline:3px solid var(--ms-focus);outline-offset:2px}
.ms-theme-choice strong{font-size:.79rem;line-height:1.6;color:var(--text)}
.ms-theme-choice small{font-size:.61rem;line-height:1.5;color:var(--muted)}
.ms-theme-swatch{width:38px;height:38px;border-radius:13px;border:2px solid rgba(155,188,196,.4)}
.ms-theme-auto{background:linear-gradient(110deg,#132b43 50%,#e8f7f3 50%)}
.ms-theme-midnight{background:linear-gradient(145deg,#0a1427,#30345e)}
.ms-theme-ocean{background:linear-gradient(145deg,#04383f,#0d6f6e)}
.ms-theme-light{background:linear-gradient(145deg,#f8faf6,#d3ede7)}
.ms-appearance-options{padding:5px 24px 20px;display:grid;grid-template-columns:1fr 1fr;gap:8px 15px;align-items:center}
.ms-appearance-options label{font-size:.83rem;font-weight:700}
.ms-appearance-options select{width:100%;padding:10px 8px;background:var(--ms-field);color:var(--text);border:1px solid var(--line);border-radius:11px;font-size:.81rem;min-height:44px}
.ms-appearance-note{padding:15px 24px 20px;border-top:1px solid var(--line);font-size:.74rem;line-height:1.85;color:var(--muted)}
html[data-ms-size="large"] .episode-title{font-size:1.04rem}
html[data-ms-size="large"] .episode-desc,html[data-ms-size="large"] .cr-card small{font-size:.87rem}
html[data-ms-size="large"] .section-head h2{font-size:1.47rem}
html[data-ms-size="large"] .desktop-nav button,html[data-ms-size="large"] .chips button{font-size:.9rem}
html[data-ms-size="large"] .field label,html[data-ms-size="large"] .ms-series-click{font-size:.96rem}
/* Ocean remains a dark high-contrast palette; existing animation/cover layers are untouched. */
html[data-ms-theme="ocean"]{--bg:#061c23;--card:#12343b;--panel:#0a2930;--soft:#20515a;--text:#f2fcfa;--muted:#b2ced0;--mint:#80edd8;--line:rgba(163,236,223,.19);--ms-glass:rgba(8,38,46,.93);--ms-field:#0d323a;--ms-hero-a:#115158;--ms-hero-b:#14384f;--ms-focus:#a5ffe7;color-scheme:dark}
/* Light mode: override both tokenized and older hard-coded surfaces for legibility. */
html[data-ms-theme="light"]{--bg:#f2f7f6;--card:#fff;--panel:#e9f2f1;--soft:#dbeae8;--text:#18323d;--muted:#506b76;--mint:#096b68;--line:rgba(35,92,96,.2);--shadow:0 18px 44px rgba(28,77,83,.12);--ms-glass:rgba(250,254,253,.95);--ms-field:#fff;--ms-hero-a:#d8efed;--ms-hero-b:#e7ebfa;--ms-focus:#076967;color-scheme:light}
html[data-ms-theme="light"] body{background:radial-gradient(ellipse 70% 35% at 85% -5%,#dde6f7,transparent 74%),#f2f7f6}
html[data-ms-theme="light"] .hero{border-color:#b6d7d3}
html[data-ms-theme="light"] .hero p{color:#365c68}
html[data-ms-theme="light"] .hero h1 em{color:#096b68}
html[data-ms-theme="light"] .logo{background:linear-gradient(135deg,#d7efeb,#c8e0ef);border-color:#80b3a9}
html[data-ms-theme="light"] .logo svg{stroke:#0a7169}
html[data-ms-theme="light"] .brand-title span{color:#076b63}
html[data-ms-theme="light"] .desktop-nav button,.ms-appearance-dialog .ms-appearance-options select{color:var(--text)}
html[data-ms-theme="light"] .eyebrow,html[data-ms-theme="light"] .linkbtn{color:#08716c}
html[data-ms-theme="light"] .art-cover{background:linear-gradient(145deg,#bad6e4,#d9e9e5)}
html[data-ms-theme="light"] .art-cover::after{color:#2b6973aa}
html[data-ms-theme="light"] .stat-glyph{color:#0b7772;background:#deefec}
html[data-ms-theme="light"] .stat-tile,html[data-ms-theme="light"] .feature-card,html[data-ms-theme="light"] .form-card{color:var(--text)}
html[data-ms-theme="light"] .section-head span,html[data-ms-theme="light"] .card-bottom{color:#526c76}
html[data-ms-theme="light"] .episode-card{box-shadow:0 8px 26px rgba(44,80,81,.055)}
html[data-ms-theme="light"] .episode-title,html[data-ms-theme="light"] .episode-desc{color:var(--text)}
html[data-ms-theme="light"] .episode-meta{color:#54747e}
html[data-ms-theme="light"] .play-overlay{background:#096b68;color:white}
html[data-ms-theme="light"] .pill{color:#085f56;background:#e0f2ec}
html[data-ms-theme="light"] .searchbar input{color:#18323d}
html[data-ms-theme="light"] .searchbar input::placeholder{color:#65808a}
html[data-ms-theme="light"] .field input,html[data-ms-theme="light"] .field textarea,html[data-ms-theme="light"] .field select{color:#18323d}
html[data-ms-theme="light"] .banner{color:#225f5c;background:#e7f5f1}
html[data-ms-theme="light"] .cr-card strong{color:#163a3d}
html[data-ms-theme="light"] .cr-card small{color:#56777c}
html[data-ms-theme="light"] .cr-tabs button.active{background:#096d67;color:white}
html[data-ms-theme="light"] .ms-transcript{color:#18323d}
html[data-ms-theme="light"] .ms-series-card{box-shadow:0 10px 28px rgba(32,76,79,.07)}
html[data-ms-theme="light"] .ms-series-mark{background:linear-gradient(135deg,#8fd4cc,#c7d9ed);color:#124d56}
html[data-ms-theme="light"] .player-sheet{background:radial-gradient(circle at 28% 0%,#dbe4ee,#f3faf9 62%)}
html[data-ms-theme="light"] .bottom-nav{box-shadow:0 -8px 28px rgba(13,67,79,.07)}
html[data-ms-theme="light"] .mini-player{box-shadow:0 12px 32px rgba(20,65,73,.16)}
html[data-ms-theme="light"] .ms-theme-choice:has(input:checked){background:#e4f4f0}
html[data-ms-theme="light"] .ms-appearance-dialog{box-shadow:0 30px 100px rgba(15,59,64,.26)}
/* Accessibility / performance */
@media(max-width:550px){.topbar{gap:8px}.top-actions{gap:5px}.top-actions .iconbtn{min-width:40px;height:40px}.ms-appearance-dialog{width:calc(100vw - 24px);border-radius:21px}.ms-appearance-head{padding:20px 16px 10px}.ms-theme-fieldset{margin-inline:16px}.ms-appearance-options{padding-inline:16px}.ms-appearance-note{padding-inline:16px}.ms-theme-choices{gap:5px}.ms-theme-choice small{font-size:.58rem}.episode-grid{gap:11px}}
@media(min-width:851px){.bottom-nav{display:none}.shell{padding-bottom:170px}.episode-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.view,.orb,.episode-card,.ms-series-card{animation:none!important;transition:none!important}}
html[data-ms-reduce-motion="yes"]{scroll-behavior:auto}
html[data-ms-reduce-motion="yes"] .view,html[data-ms-reduce-motion="yes"] .orb,html[data-ms-reduce-motion="yes"] .episode-card,html[data-ms-reduce-motion="yes"] .ms-series-card{animation:none!important;transition:none!important;transform:none!important}
/* Light-mode coverage for legacy pages and nested controls. */
html[data-ms-theme="light"] .about-panel,html[data-ms-theme="light"] .about-value,html[data-ms-theme="light"] .about-disclosure,html[data-ms-theme="light"] .about-legal,html[data-ms-theme="light"] .empty,html[data-ms-theme="light"] .cr-block{background:var(--card);color:var(--text);border-color:var(--line)}
html[data-ms-theme="light"] .about-brand-panel{background:linear-gradient(120deg,#d5f0ec,#e7e6fa);border-color:#b0d5d2;color:var(--text)}
html[data-ms-theme="light"] .about-brand-mark{color:#146863;background:linear-gradient(145deg,#b5e3db,#d3d9ee)}
html[data-ms-theme="light"] .about-value-icon{background:#d7eee9;color:#167c72}
html[data-ms-theme="light"] .med-hero{background:linear-gradient(135deg,#d8edea,#e7e7f7);border-color:#b6d9d3;color:var(--text)}
html[data-ms-theme="light"] .med-category,html[data-ms-theme="light"] .med-category[data-med-category="all"]{background:var(--card);border-color:var(--line);color:var(--text)}
html[data-ms-theme="light"] .med-category.active,html[data-ms-theme="light"] .med-category[data-med-category="all"].active{background:#d6f1ec;border-color:#31978b;color:#174d4e}
html[data-ms-theme="light"] .med-wellbeing-note{background:#e3f2ec;border-color:var(--line);color:#36575d}
html[data-ms-theme="light"] .med-grid .pill{background:#e8eafa;color:#47458a}
html[data-ms-theme="light"] .ms-series-hero{background:linear-gradient(120deg,#d8efea,#e0eaf7);color:var(--text)}
html[data-ms-theme="light"] .ms-series-episode,html[data-ms-theme="light"] .ms-series-admin-row{background:var(--card);color:var(--text);border-color:var(--line)}
html[data-ms-theme="light"] .ms-series-number{background:#d0eee8;color:#125a55}
html[data-ms-theme="light"] .ms-series-progress{background:#c7dbd8}
html[data-ms-theme="light"] .ms-series-start,html[data-ms-theme="light"] .ms-sheet-series button,html[data-ms-theme="light"] .ms-series-admin-row button{background:#d8eeeb;color:#155950;border-color:#a0cbc5}
html[data-ms-theme="light"] .ms-listening-tools,html[data-ms-theme="light"] .ms-queue-panel,html[data-ms-theme="light"] .ms-learning-panel,html[data-ms-theme="light"] .learning-editor{background:var(--panel);color:var(--text);border-color:var(--line)}
html[data-ms-theme="light"] .ms-listening-line select,html[data-ms-theme="light"] .ms-queue-item button{background:var(--card);color:var(--text);border-color:var(--line)}
html[data-ms-theme="light"] .sheet-footer select,html[data-ms-theme="light"] .sheet-footer .sheet-tool,html[data-ms-theme="light"] .med-player-options select{background:#dfedeb;border-color:#b5d1cc;color:#1b444a}
html[data-ms-theme="light"] .sheet-footer button,html[data-ms-theme="light"] .sheet-close,html[data-ms-theme="light"] .sheet-icon{color:var(--text)}
html[data-ms-theme="light"] .sheet-icon{background:#e3eeed;border-color:#d0e0de}
html[data-ms-theme="light"] .med-player-options{background:#e3f2f0;border-color:var(--line);color:var(--text)}
html[data-ms-theme="light"] .cr-form input,html[data-ms-theme="light"] .cr-form select,html[data-ms-theme="light"] .cr-form textarea,html[data-ms-theme="light"] .cr-smallbtn{background:var(--card);color:var(--text);border-color:var(--line)}
html[data-ms-theme="light"] .cr-tag{background:#e1f3ee;color:#155f54}
html[data-ms-theme="light"] .notice{background:#ddefe8;color:#175950}
html[data-ms-theme="light"] .notice.error,html[data-ms-theme="light"] .cr-alert{background:#fbe5e6;color:#872a39}
html[data-ms-theme="light"] .ms-appearance-dialog .ms-appearance-note{color:var(--muted)}

/* Candidate 4: searchable spoken-text matches */
.ms-transcript-results{margin:18px 0;padding:16px;border:1px solid var(--line,rgba(110,226,210,.18));border-radius:16px;background:var(--surface,rgba(255,255,255,.04))}
.ms-transcript-results[hidden]{display:none!important}
.ms-transcript-results h2{font-size:1.1rem;margin:0 0 9px}
.ms-transcript-hit{display:flex;flex-direction:column;gap:7px;width:100%;background:var(--card-bg,rgba(255,255,255,.04));border:1px solid var(--line,rgba(110,226,210,.18));color:var(--text,#ecf8f6);border-radius:12px;padding:13px;margin:10px 0;text-align:right;font:inherit;cursor:pointer}
.ms-transcript-hit span{font-size:.86em;opacity:.8;line-height:1.8;overflow-wrap:anywhere}
.ms-transcript-hit small{color:var(--mint,#70e0d0)}
.ms-transcript-hit:focus-visible{outline:3px solid var(--mint,#70e0d0)}

/* Candidate7 UI1: lock fullscreen player to the actual device viewport; prevent mobile horizontal drift. */
html,body{max-width:100%;overflow-x:clip}
.player-sheet{left:0!important;right:0!important;inset-inline:0!important;width:100%!important;max-width:100%!important;overflow-x:hidden!important;overflow-y:auto;box-sizing:border-box;overscroll-behavior-x:none}
.player-sheet>*{min-width:0;max-width:100%;box-sizing:border-box}
.player-sheet .sheet-top,.player-sheet .sheet-info,.player-sheet .sheet-controls,.player-sheet .sheet-description{width:min(470px,100%)!important;max-width:100%;min-width:0}
.sheet-title,.sheet-subtitle,.sheet-description{overflow-wrap:anywhere;min-width:0}
.sheet-controls .seek{max-width:100%;min-width:0;box-sizing:border-box}
.transport{max-width:100%;min-width:0;gap:clamp(0px,1vw,8px)}
.transport button{min-width:0;flex:0 1 auto;padding-inline:clamp(2px,1.2vw,9px)}
.transport .play-large{flex:0 0 64px}
.sheet-footer,.ms-listening-line{min-width:0;max-width:100%}
.sheet-footer .speed-wrap{min-width:0;flex:0 1 auto;flex-wrap:wrap;justify-content:flex-start}
.sheet-footer .speed-wrap select{max-width:110px;min-width:0;color:var(--text);background:var(--ms-field)}
.ms-listening-tools,.ms-series-admin-list,.cr-panel,.cr-block{min-width:0;max-width:100%}
.ms-listening-line{flex-wrap:wrap}
.ms-listening-line select{color:var(--text);background:var(--ms-field)}
.ms-motion-status{font-size:.77rem;line-height:1.9;color:var(--muted);background:var(--soft);padding:8px 11px;border-radius:10px;margin:0}
/* The auto setting follows Telegram light mode: do not retain midnight-only control text colors. */
html[data-ms-theme="light"] .player-sheet .time-row,html[data-ms-theme="light"] .sheet-subtitle,html[data-ms-theme="light"] .sheet-description,html[data-ms-theme="light"] .speed-wrap,html[data-ms-theme="light"] .ms-motion-status{color:#375a64}
html[data-ms-theme="light"] .player-sheet .transport button,html[data-ms-theme="light"] .sheet-top .sheet-icon,html[data-ms-theme="light"] .sheet-footer .sheet-tool{color:#17404a;border-color:#b5d0d0}
html[data-ms-theme="light"] .sheet-heading b,html[data-ms-theme="light"] .sheet-title,html[data-ms-theme="light"] .ms-listening-line label{color:#18323d}
html[data-ms-theme="light"] .sheet-heading-overline{color:#096b68}
html[data-ms-theme="light"] .transport .play-large{color:#092934;background:#59dfc1}
html[data-ms-theme="light"] .sheet-footer select,html[data-ms-theme="light"] .ms-listening-line select{color:#18323d;background:#fff;border-color:#aacbc7}
html[data-ms-theme="light"] .ms-listening-tools,html[data-ms-theme="light"] .ms-queue-panel,html[data-ms-theme="light"] .ms-learning-panel{color:#18323d;background:#eaf4f2}
html[data-ms-theme="light"] .sheet-footer{border-color:#bed5d4}
html[data-ms-theme="light"] .time-row{color:#375a64}
/* A dedicated, guided collection editor is usable without memorizing category/latin IDs. */
.ms-series-step{display:flex;flex-direction:column;gap:3px;border-right:3px solid var(--mint);padding:8px 12px;margin:16px 0 10px;background:var(--soft);border-radius:9px}
.ms-series-step strong{font-size:.95rem;color:var(--text)}
.ms-series-step span{font-size:.77rem;line-height:1.8;color:var(--muted)}
#crSeriesSearch{max-width:100%;box-sizing:border-box;width:100%;background:var(--ms-field);color:var(--text);border:1px solid var(--line);padding:10px;border-radius:12px}
.ms-series-admin-row{min-width:0;max-width:100%;flex-wrap:wrap;background:var(--card)}
.ms-series-admin-row>label{flex:1 1 160px}
.ms-series-admin-row>small{max-width:100%;overflow-wrap:anywhere}
@media(max-width:430px){.player-sheet{padding-left:clamp(12px,4vw,18px)!important;padding-right:clamp(12px,4vw,18px)!important}.transport .play-large{flex-basis:56px;min-width:56px;min-height:56px}.sheet-footer{gap:7px}.sheet-footer .speed-wrap{gap:5px}}

/* Range thumbs can extend 1px outside their track; clip only this subpane, not full player controls. */
.sheet-controls{overflow-x:clip}

/* MindStream visual redesign v0.12.0: cohesive themes and genuinely fixed-size controls. */
html[data-ms-theme="ocean"]{--bg:#071921;--card:#122d37;--panel:#0c2933;--soft:#1b414b;--text:#f3faf8;--muted:#a9c6c7;--mint:#76e9d0;--line:rgba(161,215,212,.22);--ms-glass:rgba(9,36,44,.96);--ms-field:#123039;--ms-hero-a:#075a72;--ms-hero-b:#15534e;--ms-focus:#76e9d0;--ms-player-ink:#062b31;color-scheme:dark}
html[data-ms-theme="midnight"]{--bg:#0c1423;--card:#19263a;--panel:#122037;--soft:#263b50;--text:#eff4ff;--muted:#b8c8dd;--mint:#83b5f5;--line:rgba(170,194,222,.21);--ms-glass:rgba(14,25,43,.96);--ms-field:#192b3e;--ms-hero-a:#182c4b;--ms-hero-b:#26375b;--ms-focus:#83b5f5;--ms-player-ink:#0c1423;color-scheme:dark}
html[data-ms-theme="amber"]{--bg:#17171b;--card:#29262a;--panel:#222024;--soft:#3a3030;--text:#f9f3ef;--muted:#cbbdb5;--mint:#ffa75b;--line:rgba(237,199,157,.21);--ms-glass:rgba(28,24,27,.96);--ms-field:#332b2a;--ms-hero-a:#613720;--ms-hero-b:#29252c;--ms-focus:#ffbc68;--ms-player-ink:#321d12;color-scheme:dark}
html[data-ms-theme="aurora"]{--bg:#101328;--card:#252543;--panel:#1a1d38;--soft:#343459;--text:#f8f5ff;--muted:#c6bfe8;--mint:#a997ff;--line:rgba(190,171,248,.22);--ms-glass:rgba(20,22,45,.96);--ms-field:#292747;--ms-hero-a:#503d8e;--ms-hero-b:#176b72;--ms-focus:#a997ff;--ms-player-ink:#201840;color-scheme:dark}
html[data-ms-theme="light"]{--bg:#f4f8f7;--card:#fff;--panel:#eaf3f1;--soft:#dcece8;--text:#162b32;--muted:#546a70;--mint:#067568;--line:rgba(45,103,99,.26);--ms-glass:rgba(252,255,254,.98);--ms-field:#fff;--ms-hero-a:#d0f1e7;--ms-hero-b:#e0e8fb;--ms-focus:#067568;--ms-player-ink:#fff;color-scheme:light}
.ms-theme-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ms-theme-choice{min-height:102px;justify-content:center}
.ms-theme-amber{background:linear-gradient(145deg,#17171b,#a95321,#ffbc68)}
.ms-theme-aurora{background:linear-gradient(125deg,#7758ca,#277abf,#18bc9c,#eda85e)}
.ms-theme-ocean{background:linear-gradient(135deg,#071921,#075a72,#76e9d0,#f2b966)}
.ms-theme-midnight{background:linear-gradient(145deg,#0c1423,#36496b)}
.ms-theme-light{background:linear-gradient(145deg,#f4f8f7,#d0f1e7,#e0e8fb)}
/* Fixed five-column transport grid prevents WebView flex shrink from stretching controls. */
.player-sheet .sheet-controls{width:min(100%,480px);max-width:100%;min-width:0;box-sizing:border-box}
.player-sheet .transport{display:grid!important;grid-template-columns:minmax(40px,1fr) minmax(44px,1fr) 72px minmax(44px,1fr) minmax(40px,1fr);align-items:center;justify-items:center;gap:clamp(1px,1vw,12px);margin:16px 0 22px;direction:ltr;max-width:100%}
.player-sheet .transport button{box-sizing:border-box!important;display:grid!important;place-items:center!important;justify-self:center;align-self:center;flex:none!important;min-width:0!important;width:46px!important;height:48px!important;min-height:0!important;max-width:100%;padding:0!important;border-radius:50%;color:var(--text)}
.player-sheet .transport .play-large{width:72px!important;height:72px!important;min-width:72px!important;min-height:72px!important;flex:none!important;border-radius:50%!important;background:var(--mint)!important;color:var(--ms-player-ink)!important;font-size:27px!important;line-height:1!important;font-family:Arial,sans-serif!important;box-shadow:0 10px 28px rgba(0,0,0,.16)!important}
.player-sheet .transport .transport-episode svg{width:23px!important;height:23px!important;max-width:none;flex:none}
.player-sheet .transport .transport-seek svg{width:26px!important;height:26px!important;max-width:none;flex:none}
.player-sheet .transport .transport-seek span{font-size:9px!important;top:51%;line-height:1}
.player-sheet .transport button:active{transform:scale(.95)}
.player-sheet .seek{accent-color:var(--mint)}
.player-sheet .sheet-art-wrap{max-width:100%;min-width:0}
.player-sheet .sheet-art{aspect-ratio:1/1;max-width:100%;height:auto;object-fit:cover}
.player-sheet .sheet-title{max-width:100%;overflow-wrap:anywhere}
html[data-ms-theme="light"] .player-sheet .transport button:not(.play-large){color:#17404a}
html[data-ms-theme="light"] .player-sheet .transport .play-large{color:#fff!important;background:#067568!important}
html[data-ms-theme="light"] .player-sheet{background:radial-gradient(circle at 28% 0%,#dce9ea,#f4f8f7 66%)}
@media(max-width:360px){.player-sheet .transport{grid-template-columns:minmax(37px,1fr) minmax(39px,1fr) 62px minmax(39px,1fr) minmax(37px,1fr);gap:1px}.player-sheet .transport button{width:40px!important;height:44px!important}.player-sheet .transport .play-large{width:62px!important;height:62px!important;min-width:62px!important;min-height:62px!important}.ms-theme-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.player-sheet .transport button{transition:none!important}}

/* Premium Player & Domain Identity — approved design, first implementation. */
:root{--ms-domain:var(--mint)}
.player-sheet{--ms-domain:var(--mint);padding-bottom:max(34px,env(safe-area-inset-bottom))!important;background:radial-gradient(ellipse 80% 32% at 72% 4%,color-mix(in srgb,var(--ms-domain) 20%,transparent),transparent 85%),radial-gradient(ellipse 85% 30% at 5% 39%,color-mix(in srgb,var(--mint) 11%,transparent),transparent 80%),var(--bg)!important}
.player-sheet .sheet-top{margin:0 auto 18px!important;min-height:48px}
.player-sheet .sheet-heading{display:flex;flex-direction:column;align-items:center;gap:0}
.player-sheet .sheet-heading-overline{color:var(--muted);font-size:.65rem;letter-spacing:.14em}
.player-sheet .ms-new-art-stage{position:relative;width:min(100%,415px);margin:0 auto 17px!important;isolation:isolate}
.player-sheet .sheet-art-wrap{position:relative;z-index:2;width:100%;margin:auto!important;max-width:100%!important;aspect-ratio:1/1;overflow:hidden;border:1px solid color-mix(in srgb,var(--ms-domain) 50%,transparent);border-radius:27px!important;box-shadow:0 22px 65px rgba(0,0,0,.4),0 0 38px color-mix(in srgb,var(--ms-domain) 12%,transparent)}
.player-sheet .sheet-art{width:100%!important;height:100%!important;aspect-ratio:1/1!important;border-radius:26px!important;box-shadow:none!important}
.player-sheet .ms-cover-halo{pointer-events:none;position:absolute;z-index:1;inset:17% -6% -5%;background:radial-gradient(ellipse,color-mix(in srgb,var(--ms-domain) 18%,transparent),transparent 65%);filter:blur(28px)}
.player-sheet .sheet-info{margin:0 auto 20px!important;text-align:center;padding:0 4px!important;display:flex;flex-direction:column;align-items:center;gap:6px}
.player-sheet .ms-domain-label{display:inline-flex;border:1px solid color-mix(in srgb,var(--ms-domain) 42%,transparent);background:color-mix(in srgb,var(--ms-domain) 12%,transparent);border-radius:99px;color:var(--ms-domain);padding:2px 14px;font-weight:700;font-size:.77rem;line-height:1.8}
.player-sheet .sheet-title{font-size:clamp(1.2rem,4.7vw,1.7rem)!important;line-height:1.65!important;font-weight:850!important;margin:0!important;letter-spacing:-.025em}
.player-sheet .sheet-subtitle{color:var(--muted)!important;font-size:.83rem;line-height:1.9}
.player-sheet .episode-identity{margin-top:2px;opacity:.88}
.player-sheet .sheet-controls{margin:0 auto!important;width:min(100%,415px)!important;padding:18px 0 0!important;border-top:1px solid var(--line)}
.player-sheet .ms-progress-label{font-size:.73rem;letter-spacing:0;color:var(--muted);text-align:right;margin-bottom:5px}
.player-sheet .seek{height:20px;max-width:100%;accent-color:var(--ms-domain)}
.player-sheet .time-row{color:var(--muted);font-size:.78rem;font-variant-numeric:tabular-nums}
.player-sheet .transport{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 74px minmax(0,1fr) minmax(0,1fr)!important;gap:clamp(2px,1.6vw,14px)!important;align-items:center;margin:16px 0 26px!important}
.player-sheet .transport button:not(.play-large){background:transparent!important;border:0!important;box-shadow:none!important;border-radius:50%!important;width:46px!important;height:46px!important;padding:8px!important;display:grid!important;place-items:center;color:var(--text)!important;opacity:.91;touch-action:manipulation}
.player-sheet .transport button:not(.play-large):focus-visible{outline:3px solid var(--ms-domain)!important}
.player-sheet .transport .play-large{position:relative;width:74px!important;height:74px!important;min-width:74px!important;min-height:74px!important;font-size:0!important;border:2px solid color-mix(in srgb,var(--mint) 55%,white)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--mint) 85%,white),var(--mint))!important;box-shadow:0 10px 36px color-mix(in srgb,var(--mint) 24%,transparent),inset 0 2px 2px rgba(255,255,255,.35)!important;display:grid!important;place-items:center;overflow:hidden;border-radius:50%!important}
.player-sheet .transport .play-large::after{content:'▶';position:absolute;font-family:Arial,sans-serif;font-size:28px;line-height:1;color:var(--ms-player-ink);transform:translateX(2px)}
.player-sheet .transport .play-large[data-ms-playing="true"]::after{content:'Ⅱ';font-size:31px;font-weight:bold;transform:none}
.player-sheet .transport .transport-seek{position:relative!important}
.player-sheet .transport .transport-seek span{font-family:Arial,sans-serif!important;font-size:10px!important;line-height:1!important;position:absolute;top:55%!important;left:50%;transform:translate(-50%,-50%);white-space:nowrap}
.player-sheet .ms-player-tools-heading{font-size:.79rem;color:var(--muted);text-align:right;margin:4px 0 10px}
.player-sheet .sheet-footer{display:flex;align-items:stretch;gap:9px!important;padding:0!important;margin:0 0 14px!important}
.player-sheet .sheet-footer>*{border:1px solid var(--line);border-radius:15px!important;background:color-mix(in srgb,var(--card) 88%,transparent)!important;min-height:52px;padding:8px 12px!important}
.player-sheet .sheet-footer .speed-wrap{flex:1;display:flex;align-items:center;justify-content:space-between;gap:9px}
.player-sheet .sheet-footer .sheet-heart{flex:none;width:64px}
.player-sheet .ms-sheet-series{border-inline-start:3px solid var(--ms-domain);padding-inline-start:10px}
.ms-series-card{--ms-domain:var(--mint);border-top:2px solid var(--ms-domain)!important}
.ms-series-card .ms-series-progress i,.ms-series-hero .ms-series-progress i{background:var(--ms-domain)!important}
.ms-series-card .ms-series-mark{border:1px solid color-mix(in srgb,var(--ms-domain) 55%,transparent);background:color-mix(in srgb,var(--ms-domain) 13%,var(--card))}
.ms-series-card .ms-series-info small{color:var(--ms-domain)}
.ms-series-hero{--ms-domain:var(--mint);border-top:3px solid var(--ms-domain);background:radial-gradient(ellipse at 85% 5%,color-mix(in srgb,var(--ms-domain) 18%,transparent),transparent 70%),var(--card)}
html[data-ms-theme="light"] .player-sheet .ms-domain-label{color:color-mix(in srgb,var(--ms-domain) 72%,#142b32)}
@media(max-width:370px){.player-sheet .transport{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 62px minmax(0,1fr) minmax(0,1fr)!important;gap:2px!important}.player-sheet .transport .play-large{width:62px!important;height:62px!important;min-width:62px!important;min-height:62px!important}.player-sheet .transport button:not(.play-large){width:40px!important;height:44px!important}.player-sheet .sheet-info{margin-bottom:12px!important}}
@media(max-height:780px){.player-sheet .ms-new-art-stage{width:min(76%,325px)}.player-sheet .sheet-info{margin-bottom:12px!important}}
@media(prefers-reduced-motion:reduce){.player-sheet .ms-cover-halo{filter:none}.player-sheet .transport button{transition:none!important}}

.episode-card{--ms-domain:var(--mint);border-top:2px solid color-mix(in srgb,var(--ms-domain) 80%,transparent)}
.episode-card .episode-meta>span:first-child{color:var(--ms-domain)}
.episode-card .pill{border:1px solid color-mix(in srgb,var(--ms-domain) 38%,transparent)}

/* PlaylistThemes1: palettes adapted from supplied visual references, no third-party imagery. */

.ms-theme-choices{grid-template-columns:repeat(4,minmax(0,1fr));}
.ms-theme-choice{min-height:94px;justify-content:center;}
.ms-theme-choice small{overflow-wrap:anywhere;}
.ms-theme-neon{background:linear-gradient(140deg,#080a0c 52%,#c7ff17 53%)}
.ms-theme-frost{background:linear-gradient(140deg,#f9fcff 45%,#1764e6 46%)}
.ms-theme-gold{background:linear-gradient(140deg,#102848 45%,#f2b84c 46%)}
.ms-theme-sun{background:linear-gradient(140deg,#ffe923 58%,#151517 59%)}
.ms-theme-lilac{background:linear-gradient(140deg,#f7f3ff 45%,#7839df 46%)}
.ms-theme-royal{background:linear-gradient(140deg,#fff 48%,#0755ef 49%)}
.ms-theme-circuit{background:linear-gradient(140deg,#071d1b 47%,#1dda98 48%,#e94d59 95%)}
html[data-ms-theme="neon"]{--bg:#090c10;--card:#192025;--panel:#11181d;--soft:#273139;--text:#f6f9f0;--muted:#bbcac3;--mint:#b7f529;--line:rgba(171,240,71,.25);--ms-glass:rgba(12,18,19,.95);--ms-field:#151e22;--ms-hero-a:#151e1e;--ms-hero-b:#2a3120;--ms-focus:#b7f529;color-scheme:dark}
html[data-ms-theme="frost"]{--bg:#f5f9ff;--card:#fff;--panel:#eaf3ff;--soft:#dceaff;--text:#102a4f;--muted:#436180;--mint:#145ddd;--line:rgba(33,83,148,.20);--ms-glass:rgba(247,251,255,.97);--ms-field:#fff;--ms-hero-a:#e0efff;--ms-hero-b:#eff8ff;--ms-focus:#145ddd;color-scheme:light}
html[data-ms-theme="gold"]{--bg:#08182b;--card:#162943;--panel:#102138;--soft:#243955;--text:#fff8ea;--muted:#b4c9d9;--mint:#ffce63;--line:rgba(255,206,99,.25);--ms-glass:rgba(8,24,43,.95);--ms-field:#112744;--ms-hero-a:#0e3159;--ms-hero-b:#15334b;--ms-focus:#ffdc90;color-scheme:dark}
html[data-ms-theme="sun"]{--bg:#fff6ae;--card:#fffdf2;--panel:#fff0b1;--soft:#ffe381;--text:#1e2022;--muted:#585348;--mint:#765000;--line:rgba(74,57,12,.27);--ms-glass:rgba(255,251,226,.97);--ms-field:#fffef4;--ms-hero-a:#ffe052;--ms-hero-b:#fff2a9;--ms-focus:#4d3400;color-scheme:light}
html[data-ms-theme="lilac"]{--bg:#f8f5ff;--card:#fff;--panel:#f0eafa;--soft:#e3d9f5;--text:#291848;--muted:#68577d;--mint:#7435b7;--line:rgba(109,59,171,.21);--ms-glass:rgba(252,248,255,.97);--ms-field:#fff;--ms-hero-a:#e4d7fa;--ms-hero-b:#f5eeff;--ms-focus:#7234b9;color-scheme:light}
html[data-ms-theme="royal"]{--bg:#f8faff;--card:#fff;--panel:#edf2ff;--soft:#dde7ff;--text:#10234e;--muted:#516483;--mint:#064eda;--line:rgba(6,78,218,.20);--ms-glass:rgba(248,250,255,.97);--ms-field:#fff;--ms-hero-a:#cbdfff;--ms-hero-b:#eef5ff;--ms-focus:#004be0;color-scheme:light}
html[data-ms-theme="circuit"]{--bg:#071611;--card:#152a25;--panel:#10221f;--soft:#24443a;--text:#eafff4;--muted:#aed4c2;--mint:#53eba2;--line:rgba(83,235,162,.22);--ms-glass:rgba(8,28,24,.94);--ms-field:#0d2c22;--ms-hero-a:#0c4434;--ms-hero-b:#182e2b;--ms-focus:#8bffd0;color-scheme:dark}

/* Provide proven light-mode legibility on the new light palettes. */
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .hero{border-color:#b6d7d3}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .hero p{color:#365c68}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .hero h1 em{color:#096b68}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .logo{background:linear-gradient(135deg,#d7efeb,#c8e0ef);border-color:#80b3a9}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .logo svg{stroke:#0a7169}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .brand-title span{color:#076b63}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .desktop-nav button,.ms-appearance-dialog .ms-appearance-options select{color:var(--text)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .eyebrow,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .linkbtn{color:#08716c}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .art-cover{background:linear-gradient(145deg,#bad6e4,#d9e9e5)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .art-cover::after{color:#2b6973aa}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .stat-glyph{color:#0b7772;background:#deefec}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .stat-tile,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .feature-card,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .form-card{color:var(--text)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .section-head span,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .card-bottom{color:#526c76}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .episode-card{box-shadow:0 8px 26px rgba(44,80,81,.055)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .episode-title,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .episode-desc{color:var(--text)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .episode-meta{color:#54747e}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .play-overlay{background:#096b68;color:white}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .pill{color:#085f56;background:#e0f2ec}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .searchbar input{color:#18323d}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .searchbar input::placeholder{color:#65808a}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .field input,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .field textarea,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .field select{color:#18323d}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .banner{color:#225f5c;background:#e7f5f1}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .cr-card strong{color:#163a3d}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .cr-card small{color:#56777c}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .cr-tabs button.active{background:#096d67;color:white}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-transcript{color:#18323d}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-series-card{box-shadow:0 10px 28px rgba(32,76,79,.07)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-series-mark{background:linear-gradient(135deg,#8fd4cc,#c7d9ed);color:#124d56}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .player-sheet{background:radial-gradient(circle at 28% 0%,#dbe4ee,#f3faf9 62%)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .bottom-nav{box-shadow:0 -8px 28px rgba(13,67,79,.07)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .mini-player{box-shadow:0 12px 32px rgba(20,65,73,.16)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-theme-choice:has(input:checked){background:#e4f4f0}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-appearance-dialog{box-shadow:0 30px 100px rgba(15,59,64,.26)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .about-panel,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .about-value,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .about-disclosure,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .about-legal,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .empty,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .cr-block{background:var(--card);color:var(--text);border-color:var(--line)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .about-brand-panel{background:linear-gradient(120deg,#d5f0ec,#e7e6fa);border-color:#b0d5d2;color:var(--text)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .about-brand-mark{color:#146863;background:linear-gradient(145deg,#b5e3db,#d3d9ee)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .about-value-icon{background:#d7eee9;color:#167c72}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .med-hero{background:linear-gradient(135deg,#d8edea,#e7e7f7);border-color:#b6d9d3;color:var(--text)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .med-category,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .med-category[data-med-category="all"]{background:var(--card);border-color:var(--line);color:var(--text)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .med-category.active,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .med-category[data-med-category="all"].active{background:#d6f1ec;border-color:#31978b;color:#174d4e}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .med-wellbeing-note{background:#e3f2ec;border-color:var(--line);color:#36575d}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .med-grid .pill{background:#e8eafa;color:#47458a}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-series-hero{background:linear-gradient(120deg,#d8efea,#e0eaf7);color:var(--text)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-series-episode,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-series-admin-row{background:var(--card);color:var(--text);border-color:var(--line)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-series-number{background:#d0eee8;color:#125a55}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-series-progress{background:#c7dbd8}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-series-start,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-sheet-series button,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-series-admin-row button{background:#d8eeeb;color:#155950;border-color:#a0cbc5}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-listening-tools,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-queue-panel,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-learning-panel,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .learning-editor{background:var(--panel);color:var(--text);border-color:var(--line)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-listening-line select,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-queue-item button{background:var(--card);color:var(--text);border-color:var(--line)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .sheet-footer select,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .sheet-footer .sheet-tool,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .med-player-options select{background:#dfedeb;border-color:#b5d1cc;color:#1b444a}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .sheet-footer button,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .sheet-close,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .sheet-icon{color:var(--text)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .sheet-icon{background:#e3eeed;border-color:#d0e0de}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .med-player-options{background:#e3f2f0;border-color:var(--line);color:var(--text)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .cr-form input,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .cr-form select,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .cr-form textarea,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .cr-smallbtn{background:var(--card);color:var(--text);border-color:var(--line)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .cr-tag{background:#e1f3ee;color:#155f54}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .notice{background:#ddefe8;color:#175950}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .notice.error,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .cr-alert{background:#fbe5e6;color:#872a39}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-appearance-dialog .ms-appearance-note{color:var(--muted)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .player-sheet .time-row,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .sheet-subtitle,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .sheet-description,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .speed-wrap,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-motion-status{color:#375a64}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .player-sheet .transport button,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .sheet-top .sheet-icon,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .sheet-footer .sheet-tool{color:#17404a;border-color:#b5d0d0}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .sheet-heading b,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .sheet-title,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-listening-line label{color:#18323d}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .sheet-heading-overline{color:#096b68}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .transport .play-large{color:#092934;background:#59dfc1}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .sheet-footer select,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-listening-line select{color:#18323d;background:#fff;border-color:#aacbc7}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-listening-tools,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-queue-panel,:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .ms-learning-panel{color:#18323d;background:#eaf4f2}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .sheet-footer{border-color:#bed5d4}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .time-row{color:#375a64}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .player-sheet .transport button:not(.play-large){color:#17404a}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .player-sheet .transport .play-large{color:#fff!important;background:#067568!important}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .player-sheet{background:radial-gradient(circle at 28% 0%,#dce9ea,#f4f8f7 66%)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .player-sheet .ms-domain-label{color:color-mix(in srgb,var(--ms-domain) 72%,#142b32)}

html[data-ms-theme="frost"] body,html[data-ms-theme="royal"] body{background:radial-gradient(ellipse 72% 28% at 80% 0%,#d9e9ff,transparent 75%),var(--bg)}
html[data-ms-theme="sun"] body{background:radial-gradient(ellipse 82% 42% at 90% 0%,#ffe348,transparent 75%),var(--bg)}
html[data-ms-theme="lilac"] body{background:radial-gradient(ellipse 75% 38% at 86% 0%,#e5d5ff,transparent 75%),var(--bg)}
html[data-ms-theme="neon"] .hero,html[data-ms-theme="gold"] .hero,html[data-ms-theme="circuit"] .hero{border-color:var(--line)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .hero h1 em{color:var(--mint)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .play-overlay{background:var(--mint);color:#fff}
html[data-ms-theme="sun"] .play-overlay{color:#fff}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .pill{color:var(--mint);background:var(--soft)}
:is(html[data-ms-theme="frost"],html[data-ms-theme="sun"],html[data-ms-theme="lilac"],html[data-ms-theme="royal"]) .bottom-nav button.active{color:var(--mint)}
@media(max-width:400px){.ms-theme-choices{grid-template-columns:repeat(3,minmax(0,1fr));}.ms-theme-choice{min-height:86px}}

@media(max-width:400px){.ms-theme-choice:last-child:nth-child(3n + 1){grid-column:2}}
