/* NightCast Theme System — tokens drive the whole interface, not only the page background. */
:root{
  --nc-theme-bg:#050816;--nc-theme-surface:#0B1228;--nc-theme-surface-2:#101b35;
  --nc-theme-primary:#8B5CF6;--nc-theme-secondary:#38BDF8;--nc-theme-accent:#67E8F9;
  --nc-theme-text:#F8FAFC;--nc-theme-muted:#94A3B8;--nc-theme-border:rgba(148,163,184,.2);
  --nc-theme-glow:rgba(139,92,246,.2);--nc-theme-image:none;
  color-scheme:dark;
}
:root[data-theme="midnight-cosmos"]{--nc-theme-bg:#050816;--nc-theme-surface:#0B1228;--nc-theme-surface-2:#101b35;--nc-theme-primary:#8B5CF6;--nc-theme-secondary:#38BDF8;--nc-theme-accent:#67E8F9;--nc-theme-text:#F8FAFC;--nc-theme-muted:#94A3B8;--nc-theme-border:rgba(148,163,184,.2);--nc-theme-glow:rgba(139,92,246,.2);color-scheme:dark}
:root[data-theme="aurora"]{--nc-theme-bg:#071410;--nc-theme-surface:#10251F;--nc-theme-surface-2:#17352b;--nc-theme-primary:#34D399;--nc-theme-secondary:#2DD4BF;--nc-theme-accent:#A78BFA;--nc-theme-text:#F0FDF4;--nc-theme-muted:#A7C4B5;--nc-theme-border:rgba(110,231,183,.2);--nc-theme-glow:rgba(45,212,191,.18);color-scheme:dark}
:root[data-theme="studio-noir"]{--nc-theme-bg:#101112;--nc-theme-surface:#1B1D20;--nc-theme-surface-2:#25282d;--nc-theme-primary:#F59E0B;--nc-theme-secondary:#FBBF24;--nc-theme-accent:#4ADE80;--nc-theme-text:#F5F5F4;--nc-theme-muted:#A1A1AA;--nc-theme-border:rgba(251,191,36,.2);--nc-theme-glow:rgba(245,158,11,.17);color-scheme:dark}
:root[data-theme="deep-ocean"]{--nc-theme-bg:#061826;--nc-theme-surface:#0B2638;--nc-theme-surface-2:#10354a;--nc-theme-primary:#0EA5E9;--nc-theme-secondary:#22D3EE;--nc-theme-accent:#2DD4BF;--nc-theme-text:#F0F9FF;--nc-theme-muted:#94B8C8;--nc-theme-border:rgba(34,211,238,.2);--nc-theme-glow:rgba(14,165,233,.18);color-scheme:dark}
:root[data-theme="royal-gold"]{--nc-theme-bg:#0B0B0D;--nc-theme-surface:#17171B;--nc-theme-surface-2:#222126;--nc-theme-primary:#D4AF37;--nc-theme-secondary:#F3D98B;--nc-theme-accent:#A67C36;--nc-theme-text:#FAF7F0;--nc-theme-muted:#A8A29E;--nc-theme-border:rgba(212,175,55,.23);--nc-theme-glow:rgba(212,175,55,.15);color-scheme:dark}
:root[data-theme="neon-city"]{--nc-theme-bg:#100817;--nc-theme-surface:#20102B;--nc-theme-surface-2:#2b1738;--nc-theme-primary:#F472B6;--nc-theme-secondary:#22D3EE;--nc-theme-accent:#C084FC;--nc-theme-text:#FAFAFF;--nc-theme-muted:#B8A6C9;--nc-theme-border:rgba(192,132,252,.23);--nc-theme-glow:rgba(244,114,182,.18);color-scheme:dark}
:root[data-theme="persian-heritage"]{--nc-theme-bg:#101A32;--nc-theme-surface:#172747;--nc-theme-surface-2:#20365b;--nc-theme-primary:#2CB7A5;--nc-theme-secondary:#4263EB;--nc-theme-accent:#D6AD60;--nc-theme-text:#F8F4EA;--nc-theme-muted:#B0BDD0;--nc-theme-border:rgba(44,183,165,.22);--nc-theme-glow:rgba(44,183,165,.16);color-scheme:dark}
:root[data-theme="moonlight"]{--nc-theme-bg:#F7F8FC;--nc-theme-surface:#FFFFFF;--nc-theme-surface-2:#EEF1FA;--nc-theme-primary:#6366F1;--nc-theme-secondary:#38BDF8;--nc-theme-accent:#8B5CF6;--nc-theme-text:#172033;--nc-theme-muted:#64748B;--nc-theme-border:rgba(100,116,139,.2);--nc-theme-glow:rgba(99,102,241,.12);color-scheme:light}
html{background:var(--nc-theme-bg);scrollbar-color:var(--nc-theme-primary) var(--nc-theme-bg)}
body{background:radial-gradient(ellipse at 15% 10%,var(--nc-theme-glow),transparent 38%),radial-gradient(ellipse at 85% 82%,color-mix(in srgb,var(--nc-theme-secondary) 8%,transparent),transparent 42%),linear-gradient(145deg,var(--nc-theme-bg),color-mix(in srgb,var(--nc-theme-bg) 78%,var(--nc-theme-primary) 22%))!important;color:var(--nc-theme-text)!important;transition:background-color .28s ease,color .28s ease}
body::selection{background:var(--nc-theme-primary);color:#fff}
.nc-header,.nc-nav,.nc-mobile-drawer,.mobile-nav,.section,.hero,.hero-card,.podcast-card,.podcast-grid>.podcast-card,
.nc-about-hero,.nc-about-block,.nc-mission-card,.nc-editorial-card,.nc-studio,.nc-contact-card,.nc-contact-panel,
.profile-panel,.nc-now-playing,.nc-detail-dialog,.nc-comments-card,.nc-comments-modal .nc-comments-card,
#playerBar,.player-bar,.nc-constellation,.nc-planet,.nc-view-settings,.nc-stat,.stat,.toast,
.book-summary-request-panel,.nc-drawer-panel{
  color:var(--nc-theme-text);
}
.nc-header{background:color-mix(in srgb,var(--nc-theme-bg) 90%,transparent)!important;border-color:var(--nc-theme-border)!important}
.nc-nav,.nc-mobile-drawer,.mobile-nav{background:color-mix(in srgb,var(--nc-theme-surface) 92%,transparent)!important;border-color:var(--nc-theme-border)!important}
.hero,.hero-card,.nc-about-hero,.nc-about-block,.nc-mission-card,.nc-editorial-card,.nc-studio,.nc-contact-card,.nc-contact-panel,
.profile-panel,.nc-detail-dialog,.nc-comments-card,.nc-constellation,.nc-view-settings,.stat,.profile-stat,.profile-favorite-item{
  background:linear-gradient(145deg,color-mix(in srgb,var(--nc-theme-surface) 96%,var(--nc-theme-primary) 4%),var(--nc-theme-bg))!important;
  border-color:var(--nc-theme-border)!important;color:var(--nc-theme-text)!important;
}
.podcast-card,.podcast-grid>.podcast-card,.nc-planet{background:linear-gradient(155deg,var(--nc-theme-surface),color-mix(in srgb,var(--nc-theme-bg) 84%,var(--nc-theme-primary) 16%))!important;border-color:var(--nc-theme-border)!important;color:var(--nc-theme-text)!important;box-shadow:0 14px 40px color-mix(in srgb,var(--nc-theme-bg) 75%,transparent),0 0 0 1px color-mix(in srgb,var(--nc-theme-primary) 7%,transparent)}
h1,h2,h3,h4,.podcast-title,.nc-section-title,.nc-about-title,.profile-user-info h2,.nc-now-title,.nc-detail-dialog h2{color:var(--nc-theme-text)!important}
p,.nc-about-lead,.nc-section-text,.podcast-desc,.profile-section>p,.nc-comments-subtitle,.nc-now-description{color:var(--nc-theme-muted)!important}
a:not(.btn):not(.brand),.nav-link,.nc-nav .nav-link{color:var(--nc-theme-text)}
a:not(.btn):not(.brand):hover,.nav-link:hover,.nc-nav .nav-link.active{color:var(--nc-theme-primary)!important}
.btn-primary,.button-primary,.nc-comments-submit,.nc-now-control.primary,.nc-planet:hover .nc-planet-body,.profile-settings-button:hover{
  background:linear-gradient(135deg,var(--nc-theme-primary),var(--nc-theme-secondary))!important;color:#fff!important;border-color:transparent!important
}
.btn-secondary,.btn,.control-btn,.icon-btn,.nc-now-control,.nc-like-button,.profile-favorite-actions button,.profile-close{
  border-color:var(--nc-theme-border)!important
}
.btn-secondary,.control-btn,.icon-btn,.nc-now-control,.nc-like-button,.profile-favorite-actions button,.profile-close{
  background:color-mix(in srgb,var(--nc-theme-surface) 84%,var(--nc-theme-primary) 16%)!important;color:var(--nc-theme-text)!important
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--nc-theme-secondary)!important;outline-offset:3px}
input,textarea,select,.search-input,.form-group input,.form-group textarea{background:var(--nc-theme-surface)!important;color:var(--nc-theme-text)!important;border-color:var(--nc-theme-border)!important}
input::placeholder,textarea::placeholder{color:var(--nc-theme-muted)!important}
.profile-overlay,.nc-comments-modal,.nc-podcast-detail{background:color-mix(in srgb,var(--nc-theme-bg) 76%,transparent)!important}
.profile-panel,.nc-detail-dialog,.nc-comments-card{box-shadow:0 28px 90px color-mix(in srgb,var(--nc-theme-bg) 70%,transparent),0 0 0 1px var(--nc-theme-border)!important}
.profile-icon,.profile-settings-button>i:first-child,.nc-mission-icon,.nc-identity-quote i{color:var(--nc-theme-primary)!important;background:color-mix(in srgb,var(--nc-theme-primary) 14%,transparent)!important}
.profile-settings-button{background:color-mix(in srgb,var(--nc-theme-surface) 88%,var(--nc-theme-primary) 12%)!important;border-color:var(--nc-theme-border)!important;color:var(--nc-theme-text)!important}
.profile-stat strong,.nc-section-eyebrow,.nc-section-intro .nc-section-eyebrow,.nc-kicker,.nc-comments-kicker,.nc-now-kicker{color:var(--nc-theme-primary)!important}
.profile-favorite-item,.profile-stat,.nc-identity-quote,.nc-process-step,.nc-mission-card,.nc-why,.nc-editorial-card{border-color:var(--nc-theme-border)!important}
.nc-audio-visualizer-wrap,.nc-waveform,.nc-radio-stage,.nc-radio-dial{--nc-wave-color:var(--nc-theme-primary)}
.nc-waveform span{background:linear-gradient(180deg,var(--nc-theme-secondary),var(--nc-theme-primary))!important}
#playerBar,.player-bar,.nc-now-playing{background:linear-gradient(150deg,var(--nc-theme-surface),var(--nc-theme-bg))!important;border-color:var(--nc-theme-border)!important}
.progress,.volume,#progressBar,#volumeBar{accent-color:var(--nc-theme-primary)}
.nc-scroll-cue{background:color-mix(in srgb,var(--nc-theme-surface) 88%,transparent)!important;border-color:var(--nc-theme-border)!important;color:var(--nc-theme-text)!important}
.nc-scroll-cue i,.nc-frequency,.nc-radio-caption{color:var(--nc-theme-secondary)!important}
.nc-constellation-sun{box-shadow:0 0 50px var(--nc-theme-glow)!important}
.nc-constellation-orbit{border-color:var(--nc-theme-border)!important}
.nc-planet-ring{border-color:color-mix(in srgb,var(--nc-theme-primary) 55%,transparent)!important}
.nc-card-stat-count,.nc-comment-action .nc-card-stat-count{color:var(--nc-theme-secondary)!important}
.nc-like-button[aria-pressed="true"],.favorite.active{color:#fb7185!important}
footer,.site-footer{background:var(--nc-theme-surface)!important;color:var(--nc-theme-muted)!important;border-color:var(--nc-theme-border)!important}
:root[data-theme="moonlight"] .nc-cosmos-canvas{opacity:.13}
:root[data-theme="moonlight"] .nc-header{box-shadow:0 6px 30px rgba(15,23,42,.06)!important}
:root[data-theme="moonlight"] .profile-close,:root[data-theme="moonlight"] .control-btn{color:var(--nc-theme-text)!important}
:root[data-theme="moonlight"] .nc-entry-status,:root[data-theme="moonlight"] .nc-entry-tagline{color:#e8edff!important}
:root[data-theme="moonlight"] .nc-entry-brand{color:#fff!important}

/* Polished theme selector */
.nc-theme-settings{padding-top:8px}
.nc-theme-settings-head{display:flex;align-items:flex-start;gap:12px;margin:0 0 18px}
.nc-theme-back{width:40px;height:40px;flex:0 0 40px;border:1px solid var(--nc-theme-border);border-radius:13px;background:var(--nc-theme-surface);color:var(--nc-theme-text);cursor:pointer}
.nc-theme-heading{min-width:0;flex:1}
.nc-theme-heading h3{margin:0 0 5px;text-align:right;font-size:1.15rem}
.nc-theme-heading p{margin:0;color:var(--nc-theme-muted);font-size:.82rem;line-height:1.8}
.nc-theme-current{display:inline-flex;align-items:center;gap:7px;margin:0 0 14px;padding:7px 11px;border:1px solid var(--nc-theme-border);border-radius:999px;color:var(--nc-theme-muted);font-size:.75rem}
.nc-theme-current-dot{width:8px;height:8px;border-radius:50%;background:var(--nc-theme-primary);box-shadow:0 0 12px var(--nc-theme-primary)}
.nc-theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.nc-theme-option{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;padding:0;border:1px solid var(--nc-theme-border);border-radius:17px;background:var(--nc-theme-surface);color:var(--nc-theme-text);text-align:right;cursor:pointer;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.nc-theme-option:hover{transform:translateY(-2px);border-color:var(--nc-theme-primary);box-shadow:0 12px 28px var(--nc-theme-glow)}
.nc-theme-option[aria-pressed="true"]{border-color:var(--nc-theme-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--nc-theme-primary) 30%,transparent),0 12px 30px var(--nc-theme-glow)}
.nc-theme-image{position:relative;display:block;width:100%;aspect-ratio:16/8;overflow:hidden;background:linear-gradient(135deg,var(--nc-theme-surface),var(--nc-theme-primary))}
.nc-theme-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.nc-theme-option:hover .nc-theme-image img{transform:scale(1.045)}
.nc-theme-image:after{position:absolute;inset:0;content:"";background:linear-gradient(0deg,rgba(0,0,0,.58),transparent 72%)}
.nc-theme-selected{position:absolute;z-index:1;top:9px;left:9px;display:grid;place-items:center;width:27px;height:27px;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(4,8,18,.72);color:#fff;opacity:0;transform:scale(.8);transition:opacity .2s,transform .2s}
.nc-theme-option[aria-pressed="true"] .nc-theme-selected{opacity:1;transform:scale(1)}
.nc-theme-option-copy{display:flex;flex-direction:column;gap:4px;padding:11px 12px 12px}
.nc-theme-option-name{font-size:.88rem;font-weight:800;line-height:1.45}
.nc-theme-option-subtitle{font-size:.7rem;line-height:1.6;color:var(--nc-theme-muted)}
.nc-theme-swatches{display:flex;gap:5px;margin-top:5px;direction:ltr}
.nc-theme-swatches span{width:14px;height:14px;border-radius:50%;border:1px solid rgba(127,127,127,.22)}
.nc-theme-save-note{margin:14px 0 0;color:var(--nc-theme-muted);font-size:.72rem;line-height:1.8}
.nc-theme-save-note i{color:var(--nc-theme-primary);margin-inline-end:5px}
#profileThemeSettings[hidden],#profileLogged[hidden]{display:none!important}

/* Loader: real stage-based progress, with theme-specific atmosphere. */
#nc-entry-loader{background-color:var(--nc-theme-bg)!important;background-image:linear-gradient(145deg,color-mix(in srgb,var(--nc-theme-bg) 82%,transparent),color-mix(in srgb,var(--nc-theme-bg) 70%,transparent)),var(--nc-loader-image,none)!important;background-size:cover!important;background-position:center!important;color:var(--nc-theme-text)!important}
#nc-entry-loader .nc-entry-stars{opacity:.7}
#nc-entry-loader .nc-entry-orbit:before{border-color:color-mix(in srgb,var(--nc-theme-secondary) 75%,transparent)!important}
#nc-entry-loader .nc-entry-orbit:after{border-color:color-mix(in srgb,var(--nc-theme-primary) 70%,transparent)!important}
#nc-entry-loader .nc-entry-core{background:radial-gradient(circle at 32% 27%,#fff 0,color-mix(in srgb,var(--nc-theme-secondary) 72%,white) 12%,var(--nc-theme-primary) 35%,var(--nc-theme-bg) 76%)!important;box-shadow:0 0 26px var(--nc-theme-glow),0 0 68px color-mix(in srgb,var(--nc-theme-primary) 30%,transparent)!important}
#nc-entry-loader .nc-entry-brand{text-shadow:0 0 24px var(--nc-theme-glow)!important}
#nc-entry-loader .nc-entry-track{height:7px!important;background:rgba(255,255,255,.14)!important;border:1px solid var(--nc-theme-border)!important}
#nc-entry-loader .nc-entry-track:before{display:none!important;animation:none!important}
#nc-entry-loader .nc-entry-progress-fill{position:absolute;inset:0 auto 0 0;width:0%;border-radius:inherit;background:linear-gradient(90deg,var(--nc-theme-primary),var(--nc-theme-secondary),var(--nc-theme-accent));box-shadow:0 0 14px var(--nc-theme-glow);transition:width .28s ease;transform-origin:left center}
#nc-entry-loader .nc-entry-status{color:var(--nc-theme-muted)!important}
#nc-entry-loader .nc-entry-percent{margin-inline-start:8px;color:var(--nc-theme-secondary);font-variant-numeric:tabular-nums;font-weight:800}
:root[data-theme="studio-noir"] #nc-entry-loader .nc-entry-orbit:before,:root[data-theme="studio-noir"] #nc-entry-loader .nc-entry-orbit:after{border-radius:10px;transform:rotate(45deg) scaleX(1.1)!important}
:root[data-theme="deep-ocean"] #nc-entry-loader .nc-entry-stars{opacity:.18}
:root[data-theme="royal-gold"] #nc-entry-loader .nc-entry-core{background:radial-gradient(circle at 32% 27%,#fff8dc 0,#f3d98b 18%,#d4af37 38%,#241a09 78%)!important}
:root[data-theme="neon-city"] #nc-entry-loader .nc-entry-core{border-radius:24%;transform:rotate(45deg)}
:root[data-theme="persian-heritage"] #nc-entry-loader .nc-entry-orbit:before{border-style:dashed}
:root[data-theme="moonlight"] #nc-entry-loader .nc-entry-track{background:rgba(255,255,255,.22)!important}
@media(max-width:430px){.nc-theme-grid{gap:9px}.nc-theme-option-copy{padding:9px}.nc-theme-option-name{font-size:.8rem}.nc-theme-option-subtitle{font-size:.66rem}.nc-theme-image{aspect-ratio:16/9}.nc-theme-swatches span{width:12px;height:12px}}
@media(prefers-reduced-motion:reduce){.nc-theme-option,.nc-theme-image img,#nc-entry-loader .nc-entry-progress-fill{transition:none!important}.nc-theme-option:hover{transform:none}}


/* Keep the Google sign-in page in the same chosen visual system. */
:root[data-theme] body.cosmic-login{background:radial-gradient(ellipse at 18% 15%,var(--nc-theme-glow),transparent 42%),radial-gradient(ellipse at 82% 82%,color-mix(in srgb,var(--nc-theme-secondary) 12%,transparent),transparent 45%),var(--nc-theme-bg)!important;color:var(--nc-theme-text)!important}
:root[data-theme] body.cosmic-login .login-card{background:linear-gradient(145deg,color-mix(in srgb,var(--nc-theme-surface) 94%,var(--nc-theme-primary) 6%),var(--nc-theme-bg))!important;border-color:var(--nc-theme-border)!important;color:var(--nc-theme-text)!important;box-shadow:0 30px 90px color-mix(in srgb,var(--nc-theme-bg) 72%,transparent),0 0 0 1px var(--nc-theme-border)!important}
:root[data-theme] body.cosmic-login .login-card h1,:root[data-theme] body.cosmic-login .login-card h2,:root[data-theme] body.cosmic-login .login-card h3,:root[data-theme] body.cosmic-login .login-card strong{color:var(--nc-theme-text)!important}
:root[data-theme] body.cosmic-login .login-card p,:root[data-theme] body.cosmic-login .login-card small{color:var(--nc-theme-muted)!important}
:root[data-theme] body.cosmic-login .login-card input,:root[data-theme] body.cosmic-login .login-card button{border-color:var(--nc-theme-border)!important}
:root[data-theme] body.cosmic-login .login-card button:not([disabled]){background:linear-gradient(135deg,var(--nc-theme-primary),var(--nc-theme-secondary))!important;color:#fff!important}
:root[data-theme] body.cosmic-login .cosmos-nebula{opacity:.28}
:root[data-theme] body.cosmic-login .cosmos-horizon{border-color:var(--nc-theme-border)!important;box-shadow:0 0 40px var(--nc-theme-glow)!important}
:root[data-theme] body.cosmic-login .auth-loader .loader-box{background:var(--nc-theme-surface)!important;border-color:var(--nc-theme-border)!important;color:var(--nc-theme-text)!important}

/* Keep the Google sign-in page in the same chosen visual system. */
:root[data-theme] body.cosmic-login{background:radial-gradient(ellipse at 18% 15%,var(--nc-theme-glow),transparent 42%),radial-gradient(ellipse at 82% 82%,color-mix(in srgb,var(--nc-theme-secondary) 12%,transparent),transparent 45%),var(--nc-theme-bg)!important;color:var(--nc-theme-text)!important}
:root[data-theme] body.cosmic-login .login-card{background:linear-gradient(145deg,color-mix(in srgb,var(--nc-theme-surface) 94%,var(--nc-theme-primary) 6%),var(--nc-theme-bg))!important;border-color:var(--nc-theme-border)!important;color:var(--nc-theme-text)!important;box-shadow:0 30px 90px color-mix(in srgb,var(--nc-theme-bg) 72%,transparent),0 0 0 1px var(--nc-theme-border)!important}
:root[data-theme] body.cosmic-login .login-card h1,:root[data-theme] body.cosmic-login .login-card h2,:root[data-theme] body.cosmic-login .login-card h3,:root[data-theme] body.cosmic-login .login-card strong{color:var(--nc-theme-text)!important}
:root[data-theme] body.cosmic-login .login-card p,:root[data-theme] body.cosmic-login .login-card small{color:var(--nc-theme-muted)!important}
:root[data-theme] body.cosmic-login .login-card input,:root[data-theme] body.cosmic-login .login-card button{border-color:var(--nc-theme-border)!important}
:root[data-theme] body.cosmic-login .login-card button:not([disabled]){background:linear-gradient(135deg,var(--nc-theme-primary),var(--nc-theme-secondary))!important;color:#fff!important}
:root[data-theme] body.cosmic-login .cosmos-nebula{opacity:.28}
:root[data-theme] body.cosmic-login .cosmos-horizon{border-color:var(--nc-theme-border)!important;box-shadow:0 0 40px var(--nc-theme-glow)!important}
:root[data-theme] body.cosmic-login .auth-loader .loader-box{background:var(--nc-theme-surface)!important;border-color:var(--nc-theme-border)!important;color:var(--nc-theme-text)!important}

:root[data-theme="aurora"] .nc-cosmos-canvas{filter:hue-rotate(92deg) saturate(1.15)}
:root[data-theme="studio-noir"] .nc-cosmos-canvas{filter:hue-rotate(155deg) saturate(1.05)}
:root[data-theme="deep-ocean"] .nc-cosmos-canvas{filter:hue-rotate(25deg) saturate(1.1)}
:root[data-theme="royal-gold"] .nc-cosmos-canvas{filter:hue-rotate(155deg) saturate(1.4)}
:root[data-theme="neon-city"] .nc-cosmos-canvas{filter:hue-rotate(115deg) saturate(1.5)}
:root[data-theme="persian-heritage"] .nc-cosmos-canvas{filter:hue-rotate(60deg) saturate(1.2)}


/* GLOBAL THEME PALETTE + TEXTURE LAYER — final cascade after legacy cosmos rules. */
:root[data-theme="midnight-cosmos"]{--nc-theme-texture:url("/assets/themes/midnight-cosmos.jpg");--nc-theme-button-text:#fff;--nc-theme-control-border:rgba(148,163,184,.28);--nc-theme-card-shadow:rgba(1,5,20,.34)}
:root[data-theme="aurora"]{--nc-theme-texture:url("/assets/themes/aurora.jpg");--nc-theme-button-text:#06251b;--nc-theme-control-border:rgba(110,231,183,.34);--nc-theme-card-shadow:rgba(0,18,12,.30)}
:root[data-theme="studio-noir"]{--nc-theme-texture:url("/assets/themes/studio-noir.jpg");--nc-theme-button-text:#17120a;--nc-theme-control-border:rgba(251,191,36,.32);--nc-theme-card-shadow:rgba(0,0,0,.42)}
:root[data-theme="deep-ocean"]{--nc-theme-texture:url("/assets/themes/deep-ocean.jpg");--nc-theme-button-text:#032333;--nc-theme-control-border:rgba(34,211,238,.34);--nc-theme-card-shadow:rgba(0,12,24,.36)}
:root[data-theme="royal-gold"]{--nc-theme-texture:url("/assets/themes/royal-gold.jpg");--nc-theme-button-text:#211706;--nc-theme-control-border:rgba(212,175,55,.34);--nc-theme-card-shadow:rgba(0,0,0,.42)}
:root[data-theme="neon-city"]{--nc-theme-texture:url("/assets/themes/neon-city.jpg");--nc-theme-button-text:#24091c;--nc-theme-control-border:rgba(244,114,182,.34);--nc-theme-card-shadow:rgba(14,0,24,.40)}
:root[data-theme="persian-heritage"]{--nc-theme-texture:url("/assets/themes/persian-heritage.jpg");--nc-theme-button-text:#062a28;--nc-theme-control-border:rgba(214,173,96,.36);--nc-theme-card-shadow:rgba(6,13,32,.35)}
:root[data-theme="moonlight"]{--nc-theme-texture:url("/assets/themes/moonlight.jpg");--nc-theme-button-text:#fff;--nc-theme-control-border:rgba(100,116,139,.48);--nc-theme-card-shadow:rgba(30,41,59,.10);--nc-theme-surface:#fffaf0;--nc-theme-surface-2:#f1eadc;--nc-theme-text:#242733;--nc-theme-muted:#5c6473;--nc-theme-border:rgba(100,116,139,.28);--nc-theme-glow:rgba(99,102,241,.10)}
html[data-theme] body{position:relative;background-color:var(--nc-theme-bg)!important;background-image:linear-gradient(135deg,color-mix(in srgb,var(--nc-theme-bg) 91%,transparent),color-mix(in srgb,var(--nc-theme-bg) 87%,var(--nc-theme-primary) 13%)),url("/assets/themes/midnight-cosmos.jpg")!important;background-image:linear-gradient(135deg,color-mix(in srgb,var(--nc-theme-bg) 91%,transparent),color-mix(in srgb,var(--nc-theme-bg) 87%,var(--nc-theme-primary) 13%)),var(--nc-theme-texture)!important;background-size:cover,cover!important;background-position:center,center!important;background-attachment:fixed,fixed!important;color:var(--nc-theme-text)!important}
html[data-theme] body::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse at 10% 0,color-mix(in srgb,var(--nc-theme-primary) 12%,transparent),transparent 44%),radial-gradient(ellipse at 90% 100%,color-mix(in srgb,var(--nc-theme-secondary) 10%,transparent),transparent 46%);opacity:.9}
html[data-theme] #podcastGrid.podcast-grid>.podcast-card,
html[data-theme] #podcastGrid.podcast-grid>article.podcast-card,
html[data-theme] .podcast-grid>.podcast-card,
html[data-theme] .podcast-grid>article.podcast-card,
html[data-theme] .podcast-grid>div.podcast-card{
  background-image:linear-gradient(145deg,color-mix(in srgb,var(--nc-theme-surface) 94%,transparent),color-mix(in srgb,var(--nc-theme-bg) 90%,var(--nc-theme-primary) 10%)),var(--nc-theme-texture)!important;
  background-size:cover,cover!important;background-position:center,center!important;
  background-color:var(--nc-theme-surface)!important;border:1px solid var(--nc-theme-control-border)!important;
  color:var(--nc-theme-text)!important;box-shadow:0 16px 42px var(--nc-theme-card-shadow),inset 0 1px color-mix(in srgb,var(--nc-theme-text) 7%,transparent)!important;
}
html[data-theme] .podcast-card h2,html[data-theme] .podcast-card h3,html[data-theme] .podcast-card h4,html[data-theme] .podcast-card .podcast-title,html[data-theme] .podcast-card strong{color:var(--nc-theme-text)!important}
html[data-theme] .podcast-card p,html[data-theme] .podcast-card .podcast-desc,html[data-theme] .podcast-card small,html[data-theme] .podcast-card .podcast-meta{color:var(--nc-theme-muted)!important}
html[data-theme] .podcast-card button:not(.play-card),html[data-theme] .podcast-card .icon-btn,html[data-theme] .podcast-card .control-btn,html[data-theme] .podcast-card .nc-like-button{background:color-mix(in srgb,var(--nc-theme-surface) 92%,var(--nc-theme-primary) 8%)!important;color:var(--nc-theme-text)!important;border:1px solid var(--nc-theme-control-border)!important}
html[data-theme] .podcast-card .play-card,html[data-theme] .btn-primary,html[data-theme] .latest-play,html[data-theme] .nc-comments-submit{background:linear-gradient(135deg,var(--nc-theme-primary),var(--nc-theme-secondary))!important;color:var(--nc-theme-button-text)!important;border:1px solid color-mix(in srgb,var(--nc-theme-primary) 55%,transparent)!important}
html[data-theme] .podcast-card .podcast-cover-label,html[data-theme] .podcast-card .podcast-tag{border-color:var(--nc-theme-control-border)!important}
html[data-theme] button,html[data-theme] input,html[data-theme] select,html[data-theme] textarea{accent-color:var(--nc-theme-primary)}
html[data-theme="moonlight"] .podcast-card .play-card,html[data-theme="moonlight"] .btn-primary,html[data-theme="moonlight"] .latest-play{color:#fff!important}
@media(prefers-reduced-motion:reduce){html[data-theme] body,html[data-theme] .podcast-card{transition:none!important}}


/* Carry the selected art direction into the sign-in view and major secondary panels. */
html[data-theme] body.cosmic-login{background-image:linear-gradient(135deg,color-mix(in srgb,var(--nc-theme-bg) 91%,transparent),color-mix(in srgb,var(--nc-theme-bg) 87%,var(--nc-theme-primary) 13%)),var(--nc-theme-texture)!important;background-size:cover,cover!important;background-position:center,center!important;background-attachment:fixed,fixed!important}
html[data-theme] .profile-panel,html[data-theme] .nc-comments-card,html[data-theme] .nc-detail-dialog,html[data-theme] .hero-card,html[data-theme] .nc-about-hero,html[data-theme] .nc-contact-card{background-image:linear-gradient(145deg,color-mix(in srgb,var(--nc-theme-surface) 96%,transparent),color-mix(in srgb,var(--nc-theme-bg) 92%,var(--nc-theme-primary) 8%)),var(--nc-theme-texture)!important;background-size:cover,cover!important;background-position:center,center!important}


/* Semantic interaction states are explicit and contrast-safe in every theme. */
:root[data-theme]{--nc-theme-success:#16a34a;--nc-theme-warning:#d97706;--nc-theme-danger:#dc2626;--nc-theme-info:#0284c7;--nc-theme-disabled:#737b89;--nc-theme-hover:color-mix(in srgb,var(--nc-theme-primary) 12%,var(--nc-theme-surface));--nc-theme-active:color-mix(in srgb,var(--nc-theme-primary) 22%,var(--nc-theme-surface))}
:root[data-theme="moonlight"]{--nc-theme-success:#15803d;--nc-theme-warning:#a16207;--nc-theme-danger:#b91c1c;--nc-theme-info:#0369a1;--nc-theme-disabled:#6b7280}
html[data-theme] button:disabled,html[data-theme] button[aria-disabled="true"],html[data-theme] .is-disabled,html[data-theme] [data-state="disabled"]{opacity:.62!important;color:var(--nc-theme-disabled)!important;border-color:var(--nc-theme-border)!important;cursor:not-allowed!important;box-shadow:none!important}
html[data-theme] button:not(:disabled):not([aria-disabled="true"]):active,html[data-theme] .btn:not(:disabled):active,html[data-theme] .nc-theme-ribbon-option[aria-pressed="true"]{background-color:var(--nc-theme-active)}
html[data-theme] .status-success,html[data-theme] .badge-success,html[data-theme] [data-status="success"]{color:var(--nc-theme-success)!important;border-color:color-mix(in srgb,var(--nc-theme-success) 40%,transparent)!important}
html[data-theme] .status-warning,html[data-theme] .badge-warning,html[data-theme] [data-status="warning"]{color:var(--nc-theme-warning)!important;border-color:color-mix(in srgb,var(--nc-theme-warning) 40%,transparent)!important}
html[data-theme] .status-danger,html[data-theme] .badge-danger,html[data-theme] [data-status="error"]{color:var(--nc-theme-danger)!important;border-color:color-mix(in srgb,var(--nc-theme-danger) 40%,transparent)!important}
html[data-theme] .status-info,html[data-theme] .badge-info,html[data-theme] [data-status="info"]{color:var(--nc-theme-info)!important;border-color:color-mix(in srgb,var(--nc-theme-info) 40%,transparent)!important}
.nc-theme-ribbon-swatches,.nc-theme-swatches{display:none!important}

@media(max-width:760px){html[data-theme] body{background-attachment:scroll,scroll!important}}


/* GLOBAL TEXTURE VISIBILITY FIX (2026-10-19).
   Previous overlays were 91% opaque on the page, 94% on cards and 96% on panels,
   which effectively hid the Unsplash images even though their URLs were configured.
   These deliberately translucent overlays reveal the selected theme artwork while preserving text contrast. */
html[data-theme] body{
  background-image:
    linear-gradient(135deg,
      color-mix(in srgb,var(--nc-theme-bg) 42%,transparent),
      color-mix(in srgb,var(--nc-theme-bg) 30%,transparent)),
    var(--nc-theme-texture)!important;
  background-size:cover,cover!important;
  background-position:center,center!important;
  background-attachment:scroll,scroll!important;
}
html[data-theme] #podcastGrid.podcast-grid>.podcast-card,
html[data-theme] #podcastGrid.podcast-grid>article.podcast-card,
html[data-theme] .podcast-grid>.podcast-card,
html[data-theme] .podcast-grid>article.podcast-card,
html[data-theme] .podcast-grid>div.podcast-card{
  background-image:
    linear-gradient(145deg,
      color-mix(in srgb,var(--nc-theme-surface) 62%,transparent),
      color-mix(in srgb,var(--nc-theme-bg) 48%,transparent)),
    var(--nc-theme-texture)!important;
  background-size:cover,cover!important;
  background-position:center,center!important;
}
html[data-theme] .profile-panel,
html[data-theme] .nc-comments-card,
html[data-theme] .nc-detail-dialog,
html[data-theme] .hero-card,
html[data-theme] .nc-about-hero,
html[data-theme] .nc-contact-card{
  background-image:
    linear-gradient(145deg,
      color-mix(in srgb,var(--nc-theme-surface) 70%,transparent),
      color-mix(in srgb,var(--nc-theme-bg) 55%,transparent)),
    var(--nc-theme-texture)!important;
  background-size:cover,cover!important;
  background-position:center,center!important;
}
@media(max-width:700px){
  html[data-theme] body{background-attachment:scroll,scroll!important}
}


/* Theme readability & panel hierarchy — shared design tokens, applied after legacy rules. */
:root[data-theme]{
  --nc-theme-muted:#B6C3D6;
  --nc-theme-panel-inset:color-mix(in srgb,var(--nc-theme-surface-2) 86%,var(--nc-theme-primary) 14%);
  --nc-theme-divider:color-mix(in srgb,var(--nc-theme-primary) 34%,var(--nc-theme-border));
}
:root[data-theme="aurora"]{--nc-theme-muted:#B9D9CB;--nc-theme-divider:rgba(52,211,153,.42)}
:root[data-theme="studio-noir"]{--nc-theme-muted:#D0C8B9;--nc-theme-divider:rgba(251,191,36,.42)}
:root[data-theme="deep-ocean"]{--nc-theme-muted:#B4D7E6;--nc-theme-divider:rgba(34,211,238,.42)}
:root[data-theme="royal-gold"]{--nc-theme-muted:#D9D0B8;--nc-theme-divider:rgba(212,175,55,.48)}
:root[data-theme="neon-city"]{--nc-theme-muted:#E0C6E4;--nc-theme-divider:rgba(244,114,182,.44)}
:root[data-theme="persian-heritage"]{--nc-theme-muted:#D0D9E8;--nc-theme-divider:rgba(44,183,165,.44)}
:root[data-theme="moonlight"]{--nc-theme-muted:#4B5568;--nc-theme-divider:rgba(79,70,229,.28);--nc-theme-panel-inset:#F3F5FC}
html[data-theme] .podcast-card{
  border:1px solid var(--nc-theme-divider)!important;
  box-shadow:0 16px 38px var(--nc-theme-card-shadow,rgba(0,0,0,.22)),inset 0 1px 0 color-mix(in srgb,var(--nc-theme-text) 5%,transparent)!important;
}
html[data-theme] .podcast-info{
  min-width:0!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--nc-theme-surface) 94%,var(--nc-theme-primary) 6%),color-mix(in srgb,var(--nc-theme-bg) 90%,var(--nc-theme-surface) 10%))!important;
  color:var(--nc-theme-text)!important;
}
html[data-theme] .podcast-card-overline{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  padding:0 0 12px;margin:0 0 12px;
  border-bottom:1px solid var(--nc-theme-divider);
}
html[data-theme] .podcast-title{
  color:var(--nc-theme-text)!important;
  font-size:clamp(1.22rem,1.15rem + .35vw,1.55rem)!important;
  font-weight:850!important;line-height:1.7!important;
  margin:0 0 10px!important;overflow-wrap:anywhere;
}
html[data-theme] .podcast-desc{
  color:var(--nc-theme-muted)!important;
  font-size:clamp(1rem,.96rem + .15vw,1.12rem)!important;
  line-height:2!important;overflow-wrap:anywhere;
}
html[data-theme] .podcast-info .meta{
  display:flex;flex-wrap:wrap;gap:8px 14px!important;
  padding:10px 12px;margin:0 0 14px;
  border:1px solid var(--nc-theme-border);
  border-radius:12px;
  background:var(--nc-theme-panel-inset);
  color:var(--nc-theme-muted)!important;
  font-size:.94rem!important;line-height:1.8;
}
html[data-theme] .podcast-info .meta span{min-width:0;overflow-wrap:anywhere}
html[data-theme] .podcast-info .meta i{color:var(--nc-theme-secondary)!important;margin-inline-end:5px}
html[data-theme] .podcast-category,html[data-theme] .podcast-tag,html[data-theme] .podcast-episode{
  color:var(--nc-theme-text)!important;
  border:1px solid var(--nc-theme-divider)!important;
  background:color-mix(in srgb,var(--nc-theme-primary) 15%,var(--nc-theme-surface))!important;
  font-size:.88rem!important;font-weight:750!important;line-height:1.7;
}
html[data-theme] .podcast-card-tags{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px}
html[data-theme] .podcast-info .card-footer{
  display:flex;align-items:center;flex-wrap:wrap;gap:10px!important;
  margin-top:16px;padding-top:16px!important;
  border-top:1px solid var(--nc-theme-divider)!important;
}
html[data-theme] .podcast-info .card-footer .btn,
html[data-theme] .podcast-info .card-footer .favorite,
html[data-theme] .podcast-info .card-footer .nc-comment-action{
  min-height:42px;font-size:.92rem!important;font-weight:750!important;
}
html[data-theme] .podcast-info .nc-comment-action,
html[data-theme] .podcast-info .favorite{
  background:var(--nc-theme-panel-inset)!important;
  color:var(--nc-theme-text)!important;border:1px solid var(--nc-theme-divider)!important;
}
html[data-theme] .podcast-info .nc-card-stat-count{color:var(--nc-theme-secondary)!important;font-size:.9rem!important;font-weight:850}
html[data-theme] .podcast-cover{
  display:grid!important;place-items:center!important;
  align-self:flex-start!important;aspect-ratio:1/1!important;
  min-height:0!important;height:auto!important;
  background:var(--nc-theme-bg)!important;
}
html[data-theme] .podcast-cover img{
  display:block!important;width:100%!important;height:100%!important;
  min-height:0!important;aspect-ratio:1/1!important;
  object-fit:contain!important;object-position:50% 50%!important;
  margin:auto!important;
}
html[data-theme] .podcast-cover .cover-shade{pointer-events:none}
@media(max-width:900px){
  html[data-theme] .podcast-info{padding:clamp(16px,3vw,24px)!important}
  html[data-theme] .podcast-title{font-size:clamp(1.18rem,4.4vw,1.4rem)!important}
  html[data-theme] .podcast-desc{font-size:1rem!important}
  html[data-theme] .podcast-info .meta{font-size:.9rem!important;padding:10px}
}
@media(max-width:380px){
  html[data-theme] .podcast-title{font-size:1.12rem!important}
  html[data-theme] .podcast-desc{font-size:.98rem!important}
  html[data-theme] .podcast-info .card-footer .btn,
  html[data-theme] .podcast-info .card-footer .favorite,
  html[data-theme] .podcast-info .card-footer .nc-comment-action{min-height:40px;font-size:.86rem!important}
}


/* Moonlight refinement: replace leftover gray surfaces with clean, very light
   moon-white / ice-blue tones. Scoped exclusively to the Moonlight theme. */
:root[data-theme="moonlight"]{
  --nc-theme-bg:#FBFCFF;
  --nc-theme-surface:#FFFFFF;
  --nc-theme-surface-2:#F8FAFF;
  --nc-theme-panel-inset:#FAFBFF;
  --nc-theme-muted:#596579;
  --nc-theme-border:rgba(99,102,241,.14);
  --nc-theme-divider:rgba(99,102,241,.2);
  --nc-theme-card-shadow:rgba(71,85,105,.09);
}
:root[data-theme="moonlight"] .podcast-card,
:root[data-theme="moonlight"] .podcast-info,
:root[data-theme="moonlight"] .hero-card,
:root[data-theme="moonlight"] .nc-about-hero,
:root[data-theme="moonlight"] .nc-about-block,
:root[data-theme="moonlight"] .nc-mission-card,
:root[data-theme="moonlight"] .nc-editorial-card,
:root[data-theme="moonlight"] .nc-studio,
:root[data-theme="moonlight"] .nc-contact-card,
:root[data-theme="moonlight"] .nc-contact-panel,
:root[data-theme="moonlight"] .profile-panel,
:root[data-theme="moonlight"] .nc-detail-dialog,
:root[data-theme="moonlight"] .nc-comments-card,
:root[data-theme="moonlight"] .nc-view-settings,
:root[data-theme="moonlight"] .nc-stat,
:root[data-theme="moonlight"] .stat,
:root[data-theme="moonlight"] .profile-stat,
:root[data-theme="moonlight"] .profile-favorite-item,
:root[data-theme="moonlight"] .nc-process-step,
:root[data-theme="moonlight"] .nc-why,
:root[data-theme="moonlight"] .nc-identity-quote,
:root[data-theme="moonlight"] .nc-theme-option,
:root[data-theme="moonlight"] .book-summary-request-panel{
  background-color:#FFFFFF!important;
  border-color:rgba(99,102,241,.15)!important;
}
:root[data-theme="moonlight"] .podcast-card,
:root[data-theme="moonlight"] .podcast-info,
:root[data-theme="moonlight"] .hero-card,
:root[data-theme="moonlight"] .nc-about-hero,
:root[data-theme="moonlight"] .nc-about-block,
:root[data-theme="moonlight"] .nc-mission-card,
:root[data-theme="moonlight"] .nc-editorial-card,
:root[data-theme="moonlight"] .nc-studio,
:root[data-theme="moonlight"] .nc-contact-card,
:root[data-theme="moonlight"] .nc-contact-panel,
:root[data-theme="moonlight"] .profile-panel,
:root[data-theme="moonlight"] .nc-detail-dialog,
:root[data-theme="moonlight"] .nc-comments-card,
:root[data-theme="moonlight"] .nc-view-settings,
:root[data-theme="moonlight"] .nc-stat,
:root[data-theme="moonlight"] .stat,
:root[data-theme="moonlight"] .profile-stat,
:root[data-theme="moonlight"] .profile-favorite-item{
  background-image:linear-gradient(145deg,#FFFFFF 0%,#FBFCFF 100%)!important;
}
:root[data-theme="moonlight"] .podcast-info .meta,
:root[data-theme="moonlight"] .podcast-category,
:root[data-theme="moonlight"] .podcast-tag,
:root[data-theme="moonlight"] .podcast-episode,
:root[data-theme="moonlight"] .nc-comment-action,
:root[data-theme="moonlight"] .favorite,
:root[data-theme="moonlight"] .profile-settings-button,
:root[data-theme="moonlight"] .btn-secondary,
:root[data-theme="moonlight"] .control-btn,
:root[data-theme="moonlight"] .icon-btn,
:root[data-theme="moonlight"] .nc-now-control,
:root[data-theme="moonlight"] input,
:root[data-theme="moonlight"] textarea,
:root[data-theme="moonlight"] select{
  background-color:#FCFDFF!important;
  border-color:rgba(99,102,241,.16)!important;
}
:root[data-theme="moonlight"] .podcast-info .meta,
:root[data-theme="moonlight"] .podcast-desc,
:root[data-theme="moonlight"] .profile-section>p,
:root[data-theme="moonlight"] .nc-comments-subtitle,
:root[data-theme="moonlight"] .nc-now-description{
  color:#596579!important;
}
:root[data-theme="moonlight"] .nc-header,
:root[data-theme="moonlight"] .nc-nav,
:root[data-theme="moonlight"] .nc-mobile-drawer,
:root[data-theme="moonlight"] .mobile-nav,
:root[data-theme="moonlight"] footer,
:root[data-theme="moonlight"] .site-footer,
:root[data-theme="moonlight"] #playerBar,
:root[data-theme="moonlight"] .player-bar,
:root[data-theme="moonlight"] .nc-now-playing{
  background-color:rgba(255,255,255,.97)!important;
  border-color:rgba(99,102,241,.14)!important;
}
:root[data-theme="moonlight"] input::placeholder,
:root[data-theme="moonlight"] textarea::placeholder{color:#8994A7!important}


/* Moonlight: remove the gray strip behind podcast category and episode labels.
   Keep this fix limited to the metadata row and its two pills. */
:root[data-theme="moonlight"] .podcast-info .podcast-card-overline{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  border-bottom-color:rgba(99,102,241,.14)!important;
}
:root[data-theme="moonlight"] .podcast-info .podcast-card-overline .podcast-category,
:root[data-theme="moonlight"] .podcast-info .podcast-card-overline .podcast-episode{
  background:#FFFFFF!important;
  background-image:none!important;
  color:#4147A8!important;
  border:1px solid rgba(99,102,241,.18)!important;
  box-shadow:0 1px 3px rgba(71,85,105,.04)!important;
}
:root[data-theme="moonlight"] .podcast-info .meta{
  background:#FFFFFF!important;
  background-image:none!important;
  border-color:rgba(99,102,241,.12)!important;
}


/* Theme-aware catalogue presentation switch: visible inactive state and unmistakable active state. */
:root[data-theme] #podcasts .nc-view-settings{
  background:linear-gradient(135deg,
    color-mix(in srgb,var(--nc-theme-surface) 94%,var(--nc-theme-primary) 6%),
    color-mix(in srgb,var(--nc-theme-bg) 90%,var(--nc-theme-surface) 10%))!important;
  border:1px solid var(--nc-theme-divider,var(--nc-theme-border))!important;
  box-shadow:0 8px 24px var(--nc-theme-card-shadow,color-mix(in srgb,var(--nc-theme-bg) 18%,transparent))!important;
}
:root[data-theme] #podcasts .nc-view-settings-label{color:var(--nc-theme-text)!important;font-weight:800}
:root[data-theme] #podcasts .nc-view-switch{
  padding:4px!important;gap:5px!important;
  background:color-mix(in srgb,var(--nc-theme-bg) 78%,var(--nc-theme-surface) 22%)!important;
  border:1px solid var(--nc-theme-control-border,var(--nc-theme-border))!important;
  border-radius:13px!important;
}
:root[data-theme] #podcasts .nc-view-button{
  min-height:42px!important;padding:8px 15px!important;
  color:var(--nc-theme-text)!important;
  background:var(--nc-theme-surface)!important;
  border:1px solid var(--nc-theme-control-border,var(--nc-theme-border))!important;
  box-shadow:none!important;opacity:1!important;
}
:root[data-theme] #podcasts .nc-view-button:hover{
  color:var(--nc-theme-text)!important;
  background:var(--nc-theme-hover,var(--nc-theme-surface-2))!important;
  border-color:var(--nc-theme-primary)!important;
}
:root[data-theme] #podcasts .nc-view-button.is-active,
:root[data-theme] #podcasts .nc-view-button[aria-pressed="true"]{
  color:var(--nc-theme-button-text,#fff)!important;
  background:linear-gradient(135deg,var(--nc-theme-primary),var(--nc-theme-secondary))!important;
  border-color:var(--nc-theme-primary)!important;
  box-shadow:0 3px 10px var(--nc-theme-glow),inset 0 0 0 1px color-mix(in srgb,var(--nc-theme-button-text,#fff) 18%,transparent)!important;
  font-weight:850!important;
}
:root[data-theme] #podcasts .nc-view-button.is-active i,
:root[data-theme] #podcasts .nc-view-button[aria-pressed="true"] i{color:inherit!important}
:root[data-theme] #podcasts .nc-view-button:focus-visible{outline:3px solid var(--nc-theme-secondary)!important;outline-offset:3px!important}

/* Moonlight: clean porcelain/cream surfaces, charcoal copy and crisp indigo controls. */
:root[data-theme="moonlight"]{
  --nc-theme-bg:#FBFCFF;
  --nc-theme-surface:#FFFEFA;
  --nc-theme-surface-2:#F3F0E8;
  --nc-theme-panel-inset:#F8F5ED;
  --nc-theme-text:#242733;
  --nc-theme-muted:#596273;
  --nc-theme-border:rgba(100,116,139,.25);
  --nc-theme-divider:rgba(100,116,139,.24);
  --nc-theme-control-border:rgba(100,116,139,.58);
  --nc-theme-button-text:#FFFFFF;
  --nc-theme-hover:#F0ECFF;
  --nc-theme-primary:#5145CD;
  --nc-theme-secondary:#2775C8;
  --nc-theme-accent:#7668E8;
  --nc-theme-glow:rgba(81,69,205,.13);
  --nc-theme-card-shadow:rgba(40,48,70,.09);
}
:root[data-theme="moonlight"] #podcasts .nc-view-settings{
  background:linear-gradient(135deg,#FFFEFA 0%,#F5F1E7 100%)!important;
  border-color:rgba(100,116,139,.32)!important;
}
:root[data-theme="moonlight"] #podcasts .nc-view-switch{
  background:#E8EAF2!important;border-color:#B8BFCE!important;
}
:root[data-theme="moonlight"] #podcasts .nc-view-button{
  background:#FFFEFA!important;color:#303747!important;
  border-color:#AEB6C6!important;
}
:root[data-theme="moonlight"] #podcasts .nc-view-button:hover{
  background:#F0ECFF!important;border-color:#5145CD!important;color:#28215F!important;
}
:root[data-theme="moonlight"] #podcasts .nc-view-button.is-active,
:root[data-theme="moonlight"] #podcasts .nc-view-button[aria-pressed="true"]{
  background:#5145CD!important;color:#FFFFFF!important;border-color:#3930A8!important;
  box-shadow:0 3px 9px rgba(57,48,168,.24),inset 0 0 0 1px rgba(255,255,255,.24)!important;
}
:root[data-theme="moonlight"] .podcast-info .podcast-card-overline .podcast-category,
:root[data-theme="moonlight"] .podcast-info .podcast-card-overline .podcast-episode,
:root[data-theme="moonlight"] .podcast-info .meta,
:root[data-theme="moonlight"] .podcast-info .favorite,
:root[data-theme="moonlight"] .podcast-info .nc-comment-action,
:root[data-theme="moonlight"] .podcast-info .card-footer .btn-secondary{
  background:#FFFEFA!important;background-image:none!important;
  color:#303747!important;border-color:#C3C9D5!important;
}
:root[data-theme="moonlight"] .podcast-info .podcast-card-overline .podcast-category,
:root[data-theme="moonlight"] .podcast-info .podcast-card-overline .podcast-episode{
  background:#F8F5ED!important;color:#393579!important;border-color:#D3CDBD!important;
}
:root[data-theme="moonlight"] #podcasts .podcast-card,
:root[data-theme="moonlight"] #podcasts .podcast-info,
:root[data-theme="moonlight"] #podcasts .podcast-info .meta,
:root[data-theme="moonlight"] #podcasts .podcast-card-overline{
  box-shadow:none!important;
}


/* Theme-aware catalogue presentation switch: clear active and inactive states. */
:root[data-theme] #podcasts .nc-view-settings{background:linear-gradient(135deg,color-mix(in srgb,var(--nc-theme-surface) 94%,var(--nc-theme-primary) 6%),color-mix(in srgb,var(--nc-theme-bg) 90%,var(--nc-theme-surface) 10%))!important;border:1px solid var(--nc-theme-divider,var(--nc-theme-border))!important;box-shadow:0 8px 24px var(--nc-theme-card-shadow,color-mix(in srgb,var(--nc-theme-bg) 18%,transparent))!important}
:root[data-theme] #podcasts .nc-view-settings-label{color:var(--nc-theme-text)!important;font-weight:800}
:root[data-theme] #podcasts .nc-view-switch{padding:4px!important;gap:5px!important;background:color-mix(in srgb,var(--nc-theme-bg) 78%,var(--nc-theme-surface) 22%)!important;border:1px solid var(--nc-theme-control-border,var(--nc-theme-border))!important;border-radius:13px!important}
:root[data-theme] #podcasts .nc-view-button{min-height:42px!important;padding:8px 15px!important;color:var(--nc-theme-text)!important;background:var(--nc-theme-surface)!important;border:1px solid var(--nc-theme-control-border,var(--nc-theme-border))!important;box-shadow:none!important;opacity:1!important}
:root[data-theme] #podcasts .nc-view-button:hover{color:var(--nc-theme-text)!important;background:var(--nc-theme-hover,var(--nc-theme-surface-2))!important;border-color:var(--nc-theme-primary)!important}
:root[data-theme] #podcasts .nc-view-button.is-active,:root[data-theme] #podcasts .nc-view-button[aria-pressed="true"]{color:var(--nc-theme-button-text,#fff)!important;background:linear-gradient(135deg,var(--nc-theme-primary),var(--nc-theme-secondary))!important;border-color:var(--nc-theme-primary)!important;box-shadow:0 3px 10px var(--nc-theme-glow),inset 0 0 0 1px color-mix(in srgb,var(--nc-theme-button-text,#fff) 18%,transparent)!important;font-weight:850!important}
:root[data-theme] #podcasts .nc-view-button:focus-visible{outline:3px solid var(--nc-theme-secondary)!important;outline-offset:3px!important}

/* Moonlight refinement: porcelain and warm ivory surfaces, charcoal copy, indigo active controls. */
:root[data-theme="moonlight"]{--nc-theme-bg:#FBFCFF;--nc-theme-surface:#FFFEFA;--nc-theme-surface-2:#F3F0E8;--nc-theme-panel-inset:#F8F5ED;--nc-theme-text:#242733;--nc-theme-muted:#596273;--nc-theme-border:rgba(100,116,139,.25);--nc-theme-divider:rgba(100,116,139,.24);--nc-theme-control-border:rgba(100,116,139,.58);--nc-theme-button-text:#FFFFFF;--nc-theme-hover:#F0ECFF;--nc-theme-primary:#5145CD;--nc-theme-secondary:#2775C8;--nc-theme-accent:#7668E8;--nc-theme-glow:rgba(81,69,205,.13);--nc-theme-card-shadow:rgba(40,48,70,.09)}
:root[data-theme="moonlight"] #podcasts .nc-view-settings{background:linear-gradient(135deg,#FFFEFA 0%,#F5F1E7 100%)!important;border-color:rgba(100,116,139,.32)!important}
:root[data-theme="moonlight"] #podcasts .nc-view-switch{background:#E8EAF2!important;border-color:#B8BFCE!important}
:root[data-theme="moonlight"] #podcasts .nc-view-button{background:#FFFEFA!important;color:#303747!important;border-color:#AEB6C6!important}
:root[data-theme="moonlight"] #podcasts .nc-view-button:hover{background:#F0ECFF!important;border-color:#5145CD!important;color:#28215F!important}
:root[data-theme="moonlight"] #podcasts .nc-view-button.is-active,:root[data-theme="moonlight"] #podcasts .nc-view-button[aria-pressed="true"]{background:#5145CD!important;color:#FFFFFF!important;border-color:#3930A8!important;box-shadow:0 3px 9px rgba(57,48,168,.24),inset 0 0 0 1px rgba(255,255,255,.24)!important}
:root[data-theme="moonlight"] .podcast-info .podcast-card-overline .podcast-category,:root[data-theme="moonlight"] .podcast-info .podcast-card-overline .podcast-episode{background:#F8F5ED!important;background-image:none!important;color:#393579!important;border:1px solid #D3CDBD!important;box-shadow:none!important}
:root[data-theme="moonlight"] .podcast-info .meta,:root[data-theme="moonlight"] .podcast-info .favorite,:root[data-theme="moonlight"] .podcast-info .nc-comment-action,:root[data-theme="moonlight"] .podcast-info .card-footer .btn-secondary{background:#FFFEFA!important;background-image:none!important;color:#303747!important;border-color:#C3C9D5!important}
:root[data-theme="moonlight"] #podcasts .podcast-card,:root[data-theme="moonlight"] #podcasts .podcast-info,:root[data-theme="moonlight"] #podcasts .podcast-info .meta,:root[data-theme="moonlight"] #podcasts .podcast-card-overline{box-shadow:none!important}


/* Podcast details dialog: deliberate spacing, quiet structure, and readable Moonlight text. */
:root[data-theme] #ncPodcastDetail .nc-detail-dialog{
  box-sizing:border-box!important;
  padding:0!important;
  border:1px solid var(--nc-theme-divider,var(--nc-theme-border))!important;
  border-radius:24px!important;
  color:var(--nc-theme-text)!important;
}
:root[data-theme] #ncPodcastDetail .nc-detail-topbar{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:16px!important;padding:14px 20px!important;
  border-bottom:1px solid var(--nc-theme-divider,var(--nc-theme-border))!important;
  background:var(--nc-theme-panel-inset,var(--nc-theme-surface-2))!important;
}
:root[data-theme] #ncPodcastDetail .nc-detail-scroll{
  box-sizing:border-box!important;padding:clamp(18px,3vw,30px)!important;
  line-height:1.9!important;color:var(--nc-theme-text)!important;
}
:root[data-theme] #ncPodcastDetail .nc-detail-hero{
  display:grid!important;grid-template-columns:minmax(110px,clamp(110px,22vw,190px)) minmax(0,1fr)!important;
  align-items:start!important;gap:clamp(16px,3vw,26px)!important;
  margin:0 0 22px!important;padding:0 0 22px!important;
  border-bottom:1px solid var(--nc-theme-divider,var(--nc-theme-border))!important;
}
:root[data-theme] #ncPodcastDetail .nc-detail-heading{min-width:0!important}
:root[data-theme] #ncPodcastDetail .nc-detail-heading h2{
  margin:8px 0 10px!important;color:var(--nc-theme-text)!important;
  font-size:clamp(1.2rem,2.3vw,1.7rem)!important;line-height:1.7!important;
  overflow-wrap:anywhere!important;
}
:root[data-theme] #ncPodcastDetail .nc-detail-author,
:root[data-theme] #ncPodcastDetail .nc-detail-section p,
:root[data-theme] #ncPodcastDetail .nc-detail-transcript-body,
:root[data-theme] #ncPodcastDetail .nc-detail-no-transcript{
  color:var(--nc-theme-muted)!important;line-height:2.05!important;
}
:root[data-theme] #ncPodcastDetail .nc-detail-meta{
  display:flex!important;flex-wrap:wrap!important;gap:8px!important;
  margin:14px 0 18px!important;
}
:root[data-theme] #ncPodcastDetail .nc-detail-meta>span{
  padding:5px 10px!important;border:1px solid var(--nc-theme-divider,var(--nc-theme-border))!important;
  border-radius:999px!important;background:var(--nc-theme-panel-inset,var(--nc-theme-surface-2))!important;
  color:var(--nc-theme-text)!important;font-size:.84rem!important;
}
:root[data-theme] #ncPodcastDetail .nc-detail-section{
  margin:0 0 16px!important;padding:clamp(15px,2.2vw,22px)!important;
  border:1px solid var(--nc-theme-divider,var(--nc-theme-border))!important;
  border-radius:16px!important;background:var(--nc-theme-surface)!important;
}
:root[data-theme] #ncPodcastDetail .nc-detail-section h3{
  margin:0 0 10px!important;color:var(--nc-theme-text)!important;
  font-size:1rem!important;line-height:1.7!important;
}
:root[data-theme] #ncPodcastDetail .nc-detail-section p{margin:0!important}
:root[data-theme] #ncPodcastDetail .nc-detail-transcript{
  margin-top:12px!important;border:1px solid var(--nc-theme-divider,var(--nc-theme-border))!important;
  border-radius:13px!important;background:var(--nc-theme-panel-inset,var(--nc-theme-surface-2))!important;
}
:root[data-theme] #ncPodcastDetail .nc-detail-transcript summary{
  padding:12px 14px!important;color:var(--nc-theme-text)!important;font-weight:750!important;line-height:1.8!important;
}
:root[data-theme] #ncPodcastDetail .nc-detail-transcript-body{
  padding:0 14px 16px!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;
}
:root[data-theme] #ncPodcastDetail .nc-detail-tags{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
:root[data-theme] #ncPodcastDetail .nc-detail-tags>span{
  padding:5px 10px!important;border:1px solid var(--nc-theme-divider,var(--nc-theme-border))!important;
  border-radius:999px!important;background:var(--nc-theme-panel-inset,var(--nc-theme-surface-2))!important;
  color:var(--nc-theme-text)!important;
}
:root[data-theme="moonlight"]{
  --nc-theme-muted:#454D5D;
  --nc-theme-divider:rgba(91,101,120,.24);
  --nc-theme-border:rgba(91,101,120,.22);
  --nc-theme-panel-inset:#F5F1E8;
}
:root[data-theme="moonlight"] #ncPodcastDetail .nc-detail-dialog{
  background:#FFFEFA!important;background-image:linear-gradient(145deg,#FFFEFA 0%,#F9F6EF 100%)!important;
  border-color:rgba(91,101,120,.24)!important;
  box-shadow:0 24px 72px rgba(32,39,54,.2),0 0 0 1px rgba(91,101,120,.05)!important;
}
:root[data-theme="moonlight"] #ncPodcastDetail .nc-detail-topbar{background:#F5F1E8!important;border-bottom-color:#D8D4CA!important}
:root[data-theme="moonlight"] #ncPodcastDetail .nc-detail-topbar>span{color:#3F4655!important;font-weight:800!important;letter-spacing:.02em!important}
:root[data-theme="moonlight"] #ncPodcastDetail .nc-detail-heading h2,
:root[data-theme="moonlight"] #ncPodcastDetail .nc-detail-section h3,
:root[data-theme="moonlight"] #ncPodcastDetail .nc-detail-transcript summary{color:#242936!important}
:root[data-theme="moonlight"] #ncPodcastDetail .nc-detail-author,
:root[data-theme="moonlight"] #ncPodcastDetail .nc-detail-section p,
:root[data-theme="moonlight"] #ncPodcastDetail .nc-detail-transcript-body,
:root[data-theme="moonlight"] #ncPodcastDetail .nc-detail-no-transcript{color:#454D5D!important}
:root[data-theme="moonlight"] #ncPodcastDetail .nc-detail-section{
  background:#FFFEFA!important;border-color:rgba(91,101,120,.22)!important;
}
:root[data-theme="moonlight"] #ncPodcastDetail .nc-detail-meta>span,
:root[data-theme="moonlight"] #ncPodcastDetail .nc-detail-tags>span{
  background:#F5F1E8!important;color:#353C4B!important;border-color:#D7D2C7!important;
}
:root[data-theme="moonlight"] #ncPodcastDetail .nc-detail-transcript{
  background:#F8F5ED!important;border-color:#D7D2C7!important;
}
:root[data-theme="moonlight"] #ncPodcastDetail .nc-detail-close{
  background:#FFFEFA!important;color:#343B49!important;border-color:#C7C4BC!important;
}
@media(max-width:600px){
  :root[data-theme] #ncPodcastDetail .nc-detail-scroll{padding:16px!important}
  :root[data-theme] #ncPodcastDetail .nc-detail-hero{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
  :root[data-theme] #ncPodcastDetail .nc-detail-cover{width:min(52vw,180px)!important;max-width:100%!important;margin-inline:auto!important}
  :root[data-theme] #ncPodcastDetail .nc-detail-heading{text-align:start!important}
  :root[data-theme] #ncPodcastDetail .nc-detail-section{padding:15px!important;margin-bottom:12px!important}
  :root[data-theme] #ncPodcastDetail .nc-detail-topbar{padding:12px 15px!important}
}

/* Touch dismissal affordance for the fixed mini player on phones and tablets. */
@media(max-width:1024px){
  #playerBar{touch-action:pan-y;will-change:transform,opacity;transition:transform .22s ease,opacity .22s ease}
  #playerBar.nc-player-dragging{transition:none!important;user-select:none}
}
@media(prefers-reduced-motion:reduce){
  #playerBar{transition:none!important}
}


/* Dedicated Android download feature in the global footer. */
.nc-footer .footer-inner{
  display:grid!important;
  grid-template-columns:minmax(0,.8fr) minmax(0,2fr);
  align-items:center;
  gap:clamp(18px,3vw,32px);
}
.nc-footer .footer-brand{grid-column:1;grid-row:1;min-width:0}
.nc-footer .footer-links{grid-column:2;grid-row:1;min-width:0}
.nc-footer-download{
  --nc-download-ink:var(--nc-theme-text,#F8FAFC);
  position:relative;isolation:isolate;overflow:hidden;
  grid-column:1/-1;grid-row:2;min-width:0;width:100%;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.9fr);
  align-items:center;gap:clamp(18px,3vw,34px);
  margin:clamp(12px,2vw,22px) 0;padding:clamp(22px,3.4vw,38px);
  border:1px solid color-mix(in srgb,var(--nc-theme-primary,#8B5CF6) 32%,var(--nc-theme-border,rgba(148,163,184,.2)));
  border-radius:clamp(20px,3vw,30px);
  color:var(--nc-download-ink);
  background:
    radial-gradient(ellipse at 12% 0%,color-mix(in srgb,var(--nc-theme-primary,#8B5CF6) 24%,transparent),transparent 48%),
    radial-gradient(ellipse at 100% 100%,color-mix(in srgb,var(--nc-theme-secondary,#38BDF8) 17%,transparent),transparent 45%),
    linear-gradient(135deg,color-mix(in srgb,var(--nc-theme-surface,#0B1228) 96%,var(--nc-theme-primary,#8B5CF6) 4%),var(--nc-theme-bg,#050816));
  box-shadow:0 18px 48px color-mix(in srgb,var(--nc-theme-bg,#050816) 30%,transparent),inset 0 1px 0 rgba(255,255,255,.08);
}
.nc-footer-download::before{
  content:"";position:absolute;z-index:-1;inset:-45% -12% auto auto;
  width:min(46vw,460px);aspect-ratio:1;border:1px solid color-mix(in srgb,var(--nc-theme-secondary,#38BDF8) 20%,transparent);
  border-radius:50%;pointer-events:none;transform:rotate(-18deg);
  box-shadow:0 0 0 22px color-mix(in srgb,var(--nc-theme-secondary,#38BDF8) 4%,transparent),0 0 0 48px color-mix(in srgb,var(--nc-theme-primary,#8B5CF6) 4%,transparent);
}
.nc-footer-download::after{
  content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;opacity:.32;
  background-image:radial-gradient(circle at 15% 30%,#fff 0 1px,transparent 1.7px),radial-gradient(circle at 72% 24%,#fff 0 1px,transparent 1.7px),radial-gradient(circle at 84% 76%,#fff 0 1px,transparent 1.7px);
  background-size:83px 79px,127px 113px,101px 97px;
}
.nc-footer-download-copy,.nc-footer-download-actions,.nc-footer-download-note{position:relative;z-index:1;min-width:0}
.nc-footer-download-eyebrow{display:inline-flex;align-items:center;gap:9px;margin-bottom:10px;color:var(--nc-theme-accent,var(--nc-theme-secondary,#38BDF8));font-size:.76rem;font-weight:850;letter-spacing:.09em}
.nc-footer-download-copy h2{margin:0 0 10px;color:var(--nc-download-ink);font-size:clamp(1.25rem,2.3vw,1.9rem);line-height:1.65;font-weight:850}
.nc-footer-download-copy p{margin:0;max-width:58ch;color:var(--nc-theme-muted,#94A3B8);font-size:.96rem;line-height:1.95}
.nc-footer-download-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.nc-footer-download-button{
  min-width:0;min-height:74px;display:flex;align-items:center;gap:11px;
  padding:13px 15px;border:1px solid var(--nc-theme-border,rgba(148,163,184,.2));border-radius:17px;
  color:var(--nc-download-ink);text-decoration:none!important;
  background:color-mix(in srgb,var(--nc-theme-surface,#0B1228) 88%,transparent);
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,filter .2s ease;
}
.nc-footer-download-button>i:first-child{flex:0 0 auto;font-size:1.65rem}
.nc-footer-download-button>span{display:grid;gap:3px;min-width:0}
.nc-footer-download-button strong{font-size:.94rem;line-height:1.6;font-weight:850}
.nc-footer-download-button small{font-size:.73rem;line-height:1.6;opacity:.82;overflow-wrap:anywhere}
.nc-footer-download-button .nc-footer-download-arrow{margin-inline-start:auto;flex:0 0 auto;font-size:.85rem;opacity:.8}
.nc-footer-download-direct{color:#fff!important;border-color:transparent;background:linear-gradient(125deg,var(--nc-theme-primary,#8B5CF6),var(--nc-theme-secondary,#38BDF8));box-shadow:0 10px 26px color-mix(in srgb,var(--nc-theme-primary,#8B5CF6) 22%,transparent)}
.nc-footer-download-market{border-color:color-mix(in srgb,var(--nc-theme-secondary,#38BDF8) 30%,var(--nc-theme-border,transparent))}
.nc-footer-download-button:hover{transform:translateY(-3px);border-color:var(--nc-theme-secondary,#38BDF8);box-shadow:0 14px 30px rgba(0,0,0,.18)}
.nc-footer-download-direct:hover{filter:brightness(1.08)}
.nc-footer-download-button:focus-visible{outline:3px solid var(--nc-theme-accent,var(--nc-theme-secondary,#38BDF8));outline-offset:4px}
.nc-footer-download-note{grid-column:1/-1;display:flex;align-items:center;gap:8px;margin-top:-8px;color:var(--nc-theme-muted,#94A3B8);font-size:.78rem;line-height:1.8}
.nc-footer-download-note i{color:var(--nc-theme-accent,var(--nc-theme-secondary,#38BDF8))}
:root[data-theme="moonlight"] .nc-footer-download{
  --nc-download-ink:#242936;
  border-color:rgba(91,101,120,.22);
  background:radial-gradient(ellipse at 12% 0%,rgba(99,102,241,.10),transparent 48%),radial-gradient(ellipse at 100% 100%,rgba(56,189,248,.10),transparent 45%),linear-gradient(135deg,#FFFEFA,#F5F3ED);
  box-shadow:0 18px 42px rgba(32,39,54,.09),inset 0 1px 0 rgba(255,255,255,.9);
}
:root[data-theme="moonlight"] .nc-footer-download-copy p,
:root[data-theme="moonlight"] .nc-footer-download-note{color:#535D70}
:root[data-theme="moonlight"] .nc-footer-download-market{background:rgba(255,255,255,.78);color:#30394A;border-color:rgba(91,101,120,.24)}
@media(max-width:760px){
  .nc-footer .footer-inner{grid-template-columns:minmax(0,1fr);gap:18px}
  .nc-footer .footer-brand,.nc-footer .footer-links{grid-column:1;grid-row:auto}
  .nc-footer-download{grid-column:1;grid-row:auto;grid-template-columns:minmax(0,1fr);gap:18px;padding:clamp(18px,5vw,26px)}
  .nc-footer-download-actions{grid-template-columns:minmax(0,1fr)}
  .nc-footer-download-button{min-height:68px}
  .nc-footer-download-note{grid-column:1;margin-top:0}
}
@media(prefers-reduced-motion:reduce){
  .nc-footer-download-button{transition:none!important}
  .nc-footer-download-button:hover{transform:none}
}


/* Keep the direct APK CTA legible in every anchor interaction state. */
.nc-footer-download .nc-footer-download-actions > a.nc-footer-download-direct,
.nc-footer-download .nc-footer-download-actions > a.nc-footer-download-direct:link,
.nc-footer-download .nc-footer-download-actions > a.nc-footer-download-direct:visited,
.nc-footer-download .nc-footer-download-actions > a.nc-footer-download-direct:hover,
.nc-footer-download .nc-footer-download-actions > a.nc-footer-download-direct:focus,
.nc-footer-download .nc-footer-download-actions > a.nc-footer-download-direct:focus-visible,
.nc-footer-download .nc-footer-download-actions > a.nc-footer-download-direct:active{
  color:#07130c!important;
  -webkit-text-fill-color:#07130c;
  text-decoration:none!important;
  background:linear-gradient(135deg,#3DDC84,#26c66b)!important;
  border-color:transparent!important;
}
.nc-footer-download .nc-footer-download-actions > a.nc-footer-download-direct:hover{
  filter:brightness(1.08);
  box-shadow:0 14px 32px rgba(61,220,132,.24);
  transform:translateY(-2px);
}
.nc-footer-download .nc-footer-download-actions > a.nc-footer-download-direct:focus-visible{
  outline:3px solid var(--nc-theme-accent,#38BDF8)!important;
  outline-offset:4px;
  box-shadow:0 0 0 5px rgba(61,220,132,.18),0 10px 26px rgba(61,220,132,.2);
}
.nc-footer-download .nc-footer-download-actions > a.nc-footer-download-direct:active{
  filter:brightness(.94);
  transform:translateY(0) scale(.985);
  box-shadow:0 4px 14px rgba(61,220,132,.2);
}
.nc-footer-download .nc-footer-download-actions > a.nc-footer-download-direct :is(strong,small,i){
  color:#07130c!important;
  -webkit-text-fill-color:#07130c;
}
.nc-footer-download .nc-footer-download-actions > a.nc-footer-download-direct .nc-footer-download-arrow{opacity:1}
@media(prefers-reduced-motion:reduce){
  .nc-footer-download .nc-footer-download-actions > a.nc-footer-download-direct:hover,
  .nc-footer-download .nc-footer-download-actions > a.nc-footer-download-direct:active{
    transform:none;
  }
}


/* Mobile podcast-detail typography: keep sections comfortably spaced in every theme. */
#ncPodcastDetail .nc-detail-section {
  padding: 18px !important;
  margin: 0 0 12px !important;
}
#ncPodcastDetail .nc-detail-section > p {
  margin: 10px 0 0 !important;
  line-height: 32px !important;
}
@media (max-width: 600px) {
  #ncPodcastDetail .nc-detail-section {
    padding: 16px !important;
    margin-bottom: 12px !important;
  }
  #ncPodcastDetail .nc-detail-section > p {
    line-height: 32px !important;
  }
}


/* Acceptance hardening: enforce computed detail spacing after all theme overrides. */
:root[data-theme] #ncPodcastDetail .nc-detail-section {
  padding: 18px !important;
  margin: 0 0 12px !important;
}
:root[data-theme] #ncPodcastDetail .nc-detail-section > p {
  margin: 10px 0 0 !important;
  line-height: 32px !important;
}
@media (max-width: 600px) {
  :root[data-theme] #ncPodcastDetail .nc-detail-section {
    padding: 16px !important;
    margin-bottom: 12px !important;
  }
  :root[data-theme] #ncPodcastDetail .nc-detail-section > p {
    line-height: 32px !important;
  }
}


/* Cross-device CDN artwork parity: keep theme artwork visible on phone, tablet and desktop.
   This intentionally overrides legacy breakpoint rules that can flatten or hide image layers. */
html[data-theme] body{
  background-color:var(--nc-theme-bg,#050816)!important;
  background-image:
    linear-gradient(135deg,
      color-mix(in srgb,var(--nc-theme-bg,#050816) 34%,transparent),
      color-mix(in srgb,var(--nc-theme-bg,#050816) 22%,transparent)),
    var(--nc-theme-texture, url("/assets/themes/midnight-cosmos.jpg"))!important;
  background-repeat:no-repeat,no-repeat!important;
  background-size:cover,cover!important;
  background-position:center center,center center!important;
  background-attachment:scroll,scroll!important;
}
html[data-theme] .nc-theme-image,
html[data-theme] .nc-theme-ribbon-preview{
  display:block!important;
  position:relative;
  overflow:hidden;
  background-color:var(--nc-theme-surface-2,var(--nc-theme-bg,#050816))!important;
}
html[data-theme] .nc-theme-image img,
html[data-theme] .nc-theme-ribbon-preview img{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%!important;
  height:100%!important;
  min-height:0;
  object-fit:cover!important;
  object-position:center!important;
}
html[data-theme] .nc-theme-ribbon-preview img{position:absolute;inset:0}
html[data-theme] .nc-theme-ribbon-preview:after{z-index:1;pointer-events:none}
html[data-theme] .nc-theme-ribbon-check{z-index:2}
@media (min-width:701px){
  html[data-theme] body{
    background-attachment:scroll,scroll!important;
    background-size:cover,cover!important;
    background-position:center top,center top!important;
  }
  html[data-theme] .nc-theme-image{min-height:110px}
  html[data-theme] .nc-theme-ribbon-preview{min-height:66px}
}
@media (min-width:701px) and (max-width:1100px){
  html[data-theme] .nc-theme-image{min-height:100px}
  html[data-theme] .nc-theme-ribbon-preview{min-height:62px}
}
@media (max-width:700px){
  html[data-theme] body{background-attachment:scroll,scroll!important}
}


/* Moonlight detail acceptance: lock readable copy and neutral section borders after every legacy override. */
html[data-theme="moonlight"] #ncPodcastDetail #ncPodcastDetailBody .nc-detail-section{
  border-top-color:rgba(91,101,120,.22)!important;
  border-right-color:rgba(91,101,120,.22)!important;
  border-bottom-color:rgba(91,101,120,.22)!important;
  border-left-color:rgba(91,101,120,.22)!important;
}
html[data-theme="moonlight"] #ncPodcastDetail #ncPodcastDetailBody .nc-detail-section > p,
html[data-theme="moonlight"] #ncPodcastDetail #ncPodcastDetailBody .nc-detail-section p#ncDetailReadableSample{
  color:#454D5D!important;
}


/* Use the official 512px NightCast app artwork in the initial listening-experience loader. */
#nc-entry-loader .nc-entry-orbit{display:grid!important;place-items:center!important}
#nc-entry-loader img.nc-entry-core{
  display:block!important;
  position:relative!important;
  z-index:2!important;
  width:clamp(64px,18vw,88px)!important;
  height:clamp(64px,18vw,88px)!important;
  max-width:72%!important;
  max-height:72%!important;
  object-fit:contain!important;
  border:0!important;
  border-radius:18px!important;
  background:transparent!important;
  box-shadow:0 0 28px var(--nc-theme-glow),0 0 60px color-mix(in srgb,var(--nc-theme-primary) 24%,transparent)!important;
  animation:none!important;
}
#nc-entry-loader .nc-entry-orbit .nc-entry-core{background:transparent!important}


/* Initial loader: remove the extra tile around the official logo and let the mark sit directly inside the orbital lines. */
#nc-entry-loader .nc-entry-orbit{
  width:clamp(132px,34vw,174px)!important;
  margin-bottom:26px!important;
}
#nc-entry-loader img.nc-entry-core{
  width:clamp(92px,23vw,116px)!important;
  height:clamp(92px,23vw,116px)!important;
  max-width:88%!important;
  max-height:88%!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
  object-fit:contain!important;
}

/* Moonlight only: restore strong contrast for the NightCast wordmark in the shared header.
   Applies consistently to phone, tablet and desktop without changing other themes. */
:root[data-theme="moonlight"] .nc-header .brand-text strong {
  color: #172033 !important;
  -webkit-text-fill-color: #172033 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Footer platform CTA: explicit states and theme-aware surface; scoped to this component. */
.nc-footer-download{background-image:linear-gradient(135deg,color-mix(in srgb,var(--nc-theme-surface) 96%,var(--nc-theme-primary) 4%),color-mix(in srgb,var(--nc-theme-bg) 88%,var(--nc-theme-primary) 12%))!important;background-color:var(--nc-theme-surface)!important;color:var(--nc-theme-text)!important;border:1px solid var(--nc-theme-border)!important;border-radius:24px;box-shadow:0 18px 48px color-mix(in srgb,var(--nc-theme-bg) 72%,transparent),0 0 0 1px var(--nc-theme-border)}
.nc-footer-download h2,.nc-footer-download h3{color:var(--nc-theme-text)!important}
.nc-footer-download-direct:link,.nc-footer-download-direct:visited,.nc-footer-download-direct:hover,.nc-footer-download-direct:focus,.nc-footer-download-direct:focus-visible,.nc-footer-download-direct:active{color:#07130c!important;-webkit-text-fill-color:#07130c!important;background-image:linear-gradient(135deg,#3DDC84,#26c66b)!important;border-color:#3DDC84!important;text-decoration:none!important}
.nc-footer-download-ios:link,.nc-footer-download-ios:visited,.nc-footer-download-ios:hover,.nc-footer-download-ios:focus,.nc-footer-download-ios:focus-visible,.nc-footer-download-ios:active{color:#fff!important;-webkit-text-fill-color:#fff!important}
.nc-footer-download-direct:focus-visible,.nc-footer-download-ios:focus-visible{outline:3px solid var(--nc-theme-secondary)!important;outline-offset:4px}
:root[data-theme="moonlight"] .nc-footer-download{background-image:linear-gradient(135deg,#fffefa 0%,#f4f2ec 54%,#e9edf8 100%)!important;background-color:#fffefa!important;border-color:#d8dce7!important;color:#242936!important;box-shadow:0 16px 42px rgba(30,41,59,.10),inset 0 1px rgba(255,255,255,.9)!important}
:root[data-theme="moonlight"] .nc-footer-download h2,:root[data-theme="moonlight"] .nc-footer-download h3{color:#242936!important}
:root[data-theme="moonlight"] .nc-footer-download p,:root[data-theme="moonlight"] .nc-footer-download small{color:#535d70!important}


/* Six-at-a-time podcast pagination — colors inherit the active NightCast theme tokens. */
.nc-podcast-pagination{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;
  width:100%;margin:clamp(24px,3.2vw,42px) auto 8px;padding:14px 12px;
  border:1px solid var(--nc-theme-border,rgba(148,163,184,.2));
  border-radius:24px;
  background:linear-gradient(145deg,
    color-mix(in srgb,var(--nc-theme-surface,#0b1228) 92%,var(--nc-theme-primary,#8b5cf6) 8%),
    color-mix(in srgb,var(--nc-theme-bg,#050816) 94%,var(--nc-theme-secondary,#38bdf8) 6%));
  box-shadow:0 12px 36px color-mix(in srgb,var(--nc-theme-bg,#050816) 62%,transparent),
    inset 0 1px color-mix(in srgb,var(--nc-theme-text,#fff) 7%,transparent);
}
.nc-podcast-pagination[hidden]{display:none!important}
.nc-podcast-pagination .nc-page-btn{
  display:inline-grid;place-items:center;min-width:48px;min-height:48px;padding:0 13px;
  border:1px solid var(--nc-theme-border,rgba(148,163,184,.2));border-radius:15px;
  background:var(--nc-theme-surface,#0b1228);color:var(--nc-theme-text,#f8fafc);
  font:inherit;font-size:1.12rem;font-weight:800;line-height:1;cursor:pointer;
  box-shadow:0 5px 16px color-mix(in srgb,var(--nc-theme-bg,#050816) 30%,transparent);
  transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;
}
.nc-podcast-pagination .nc-page-btn:hover:not(:disabled){
  transform:translateY(-2px);border-color:var(--nc-theme-primary,#8b5cf6);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--nc-theme-primary,#8b5cf6) 14%,transparent);
}
.nc-podcast-pagination .nc-page-btn.is-active{
  color:#fff;background:linear-gradient(135deg,var(--nc-theme-primary,#8b5cf6),var(--nc-theme-secondary,#38bdf8));
  border-color:transparent;box-shadow:0 7px 24px var(--nc-theme-glow,rgba(139,92,246,.2)),inset 0 1px #ffffff55;
  transform:translateY(-1px) scale(1.06);
}
.nc-podcast-pagination .nc-page-btn:focus-visible{outline:3px solid var(--nc-theme-accent,#67e8f9);outline-offset:3px}
.nc-podcast-pagination .nc-page-btn:disabled{opacity:.35;cursor:not-allowed;box-shadow:none}
.nc-podcast-pagination .nc-page-edge{font-size:1.7rem;min-width:48px}
:root[data-theme="moonlight"] .nc-podcast-pagination{box-shadow:0 12px 32px rgba(30,41,59,.08),inset 0 1px #fff}
:root[data-theme="moonlight"] .nc-podcast-pagination .nc-page-btn{box-shadow:0 4px 14px rgba(30,41,59,.07)}
@media(max-width:520px){
  .nc-podcast-pagination{gap:6px;padding:12px 7px;border-radius:19px;margin-top:20px}
  .nc-podcast-pagination .nc-page-btn{min-width:40px;min-height:42px;padding:0 8px;border-radius:12px;font-size:1rem}
  .nc-podcast-pagination .nc-page-edge{min-width:38px;font-size:1.45rem}
}
@media(prefers-reduced-motion:reduce){.nc-podcast-pagination .nc-page-btn{transition:none!important}}
