/*
Theme Name: SoundFm – Radio (Broadcast-Hintergrund, Info-Box unter den Stream-Links)
Description: Modernes, schlichtes weißes Radio-Theme für SoundFm – Nonstop Music (laut.fm/soundfm). Live-Titelanzeige mit Cover, Stream- und App-Buttons, Info-Box, eigenes Hintergrundbild und eine Playlist-Seite mit den letzten 100 gespielten Songs.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: soundfm
*/
:root{--accent:#2f6bff;--accent-rgb:47,107,255;--veil:.55;
  --ink:#0f1630;--muted:#505a73;--line:#e3e7f1;--card:#fff;--radius:22px;
  --shadow:0 12px 40px rgba(20,30,70,.09),0 2px 6px rgba(20,30,70,.05);
  --font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);font:400 1.0625rem/1.65 var(--font);background:#f6f8fc;min-height:100vh;position:relative}
a{color:var(--accent)}a:hover{color:var(--ink)}
img{max-width:100%;height:auto}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px}
.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.wrap{width:min(1120px,100% - 2rem);margin-inline:auto}
h1,h2,h3{line-height:1.15;letter-spacing:-.02em;margin:0 0 .5em}

/* ---------- Hintergrundbild ---------- */
.sf-bg{position:fixed;inset:0;z-index:-1;pointer-events:none;background-color:#f6f8fc;background-repeat:no-repeat;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='330' viewBox='0 0 200 330' fill='none' stroke='rgb(47,107,255)' stroke-width='3' stroke-linecap='round'><rect x='68' y='10' width='64' height='118' rx='32'/><line x1='76' y1='36' x2='124' y2='36' stroke-width='2'/><line x1='76' y1='52' x2='124' y2='52' stroke-width='2'/><line x1='76' y1='68' x2='124' y2='68' stroke-width='2'/><line x1='76' y1='84' x2='124' y2='84' stroke-width='2'/><line x1='76' y1='100' x2='124' y2='100' stroke-width='2'/><path d='M46 84 V112 A54 54 0 0 0 154 112 V84'/><line x1='100' y1='166' x2='100' y2='290'/><path d='M52 316 H148'/><path d='M70 290 H130' stroke-width='5'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900' fill='none' stroke='rgb(47,107,255)'><circle cx='450' cy='450' r='70' stroke-width='2' opacity='0.34'/><circle cx='450' cy='450' r='130' stroke-width='2' opacity='0.305' stroke-dasharray='6 10'/><circle cx='450' cy='450' r='190' stroke-width='2' opacity='0.27'/><circle cx='450' cy='450' r='250' stroke-width='2' opacity='0.235' stroke-dasharray='6 10'/><circle cx='450' cy='450' r='310' stroke-width='2' opacity='0.2'/><circle cx='450' cy='450' r='370' stroke-width='2' opacity='0.165' stroke-dasharray='6 10'/><circle cx='450' cy='450' r='430' stroke-width='2' opacity='0.13'/><circle cx='450' cy='450' r='9' fill='rgb(47,107,255)' stroke='none' opacity='.45'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900' fill='none' stroke='rgb(47,107,255)'><circle cx='450' cy='450' r='70' stroke-width='2' opacity='0.34'/><circle cx='450' cy='450' r='130' stroke-width='2' opacity='0.305' stroke-dasharray='6 10'/><circle cx='450' cy='450' r='190' stroke-width='2' opacity='0.27'/><circle cx='450' cy='450' r='250' stroke-width='2' opacity='0.235' stroke-dasharray='6 10'/><circle cx='450' cy='450' r='310' stroke-width='2' opacity='0.2'/><circle cx='450' cy='450' r='370' stroke-width='2' opacity='0.165' stroke-dasharray='6 10'/><circle cx='450' cy='450' r='430' stroke-width='2' opacity='0.13'/><circle cx='450' cy='450' r='9' fill='rgb(47,107,255)' stroke='none' opacity='.45'/></svg>"),
    radial-gradient(45vw 45vh at 8% 12%,rgba(160,196,255,.55),transparent 70%),
    radial-gradient(40vw 40vh at 92% 18%,rgba(255,196,214,.45),transparent 70%),
    radial-gradient(50vw 40vh at 70% 100%,rgba(190,245,224,.55),transparent 70%);
  background-position:left 4% bottom 150px,right -260px top -300px,left -340px bottom -380px,0 0,0 0,0 0;
  background-size:170px auto,980px 980px,820px 820px,100% 100%,100% 100%,100% 100%}
/* Spektrum-Balken am unteren Rand */
.sf-bg::before{content:"";position:absolute;left:0;right:0;bottom:0;height:230px;background:repeat-x left bottom/1200px 220px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='220' viewBox='0 0 1200 220' fill='rgb(47,107,255)'><rect x='7' y='120' width='10' height='100' rx='5' opacity='0.15'/><rect x='31' y='164' width='10' height='56' rx='5' opacity='0.128'/><rect x='55' y='101' width='10' height='119' rx='5' opacity='0.16'/><rect x='79' y='190' width='10' height='30' rx='5' opacity='0.115'/><rect x='103' y='184' width='10' height='36' rx='5' opacity='0.118'/><rect x='127' y='178' width='10' height='42' rx='5' opacity='0.121'/><rect x='151' y='109' width='10' height='111' rx='5' opacity='0.156'/><rect x='175' y='188' width='10' height='32' rx='5' opacity='0.116'/><rect x='199' y='73' width='10' height='147' rx='5' opacity='0.174'/><rect x='223' y='148' width='10' height='72' rx='5' opacity='0.136'/><rect x='247' y='193' width='10' height='27' rx='5' opacity='0.114'/><rect x='271' y='180' width='10' height='40' rx='5' opacity='0.12'/><rect x='295' y='91' width='10' height='129' rx='5' opacity='0.165'/><rect x='319' y='95' width='10' height='125' rx='5' opacity='0.163'/><rect x='343' y='185' width='10' height='35' rx='5' opacity='0.118'/><rect x='367' y='141' width='10' height='79' rx='5' opacity='0.14'/><rect x='391' y='42' width='10' height='178' rx='5' opacity='0.189'/><rect x='415' y='119' width='10' height='101' rx='5' opacity='0.151'/><rect x='439' y='135' width='10' height='85' rx='5' opacity='0.143'/><rect x='463' y='138' width='10' height='82' rx='5' opacity='0.141'/><rect x='487' y='139' width='10' height='81' rx='5' opacity='0.141'/><rect x='511' y='76' width='10' height='144' rx='5' opacity='0.172'/><rect x='535' y='95' width='10' height='125' rx='5' opacity='0.163'/><rect x='559' y='166' width='10' height='54' rx='5' opacity='0.127'/><rect x='583' y='172' width='10' height='48' rx='5' opacity='0.124'/><rect x='607' y='124' width='10' height='96' rx='5' opacity='0.148'/><rect x='631' y='156' width='10' height='64' rx='5' opacity='0.132'/><rect x='655' y='176' width='10' height='44' rx='5' opacity='0.122'/><rect x='679' y='154' width='10' height='66' rx='5' opacity='0.133'/><rect x='703' y='107' width='10' height='113' rx='5' opacity='0.157'/><rect x='727' y='178' width='10' height='42' rx='5' opacity='0.121'/><rect x='751' y='186' width='10' height='34' rx='5' opacity='0.117'/><rect x='775' y='187' width='10' height='33' rx='5' opacity='0.117'/><rect x='799' y='150' width='10' height='70' rx='5' opacity='0.135'/><rect x='823' y='41' width='10' height='179' rx='5' opacity='0.19'/><rect x='847' y='31' width='10' height='189' rx='5' opacity='0.195'/><rect x='871' y='58' width='10' height='162' rx='5' opacity='0.181'/><rect x='895' y='87' width='10' height='133' rx='5' opacity='0.167'/><rect x='919' y='88' width='10' height='132' rx='5' opacity='0.166'/><rect x='943' y='182' width='10' height='38' rx='5' opacity='0.119'/><rect x='967' y='126' width='10' height='94' rx='5' opacity='0.147'/><rect x='991' y='76' width='10' height='144' rx='5' opacity='0.172'/><rect x='1015' y='115' width='10' height='105' rx='5' opacity='0.152'/><rect x='1039' y='88' width='10' height='132' rx='5' opacity='0.166'/><rect x='1063' y='129' width='10' height='91' rx='5' opacity='0.146'/><rect x='1087' y='184' width='10' height='36' rx='5' opacity='0.118'/><rect x='1111' y='172' width='10' height='48' rx='5' opacity='0.124'/><rect x='1135' y='71' width='10' height='149' rx='5' opacity='0.174'/><rect x='1159' y='95' width='10' height='125' rx='5' opacity='0.163'/><rect x='1183' y='160' width='10' height='60' rx='5' opacity='0.13'/></svg>")}
.sf-bg.has-image::before{display:none}
.sf-bg.has-image{background-size:cover;background-position:center}
.sf-bg::after{content:"";position:absolute;inset:0;background:rgba(255,255,255,var(--veil))}

/* ---------- Header ---------- */
.site-header{padding:1.1rem 0}
.header-row{display:flex;align-items:center;justify-content:space-between;gap:1rem 2rem;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:.8rem;text-decoration:none;color:var(--ink)}
.brand .custom-logo{max-height:48px;width:auto}
.brand-name{display:block;font:800 clamp(1.5rem,3vw,2rem)/1 var(--font);letter-spacing:-.03em}
.brand-name b{color:var(--accent);font-weight:800}
.brand-tag{display:block;color:var(--muted);font-size:.85rem;letter-spacing:.14em;text-transform:uppercase;margin-top:.2rem}
.main-nav ul{display:flex;gap:.4rem;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.main-nav a{display:inline-block;color:var(--ink);text-decoration:none;font-weight:600;padding:.5rem 1rem;border-radius:999px;transition:background .15s}
.main-nav a:hover,.main-nav .current-menu-item a{background:rgba(var(--accent-rgb),.12);color:var(--accent)}
.live{display:inline-flex;align-items:center;gap:.5rem;font:700 .8rem var(--font);letter-spacing:.14em;padding:.45rem .9rem;border-radius:999px;background:#fff;border:1px solid var(--line);box-shadow:0 2px 8px rgba(20,30,70,.06)}
.live i{width:.55rem;height:.55rem;border-radius:50%;background:#e5334b}
body.is-playing .live i{animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{50%{opacity:.25;transform:scale(.8)}}

/* ---------- Karten ---------- */
.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.7)}
.main-grid{display:grid;grid-template-columns:1fr;gap:1.4rem;margin-top:1rem}

/* Player */
.player{display:grid;grid-template-columns:minmax(200px,300px) 1fr;gap:clamp(1.2rem,3vw,2.2rem);padding:clamp(1.2rem,3vw,2rem);align-items:center}
.cover{position:relative;aspect-ratio:1;isolation:isolate}
.cover::before{content:"";position:absolute;inset:10% 6% -4%;z-index:-1;border-radius:50%;background:var(--c,none) center/cover;filter:blur(26px);opacity:.55}
.cover-in{position:relative;width:100%;height:100%;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#dfe8ff,#f6e1ec);box-shadow:0 14px 34px rgba(20,30,70,.22)}
.cover-in img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.cover-in .ph{position:absolute;inset:0;display:grid;place-items:center;font-size:4rem;color:rgba(var(--accent-rgb),.5)}
.pill{display:inline-flex;align-items:center;gap:.45rem;font:700 .78rem var(--font);letter-spacing:.14em;text-transform:uppercase;color:var(--accent);background:rgba(var(--accent-rgb),.1);padding:.35rem .8rem;border-radius:999px}
.np-title{font-size:clamp(1.7rem,4vw,2.8rem);margin:.6rem 0 .2rem;text-wrap:balance}
.np-artist{font-size:clamp(1.1rem,2.2vw,1.4rem);font-weight:600;margin:0;color:var(--ink)}
.np-album{margin:.2rem 0 0;color:var(--muted);font-size:.95rem}
.bar{height:6px;border-radius:6px;background:#e9edf6;margin:1.3rem 0 .35rem;overflow:hidden}
.bar b{display:block;height:100%;width:0;background:var(--accent);border-radius:6px;transition:width 1s linear}
.times{display:flex;justify-content:space-between;color:var(--muted);font-size:.85rem;font-variant-numeric:tabular-nums}
.controls{display:flex;align-items:center;gap:1.1rem;margin-top:1.1rem;flex-wrap:wrap}
.play{width:68px;height:68px;border-radius:50%;border:0;padding:0;cursor:pointer;display:grid;place-items:center;color:#fff;background:var(--accent);
  box-shadow:0 10px 24px rgba(var(--accent-rgb),.45);transition:transform .15s,box-shadow .15s}
.play:hover{transform:scale(1.06)}
.play svg{width:28px;height:28px;fill:currentColor}
.play .i-pause{display:none}
body.is-playing .play .i-play{display:none}
body.is-playing .play .i-pause{display:block}
.vol{display:flex;align-items:center;gap:.6rem;color:var(--muted);font-size:.9rem;margin:0}
.vol input{width:150px;accent-color:var(--accent)}
.eq{display:flex;align-items:flex-end;gap:3px;height:28px;margin-left:auto}
.eq span{width:4px;height:100%;border-radius:2px;background:var(--accent);transform-origin:bottom;transform:scaleY(.18);opacity:.85}
body.is-playing .eq span{animation:eq var(--d,.8s) ease-in-out var(--l,0s) infinite alternate}
@keyframes eq{from{transform:scaleY(.2)}to{transform:scaleY(var(--h,1))}}

/* Info-Box */
.info{padding:clamp(1.2rem,3vw,1.8rem);display:grid;grid-template-columns:auto 1fr;gap:.4rem 1.2rem;align-items:start;background:linear-gradient(100deg,#fff 45%,rgba(var(--accent-rgb),.09))}
.info .ico{grid-row:1/3}
.info h2{grid-column:2}
.info-text{grid-column:2;max-width:60em}
.info .gema{grid-column:1/-1;margin-top:.8rem}
.info h2{font-size:1.5rem;margin:0}
.info .ico{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--accent);color:#fff;font:800 1.3rem var(--font)}
.info-text p{margin:0 0 .8rem}.info-text p:last-child{margin:0}
.gema{display:flex;gap:.7rem;align-items:flex-start;padding:.85rem 1rem;border-radius:14px;background:#f3f6fc;border:1px solid var(--line);color:var(--ink);font-size:.95rem;line-height:1.5}
.gema b{flex:none;width:1.4rem;height:1.4rem;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#fff;font-size:.8rem}

/* Sektionen */
.section{margin-top:2.6rem}
.section h2{font-size:clamp(1.4rem,2.6vw,1.8rem);margin-bottom:1rem}
.btn-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.8rem}
.btn{display:flex;flex-direction:column;gap:.1rem;padding:1rem 1.2rem;text-decoration:none;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:16px;
  box-shadow:0 4px 14px rgba(20,30,70,.05);transition:transform .15s,border-color .15s,box-shadow .15s}
.btn strong{font-size:1.1rem}
.btn small{color:var(--muted)}
.btn:hover{transform:translateY(-2px);border-color:var(--accent);box-shadow:0 10px 26px rgba(var(--accent-rgb),.18);color:var(--ink)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.primary small{color:rgba(255,255,255,.9)}
.btn.primary:hover{color:#fff;box-shadow:0 10px 26px rgba(var(--accent-rgb),.45)}
.sub{margin:1.4rem 0 .6rem;font-size:.85rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:700}

/* Tracks */
.list{list-style:none;margin:0;padding:.4rem}
.track{display:flex;align-items:center;gap:.9rem;padding:.65rem .8rem;border-radius:14px}
.track:nth-child(even){background:#f7f9fd}
.track .n{width:2rem;text-align:right;color:var(--muted);font-variant-numeric:tabular-nums;font-size:.9rem}
.track .tc{width:54px;height:54px;flex:none;border-radius:10px;overflow:hidden;background:linear-gradient(135deg,#dfe8ff,#f6e1ec);display:grid;place-items:center;color:rgba(var(--accent-rgb),.5);box-shadow:0 3px 10px rgba(20,30,70,.15)}
.track .tc img{width:100%;height:100%;object-fit:cover;display:block}
.track .tt{min-width:0;flex:1;display:flex;flex-direction:column}
.track .tt strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.track .tt span{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.95rem}
.track time{color:var(--muted);font-size:.88rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.track.now{background:rgba(var(--accent-rgb),.1)}
.track .tag{font:700 .7rem var(--font);letter-spacing:.12em;text-transform:uppercase;color:#fff;background:var(--accent);padding:.15rem .5rem;border-radius:999px;margin-left:.4rem;vertical-align:middle}
.empty{padding:1.2rem;color:var(--muted)}
.more{display:inline-block;margin-top:1rem;font-weight:700}

/* Seiten */
.page-head{padding:2rem 0 1rem}
.page-head h1{font-size:clamp(2rem,5vw,3.2rem)}
.page-head p{color:var(--muted);max-width:40em;margin:.2rem 0 0}
.entry{padding:clamp(1.2rem,3vw,2rem);margin:1.4rem 0}
.entry-content>*{max-width:100%}
.pagination{display:flex;gap:.5rem;justify-content:center;margin:2rem 0}
.pagination .page-numbers{padding:.4rem .9rem;border:1px solid var(--line);border-radius:10px;text-decoration:none;background:#fff}
.pagination .current{background:var(--accent);color:#fff;border-color:var(--accent)}

/* Footer */
.site-footer{margin-top:3.5rem;padding:1.6rem 0 2rem;background:rgba(255,255,255,.82);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid var(--line)}
.footer-row{display:flex;justify-content:space-between;gap:1rem 2rem;flex-wrap:wrap;align-items:center;font-size:.95rem;color:var(--muted)}
.footer-row ul{display:flex;gap:1.1rem;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.footer-row a{color:var(--ink)}
.site-footer .gema{margin-bottom:1.2rem}

@media (max-width:700px){.sf-bg:not(.has-image){background-size:0 0,640px 640px,0 0,100% 100%,100% 100%,100% 100%}}
@media (max-width:620px){.info{grid-template-columns:1fr}.info .ico{grid-row:auto}.info h2,.info-text{grid-column:1}}
@media (max-width:620px){.player{grid-template-columns:1fr}.cover{max-width:300px;margin-inline:auto;width:100%}.eq{display:none}.track .n{display:none}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}html{scroll-behavior:auto}}
