/* The mobile view is never scaled down as a single desktop canvas. */
body.owf-mobile {
    width: 100%; height: auto; min-height: 100svh; overflow: auto;
    display: block; padding: 0;
    background: radial-gradient(ellipse at 50% 0, #102b3c, transparent 65%), #030a13;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}
.owf-mobile .owf-popup-container {
    width: 100%; max-width: 900px; min-width: 0; margin: 0 auto;
    padding: 0; transform: none !important; overflow: visible;
}
.owf-mobile .owf-popup-container::before,
.owf-mobile .owf-popup-container::after { position: absolute; pointer-events: none; }
.owf-mobile-hero {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: max(12px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 8px max(18px, env(safe-area-inset-left));
}
.owf-mobile-heading { text-align: center; width: 100%; flex: 0 0 auto; }
.owf-mobile-heading strong { display: block; font-size: clamp(17px, 4.9vw, 25px); letter-spacing: .07em; font-weight: 850; }
.owf-mobile-heading > span {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 5px; color: var(--owf-text-main, #eef3f6);
    font-size: 12px; font-weight: 800; letter-spacing: .22em;
    text-shadow: 0 0 7px var(--owf-block-frame-accent, #6bc8e5), 0 0 16px var(--owf-block-frame-accent, #6bc8e5);
}
.owf-mobile-heading > span::before,
.owf-mobile-heading > span::after {
    content: ""; width: clamp(22px, 6vw, 34px); height: 1px; flex: 0 0 auto;
    background: currentColor;
    box-shadow: 0 0 7px var(--owf-block-frame-accent, #6bc8e5), 0 0 14px var(--owf-block-frame-accent, #6bc8e5);
}
.owf-install-trigger { display: inline-flex; align-items: center; justify-content: center; width: min(100%, 300px); min-height: 44px; padding: 12px 16px; background: rgba(5, 15, 30, .7); color: #eef3f6; border: 1px solid var(--owf-block-frame-accent, #6bc8e5); border-radius: 7px; text-decoration: none; font: inherit; font-size: 12px; font-weight: 800; line-height: 1.2; letter-spacing: .06em; cursor: pointer; }
.owf-install-trigger:disabled { opacity: .65; cursor: wait; }
.owf-mobile [hidden] { display: none !important; }
.owf-mobile .owf-popup-art-mount {
    width: clamp(220px, calc(100svh - 420px), 355px); max-width: 100%;
    aspect-ratio: 1; padding: 5px; margin: 0; border-radius: 9px;
    flex: 0 0 auto; position: relative;
}
.owf-mobile .owf-popup-show-art-link { display: block; width: 100%; height: 100%; }
.owf-mobile .owf-popup-album-art { width: 100%; height: 100%; max-width: 100%; margin: 0; object-fit: contain; padding: 0; }
.owf-mobile .owf-popup-now-playing {
    width: 100%; height: auto; min-height: 0; max-height: none; padding: 0 4px;
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    text-align: center; flex: 0 0 auto; overflow: visible;
}
.owf-mobile .owf-popup-kicker { font-size: 11px; margin: 0; letter-spacing: .16em; justify-content: center; gap: 12px; }
.owf-mobile .owf-popup-kicker::before, .owf-mobile .owf-popup-kicker::after { flex: 0 1 56px; min-width: 12px; }
.owf-mobile .owf-popup-song-title { font-size: clamp(23px, 6.3vw, 33px); line-height: 1.08; overflow-wrap: anywhere; white-space: normal; min-height: 0; max-height: 86px; padding: 2px 0; overflow: auto; flex-shrink: 0; }
.owf-mobile .owf-popup-artist { font-size: clamp(15px, 4vw, 20px); line-height: 1.25; margin: 0; overflow-wrap: anywhere; white-space: normal; min-height: 0; max-height: 40px; padding: 2px 0; overflow: auto; flex-shrink: 0; }
.owf-mobile .owf-popup-signal-visualizer { height: 24px; margin: 0 auto; max-width: 100%; flex-shrink: 0; }
.owf-mobile .owf-popup-control-deck {
    width: 100%; display: grid; grid-template-columns: 1fr; gap: 7px;
    padding: 10px 12px 12px; margin: 0; min-width: 0;
}
.owf-mobile .owf-popup-controls { justify-content: center; gap: 20px; min-width: 0; }
.owf-mobile .owf-popup-play-btn { width: 66px; height: 66px; min-width: 66px; padding: 0; }
.owf-mobile .owf-popup-play-btn #owf-popup-play-text { font-size: .5rem; letter-spacing: .04em; line-height: 1.2; }
.owf-mobile .owf-popup-stop-btn { width: 52px; height: 52px; min-width: 52px; padding: 0; }
.owf-mobile .owf-popup-volume { display: none; }
.owf-mobile .owf-popup-progress { width: 100%; margin: 0; padding: 0; min-width: 0; border: 0; background: transparent; clip-path: none; overflow: visible; }
.owf-mobile .owf-popup-progress-time { font-size: 14px; line-height: 1.5; padding: 3px 2px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.owf-mobile .owf-popup-progress-fill { background: var(--owf-block-frame-accent); }
.owf-mobile .owf-popup-progress-bar::after { background: #eef3f6; }
.owf-mobile-scroll { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; padding: 4px 16px; background: transparent; border: 0; cursor: pointer; color: #eef3f6; font: inherit; font-size: 11px; letter-spacing: .16em; font-weight: 700; }
.owf-mobile-scroll > span:first-child { font-size: 25px; line-height: 22px; color: var(--owf-block-frame-accent, #6bc8e5); }
.owf-mobile-details { display: grid; gap: 10px; padding: 8px max(18px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
.owf-mobile #owf-popup-status { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 14px; min-width: 0; padding: 20px; margin: 0; }
.owf-mobile .owf-popup-status-main,
.owf-mobile .owf-popup-programs,
.owf-mobile .owf-popup-program-description-panel { width: 100%; min-width: 0; border: 0; margin: 0; padding: 0; flex: 0 0 auto; }
.owf-mobile .owf-popup-status-heading,
.owf-mobile .owf-popup-program-description-label { font-size: 10px; }
.owf-mobile .owf-popup-program { font-size: 17px; white-space: normal; }
.owf-mobile .owf-popup-program-meta { font-size: 13px; white-space: normal; }
.owf-mobile .owf-popup-program-description-value { font-size: 14px; line-height: 1.5; white-space: normal; }
.owf-mobile .owf-popup-transmissions { font-size: 10px; }
.owf-mobile .owf-popup-panel { min-width: 0; width: 100%; height: auto; margin: 0; padding: 18px; overflow: visible; }
.owf-mobile .owf-popup-label { font-size: 11px; letter-spacing: .13em; }
.owf-mobile .owf-popup-song-small { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.owf-mobile .owf-popup-sponsor-card { width: 100%; min-width: 0; padding: 10px; gap: 12px; min-height: 0; }
.owf-mobile .owf-popup-sponsor-image { width: 64px; height: 64px; min-width: 64px; object-fit: contain; }
.owf-mobile .owf-popup-sponsor-copy { min-width: 0; }
.owf-mobile .owf-popup-sponsor-name { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.owf-mobile .owf-popup-sponsor-location { font-size: 12px; line-height: 1.4; }
.owf-mobile .owf-popup-sponsor-url { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; white-space: normal; }
.owf-mobile-footer { display: flex; align-items: center; flex-direction: column; gap: 9px; padding: 8px 4px; text-align: center; }
.owf-mobile-copyright { width: 100%; margin: 3px 0; padding: 8px 4px 3px; border-top: 1px solid color-mix(in srgb, var(--owf-block-frame-accent, #6bc8e5) 35%, transparent); color: #c4d6de; font-size: 12px; font-weight: 400; line-height: 1.55; letter-spacing: normal; text-transform: none; overflow-wrap: anywhere; }
.owf-mobile-socials { display: flex; align-items: center; justify-content: center; gap: 16px; }
.owf-mobile-socials a { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.owf-mobile-socials img { display: block; width: 24px; height: 24px; filter: brightness(0) invert(1); opacity: .9; }
.owf-mobile-socials a:hover img { filter: brightness(0) invert(1) drop-shadow(0 0 5px var(--owf-block-frame-accent, #6bc8e5)); }
.owf-mobile .owf-mobile-footer .owf-popup-logo { width: 135px; max-width: 45%; margin: 0; height: auto; }
.owf-mobile .owf-mobile-footer .owf-popup-console-btn { display: flex; align-items: center; justify-content: center; width: 100%; max-width: none; margin: 0; padding: 12px 16px; font-size: 15px; line-height: 1.2; min-height: 48px; }
.owf-mobile .owf-mobile-footer .owf-popup-tagline { font-size: 12px; line-height: 1.4; max-width: 100%; }
.owf-mobile button:focus-visible, .owf-mobile a:focus-visible { outline: 2px solid #eef3f6; outline-offset: 4px; }
.owf-install-dialog { color: #eef3f6; background: #07111f; border: 1px solid var(--owf-block-frame-accent, #6bc8e5); border-radius: 9px; max-width: min(90vw, 430px); margin: auto; padding: 24px; font: inherit; }
.owf-install-dialog::backdrop { background: rgba(0, 0, 0, .8); }
.owf-install-dialog h2 { font-size: 22px; margin-bottom: 14px; }
.owf-install-dialog p { font-size: 15px; line-height: 1.6; margin-bottom: 14px; overflow-wrap: anywhere; }
.owf-install-dialog button { min-height: 44px; margin: 5px; padding: 10px; background: #102b3c; color: #eef3f6; border: 1px solid #6bc8e5; border-radius: 4px; font: inherit; }
@media (min-width: 640px) and (orientation: landscape) {
    .owf-mobile-hero { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(260px, 1.2fr); grid-template-rows: auto auto auto auto; align-items: center; gap: 8px 24px; padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 8px; }
    .owf-mobile-heading { grid-column: 1 / -1; }
    .owf-mobile-heading strong { font-size: 17px; }
    .owf-mobile-heading > span, .owf-mobile-heading .owf-install-trigger { display: none; }
    .owf-mobile .owf-popup-art-mount { grid-column: 1; grid-row: 2 / 4; width: min(100%, calc(100svh - 130px), 320px); margin: auto; }
    .owf-mobile .owf-popup-now-playing { grid-column: 2; grid-row: 2; height: auto; min-height: 0; max-height: none; gap: 4px; }
    .owf-mobile .owf-popup-control-deck { grid-column: 2; grid-row: 3; align-self: end; }
    .owf-mobile .owf-popup-song-title { font-size: 25px; }
    .owf-mobile .owf-popup-artist { font-size: 16px; margin: 0; }
    .owf-mobile .owf-popup-kicker { margin: 0; }
    .owf-mobile .owf-popup-signal-visualizer { height: 18px; margin: 0 auto; }
    .owf-mobile .owf-popup-control-deck { padding: 6px 10px 10px; gap: 4px; }
    .owf-mobile .owf-popup-play-btn { width: 54px; height: 54px; min-width: 54px; }
    .owf-mobile .owf-popup-stop-btn { width: 44px; height: 44px; min-width: 44px; }
    .owf-mobile-hero > .owf-install-trigger { grid-column: 1 / -1; justify-self: center; }
    .owf-mobile-details { grid-template-columns: 1fr 1fr; }
    .owf-mobile #owf-popup-status, .owf-mobile-footer { grid-column: 1 / -1; }
}
@media (display-mode: standalone) { .owf-install-trigger { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .owf-mobile *, .owf-mobile *::before, .owf-mobile *::after { animation: none !important; transition: none !important; }
}
