:root{--bg:#07030d;--panel:#100a1c;--panel2:#160d25;--line:#352047;--text:#f7efff;--muted:#9e91ac;--purple:#c500ff;--pink:#ff16e8;--blue:#6c35ff;--green:#2de4a5;--shadow:0 0 35px rgba(197,0,255,.14)}
*{box-sizing:border-box}html,body{margin:0;background:radial-gradient(circle at 80% 10%,#21083a 0,#07030d 36%),var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}body{min-height:100vh;padding-bottom:88px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}
body:before{content:"";position:fixed;inset:0;pointer-events:none;background:linear-gradient(120deg,transparent 0 70%,rgba(197,0,255,.04));z-index:-1}
.topbar{height:70px;position:fixed;z-index:20;left:0;right:0;top:0;background:rgba(7,3,13,.9);backdrop-filter:blur(18px);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px;padding:0 22px}.brand{width:205px;display:grid;grid-template-columns:43px 1fr;line-height:20px;position:relative}.brand-wave{font-size:42px;color:var(--purple);grid-row:span 2;text-shadow:0 0 18px var(--purple);transform:rotate(-8deg)}.brand b{font-size:23px}.brand b span{color:var(--pink)}.brand small{font-size:8px;letter-spacing:3px;color:#ddd;grid-column:2}.topnav{display:flex;gap:22px;font-size:13px;color:#d4cbdc}.topnav a:hover{color:#fff;text-shadow:0 0 10px var(--pink)}.search{height:40px;display:flex;border:1px solid #5b2875;background:#10081a;border-radius:24px;overflow:hidden;flex:1;max-width:360px;margin-left:auto}.search input{border:0;outline:0;background:transparent;color:white;padding:0 15px;width:100%}.search button{border:0;background:linear-gradient(90deg,var(--purple),var(--pink));color:white;width:48px}.auth{display:flex;gap:12px;align-items:center;font-size:13px}.auth a:not(.btn){color:#d6ccdf}.sidebar{position:fixed;top:70px;bottom:0;width:235px;border-right:1px solid var(--line);background:rgba(9,4,16,.76);padding:18px 12px;z-index:10}.nav-item{display:flex;gap:13px;padding:12px 14px;border-radius:10px;color:#c4b7ce;margin-bottom:3px}.nav-item span{width:18px;text-align:center}.nav-item.active,.nav-item:hover{color:white;background:linear-gradient(90deg,rgba(197,0,255,.3),rgba(197,0,255,.05));box-shadow:inset 3px 0 var(--purple),0 0 20px rgba(197,0,255,.08)}.side-label{font-size:10px;color:#766980;letter-spacing:1.5px;margin:25px 14px 8px}.side-bottom{position:absolute;bottom:24px;left:25px;right:25px;display:flex;flex-direction:column;gap:9px;font-size:12px;color:#83768e}
.content{margin-left:235px;padding:100px 42px 40px;max-width:1600px}.bg-orb{position:fixed;width:300px;height:300px;border-radius:50%;filter:blur(90px);opacity:.16;z-index:-1}.orb1{background:#c500ff;top:80px;left:40%}.orb2{background:#ff16e8;right:-100px;bottom:100px}.hero{min-height:360px;border:1px solid #5e2b78;border-radius:18px;overflow:hidden;position:relative;background:linear-gradient(100deg,#12091c 5%,#26033d 65%,#0d0514);box-shadow:var(--shadow);display:flex;align-items:center}.hero:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 76% 50%,rgba(255,22,232,.36),transparent 28%),linear-gradient(90deg,transparent,rgba(197,0,255,.12));pointer-events:none}.hero-copy{position:relative;z-index:2;padding:42px 48px;max-width:700px}.eyebrow{color:#db58ff;font-size:11px;font-weight:800;letter-spacing:2px}.hero h1{font-size:48px;line-height:1.02;margin:13px 0}.hero h1 em{font-style:normal;color:#ff25e9;text-shadow:0 0 22px rgba(255,22,232,.5)}.hero p{color:#c4b5cc;max-width:560px;font-size:16px}.hero-actions{display:flex;gap:14px;margin-top:25px}.hero-art{position:absolute;right:5%;width:430px;height:320px;display:grid;place-items:center;opacity:.8}.ring{width:250px;height:250px;border-radius:50%;border:2px solid #b900ff;box-shadow:0 0 50px #b900ff, inset 0 0 40px #ff16e8}.headphone{font-size:150px;color:#d000ff;text-shadow:0 0 35px #d000ff;transform:rotate(-12deg)}.sound-lines{position:absolute;right:0;color:#ff16e8;font-size:90px;letter-spacing:-25px}.btn{border:1px solid #6e367e;background:#1b1025;color:#fff;padding:11px 19px;border-radius:10px;display:inline-flex;justify-content:center;align-items:center;font-weight:700;transition:.2s}.btn.primary{border-color:transparent;background:linear-gradient(90deg,#bd00ff,#ff10df);box-shadow:0 0 20px rgba(213,0,255,.25)}.btn.primary:hover{filter:brightness(1.15);transform:translateY(-1px)}.btn.ghost{background:transparent;border-color:#d500ff}.btn.small{padding:8px 13px}.btn.full{width:100%;padding:13px}.btn.danger{border-color:#ff4677;color:#ff7d9e}.btn.tiny{padding:6px 9px;font-size:11px}.chips{display:flex;gap:9px;margin:20px 0;overflow:auto;padding-bottom:4px}.chip{white-space:nowrap;border:1px solid var(--line);background:#12091d;padding:10px 14px;border-radius:10px;color:#c9bdd0;font-size:12px}.chip:hover{border-color:var(--purple);color:white}.section{margin-top:30px}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:14px}.section-head h2{margin:4px 0;font-size:21px}.section-head a{color:#ed6dff;font-size:12px}.station-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}.station-grid.large{grid-template-columns:repeat(4,minmax(0,1fr))}.station-card{min-width:0}.station-cover{aspect-ratio:1;position:relative;border:1px solid #4d2b5c;border-radius:12px;overflow:hidden;background:#13091c}.station-cover img{width:100%;height:100%;object-fit:contain;display:block;padding:10px;background:linear-gradient(145deg,#0b0610,#170b21)}.station-card:hover .station-cover{border-color:#e100ff;box-shadow:0 0 24px rgba(197,0,255,.3)}.heart{position:absolute;top:9px;right:9px;border:0;background:#08030bbd;color:white;width:30px;height:30px;border-radius:50%}.mini-play{position:absolute;bottom:9px;left:9px;border:0;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,var(--purple),var(--pink));color:white;box-shadow:0 0 18px #c500ff}.station-info h3{margin:9px 0 3px;font-size:13px}.station-info p,.station-info small{margin:0;color:#a89bad;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.logo-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:12px}.logo-station{position:relative;background:#110a19;border:1px solid var(--line);border-radius:11px;padding:12px;min-height:125px}.logo-station img{width:72px;height:72px;object-fit:contain;border-radius:10px;display:block;margin:0 auto 8px;padding:5px;background:#09050e;border:1px solid #2e183b}.logo-station b{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logo-station span{font-size:9px;color:#8e8295}.round-play{position:absolute;right:9px;bottom:9px;border:0;border-radius:50%;width:26px;height:26px;background:#d000ff;color:#fff}.category-grid{display:grid;grid-template-columns:repeat(9,1fr);gap:10px}.category-grid.large{grid-template-columns:repeat(5,1fr)}.category-tile{border:1px solid var(--line);background:linear-gradient(150deg,#160b22,#0e0715);border-radius:12px;padding:16px;min-height:90px;display:flex;flex-direction:column;justify-content:center;gap:7px}.category-tile:hover{border-color:var(--purple);box-shadow:0 0 20px rgba(197,0,255,.16)}.category-tile span{font-size:23px;color:#e13aff}.category-tile b{font-size:13px}.category-tile small{color:#83758c;font-size:10px}.page-head{margin:20px 0 30px}.page-head h1{font-size:35px;margin:8px 0}.page-head p{color:#9f91a8}.empty,.panel{border:1px solid var(--line);background:rgba(15,8,24,.82);border-radius:14px;padding:28px;box-shadow:var(--shadow)}.empty{color:#a99aae}.empty a,.prose a{color:#f047ff}.flash{padding:12px 16px;background:#0e3a2c;border:1px solid #1b8c6a;border-radius:10px;margin-bottom:18px}.flash.error{background:#3a101f;border-color:#8d234b}.auth-wrap{min-height:70vh;display:grid;place-items:center}.auth-card{width:min(470px,100%);padding:35px;border:1px solid #6e2b88;border-radius:18px;background:linear-gradient(145deg,#160a23,#0b0610);box-shadow:0 0 50px rgba(197,0,255,.16)}.auth-logo{text-align:center;font-size:24px;margin-bottom:25px}.auth-logo span{color:#ff16e8}.auth-card h1{text-align:center;margin:5px 0}.auth-card>p{text-align:center;color:#a798ae;font-size:13px}.auth-card form{margin-top:25px}.auth-card label,.form-panel label{display:block;font-size:12px;color:#cbbdd1;margin-bottom:15px}.auth-card input,.form-panel input,.form-panel select,.form-panel textarea{display:block;width:100%;margin-top:7px;background:#0c0712;border:1px solid #3b2348;color:#fff;padding:12px;border-radius:9px;outline:none}.auth-card input:focus,.form-panel input:focus,.form-panel select:focus,.form-panel textarea:focus{border-color:#cf00ff;box-shadow:0 0 12px rgba(207,0,255,.12)}.form-row{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin:10px 0 17px}.form-row a{color:#ed5aff}.check{display:flex!important;gap:7px;align-items:center}.check input{width:auto!important;margin:0!important}.form-panel{padding:28px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:4px 18px}.fullcol{grid-column:1/-1}.form-panel small{color:#756a7c;font-size:10px}.table-wrap{overflow:auto;padding:0}.table-wrap table{width:100%;border-collapse:collapse;min-width:800px}.table-wrap th,.table-wrap td{padding:14px;border-bottom:1px solid #25162f;text-align:left;font-size:12px}.table-wrap th{color:#88798e;font-size:10px;text-transform:uppercase;letter-spacing:1px}.table-logo{width:48px;height:48px;border-radius:8px;object-fit:contain;padding:3px;background:#0b0610;border:1px solid #30203a}.status{display:inline-block;padding:5px 8px;border-radius:7px;font-size:10px;background:#3b263f}.status.approved{background:#0d4b3a;color:#6ff4c4}.status.pending{background:#4d3910;color:#ffd86b}.status.rejected{background:#4b172b;color:#ff8bb0}.inline-form{display:inline-flex;gap:5px;align-items:center;margin:0}.inline-form select{background:#0c0712;color:white;border:1px solid #3a2345;padding:6px;border-radius:6px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:20px}.stats div{padding:20px;border:1px solid var(--line);background:#11091a;border-radius:12px}.stats b{font-size:27px;display:block;color:#ee4cff}.stats span{font-size:11px;color:#8c7d95}.account-panel{display:flex;align-items:center;gap:20px}.avatar{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--purple),var(--pink));font-size:28px;font-weight:800}.prose{max-width:800px;line-height:1.7;color:#b9aebe}
.player{position:fixed;bottom:0;left:0;right:0;height:76px;z-index:50;background:rgba(8,4,13,.95);backdrop-filter:blur(18px);border-top:1px solid #482053;display:flex;align-items:center;padding:10px 24px;gap:22px;box-shadow:0 -10px 35px rgba(0,0,0,.35)}.now{display:flex;align-items:center;gap:11px;min-width:280px;flex:1}.now img{width:52px;height:52px;object-fit:contain;padding:3px;background:#0b0610;border-radius:7px;border:1px solid #5b2c6f}.now b,.now span{display:block;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.now span{font-size:11px;color:#9d8fa7;margin-top:4px}.now #liveBadge{display:inline-block;background:#d600ff;color:white;padding:4px 6px;border-radius:5px;font-size:8px;font-weight:800;width:auto;margin-left:7px}.controls{display:flex;align-items:center;gap:16px}.controls button,.player-icon{border:0;background:transparent;color:#d8cedd;font-size:15px}.controls .play{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#b900ff,#ff0be2);color:#fff;box-shadow:0 0 20px rgba(213,0,255,.5)}.volume{display:flex;align-items:center;gap:7px;color:#c4b6cc;font-size:12px}.volume input{accent-color:#d000ff;width:110px}.cast{border:1px solid #482252;background:#12091a;color:#fff;border-radius:8px;padding:9px 11px}.cast:hover{border-color:#e100ff}.player-icon{font-size:20px}.player>span:not(#liveBadge){color:#9b8ca3;font-size:11px}
@media(max-width:1200px){.topnav{display:none}.station-grid{grid-template-columns:repeat(4,1fr)}.logo-grid{grid-template-columns:repeat(5,1fr)}.category-grid{grid-template-columns:repeat(5,1fr)}.hero-art{right:-80px;opacity:.45}}
@media(max-width:850px){.topbar{padding:0 13px}.brand{width:170px}.auth>a:not(.btn){display:none}.search{max-width:none}.sidebar{width:70px;padding:15px 9px}.sidebar .nav-item{justify-content:center;padding:12px}.sidebar .nav-item span{font-size:19px}.sidebar .nav-item{font-size:0}.side-label,.side-bottom{display:none}.content{margin-left:70px;padding:90px 18px 30px}.hero-copy{padding:35px 25px}.hero h1{font-size:36px}.hero-art{display:none}.station-grid,.station-grid.large{grid-template-columns:repeat(3,1fr)}.logo-grid{grid-template-columns:repeat(4,1fr)}.category-grid,.category-grid.large{grid-template-columns:repeat(4,1fr)}.player{gap:10px;padding:8px 10px}.now{min-width:0}.now img{width:46px;height:46px}.volume{display:none}}
@media(max-width:600px){.topbar{height:62px}.brand{width:130px}.brand b{font-size:18px}.brand small{font-size:6px}.brand-wave{font-size:31px}.search{height:34px}.auth{display:none}.content{padding-top:78px}.hero{min-height:330px}.hero h1{font-size:31px}.chips{margin-top:12px}.station-grid,.station-grid.large{grid-template-columns:repeat(2,1fr);gap:11px}.logo-grid{grid-template-columns:repeat(2,1fr)}.category-grid,.category-grid.large{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.fullcol{grid-column:auto}.stats{grid-template-columns:1fr}.player{height:68px}.now #liveBadge,.volume,.player-icon{display:none}.controls{gap:9px}.now b{font-size:12px}.now span{font-size:10px}.cast{font-size:10px;padding:7px}.hero-actions{flex-wrap:wrap}.page-head h1{font-size:28px}}

/* Radio logo polish v4 */
.station-cover{background:linear-gradient(145deg,#0b0610,#170b21)}
.station-cover:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 45%,rgba(197,0,255,.10),transparent 60%)}
.station-cover img{position:relative;z-index:1}
.logo-station{display:flex;flex-direction:column;justify-content:flex-start}
.logo-station img{flex-shrink:0}

/* Universal radio-logo normalizer v5 */
.station-cover{
  aspect-ratio:1/1;
  display:grid;
  place-items:center;
  padding:0;
  background:
    radial-gradient(circle at 50% 45%,rgba(197,0,255,.13),transparent 55%),
    linear-gradient(145deg,#08050d,#170b21);
}
.station-cover img{
  width:100%!important;
  height:100%!important;
  max-width:100%;
  max-height:100%;
  object-fit:contain!important;
  object-position:center!important;
  padding:8%!important;
  display:block;
  background:transparent!important;
}
.logo-station{
  min-width:0;
  overflow:hidden;
}
.logo-station img{
  width:76px!important;
  height:76px!important;
  max-width:100%;
  object-fit:contain!important;
  object-position:center!important;
  padding:6px!important;
  background:#0a0610!important;
}
.table-logo{
  width:52px!important;
  height:52px!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:4px!important;
}
.now img{
  object-fit:contain!important;
  object-position:center!important;
  padding:3px!important;
  background:#0a0610!important;
}

/* Admin management v6 */
.admin-tabs{display:flex;gap:8px;margin-bottom:15px}
.admin-tabs a{border:1px solid var(--line);padding:9px 13px;border-radius:8px;background:#11091a;color:#d6c9dc;font-size:12px}
.admin-section{margin-bottom:20px;padding:18px}
.inner-table{border:0}
.inner-table table{min-width:1100px}
.inner-table td small{display:block;margin-top:3px}
.muted{color:#756b7d}
.admin-actions{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.temp-form input{width:155px!important;padding:6px!important;margin:0!important}
.owned-row td{background:#0b0610}
.owned-stations{display:flex;gap:12px;flex-wrap:wrap;color:#9d8fa7;font-size:11px}
.owned-stations span{padding:5px 8px;border:1px solid #2d1a38;border-radius:7px}
.admin-station-name{display:flex;align-items:center;gap:9px}

/* Theme engine v7 - six visual styles inspired by the supplied design sheet */
body{background:radial-gradient(circle at 80% 10%,color-mix(in srgb,var(--primary) 24%,transparent) 0,transparent 36%),var(--bg);color:var(--text)}
body.has-theme-background{background-image:linear-gradient(rgba(0,0,0,.38),rgba(0,0,0,.38)),var(--theme-bg-image),radial-gradient(circle at 80% 10%,color-mix(in srgb,var(--primary) 24%,transparent) 0,transparent 36%),var(--bg);background-size:cover;background-position:center;background-attachment:fixed;background-repeat:no-repeat}
body:before{background:linear-gradient(120deg,transparent 0 70%,color-mix(in srgb,var(--primary) 7%,transparent))}
.topbar{background:color-mix(in srgb,var(--bg) 92%,transparent);border-color:var(--line)}
.brand-wave{color:var(--primary);text-shadow:0 0 18px var(--primary)}
.brand b span{color:var(--secondary)}
.topnav a:hover{color:var(--text);text-shadow:0 0 10px var(--secondary)}
.search{border-color:color-mix(in srgb,var(--primary) 55%,var(--line));background:color-mix(in srgb,var(--panel) 82%,transparent)}
.search button,.btn.primary,.mini-play,.controls .play,.avatar{background:linear-gradient(135deg,var(--primary),var(--secondary));box-shadow:0 0 20px color-mix(in srgb,var(--primary) 30%,transparent)}
.sidebar{border-color:var(--line);background:color-mix(in srgb,var(--bg) 82%,transparent)}
.nav-item.active,.nav-item:hover{background:linear-gradient(90deg,color-mix(in srgb,var(--primary) 30%,transparent),color-mix(in srgb,var(--primary) 4%,transparent));box-shadow:inset 3px 0 var(--primary),0 0 20px color-mix(in srgb,var(--primary) 10%,transparent)}
.content{color:var(--text)}
.orb1{background:var(--primary)}.orb2{background:var(--secondary)}
.hero{border-color:color-mix(in srgb,var(--primary) 55%,var(--line));background:linear-gradient(100deg,var(--panel) 5%,color-mix(in srgb,var(--panel2) 90%,var(--primary)) 65%,var(--bg));box-shadow:0 0 35px color-mix(in srgb,var(--primary) 14%,transparent)}
.hero:after{background:radial-gradient(circle at 76% 50%,color-mix(in srgb,var(--secondary) 35%,transparent),transparent 28%),linear-gradient(90deg,transparent,color-mix(in srgb,var(--primary) 12%,transparent))}
.eyebrow,.section-head a,.empty a,.prose a,.form-row a{color:var(--secondary)}
.hero h1 em{color:var(--secondary)}
.ring{border-color:var(--primary);box-shadow:0 0 50px var(--primary),inset 0 0 40px var(--secondary)}
.headphone{color:var(--primary);text-shadow:0 0 35px var(--primary)}.sound-lines{color:var(--secondary)}
.btn{border-color:var(--line);background:var(--panel2);color:var(--text)}.btn.ghost{border-color:var(--primary)}
.chip{border-color:var(--line);background:var(--panel2);color:var(--muted)}.chip:hover{border-color:var(--primary)}
.station-cover{border-color:var(--line);background:radial-gradient(circle at 50% 45%,color-mix(in srgb,var(--primary) 13%,transparent),transparent 55%),linear-gradient(145deg,var(--bg),var(--panel2))}
.station-card:hover .station-cover{border-color:var(--primary);box-shadow:0 0 24px color-mix(in srgb,var(--primary) 30%,transparent)}
.station-info p,.station-info small,.page-head p{color:var(--muted)}
.logo-station,.category-tile,.stats div,.panel,.empty,.auth-card,.auth-card input,.form-panel input,.form-panel select,.form-panel textarea,.admin-tabs a,.cast{background:var(--panel)}
.logo-station,.category-tile,.panel,.empty,.auth-card,.form-panel input,.form-panel select,.form-panel textarea{border-color:var(--line)}
.logo-station img,.table-logo,.now img{background:var(--bg)!important;border-color:var(--line)}
.category-tile:hover{border-color:var(--primary)}.category-tile span{color:var(--secondary)}
.auth-card{box-shadow:0 0 50px color-mix(in srgb,var(--primary) 16%,transparent)}
.auth-card input:focus,.form-panel input:focus,.form-panel select:focus,.form-panel textarea:focus{border-color:var(--primary);box-shadow:0 0 12px color-mix(in srgb,var(--primary) 12%,transparent)}
.stats b{color:var(--secondary)}
.status.approved{background:color-mix(in srgb,var(--green) 25%,var(--panel));color:var(--green)}
.player{background:color-mix(in srgb,var(--bg) 95%,transparent);border-color:var(--line)}
.now #liveBadge{background:var(--primary)}.controls .play{background:linear-gradient(135deg,var(--primary),var(--secondary))}.cast:hover{border-color:var(--primary)}
.volume input{accent-color:var(--primary)}

/* Theme-safe aliases: every preset drives the shared controls through the saved theme variables. */
body[class*="theme-"]{--purple:var(--primary);--pink:var(--secondary);--shadow:0 0 35px color-mix(in srgb,var(--primary) 14%,transparent)}
body[class*="theme-"] .mini-play,body[class*="theme-"] .round-play{background:linear-gradient(135deg,var(--primary),var(--secondary));box-shadow:0 0 18px color-mix(in srgb,var(--primary) 45%,transparent)}
body[class*="theme-"] .heart{border:1px solid color-mix(in srgb,var(--primary) 35%,transparent)}
body[class*="theme-"] .chip:hover,body[class*="theme-"] .category-tile:hover{border-color:var(--primary)}
body[class*="theme-"] .station-card:hover .station-cover{border-color:var(--primary);box-shadow:0 0 24px color-mix(in srgb,var(--primary) 30%,transparent)}

/* Preset-specific layout personality */
.theme-modern-dark .topbar{background:rgba(8,8,8,.95)}
.theme-modern-dark .hero{background:linear-gradient(105deg,#0a0a0a,#22090c 60%,#080808)}
.theme-modern-dark .hero:after{background:radial-gradient(circle at 78% 50%,rgba(255,25,45,.32),transparent 30%),linear-gradient(90deg,transparent,rgba(224,0,24,.10))}
.theme-modern-dark .nav-item.active{background:linear-gradient(90deg,rgba(224,0,24,.48),rgba(224,0,24,.06));box-shadow:inset 3px 0 #e00018,0 0 20px rgba(224,0,24,.10)}
.theme-modern-dark .btn.primary,.theme-modern-dark .search button,.theme-modern-dark .controls .play{background:linear-gradient(90deg,#d60016,#ff3348)}
.theme-modern-dark .orb1{background:#e00018}.theme-modern-dark .orb2{background:#ff3348}

.theme-neon-purple .hero{background:linear-gradient(100deg,#12091c,#26033d 65%,#0d0514)}
.theme-neon-purple .hero:after{background:radial-gradient(circle at 76% 50%,rgba(255,22,232,.36),transparent 28%),linear-gradient(90deg,transparent,rgba(197,0,255,.12))}

.theme-clean-white{background:#f5f7fb}
.theme-clean-white:before{display:none}
.theme-clean-white .topbar{background:rgba(255,255,255,.94);box-shadow:0 3px 22px rgba(20,40,70,.08)}
.theme-clean-white .brand b,.theme-clean-white .topnav a,.theme-clean-white .auth a:not(.btn),.theme-clean-white .station-info h3,.theme-clean-white .page-head h1,.theme-clean-white .section-head h2,.theme-clean-white .category-tile b,.theme-clean-white .stats b{color:#111827}
.theme-clean-white .brand-wave{color:#147eea;text-shadow:none}.theme-clean-white .brand b span{color:#147eea}
.theme-clean-white .topnav,.theme-clean-white .sidebar,.theme-clean-white .page-head p,.theme-clean-white .station-info p,.theme-clean-white .station-info small{color:#687386}
.theme-clean-white .sidebar{background:#fff;border-right-color:#e3e8ef}.theme-clean-white .nav-item{color:#667085}.theme-clean-white .nav-item.active,.theme-clean-white .nav-item:hover{color:#147eea;background:#eaf4ff;box-shadow:inset 3px 0 #147eea}
.theme-clean-white .hero{background:linear-gradient(110deg,#fff,#eef7ff);border-color:#dbe8f5;box-shadow:0 15px 35px rgba(20,80,130,.10)}
.theme-clean-white .hero:after{background:radial-gradient(circle at 78% 50%,rgba(37,164,255,.18),transparent 30%)}
.theme-clean-white .hero h1 em,.theme-clean-white .eyebrow,.theme-clean-white .section-head a{color:#147eea}.theme-clean-white .hero p{color:#64748b}
.theme-clean-white .panel,.theme-clean-white .empty,.theme-clean-white .category-tile,.theme-clean-white .logo-station,.theme-clean-white .stats div,.theme-clean-white .admin-tabs a{box-shadow:0 10px 30px rgba(20,40,70,.06)}
.theme-clean-white .station-cover{background:linear-gradient(145deg,#edf4fb,#fff)}.theme-clean-white .station-cover img{background:transparent!important}.theme-clean-white .logo-station img,.theme-clean-white .table-logo,.theme-clean-white .now img{background:#f2f6fa!important}
.theme-clean-white .player{background:rgba(255,255,255,.96);border-color:#dbe3ec;box-shadow:0 -10px 30px rgba(20,40,70,.10)}.theme-clean-white .controls button,.theme-clean-white .player-icon{color:#334155}
.theme-clean-white .cast{background:#fff;color:#334155}.theme-clean-white .btn{color:#1f2937;background:#fff;border-color:#cbd5e1}.theme-clean-white .btn.primary{color:#fff;background:linear-gradient(90deg,#147eea,#25a4ff);border-color:transparent}.theme-clean-white .btn.ghost{color:#147eea;background:transparent;border-color:#147eea}.theme-clean-white .heart{background:rgba(255,255,255,.92);color:#147eea}.theme-clean-white .mini-play,.theme-clean-white .round-play{color:#fff}

.theme-futuristic-glass .topbar,.theme-futuristic-glass .sidebar,.theme-futuristic-glass .panel,.theme-futuristic-glass .empty,.theme-futuristic-glass .category-tile,.theme-futuristic-glass .logo-station,.theme-futuristic-glass .player{backdrop-filter:blur(20px);background:rgba(6,31,46,.72)}
.theme-futuristic-glass .hero{background:linear-gradient(120deg,rgba(4,30,45,.96),rgba(6,67,91,.88));border-color:#16799f}
.theme-futuristic-glass .hero:after{background:radial-gradient(circle at 75% 50%,rgba(37,231,255,.26),transparent 32%)}
.theme-futuristic-glass .nav-item.active{background:linear-gradient(90deg,rgba(8,191,255,.25),rgba(8,191,255,.04));box-shadow:inset 3px 0 #08bfff,0 0 22px rgba(8,191,255,.12)}
.theme-futuristic-glass .brand-wave,.theme-futuristic-glass .hero h1 em,.theme-futuristic-glass .eyebrow{color:#25e7ff}

.theme-gradient-modern .hero{background:linear-gradient(115deg,#21101a,#5a1727 48%,#d84d2d 100%)}
.theme-gradient-modern .hero:after{background:radial-gradient(circle at 75% 50%,rgba(255,154,61,.35),transparent 32%),linear-gradient(90deg,transparent,rgba(255,75,75,.18))}
.theme-gradient-modern .nav-item.active{background:linear-gradient(90deg,rgba(255,75,75,.42),rgba(255,154,61,.08));box-shadow:inset 3px 0 #ff4b4b,0 0 22px rgba(255,75,75,.12)}
.theme-gradient-modern .orb1{background:#ff4b4b}.theme-gradient-modern .orb2{background:#ff9a3d}

.theme-media-rich .hero{background:linear-gradient(105deg,rgba(6,10,18,.96),rgba(17,37,60,.88)),var(--theme-bg-image);background-size:cover;background-position:center}
.theme-media-rich .hero:after{background:linear-gradient(90deg,rgba(4,7,12,.78),rgba(22,168,255,.12)),radial-gradient(circle at 80% 45%,rgba(255,23,68,.22),transparent 30%)}
.theme-media-rich .nav-item.active{background:linear-gradient(90deg,rgba(255,23,68,.36),rgba(22,168,255,.08));box-shadow:inset 3px 0 #ff1744,0 0 22px rgba(255,23,68,.12)}
.theme-media-rich .hero-art{opacity:.92}.theme-media-rich .ring{border-color:#16a8ff;box-shadow:0 0 50px #16a8ff,inset 0 0 40px #ff1744}

.theme-admin-panel{scroll-margin-top:85px}.admin-help{color:var(--muted);font-size:12px;margin:6px 0 0}
.theme-presets{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:12px;margin:18px 0 22px}
.theme-option{position:relative;display:flex;flex-direction:column;gap:5px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--panel2);cursor:pointer;transition:.2s;min-width:0}
.theme-option:hover,.theme-option.selected{border-color:var(--primary);box-shadow:0 0 18px color-mix(in srgb,var(--primary) 14%,transparent);transform:translateY(-1px)}
.theme-option input{position:absolute;opacity:0;pointer-events:none}.theme-option strong{font-size:11px;line-height:1.2}.theme-option small{font-size:9px;color:var(--muted)}
.theme-preview{height:74px;border-radius:9px;display:block;position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.16)}
.theme-preview i,.theme-preview b,.theme-preview em{position:absolute;display:block}.theme-preview i{left:7px;top:7px;width:24px;height:58px;border-radius:5px;background:rgba(0,0,0,.34)}.theme-preview b{left:36px;right:7px;top:8px;height:18px;border-radius:5px;background:rgba(255,255,255,.9)}.theme-preview em{left:36px;right:7px;bottom:8px;height:30px;border-radius:5px;background:rgba(255,255,255,.14)}
.preview-modern-dark{background:linear-gradient(135deg,#090909,#e00018)}.preview-neon-purple{background:linear-gradient(135deg,#07030d,#c500ff)}.preview-clean-white{background:linear-gradient(135deg,#fff,#dff2ff)}.preview-clean-white b{background:#147eea}.preview-clean-white em{background:#fff}.preview-futuristic-glass{background:linear-gradient(135deg,#03131d,#08bfff)}.preview-gradient-modern{background:linear-gradient(135deg,#35131f,#ff4b4b,#ff9a3d)}.preview-media-rich{background:linear-gradient(135deg,#070b15,#16a8ff,#ff1744)}
.theme-custom-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.theme-custom-grid label{display:block;font-size:11px;color:var(--muted)}.theme-custom-grid input[type=color]{display:block;width:100%;height:42px;padding:3px;margin-top:6px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.theme-custom-grid input[type=url]{display:block;width:100%;margin-top:6px;background:var(--bg);border:1px solid var(--line);color:var(--text);padding:11px;border-radius:8px}.theme-custom-grid small{display:block;margin-top:5px;color:var(--muted)}.theme-actions{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}
@media(max-width:1100px){.theme-presets{grid-template-columns:repeat(3,1fr)}.theme-custom-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.theme-presets{grid-template-columns:repeat(2,1fr)}.theme-custom-grid{grid-template-columns:repeat(2,1fr)}.theme-custom-grid .fullcol{grid-column:1/-1}}

/* v7.1 Featured station play-button fix */
.station-cover:before{z-index:0}
.station-cover img{z-index:1;pointer-events:none}
.station-cover .mini-play,
.station-cover .heart{z-index:5;position:absolute;pointer-events:auto}
.station-cover .mini-play{bottom:10px;left:10px;display:grid;place-items:center;padding:0;line-height:1}
.station-cover .heart{top:9px;right:9px}

/* v7.2 favorite button fix */
.favorite-form{position:absolute;inset:0;pointer-events:none;z-index:6}
.favorite-form .heart{pointer-events:auto;position:absolute;top:9px;right:9px;z-index:7;display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid rgba(255,255,255,.08);border-radius:50%;background:rgba(4,2,8,.72);color:#fff;font-size:18px;line-height:1;backdrop-filter:blur(8px)}
.favorite-form .heart:hover{color:var(--secondary);border-color:var(--primary);transform:scale(1.06)}
.station-cover .mini-play{z-index:8}


/* RadioGo PWA + mobile app experience */
.install-banner{display:flex;align-items:center;gap:12px;padding:12px 14px;margin:0 0 18px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(90deg,var(--panel2),var(--panel));box-shadow:var(--shadow)}
.install-banner>div{flex:1;display:flex;flex-direction:column;gap:3px}.install-banner span{font-size:11px;color:var(--muted)}.install-close{border:0;background:transparent;color:var(--muted);font-size:22px}.mobile-nav{display:none}
@media(max-width:900px){
  body{padding-bottom:150px}.topbar{height:62px;padding:0 12px;gap:10px}.brand{width:auto;grid-template-columns:34px 1fr}.brand-wave{font-size:32px}.brand b{font-size:18px}.brand small{font-size:6px;letter-spacing:2px}.topnav,.auth a:not(.btn){display:none}.auth{margin-left:auto}.search{order:3;position:absolute;left:12px;right:12px;top:68px;max-width:none;height:38px}.sidebar{display:none}.content{margin-left:0;padding:122px 14px 25px;max-width:none}.hero{min-height:390px;border-radius:15px}.hero-copy{padding:28px 22px;max-width:100%}.hero h1{font-size:34px}.hero p{font-size:14px;max-width:90%}.hero-art{opacity:.35;right:-85px;width:300px}.chips{margin-top:14px}.station-grid,.station-grid.large{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.logo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-grid,.category-grid.large{grid-template-columns:repeat(2,minmax(0,1fr))}.page-head h1{font-size:29px}.section-head h2{font-size:19px}.station-info h3{font-size:12px}.mini-play{width:42px;height:42px}.favorite-form .heart{width:40px;height:40px}.form-grid{grid-template-columns:1fr}.fullcol{grid-column:auto}.form-panel{padding:18px}.auth-card{padding:24px}.theme-presets{grid-template-columns:repeat(2,1fr)}.theme-custom-grid{grid-template-columns:1fr 1fr}.theme-custom-grid .fullcol{grid-column:1/-1}
  .mobile-nav{display:flex;position:fixed;z-index:40;left:10px;right:10px;bottom:88px;min-height:58px;padding:7px 5px;border:1px solid var(--line);border-radius:16px;background:rgba(9,4,16,.94);backdrop-filter:blur(18px);box-shadow:0 10px 35px rgba(0,0,0,.35)}.mobile-nav a,.mobile-nav button{flex:1;border:0;background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:18px}.mobile-nav span{font-size:9px}.mobile-nav a:hover,.mobile-nav button:hover{color:var(--text)}
  .player{height:auto;min-height:76px;left:0;right:0;bottom:0;border-radius:16px 16px 0 0;padding:8px 10px;display:grid;grid-template-columns:1fr auto auto;grid-template-areas:'now controls actions' 'now volume actions';gap:4px 8px}.player .now{grid-area:now;min-width:0}.player .now img{width:48px;height:48px}.player .now div{min-width:0}.player .now b{font-size:11px}.player .now span{font-size:9px}.player .controls{grid-area:controls;gap:6px}.player .controls button{width:30px;height:30px}.player .controls .play{width:38px;height:38px}.player .volume{grid-area:volume;font-size:10px}.player .volume input{width:95px}.player #favPlayer,.player #listeners,.player #cast,.player .player-icon:last-child{grid-area:actions}.player #listeners{display:none}.player #cast{font-size:10px;padding:5px}.player-icon{font-size:17px}.install-banner{margin-top:0}
}
@media(max-width:480px){.content{padding-left:10px;padding-right:10px}.station-grid,.station-grid.large{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.station-cover img{padding:7px}.station-info h3{margin-top:7px}.hero h1{font-size:30px}.hero{min-height:360px}.hero-actions{flex-direction:column;align-items:stretch}.hero-actions .btn{text-align:center}.category-grid,.category-grid.large{gap:8px}.category-tile{padding:12px;min-height:78px}.logo-grid{gap:8px}.logo-station{padding:9px;min-height:120px}.logo-station img{width:62px;height:62px}.player .cast{display:none}.mobile-nav{left:6px;right:6px}.install-banner .btn{padding:8px 10px;font-size:11px}}

@media(min-width:901px){.install-banner{max-width:780px}}

/* v7.4 patch uploader + embed generator */
.patch-upload-form{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:18px 0}.patch-drop{display:flex!important;align-items:center;gap:10px;padding:13px 15px;border:1px dashed var(--line);border-radius:12px;background:var(--panel2);color:var(--text)!important;margin:0!important}.patch-drop span{font-size:24px}.patch-drop small{display:block;color:var(--muted);font-size:10px}.patch-drop input{width:auto!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important}.patch-note{padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);color:var(--muted);font-size:11px;margin-bottom:18px}.embed-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px}.embed-code{width:100%;min-height:150px;resize:vertical;background:var(--bg);border:1px solid var(--line);color:var(--text);padding:14px;border-radius:10px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.5}.embed-preview iframe{width:100%;height:150px;border:0;border-radius:16px;background:#09030f}.muted{color:var(--muted)}@media(max-width:800px){.embed-layout{grid-template-columns:1fr}.patch-upload-form{align-items:stretch}.patch-drop,.patch-upload-form .btn{width:100%;justify-content:center}.embed-preview iframe{height:150px}}

.theme-bg-current{padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--muted);font-size:12px}.theme-bg-current a{color:var(--primary)}.check-inline{display:inline-flex!important;margin-left:14px!important;gap:6px;align-items:center}.check-inline input{width:auto!important;margin:0!important}


/* v7.9 mobile auth + Cast visibility/controls fix */
@media(max-width:600px){
  .topbar{height:62px;gap:7px;padding:0 9px;}
  .brand{width:112px;flex:0 0 112px;grid-template-columns:28px 1fr;}
  .brand-wave{font-size:27px;}
  .brand b{font-size:16px;}
  .brand small{font-size:5px;letter-spacing:1.8px;}
  .auth{display:flex!important;flex:0 0 auto;gap:5px;margin-left:auto;font-size:10px;}
  .auth a:not(.btn){display:inline-flex!important;align-items:center;justify-content:center;color:var(--text);padding:6px 5px;border:1px solid var(--line);border-radius:7px;white-space:nowrap;}
  .auth .btn.small{padding:6px 7px;font-size:10px;white-space:nowrap;}
  .search{left:9px;right:9px;top:68px;}
  .player{height:auto;min-height:76px;grid-template-columns:minmax(0,1fr) auto auto auto;grid-template-areas:'now controls fav cast' 'now volume more more';gap:3px 5px;padding:7px 8px;}
  .player .now{grid-area:now;min-width:0;}
  .player .controls{grid-area:controls;gap:3px;}
  .player .controls button{width:25px;height:30px;padding:0;font-size:12px;}
  .player .controls .play{width:34px;height:34px;font-size:14px;}
  .player .volume{grid-area:volume;display:flex!important;font-size:9px;gap:3px;min-width:0;}
  .player .volume input{width:55px;min-width:35px;}
  .player #favPlayer{grid-area:fav;display:inline-flex!important;align-items:center;justify-content:center;padding:3px;width:25px;}
  .player #cast{grid-area:cast;display:inline-flex!important;align-items:center;justify-content:center;font-size:10px;padding:5px 6px;white-space:nowrap;min-width:48px;}
  .player .player-icon:last-child{grid-area:more;display:none!important;}
  .player #listeners{display:none!important;}
  .now #liveBadge{display:none!important;}
}
@media(max-width:370px){
  .brand{width:94px;flex-basis:94px;grid-template-columns:24px 1fr;}
  .brand b{font-size:14px;}
  .auth{gap:3px;font-size:9px;}
  .auth a:not(.btn){padding:5px 3px;}
  .auth .btn.small{padding:5px 5px;font-size:9px;}
  .player{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:'now fav cast' 'now controls controls' 'now volume volume';}
  .player .controls{justify-content:flex-end;}
  .player .volume{justify-content:flex-end;}
  .player .now img{width:38px;height:38px;}
  .player .now b{max-width:90px;font-size:10px;}
  .player .now span{max-width:90px;font-size:9px;}
}


/* v7.10.6: Force the Cast control to remain visible on narrow mobile screens. */
@media (max-width: 600px) {
  .player #cast {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 60;
    grid-area: cast;
    align-self: center;
    justify-self: end;
    width: auto !important;
    min-width: 48px;
    max-width: none;
    white-space: nowrap;
    overflow: visible;
    flex-shrink: 0;
  }
}
@media (max-width: 370px) {
  .player #cast { min-width: 46px; padding: 5px 4px !important; font-size: 9px !important; }
}
