/*
Theme Name: Stream 419 Digital Dial
Description: A listening-first Northwest Ohio radio hub with editable integrated radio presets, app links and a responsive player.
Version: 1.8.0
Author: Stream 419
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: stream419-dial
License: GNU General Public License v2 or later
*/
:root{--bg:#0c1423;--panel:#151f30;--panel2:#111b2b;--edge:#2b394d;--text:#f4f7fb;--muted:#aebbd0;--accent:#c9f36c;--ink:#182307;--max:1200px;--radius:17px;color-scheme:dark}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}body.home{padding-bottom:91px}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #fff;outline-offset:4px}img{max-width:100%;height:auto;display:block}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.12;letter-spacing:-.035em}h2{font-size:30px}h3{font-size:21px}p{color:var(--muted)}.shell{width:min(var(--max),calc(100% - 64px));margin-inline:auto}.skip-link{position:absolute;left:-999px;top:8px;padding:10px;background:#fff;color:#000;z-index:100}.skip-link:focus{left:8px}.site-header{border-bottom:1px solid var(--edge);background:#101827}.header-inner{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:22px}.brand{display:flex;align-items:center;gap:10px;font-size:29px;font-weight:850;letter-spacing:-.065em;line-height:1}.brand img{width:48px;height:48px;object-fit:contain;border-radius:50%}.brand-number{color:var(--accent)}.brand small{display:block;font-size:9px;letter-spacing:.18em;font-weight:700;color:var(--muted);margin-top:6px}.site-header nav{display:flex;align-items:center;gap:25px;font-size:14px;font-weight:650;color:#d8e2f0}.site-header nav a:hover,.station-site:hover,.local-card a:hover,.footer-inner a:hover{color:var(--accent)}.site-header nav .nav-app{border:1px solid #61714b;color:var(--accent);padding:9px 15px;border-radius:9px;white-space:nowrap}.home-main{padding-top:24px}.hero{isolation:isolate;position:relative;overflow:hidden;border:1px solid #34445a;border-radius:22px;min-height:280px;display:flex;align-items:center;background:#152239;background-image:linear-gradient(90deg,#152239 0%,#152239f5 24%,#152239b8 49%,#15223920 100%),var(--hero-image);background-size:cover;background-position:center,center 58%}.hero-content{padding:28px 38px;max-width:610px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.13em;color:var(--accent);display:inline-flex;align-items:center;gap:8px}.live-dot{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px #c9f36c25;display:inline-block}.hero h1{font-size:clamp(48px,5.2vw,72px);line-height:.99;margin:12px 0;letter-spacing:-.06em}.hero h1 span{color:var(--accent)}.hero p{font-size:16px;color:#e0e8f3;max-width:480px}.hero-cta{display:inline-flex;align-items:center;gap:7px;padding:9px 15px;background:var(--accent);color:var(--ink);font-weight:780;border-radius:9px;margin-top:17px}.hero-cta:hover,.listen-button:hover,.player-toggle:not(:disabled):hover{background:#e0ff9f}.hero-caption{position:absolute;right:20px;bottom:14px;font-size:10px;font-weight:750;letter-spacing:.11em;color:#fff;background:#0c1423b0;border-radius:5px;padding:5px 8px}.hero-caption span{color:var(--accent)}.stations,.local-section{margin-top:30px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:15px}.section-head h2{margin-top:4px}.section-head>p,.section-head>span{font-size:13px;color:var(--muted)}.station-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.station-card{display:flex;flex-direction:column;gap:13px;background:var(--panel);border:1px solid var(--edge);border-radius:var(--radius);padding:15px;min-width:0;transition:border-color .15s,background .15s}.station-card.is-selected{border-color:var(--accent);background:#1c2b32}.station-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;font-weight:750;letter-spacing:.09em;color:var(--muted)}.flagship .station-tag{color:var(--accent)}.station-info{display:flex;align-items:center;gap:13px;flex:1;min-width:0}.station-info>div{min-width:0}.station-info img{width:clamp(76px,8vw,112px);aspect-ratio:1;height:auto;object-fit:cover;border-radius:10px;flex-shrink:0}.format{font-size:13px;font-weight:650;color:#dbe5f1;margin-top:5px;line-height:1.35}.description{font-size:12px;margin-top:6px;line-height:1.45}.station-actions{display:flex;align-items:center;gap:10px;margin-top:auto}.listen-button{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;background:var(--accent);border:none;color:var(--ink);border-radius:9px;font-size:14px;min-height:43px;font-weight:800;white-space:nowrap}.station-site{font-size:12px;font-weight:650;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:4px;padding:8px 5px;white-space:nowrap}.secondary-head{margin-top:23px}.secondary-head h2{font-size:22px}.secondary{background:var(--panel2)}.secondary .station-info img{width:78px}.secondary h3{font-size:19px}.secondary .listen-button{background:#243347;color:var(--text);border:1px solid #465671}.secondary .listen-button:hover,.secondary.is-selected .listen-button{background:var(--accent);color:var(--ink);border-color:var(--accent)}.app-panel{margin-top:30px;border:1px solid #455c43;background:linear-gradient(110deg,#1d332f,#162232);padding:24px;border-radius:var(--radius);display:flex;align-items:center;justify-content:space-between;gap:22px}.app-identity{display:flex;align-items:center;gap:18px}.app-identity img{width:82px;height:82px;object-fit:contain;flex-shrink:0}.app-panel h2{font-size:26px;margin:5px 0}.app-panel p{font-size:13px;max-width:450px}.store-links{display:flex;gap:10px;flex-shrink:0;flex-wrap:wrap}.store{background:#080e16;border:1px solid #637080;display:flex;align-items:center;gap:9px;border-radius:9px;padding:8px 12px;white-space:nowrap;line-height:1.15}.store:hover{border-color:var(--accent)}.store small{display:block;font-size:10px;color:#dce2ec}.store b{font-size:17px;font-weight:650;display:block;margin-top:3px}.local-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.local-card{border:1px solid var(--edge);border-radius:var(--radius);background:var(--panel2);display:flex;align-items:center;gap:18px;padding:18px}.local-photo{width:115px;aspect-ratio:1;object-fit:cover;border-radius:10px;flex-shrink:0}.news-photo{object-position:center 56%}.local-card h3{margin:5px 0}.local-card p{font-size:13px}.local-card a{color:var(--accent);font-size:13px;font-weight:750;display:inline-flex;align-items:center;gap:5px;margin-top:9px}.site-footer{border-top:1px solid var(--edge);margin-top:35px;padding:26px 0 30px}.footer-inner{display:flex;justify-content:space-between;gap:22px;color:var(--muted);font-size:13px}.footer-brand{font-size:20px;color:var(--text);font-weight:800}.footer-inner p{margin:4px 0 8px}.footer-contact h2{font-size:16px;margin-bottom:6px;color:var(--text)}.footer-links{display:flex;gap:14px;margin-top:8px}.radio-player{position:fixed;z-index:100;bottom:0;left:0;right:0;background:#111c2c;border-top:1px solid #394b60;box-shadow:0 -8px 30px #0005;padding:12px 0 max(12px,env(safe-area-inset-bottom))}.player-inner{display:flex;align-items:center;gap:13px;min-height:48px}.player-inner>img{width:48px;height:48px;border-radius:8px;object-fit:cover}.player-info{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35}.player-info span:first-child{font-weight:800;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-info span:last-child{color:var(--muted);font-size:12px;margin-top:3px}.player-controls{display:flex;align-items:center;gap:18px}.player-toggle{width:46px;height:46px;border:0;border-radius:50%;background:var(--accent);color:var(--ink);display:grid;place-items:center}.player-toggle:disabled{background:#334054;color:#aebbd0}.player-toggle svg{width:24px;height:24px}.volume-wrap{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.volume-wrap input{width:90px;accent-color:var(--accent)}.player-site{font-size:12px;font-weight:700;color:var(--accent);padding-left:15px;border-left:1px solid var(--edge)}.archive-main{max-width:850px;padding-top:40px;min-height:50vh}.archive-main h1{font-size:clamp(30px,5vw,46px);margin-bottom:24px}.archive-entry{border-bottom:1px solid var(--edge);padding:18px 0}.archive-entry h2{font-size:23px}.article-content p{margin:1em 0;color:var(--text)}.article-content a,.archive-entry a:hover{color:var(--accent);text-decoration:underline}.article-content img{max-width:100%;height:auto}.notice{margin-top:12px}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1000px){.shell{width:calc(100% - 40px)}.station-info{align-items:flex-start;gap:10px}.station-info img{width:76px}.station-card h3{font-size:19px}.description{font-size:12px}.app-panel{flex-wrap:wrap}.store-links{margin-left:100px}.site-header nav{gap:15px}}@media(max-width:760px){.shell{width:calc(100% - 28px)}.header-inner{flex-wrap:wrap;gap:6px;padding:12px 0}.site-header nav{width:100%;gap:15px;flex-wrap:wrap;font-size:12px;padding:7px 0 0}.site-header nav .nav-app{padding:5px 9px;margin-left:auto}.brand img{width:39px;height:39px}.brand{font-size:25px}.home-main{padding-top:14px}.hero{min-height:260px;background-image:linear-gradient(90deg,#152239f5,#1522399c 70%,#15223940),var(--hero-image);background-position:center,center 57%}.hero-content{padding:24px 20px}.hero h1{font-size:51px}.hero p{font-size:14px;max-width:330px}.hero-caption{display:none}.section-head{align-items:start;flex-direction:column;gap:4px}.station-grid{grid-template-columns:1fr 1fr;gap:10px}.station-card{padding:12px;gap:11px}.station-info{flex-direction:column;align-items:start}.station-info img,.secondary .station-info img{width:80px}.station-actions{flex-wrap:wrap;gap:3px}.listen-button{flex-basis:100%}.station-site{padding:3px 0;min-height:30px}.station-top{font-size:9px;letter-spacing:.05em}.station-tag{display:none}.local-grid{grid-template-columns:1fr}.app-panel{padding:17px;gap:15px}.app-identity{gap:12px}.app-identity img{width:58px;height:58px}.app-panel h2{font-size:23px}.store-links{margin-left:0}.footer-inner{flex-direction:column}.player-inner{gap:9px}.player-site,.volume-wrap{display:none}.player-toggle{width:45px;height:45px}.player-info span:last-child{font-size:11px}.local-card{padding:13px;gap:13px}.local-photo{width:88px}.section-head h2{font-size:26px}.secondary-head h2{font-size:21px}}@media(max-width:370px){.station-grid{grid-template-columns:1fr}.station-info{flex-direction:row}.station-actions{flex-wrap:nowrap}.listen-button{flex-basis:auto}.site-header nav{gap:10px}.hero h1{font-size:45px}.store{padding:7px 9px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
/* Keep the dial close to the top of small screens. */
@media(max-width:760px){.header-inner{padding:9px 0;gap:5px}.site-header nav{gap:9px;padding:3px 0 0;font-size:11px}.site-header nav .nav-app{margin-left:0;padding:4px 7px}.hero{min-height:0}.hero-content{padding:19px 18px}.hero h1{font-size:43px;margin:7px 0 8px}.hero .eyebrow{font-size:9px;letter-spacing:.08em}.hero p{font-size:13px;line-height:1.4}.hero-cta{margin-top:12px;padding:7px 12px;font-size:13px}.stations{margin-top:19px}.section-head{margin-bottom:10px}.station-card{gap:8px}.station-info img,.secondary .station-info img{width:68px}.station-card h3{font-size:17px}.format{font-size:12px}.description{font-size:11px}.station-actions{margin-top:3px}.listen-button{min-height:40px}.station-site{min-height:26px}.flagship-grid .station-card:last-child{grid-column:1/-1}.flagship-grid .station-card:last-child .station-info{flex-direction:row;align-items:center}.flagship-grid .station-card:last-child .station-actions{flex-wrap:nowrap}.flagship-grid .station-card:last-child .listen-button{flex-basis:auto}}
@media(max-width:370px){.flagship-grid .station-card:last-child{grid-column:auto}.station-info img,.secondary .station-info img{width:68px}}

/* Fit the Toledo-first headline and station heading on smaller screens. */
.hero-content{max-width:650px}.station-card{scroll-margin-top:90px}@media(max-width:760px){.hero h1{font-size:clamp(32px,10.5vw,43px)}.section-head #stations-title{font-size:clamp(20px,5.8vw,26px);line-height:1.13}}

/* v1.2 launch polish: stronger branded header and mobile player overlap fix */
.brand{font-size:31px;font-weight:900;letter-spacing:-.07em;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.18)}
.brand img{width:56px;height:56px;object-fit:contain;border-radius:14px;background:transparent;box-shadow:0 0 0 1px rgba(255,255,255,.08)}
.brand-text{display:block;line-height:.96}
.brand-number{color:var(--accent)}
.brand small{display:block;font-size:10px;letter-spacing:.2em;font-weight:800;color:#d7e0ec;margin-top:7px}
.site-header{background:#0f1827}
.site-header nav{font-weight:700}
@media(max-width:760px){
  .brand{font-size:27px}
  .brand img{width:48px;height:48px}
  .brand small{font-size:9px;margin-top:5px}
  .player-inner{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:10px}
  .player-controls{order:-1;justify-self:start}
  .player-inner>img{width:44px;height:44px}
  .player-info{min-width:0}
  .radio-player{padding-right:0}
}

/* All six presets share the same visual hierarchy. */
.preset-grid .station-tag{color:var(--accent)}
.preset-grid .station-info img{object-fit:contain;background:#0c1423}
@media(max-width:760px){.preset-grid .station-card{grid-column:auto}.preset-grid .station-tag{display:none}}

/* Now playing: preserve station identity and controls on narrow screens. */
#player-track{font-size:13px;font-weight:650;color:var(--accent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35;margin-top:2px}#player-track[hidden]{display:none}#player-status{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.radio-player .player-inner{min-width:0}.radio-player .player-info{overflow:hidden}.radio-player .player-controls{flex-shrink:0}@media(max-width:760px){#player-track{font-size:12px}.radio-player .player-inner{grid-template-columns:auto auto minmax(0,1fr)}}
