/* ==========================================================
   RADIORANDOM SOLAR SYSTEM — widget Moon Station
   Il colore del pianeta scelto tinge tutto il widget e sfuma in modo fluido.
   Stelle e bagliori ora usano solo transform/opacity (leggero anche su telefono).
   ========================================================== */
@property --planet-glow { syntax: '<color>'; inherits: true; initial-value: #00ffcc; }

:root {
    --neon-cyan: #00ffcc;
    --neon-pink: #ff0055;
    --space-black: #020208;
    --planet-glow: #00ffcc;

    /* toni derivati dal colore del pianeta */
    --glow:      color-mix(in srgb, var(--planet-glow) 42%, transparent);
    --glow-soft: color-mix(in srgb, var(--planet-glow) 16%, transparent);
    --tint:      color-mix(in srgb, var(--planet-glow) 7%, transparent);
    --line:      color-mix(in srgb, var(--planet-glow) 55%, transparent);

    transition: --planet-glow 0.7s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }

::-webkit-scrollbar { display: none; }

body {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, #0b0b28 0%, transparent 70%),
        var(--space-black);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Share Tech Mono', monospace;
    color: #ffffff;
    overflow-x: hidden;
    padding: 10px;
}
body.fs-lock { overflow: hidden; }

/* cielo di fondo (prima era un'immagine caricata da un sito esterno) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 30px 40px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 170px 120px, #fff, transparent),
        radial-gradient(1px 1px at 290px 60px, #fff, transparent),
        radial-gradient(1px 1px at 90px 230px, var(--planet-glow), transparent),
        radial-gradient(1.5px 1.5px at 260px 290px, #fff, transparent),
        radial-gradient(1px 1px at 350px 180px, rgba(255, 0, 85, 0.8), transparent);
    background-size: 400px 340px;
    opacity: 0.7;
    animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.45; } to { opacity: 0.85; } }

/* --- WIDGET CONTAINER --- */
.widget-horizontal {
    --sphere: 70px;
    width: 100%;
    max-width: 620px;
    border: 2px solid var(--planet-glow);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin: 10px auto;
    background-color: #03030a;
    box-shadow: 0 0 24px var(--glow), inset 0 0 20px var(--tint);
    transition: box-shadow 0.6s ease;
}
.widget-horizontal.is-playing { box-shadow: 0 0 40px var(--glow), inset 0 0 28px var(--tint); }

/* stelle che scorrono (solo transform) */
.widget-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -350px;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1.5px 1.5px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 80px 140px, var(--planet-glow), transparent),
        radial-gradient(1.5px 1.5px at 220px 180px, rgba(255, 0, 85, 0.8), transparent),
        radial-gradient(2px 2px at 350px 70px, rgba(0, 255, 204, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 280px 300px, #ffffff, transparent);
    background-size: 350px 350px;
    animation: starsDrift 24s linear infinite;
}
.widget-horizontal.is-playing::before { animation-duration: 9s; }
@keyframes starsDrift { to { transform: translateY(-350px); } }

/* respiro luminoso interno (solo opacity) */
.widget-horizontal::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 34px var(--glow);
    opacity: 0.25;
    animation: glowBreath 3.2s ease-in-out infinite alternate;
}
@keyframes glowBreath { to { opacity: 0.8; } }

/* angoli HUD */
.hud { position: absolute; width: 18px; height: 18px; z-index: 3; pointer-events: none; border: 0 solid var(--planet-glow); filter: drop-shadow(0 0 4px var(--planet-glow)); }
.hud.tl { top: 6px; left: 6px; border-top-width: 2px; border-left-width: 2px; }
.hud.tr { top: 6px; right: 6px; border-top-width: 2px; border-right-width: 2px; }
.hud.bl { bottom: 6px; left: 6px; border-bottom-width: 2px; border-left-width: 2px; }
.hud.br { bottom: 6px; right: 6px; border-bottom-width: 2px; border-right-width: 2px; }

/* --- HEADER AND PLANET SELECTOR --- */
.widget-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
    z-index: 2;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 6px;
    padding: 6px 10px;
    gap: 8px;
    flex-wrap: nowrap;
}
/* raggio di luce sul bordo */
.widget-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 28%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--planet-glow), transparent);
    box-shadow: 0 0 8px var(--planet-glow);
    animation: beamRun 4s linear infinite;
}
.is-playing .widget-header::after { animation-duration: 1.6s; }
@keyframes beamRun { from { transform: translateX(-100%); } to { transform: translateX(360%); } }

.planet-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--planet-glow);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 1px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

#currentPlanetTag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-arrow, .fullscreen-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--planet-glow);
    color: var(--planet-glow);
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
    font-size: 0.72rem;
}
.nav-arrow:hover, .fullscreen-btn:hover { background: var(--planet-glow); color: #000; box-shadow: 0 0 10px var(--planet-glow); }
.nav-arrow:active, .fullscreen-btn:active { transform: scale(0.9); }
.nav-arrow:focus-visible, .fullscreen-btn:focus-visible, .mode-btn:focus-visible, .live-btn:focus-visible,
.load-more-slots:focus-visible, #planetSphere:focus-visible, .slot:focus-visible, .brand-tag:focus-visible, .back-home:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.brand-tag {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    transition: color 0.3s, text-shadow 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
}
.brand-tag:hover { color: var(--planet-glow); text-shadow: 0 0 8px var(--planet-glow); border-bottom-color: var(--planet-glow); }

/* --- CENTRAL BODY --- */
.widget-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    z-index: 2;
    min-height: 0;
    flex: 1;
}

/* CLOCKS COLUMN */
.clocks-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 6px;
    background-color: rgba(2, 2, 8, 0.6);
    background-image:
        radial-gradient(1.2px 1.2px at 10px 15px, #ffffff, transparent),
        radial-gradient(1.5px 1.5px at 50px 90px, var(--planet-glow), transparent),
        radial-gradient(1.2px 1.2px at 130px 40px, rgba(255, 0, 85, 0.7), transparent),
        radial-gradient(1.8px 1.8px at 200px 110px, #ffffff, transparent);
    background-size: 250px 250px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.clock-block { display: flex; flex-direction: column; position: relative; z-index: 2; min-width: 0; }

/* SCRITTA FASE LUNARE / HEADER PIANETA SOPRA ALL'ORARIO */
.lunar-phase-tag {
    font-size: 0.65rem;
    color: var(--planet-glow);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 5px;
    text-shadow: 0 0 5px var(--planet-glow);
    text-transform: uppercase;
}

.clock-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    margin-bottom: 1px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* l'info del pianeta scorre quando è troppo lunga */
#spaceClockLabel { display: inline-block; white-space: nowrap; }
#spaceClockLabel.scroll { animation: infoScroll var(--dur, 12s) ease-in-out infinite alternate; }
@keyframes infoScroll {
    0%, 14% { transform: translateX(0); }
    86%, 100% { transform: translateX(var(--shift, 0)); }
}

.space-clock {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, 3.5vw, 1.7rem);
    color: #ffffff;
    text-shadow: 0 0 15px var(--planet-glow);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    white-space: nowrap;
}

.space-ms { color: var(--neon-pink); text-shadow: 0 0 10px var(--neon-pink); font-size: clamp(0.75rem, 2vw, 1rem); margin-left: 4px; }

.local-clock { font-size: clamp(0.85rem, 2.5vw, 1.05rem); color: var(--neon-cyan); letter-spacing: 1px; white-space: nowrap; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.zulu-clock { font-size: 0.62rem; color: rgba(255, 255, 255, 0.6); letter-spacing: 2px; font-variant-numeric: tabular-nums; }

/* RADIO DISPLAY PANEL */
.radio-status-panel {
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    font-size: 0.6rem;
    color: var(--neon-cyan);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}
.radio-info { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; }
.radio-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; flex: 1; min-width: 0; }
#radioIcon { flex: none; }
.is-playing #radioIcon { animation: dotBlink 0.9s ease-in-out infinite alternate; color: var(--neon-pink); }
@keyframes dotBlink { from { opacity: 1; } to { opacity: 0.3; } }

/* torna al programma in diretta dopo una scelta manuale */
.live-btn {
    flex: none;
    background: rgba(255, 0, 85, 0.12);
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 9px;
    border-radius: 999px;
    cursor: pointer;
    animation: dotBlink 1.2s ease-in-out infinite alternate;
    transition: background 0.2s, color 0.2s;
}
.live-btn:hover { background: var(--neon-pink); color: #fff; }

/* --- PLANETARY VIEWPORT --- */
.hero-viewport {
    position: relative;
    overflow: hidden;
    width: 130px;
    min-width: 130px;
    height: 100%;
    max-height: 135px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--planet-glow) 30%, rgba(255, 255, 255, 0.15));
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--planet-glow) 10%, #05050f) 0%, #02020a 78%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.9);
}

.hero-viewport::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -180px;
    pointer-events: none;
    background-image:
        radial-gradient(1.2px 1.2px at 15px 25px, #ffffff, transparent),
        radial-gradient(1.8px 1.8px at 45px 85px, var(--planet-glow), transparent),
        radial-gradient(1.2px 1.2px at 95px 35px, #ffffff, transparent),
        radial-gradient(2px 2px at 120px 105px, rgba(255, 0, 85, 0.8), transparent);
    background-size: 180px 180px;
    animation: heroDrift 9s linear infinite;
}
.is-playing .hero-viewport::before { animation-duration: 3.5s; }
@keyframes heroDrift { to { transform: translateY(-180px); } }

/* orbite attorno al pianeta */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    height: min(calc(var(--sphere) * 1.85), calc(100% - 6px));
    aspect-ratio: 1 / 1;
    translate: -50% -50%;
    border: 1px dashed var(--glow);
    border-radius: 50%;
    pointer-events: none;
    animation: orbitSpin 26s linear infinite;
}
.orbit::after {
    content: '';
    position: absolute;
    top: 4%;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--planet-glow);
    box-shadow: 0 0 8px var(--planet-glow);
}
.orbit.o2 { height: min(calc(var(--sphere) * 1.45), calc(100% - 22px)); border-color: color-mix(in srgb, var(--neon-pink) 45%, transparent); animation-duration: 15s; animation-direction: reverse; }
.orbit.o2::after { top: auto; bottom: 4%; background: var(--neon-pink); box-shadow: 0 0 8px var(--neon-pink); }
.is-playing .orbit { animation-duration: 11s; }
.is-playing .orbit.o2 { animation-duration: 6s; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* anelli di Saturno: metà dietro e metà davanti al pianeta */
.ring {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--sphere) * 1.62);
    height: calc(var(--sphere) * 0.44);
    translate: -50% -50%;
    rotate: -18deg;
    border-radius: 50%;
    border: max(3px, calc(var(--sphere) * 0.07)) solid rgba(233, 216, 166, 0.7);
    box-shadow: 0 0 12px rgba(233, 216, 166, 0.4), inset 0 0 8px rgba(233, 216, 166, 0.35);
    pointer-events: none;
}
.hero-viewport[data-planet="saturn"] .ring { display: block; }
.ring-back { z-index: 2; -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 50%); mask-image: linear-gradient(to bottom, #000 50%, transparent 50%); }
.ring-front { z-index: 4; -webkit-mask-image: linear-gradient(to bottom, transparent 50%, #000 50%); mask-image: linear-gradient(to bottom, transparent 50%, #000 50%); }

/* SPHERE & BEHAVIOR */
.btn-planet-sphere {
    width: var(--sphere);
    height: var(--sphere);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 200% 100%;
    box-shadow: inset -15px -15px 30px #000, 0 0 20px var(--planet-glow);
    animation: planetSpin 15s linear infinite;
    transition: transform 0.3s ease, box-shadow 0.4s ease, width 0.4s ease, height 0.4s ease;
    z-index: 3;
    color: #ffffff;
    font-size: 1.2rem;
    text-shadow: 0 0 10px #000;
    position: relative;
    overflow: hidden;
}
.btn-planet-sphere::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.3), transparent 42%);
}
.btn-planet-sphere:hover { transform: scale(1.05); }

/* ombra della fase lunare (disegnata da app.js) */
.moon-shadow-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 4;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    filter: blur(1.2px);
}

.planet-transition { animation: planetWarp 0.5s ease-in-out, planetSpin 15s linear infinite !important; }

@keyframes planetWarp {
    0% { transform: scale(0.7) rotate(-15deg); opacity: 0.2; filter: blur(4px); }
    50% { transform: scale(1.15) rotate(5deg); opacity: 1; filter: blur(0px); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.btn-planet-sphere i { position: relative; z-index: 6; opacity: 0; transition: opacity 0.3s ease; }
.btn-planet-sphere:hover i, .btn-planet-sphere.show-icon i { opacity: 1; }

.btn-planet-sphere.is-playing { animation: planetSpin 15s linear infinite, audioPulse 1.2s ease-in-out infinite alternate; }
.btn-planet-sphere.is-loading { animation: planetSpin 15s linear infinite, loadingPulse 0.7s ease-in-out infinite alternate; }

@keyframes audioPulse {
    0% { box-shadow: inset -10px -10px 25px #000, 0 0 20px var(--planet-glow); }
    100% { box-shadow: inset -5px -5px 15px #000, 0 0 45px var(--planet-glow); }
}
@keyframes loadingPulse {
    0% { box-shadow: inset -12px -12px 28px #000, 0 0 10px var(--planet-glow); }
    100% { box-shadow: inset -12px -12px 28px #000, 0 0 30px var(--neon-pink); }
}
@keyframes planetSpin { from { background-position: 0% 50%; } to { background-position: -200% 50%; } }

/* SPHERE GRADIENTS */
.sun { background-image: linear-gradient(90deg, #ff3300, #ffaa00, #ffffcc, #ff3300); }
.mercury { background-image: linear-gradient(90deg, #616161, #9e9e9e, #e0e0e0, #616161); }
.venus { background-image: linear-gradient(90deg, #8a5a16, #e3bb7b, #f5e6cc, #8a5a16); }
.earth { background-image: linear-gradient(90deg, #0d2b45, #203c56, #00ffcc, #0d2b45); }
.moon { background-image: linear-gradient(90deg, #5e5e5e, #b4b4b4, #f2f2f2, #5e5e5e); }
.mars { background-image: linear-gradient(90deg, #5c1d00, #ff4500, #ff7a45, #5c1d00); }
.jupiter { background-image: linear-gradient(90deg, #4a3319, #d4a373, #f4e1d2, #4a3319); }
.saturn { background-image: linear-gradient(90deg, #6e5f37, #e9d8a6, #f7f1db, #6e5f37); }
.uranus { background-image: linear-gradient(90deg, #275d5d, #afeeee, #e0ffff, #275d5d); }
.neptune { background-image: linear-gradient(90deg, #0f1c3f, #4169e1, #a6bbf0, #0f1c3f); }

/* ARTIST PULSE BANNER (nome dell'artista sopra la sfera) */
.artist-pulse-banner {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    max-width: 94%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--planet-glow, #00ffcc);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    z-index: 12;
}
.artist-pulse-banner.active-pulse { opacity: 1; transform: translateX(-50%) scale(1); animation: spaceSignalPulse 1.8s infinite alternate ease-in-out; }
@keyframes spaceSignalPulse {
    0% { opacity: 0.55; text-shadow: 0 0 4px var(--planet-glow, #00ffcc); }
    100% { opacity: 1; text-shadow: 0 0 12px var(--planet-glow, #00ffcc), 0 0 24px var(--planet-glow, #00ffcc); }
}

/* --- FOOTER CONTROLS IN WIDGET --- */
.widget-footer-controls {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    gap: 10px;
    flex-wrap: wrap;
}

.mode-selection { display: flex; gap: 6px; align-items: center; font-size: 0.75rem; }

.mode-btn {
    background: none;
    border: 1px solid var(--planet-glow);
    color: var(--planet-glow);
    padding: 6px 9px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    border-radius: 4px;
    font-size: 0.7rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.mode-btn:hover { box-shadow: 0 0 8px var(--glow); }
.mode-btn.active { background: var(--planet-glow); color: #000; }

.volume-box { display: flex; align-items: center; gap: 6px; color: var(--planet-glow); font-size: 0.8rem; }

#volSlider {
    --v: 70%;
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--planet-glow) var(--v), color-mix(in srgb, var(--planet-glow) 20%, transparent) var(--v));
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
#volSlider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; background: var(--planet-glow); border-radius: 50%; box-shadow: 0 0 8px var(--planet-glow); cursor: pointer; }
#volSlider::-moz-range-thumb { width: 14px; height: 14px; background: var(--planet-glow); border: 0; border-radius: 50%; box-shadow: 0 0 8px var(--planet-glow); cursor: pointer; }
#volSlider:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }

/* --- TIMETABLE & SEO CONTAINERS --- */
.seo-timetable-container {
    width: 100%;
    max-width: 620px;
    margin: 10px auto;
    background: rgba(10, 10, 25, 0.72);
    border-radius: 12px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.clean-summary { cursor: pointer; outline: none; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.clean-summary::-webkit-details-marker { display: none; }
.clean-summary:focus-visible .menu-title { color: var(--planet-glow); }

.menu-title {
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: 1px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

.arrow-icon { font-size: 0.8rem; color: var(--planet-glow); transition: transform 0.3s; }
details[open] .arrow-icon { transform: rotate(180deg); }

.details-content { padding: 10px 5px 15px 5px; font-size: 0.8rem; line-height: 1.4; color: #ccc; }
.details-content h3 { color: #fff; font-size: 0.9rem; margin-bottom: 6px; }

/* GRID TIMETABLE */
.grid { display: grid; gap: 8px; width: 100%; grid-template-columns: 1fr; margin-bottom: 10px; }

.slot {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.slot:hover { background: var(--tint); border-color: var(--planet-glow); }

/* slot in onda secondo il programma */
.slot.active { border-color: var(--neon-pink); background: rgba(255, 0, 85, 0.08); box-shadow: 0 0 10px rgba(255, 0, 85, 0.15); }
.slot.active::after { content: 'LIVE'; position: absolute; right: 10px; top: 10px; font-size: 0.55rem; font-family: 'Orbitron', sans-serif; font-weight: 700; letter-spacing: 1px; color: var(--neon-pink); animation: dotBlink 1.2s ease-in-out infinite alternate; }
/* slot scelto a mano */
.slot.picked { border-color: var(--planet-glow); background: var(--tint); box-shadow: 0 0 10px var(--glow-soft); }
.slot.picked::after { content: 'YOUR PICK'; position: absolute; right: 10px; top: 10px; font-size: 0.55rem; font-family: 'Orbitron', sans-serif; font-weight: 700; letter-spacing: 1px; color: var(--planet-glow); }

.t-ltc { color: var(--neon-pink); font-size: 0.65rem; font-weight: 700; font-family: 'Orbitron', sans-serif; }
.s-artist { color: var(--neon-cyan); font-size: 0.8rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'Orbitron', sans-serif; padding-right: 64px; }

.load-more-slots {
    width: 100%;
    background: none;
    border: 1px solid var(--planet-glow);
    color: var(--planet-glow);
    font-family: 'Orbitron', sans-serif;
    padding: 9px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.3s;
}
.load-more-slots:hover { background: var(--tint); }

.footer-area { padding: 15px; text-align: center; }
.back-home { color: var(--planet-glow); text-decoration: none; font-size: 0.75rem; font-family: 'Orbitron', sans-serif; }

/* --- PORTRAIT MOBILE --- */
@media (max-width: 768px) and (orientation: portrait) {
    .widget-horizontal { --sphere: 65px; }
    .widget-body { flex-direction: column; justify-content: space-between; align-items: stretch; gap: 10px; }
    .clocks-column { order: 1; width: 100%; flex: none; padding: 10px 14px; }
    .hero-viewport { order: 2; width: 100%; min-width: 0; height: 120px; max-height: 120px; }
}

/* ==========================================================
   SCHERMO INTERO (overlay a tutta pagina; funziona anche su iPhone)
   ========================================================== */
.widget-horizontal.fullscreen-mode {
    --sphere: clamp(140px, min(44vh, 34vw), 300px);
    position: fixed;
    inset: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: max(16px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.fullscreen-mode .widget-body { flex: 1; gap: 24px; }
.fullscreen-mode .clocks-column { flex: 0 1 460px; padding: 24px; height: auto; align-self: center; gap: 14px; }
.fullscreen-mode .lunar-phase-tag { font-size: 0.85rem; }
.fullscreen-mode .clock-label { font-size: 0.8rem; }
.fullscreen-mode .space-clock { font-size: clamp(2rem, 6vw, 3rem); }
.fullscreen-mode .space-ms { font-size: 1.4rem; }
.fullscreen-mode .local-clock { font-size: clamp(1.1rem, 3vw, 1.8rem); }
.fullscreen-mode .zulu-clock { font-size: 0.85rem; }
.fullscreen-mode .radio-status-panel { font-size: 0.95rem; padding-top: 12px; }
.fullscreen-mode .live-btn { font-size: 0.75rem; }
.fullscreen-mode .hero-viewport { flex: 1; width: auto; min-width: 0; height: 100%; max-height: none; border-radius: 20px; box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 0 30px var(--glow-soft); }
.fullscreen-mode .btn-planet-sphere { font-size: 2.8rem; box-shadow: inset -45px -45px 80px #000, 0 0 50px var(--planet-glow); }
.fullscreen-mode .btn-planet-sphere.is-playing { animation: planetSpin 15s linear infinite, audioPulseFS 1.2s ease-in-out infinite alternate; }
.fullscreen-mode .artist-pulse-banner { font-size: 1.1rem; top: 18px; }
@keyframes audioPulseFS {
    0% { box-shadow: inset -35px -35px 70px #000, 0 0 40px var(--planet-glow); }
    100% { box-shadow: inset -20px -20px 40px #000, 0 0 90px var(--planet-glow); }
}

/* schermo intero in verticale (telefono): colonna, niente margini fissi */
@media (orientation: portrait) {
    .fullscreen-mode { --sphere: clamp(120px, 42vw, 240px); }
    .fullscreen-mode .widget-body { flex-direction: column; align-items: stretch; gap: 14px; }
    .fullscreen-mode .clocks-column { flex: none; width: 100%; padding: 14px 16px; }
    .fullscreen-mode .hero-viewport { width: 100%; flex: 1; min-height: 220px; }
}

/* telefono in orizzontale: tutto più compatto */
@media (orientation: landscape) and (max-height: 520px) {
    .widget-horizontal.fullscreen-mode { --sphere: clamp(90px, 46vh, 200px); padding-top: 10px; padding-bottom: 10px; }
    .fullscreen-mode .clocks-column { padding: 12px 16px; gap: 6px; }
    .fullscreen-mode .space-clock { font-size: 1.8rem; }
    .fullscreen-mode .local-clock { font-size: 1rem; }
}

/* ---------- MOVIMENTO RIDOTTO ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
