/* SiEbrass Radio Sekolah — mobile first, no external dependencies. */
:root {
    color-scheme: light;
    --bg: #edf2f6; --surface: #fff; --text: #142c3d; --muted: #526577;
    --border: #dce5eb; --teal: #126c5d; --mint: #a3e9d1;
    --radio: #102b40; --radio-muted: #c0d2df; --radio-border: #365267;
    --radius: 20px; --shadow: 0 8px 28px rgba(20,44,61,.055);
    font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.55; }
[hidden] { display: none !important; }
button,input,a { font: inherit; -webkit-tap-highlight-color: transparent; }
button,a,summary { touch-action: manipulation; }
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible { outline: 3px solid #147eac; outline-offset: 3px; }
.live-panel button:focus-visible { outline-color: var(--mint); }
button:disabled { opacity: .65; cursor: not-allowed; }
h1,h2,h3,p,dd { margin: 0; overflow-wrap: anywhere; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { display: inline-block; width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.topbar { background: #fff; border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top, 0px); }
.topbar-inner,.shell { width: 100%; max-width: 1140px; margin-inline: auto; padding-left: max(16px,env(safe-area-inset-left,0px)); padding-right: max(16px,env(safe-area-inset-right,0px)); }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 13px; padding-bottom: 13px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand img { display: block; width: 46px; height: 46px; object-fit: contain; flex: none; }
.brand strong,.brand span { display: block; overflow-wrap: anywhere; }
.brand strong { font-size: .93rem; line-height: 1.3; }
.brand span { color: var(--muted); font-size: .78rem; margin-top: 3px; }
.top-info { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .75rem; }
.top-info .icon { width: 15px; height: 15px; color: var(--teal); }
.shell { padding-top: 23px; padding-bottom: 24px; }
.intro { margin-bottom: 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; color: var(--teal); }
.eyebrow .icon { width: 16px; height: 16px; }
h1 { font-size: clamp(1.55rem,4vw,2.35rem); line-height: 1.16; letter-spacing: -.035em; margin: 7px 0 8px; }
.intro p { color: var(--muted); max-width: 62ch; font-size: .94rem; }
.layout { display: grid; gap: 14px; grid-template-columns: minmax(0,1fr); align-items: start; }
.panel { min-width: 0; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.live-panel { color: #fff; background: radial-gradient(ellipse at 50% 25%,#254b60 0%,#102b40 57%,#0e2537 100%); border-color: #29495d; text-align: center; padding: 17px; }
.live-panel.is-live { border-color: #d97880; background: radial-gradient(ellipse at 50% 25%,#583344 0%,#202b40 53%,#102538 100%); }
.radio-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; text-align: left; }
.radio-top .eyebrow { color: var(--radio-muted); }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 99px; border: 1px solid #537083; background: #29475a; color: #f4f9fc; font-size: .68rem; font-weight: 750; line-height: 1.3; max-width: 100%; overflow-wrap: anywhere; }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #b7c9d5; }
.pill.live { background: #852b3c; border-color: #e59ba4; }
.pill.live .dot { background: #ffd3d8; animation: live-pulse 1.8s ease-out infinite; }
.pill.offline { background: #4b402c; border-color: #9a8150; }
.pill.offline .dot { background: #f8cb66; }
@keyframes live-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,211,216,.45); } 65% { box-shadow: 0 0 0 6px rgba(255,211,216,0); } }
.radio-art { display: grid; place-items: center; margin: 20px auto 13px; width: 128px; height: 128px; border: 1px solid #45687b; background: #ffffff06; border-radius: 50%; }
.emblem { width: 83px; height: 83px; border-radius: 50%; border: 1px solid #79beaf; display: grid; place-items: center; background: #1a4052; color: #a3e9d1; box-shadow: 0 0 0 10px #80c6bb0c; }
.emblem svg { width: 40px; height: 40px; }
.is-live .radio-art { border-color: #a45a68; }
.is-live .emblem { background: #813548; color: #ffd5db; border-color: #e0a0aa; box-shadow: 0 0 0 10px #ffb1bd12; }
#live-title { font-size: clamp(1.24rem,3vw,1.85rem); line-height: 1.27; letter-spacing: -.025em; }
#live-description { color: var(--radio-muted); font-size: .9rem; margin: 8px auto 0; max-width: 44ch; }
.equalizer { display: flex; align-items: center; justify-content: center; gap: clamp(3px,1vw,7px); height: 46px; border-radius: 12px; background: #091f30; padding: 8px 12px; margin: 17px 0; }
.eq-bar { flex: 1 1 0; min-width: 2px; max-width: 10px; height: 8%; min-height: 4px; border-radius: 6px; background: linear-gradient(#a3e9d1,#45bba9); }
.is-live .eq-bar { background: linear-gradient(#ffc2a6,#f07583); }
.listener-actions { display: grid; gap: 8px; max-width: 440px; margin-inline: auto; }
.primary,.secondary,.wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; min-height: 48px; min-width: 0; border: 1px solid transparent; border-radius: 12px; font-weight: 720; line-height: 1.3; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.primary { background: var(--mint); color: #113c32; }
.secondary { background: #f0f6f5; border-color: #cddfdc; color: #17594f; }
.wa { background: #e4f5e9; border-color: #c6e7d0; color: #165e3c; }
.live-panel .primary { font-size: 1.04rem; min-height: 56px; }
.live-panel .secondary { background: #213c50; border-color: #526b7e; color: #f0f7fb; }
.live-panel .resume { background: #fbe0a4; color: #4c340e; }
.privacy-note { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--radio-muted); font-size: .75rem; margin: 13px 0 0; }
.privacy-note .icon { width: 16px; height: 16px; color: var(--mint); }
.facts { margin: 18px 0 0; padding-top: 5px; border-top: 1px solid var(--radio-border); text-align: left; display: grid; gap: 0; }
.facts > div { display: flex; gap: 10px; align-items: flex-start; min-width: 0; padding: 10px 0 5px; }
.facts > div > .icon { color: var(--mint); width: 19px; height: 19px; margin-top: 4px; }
.facts > div > div { min-width: 0; }
.facts dt { color: var(--radio-muted); font-size: .73rem; }
.facts dd { font-size: .84rem; font-weight: 650; }
.section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.icon-tile { display: grid; place-items: center; flex: none; width: 40px; height: 40px; background: #e8f4f0; color: var(--teal); border-radius: 12px; }
.video-icon { background: #fff0f0; color: #b72a38; }
.help-icon { width: 34px; height: 34px; background: #edf2f7; color: #466377; }
.section-heading h2 { font-size: 1.04rem; line-height: 1.3; letter-spacing: -.015em; }
.section-subtitle { display: block; margin-top: 2px; font-size: .78rem; color: var(--muted); }
.notice { border-left: 4px solid #309a80; }
#running-text { white-space: pre-wrap; color: #294659; font-size: .94rem; }
.media-description { padding: 12px 14px; border-radius: 11px; background: #f0f4f7; color: #43596c; font-size: .86rem; }
#media-title { font-size: 1rem; margin-top: 13px; }
#youtube-player { aspect-ratio: 16/9; min-height: 200px; background: #07121c; margin-top: 13px; border-radius: 12px; overflow: hidden; }
#youtube-player iframe { display: block; width: 100%; height: 100%; min-height: 200px; border: 0; }
.media-panel button { width: 100%; margin-top: 10px; }
.youtube { background: #b72a38; color: #fff; }
#media-external { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-size: .85rem; font-weight: 650; margin-top: 10px; min-height: 44px; }
#media-external .icon { width: 16px; height: 16px; }
.hint { color: var(--muted); font-size: .78rem; margin-top: 12px; }
.share-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.share-actions > * { flex-direction: column; font-size: .75rem; padding: 10px 4px; min-height: 64px; }
.link-label { display: block; font-size: .75rem; color: var(--muted); margin: 14px 0 5px; }
#share-url { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border); background: #f6f8fa; color: #344d60; font-size: .85rem; }
.share-feedback { color: var(--teal); font-weight: 650; }
.share-feedback:empty { display: none; }
.help-panel { padding: 14px 16px; }
.help-panel summary { display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; list-style: none; }
.help-panel summary::-webkit-details-marker { display: none; }
.help-title { font-size: .9rem; font-weight: 700; flex: 1; }
.chevron { color: var(--muted); transition: transform .2s; }
.help-panel[open] .chevron { transform: rotate(180deg); }
.help-content { border-top: 1px solid var(--border); margin-top: 11px; padding-top: 12px; color: var(--muted); font-size: .85rem; }
.help-content ol { margin: 0 0 10px; padding-left: 21px; }
.help-content li + li { margin-top: 5px; }
.help-content p + p { margin-top: 10px; }
.noscript { padding: 12px; margin-top: 16px; background: #fff2d9; color: #684514; border-radius: 10px; }
.footer { text-align: center; color: var(--muted); padding: 4px 16px max(24px,env(safe-area-inset-bottom,0px)); font-size: .8rem; }
.footer strong,.footer span,.footer small { display: block; }
.footer strong { color: var(--text); font-size: .86rem; }
.footer small { margin-top: 7px; font-size: .72rem; }
@media (max-width: 349px) { .panel { padding: 14px; } .share-actions { grid-template-columns: 1fr; } .share-actions > * { flex-direction: row; min-height: 46px; } }
@media (min-width: 600px) {
    .topbar-inner,.shell { padding-left: max(26px,env(safe-area-inset-left,0px)); padding-right: max(26px,env(safe-area-inset-right,0px)); }
    .brand img { width: 52px; height: 52px; }
    .brand strong { font-size: 1.02rem; }
    .shell { padding-top: 30px; }
    .panel { padding: 23px; }
    .radio-art { width: 150px; height: 150px; }
    .emblem { width: 99px; height: 99px; }
    .emblem svg { width: 47px; height: 47px; }
    .equalizer { height: 52px; }
    .facts { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
    .facts > div { flex-direction: column; gap: 4px; }
    .share-actions > * { flex-direction: row; min-height: 48px; }
}
/* Grid rows are independent on mobile; desktop uses two natural columns. */
@media (min-width: 900px) {
    .layout { grid-template-columns: minmax(0,1.18fr) minmax(0,1fr); gap: 16px 22px; grid-template-areas: "live notice" "live media" "help share"; grid-template-rows: auto 1fr auto; }
    .live-panel { grid-area: live; padding: 26px; align-self: start; }
    .notice { grid-area: notice; }
    .media-panel { grid-area: media; }
    .share-panel { grid-area: share; }
    .help-panel { grid-area: help; }
    .intro { margin-bottom: 25px; }
    .radio-art { margin-top: 23px; }
    .share-actions > * { flex-direction: column; min-height: 58px; }
}
@media (min-width: 1250px) { .shell,.topbar-inner { max-width: 1200px; } .share-actions > * { flex-direction: row; } }
@media (hover: hover) { .primary:hover,.secondary:hover,.wa:hover { filter: brightness(.96); } #media-external:hover { text-decoration: none; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; } }
