/* Trink World Radio — same black and yellow theme as the Trink dashboards. */
:root{
  --yellow:#F2DE2E;--yellow2:#FFF8CC;--gold:#6E6100;--black:#151515;
  --bg:#F4F4F1;--card:#fff;--ink:#1A1A1A;--muted:#6B6B66;--line:#E4E3DC;--line2:#C9C8C0;
  --red:#B42318;--redbg:#FDE8E7;
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font:15px/1.45 "Segoe UI",system-ui,sans-serif;padding-bottom:96px}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--black)}a:hover{color:var(--muted)}
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--black);outline-offset:2px}

.topbar{background:var(--black);color:#D9D9D2;font-size:12px;letter-spacing:.02em;padding:6px 22px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}
.topbar b{color:var(--yellow);font-weight:600}

/* Logos on the left, the title a little left of centre, the search box on the right. */
.head{background:#fff;border-bottom:4px solid var(--yellow);padding:12px 22px;display:grid;grid-template-columns:.88fr auto 1.12fr;gap:16px;align-items:center}
.titlebox{text-align:center}
@media (max-width:980px){.head{display:flex;flex-wrap:wrap;justify-content:space-between}.titlebox{text-align:left}}
.brand{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.logo{height:52px;width:auto;max-width:200px;object-fit:contain}
h1{margin:0;font-size:24px;font-weight:700;letter-spacing:-.01em}
.sub{font-size:13px;color:var(--muted)}
.search{display:flex;flex-wrap:wrap;align-items:center;gap:10px;flex:1 1 320px;justify-content:flex-end}
.search label{font-size:13px;color:var(--muted)}
.search input{height:44px;flex:1 1 260px;max-width:460px;padding:0 14px;border:1px solid var(--line2);border-radius:6px;background:#fff}

.cols{display:flex;flex-wrap:wrap;gap:16px;align-items:stretch;padding:16px 22px}
.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:14px}
.countries{flex:1 1 230px;min-width:0;display:flex;flex-direction:column}
.stations{flex:2 1 380px;min-width:0;display:flex;flex-direction:column}
.detailcol{flex:2 1 360px;min-width:0;display:flex;flex-direction:column;gap:16px}
h2{margin:0 0 10px;font-size:13px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
/* The two lists stretch to the bottom of the right-hand column and scroll inside. */
.list{display:flex;flex-direction:column;gap:6px;flex:1 1 0;min-height:60vh;overflow-y:auto;padding:2px}
.list>*{flex:none}
.cardhead{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin:0 0 10px}
.cardhead h2{margin:0}
.total{font-size:13px;color:var(--muted);white-space:nowrap}
.total b{color:var(--ink);font-weight:700}
.hint,.note,.empty{font-size:13px;color:var(--muted);margin:10px 0 0}
.note{margin:0 0 10px;padding:10px 12px;border:1px dashed var(--line2);border-radius:6px}
.note.err{color:var(--red);border-color:var(--red);background:var(--redbg)}

.crow{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border:1px solid transparent;border-radius:6px;background:transparent;text-align:left;width:100%}
.crow:hover{background:#F7F7F3}
.crow.on{background:var(--yellow2);border-color:var(--black)}
.crow .cc{width:30px;font-size:12px;font-weight:700;color:var(--muted);flex:none}
.crow .nm{flex:1;min-width:0}
.crow .ct{font-size:12px;color:var(--muted);flex:none}
.crow .pin{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--gold);flex:none}

.srow{display:flex;align-items:stretch;gap:6px}
.spick{flex:1;min-width:0;min-height:60px;display:flex;align-items:center;gap:12px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;background:#fff;text-align:left}
.spick:hover{border-color:var(--line2)}
.spick.on{background:var(--yellow2);border-color:var(--black)}
.slogo{flex:none;width:44px;height:44px;border-radius:6px;border:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:var(--muted);overflow:hidden}
.slogo img{width:100%;height:100%;object-fit:contain}
.stext{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.sname{font-size:16px;font-weight:600;overflow-wrap:anywhere}
.smeta{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.sfreq{flex:none;font-size:15px;font-weight:700}
.star{flex:none;width:48px;border:1px solid var(--line);border-radius:6px;background:#fff;display:flex;align-items:center;justify-content:center}
.star svg{fill:none;stroke:var(--muted)}
.star.on svg{fill:var(--yellow);stroke:var(--black)}

.tagdef{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--gold);flex:none}
.crow .fv{width:30px;flex:none;font-size:16px;line-height:1}
.map{width:100%;height:230px;border:1px solid var(--line);border-radius:6px;display:block}
.small{font-size:12px;color:var(--muted);margin:8px 0 0}
.abouttext{margin:0 0 8px}
.dhead{display:flex;align-items:center;gap:14px}
.dlogo{flex:none;width:72px;height:72px;border-radius:8px;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;color:var(--muted);overflow:hidden;background:#fff}
.dlogo img{width:100%;height:100%;object-fit:contain}
.dstatus{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px}
.dstatus .air{color:var(--red)}
.dstatus .def{color:var(--gold)}
.dname{font-size:26px;font-weight:700;line-height:1.1;overflow-wrap:anywhere}
.dplace{font-size:14px;color:var(--muted)}
.dfreq{font-size:40px;font-weight:700;line-height:1;margin:16px 0}
.dfreq.none{font-size:15px;font-weight:400;color:var(--muted)}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:10px;margin:0 0 16px}
.fact{display:flex;flex-direction:column;gap:2px;padding-top:8px;border-top:1px solid var(--line)}
.fact dt{font-size:12px;color:var(--muted)}
.fact dd{margin:0;overflow-wrap:anywhere}
.finder{margin:16px 22px 0}
.frow{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px}
.fld{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted);flex:1 1 170px;min-width:0}
.fld select,.locrow input{height:44px;padding:0 10px;border:1px solid var(--line2);border-radius:6px;background:#fff;font-size:15px;color:var(--ink);min-width:0}
.chk{display:flex;align-items:center;gap:8px;min-height:44px;flex:1 1 230px}
.chk input{width:20px;height:20px;accent-color:var(--black)}
.secondary{color:var(--ink)}
.primary.small,.secondary.small{min-height:44px;width:auto;margin-top:0;padding:0 18px;font-size:15px;flex:none}
.locrow{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line);font-size:14px}
.locrow input{flex:1 1 200px;max-width:320px}
.locrow .msg{color:var(--muted)}
.primary{min-height:52px;padding:0 22px;border:0;border-radius:8px;background:var(--yellow);color:var(--black);font-size:16px;font-weight:600}
.primary:hover{background:#E6D21F}
.wide{width:100%}
.secondary{min-height:44px;padding:0 16px;border:1px solid var(--black);border-radius:8px;background:#fff;margin-top:8px;width:100%}

.prog{display:flex;gap:14px;padding:10px 0;border-top:1px solid var(--line)}
.prog.now{background:var(--yellow2);margin:0 -8px;padding:10px 8px;border-radius:6px}
.ptime{flex:none;width:108px;font-size:14px;font-weight:600;color:var(--muted)}
.pshow{flex:1;min-width:0}
.ppres{font-size:13px;color:var(--muted)}


/* Advert banners: every slide sits in the same spot and they cross-fade. */
.ad{margin:16px 22px 0;display:grid;border-radius:10px;overflow:hidden;border:1px solid var(--line);--fade:3s}
.slide{grid-area:1/1;min-width:0;opacity:0;visibility:hidden;transition:opacity var(--fade) ease,visibility 0s linear var(--fade)}
.slide.on{opacity:1;visibility:visible;transition:opacity var(--fade) ease}
@media (prefers-reduced-motion:reduce){.slide,.slide.on{transition:none}}
.banner{display:flex;align-items:center;justify-content:space-between;min-height:200px;overflow:hidden;font-family:Archivo,"Segoe UI",Arial,sans-serif}
.bn-text{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:8px;padding:20px clamp(16px,2.4vw,32px) 20px clamp(18px,3.6vw,48px)}
.bn-kicker{font-size:13px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}
.bn-head{font-size:clamp(28px,4.3vw,58px);font-weight:900;line-height:.95;letter-spacing:-.02em;text-transform:uppercase}
.bn-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:6px}
.bn-sub{font-size:clamp(15px,1.4vw,18px);font-weight:600}
.bn-btn{min-height:46px;display:inline-flex;align-items:center;padding:0 22px;border-radius:6px;font-size:17px;font-weight:800;text-decoration:none}
.bn-btn.dark{background:#151515;color:#fff}.bn-btn.dark:hover{color:var(--yellow)}
.bn-btn.yel{background:var(--yellow);color:#151515}.bn-btn.yel:hover{background:#fff;color:#151515}
.bn-art{flex:none;align-self:stretch;height:auto;min-height:200px}
.bn-school{background:var(--yellow);color:#151515}
.bn-school .bn-art{width:min(42%,560px)}
.bn-ink{background:#151515;color:#fff}
.bn-ink .bn-art{width:min(30%,400px)}
.bn-ink .bn-kicker{color:var(--yellow)}
.bn-ink .bn-sub{color:#E4E3DC}
.bn-stripes{flex:none;align-self:stretch;display:flex;transform:skewX(-12deg);margin-right:-30px}
.bn-stripes span{width:34px}.bn-stripes span:last-child{width:60px}
.bn-both{background:var(--yellow);align-items:stretch}
.bn-half{flex:1 1 0;min-width:0;display:flex;align-items:center;gap:20px}
.bn-half.left{color:#151515}
.bn-half.right{background:#151515;color:#fff;margin-left:-50px;padding-left:110px;clip-path:polygon(100px 0,100% 0,100% 100%,0 100%)}
.bn-half.right .bn-kicker{color:var(--yellow)}
.bn-half .bn-text{padding-right:8px}
.bn-half.right .bn-text{padding-left:0}
.bn-both .bn-head{font-size:clamp(26px,3.5vw,50px)}
.bn-icon{flex:none;margin-left:clamp(12px,2.4vw,40px)}
.bn-half.right .bn-icon{margin:0 clamp(12px,2.4vw,36px) 0 0}
@media (max-width:1100px){.bn-icon{display:none}}
@media (max-width:860px){
  .bn-both{flex-direction:column}
  .bn-half.right{margin-left:0;padding-left:0;clip-path:none}
  .bn-half.right .bn-text{padding-left:clamp(18px,3.6vw,48px)}
}
.bn-office{background:#1B4FB8;color:#fff}
.bn-office .bn-kicker{color:var(--yellow)}
.bn-office .bn-art{width:min(40%,520px)}
.bn-launch{background:linear-gradient(100deg,#FF6A3D 0%,#FF9F1C 45%,#FFD23F 100%);color:#2B1A4A}
.bn-launch .bn-head{color:#2B1A4A}
.bn-launch .bn-kicker{color:#7A2E00}
.bn-launch .bn-sub{color:#7A2E00}
.bn-launch .bn-art{width:min(36%,380px)}
.bn-play{display:inline-flex;align-items:center;gap:10px;background:#2B1A4A;color:#FFD23F;padding:12px 22px;border-radius:999px;font-size:17px;font-weight:800;box-shadow:0 5px 0 rgba(43,26,74,.25)}
.bn-bf{background:#151515;color:#fff}
.bn-bf .bn-head{color:var(--yellow);font-size:clamp(34px,5.4vw,76px)}
.bn-bf .bn-sub{color:#E4E3DC}
.bn-bf .bn-art{width:min(24%,300px)}
.bn-hazard{flex:none;align-self:stretch;width:clamp(60px,10vw,150px);background:repeating-linear-gradient(-45deg,var(--yellow) 0 22px,#151515 22px 44px)}
.adcard{background:#fff;border-top:4px solid var(--yellow);padding:16px;display:flex;flex-wrap:wrap;align-items:center;gap:16px;min-height:200px}
.adcard .tag{font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--gold)}
.adcard .adtext{flex:1 1 260px;min-width:0;display:flex;flex-direction:column;gap:4px}
.adcard .adhead{font-size:24px;font-weight:700;line-height:1.15}
.adcard .adbody{color:var(--muted)}
.adcard .adbtn{align-self:flex-start;margin-top:8px;min-height:44px;display:inline-flex;align-items:center;padding:0 18px;border-radius:8px;background:var(--yellow);color:var(--black);font-weight:600;text-decoration:none}
.adcard .adimgs{flex:2 1 320px;min-width:0;display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.adcard .adimgs img{width:112px;height:112px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:8px;padding:6px}
.player{position:fixed;left:0;right:0;bottom:0;background:var(--black);color:#fff;padding:10px 22px;display:flex;flex-wrap:wrap;align-items:center;gap:14px;border-top:4px solid var(--yellow)}
.player .now{flex:1 1 180px;min-width:0}
.nowname{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nowstate{font-size:13px;color:#D9D9D2}
.nowsong{font-size:13px;color:var(--yellow);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ghost{min-height:44px;padding:0 14px;border:1px solid #D9D9D2;border-radius:8px;background:transparent;color:#fff}
.ghost:hover{background:#2A2A2A}
.vol{display:flex;align-items:center;gap:8px;font-size:13px;color:#D9D9D2}
.vol input{width:120px;accent-color:var(--yellow)}

@media (max-width:720px){
  .topbar,.head{padding-left:14px;padding-right:14px}
  .cols{padding:14px}
  .ad{margin:14px 14px 0}
  .finder{margin:14px 14px 0}
  .bn-art,.bn-stripes,.bn-hazard{display:none}
  .list{flex:none;min-height:0;max-height:none}
  .countries .list{max-height:240px}
  .vol{display:none}
}
