/**
 * Live Earth Asia Showblock — Himawari-8 Echtzeit-Satellit
 * NICT Japan · alle 10 Minuten · 1100×1100 px Vollscheibe
 */

/* ============================================================
   Container
   ============================================================ */

#live-earth-asia {
    position: fixed;
    inset: 0;
    z-index: var(--z-content);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    /* Crossfade-System */
    opacity: 1;
    transition: opacity var(--transition-fade, 2s) ease;
}

#live-earth-asia.hidden {
    display: none;
}

#live-earth-asia.fade-out {
    opacity: 0 !important;
}

#live-earth-asia.transitioning-in {
    z-index: calc(var(--z-content) + 1);
}

/* ============================================================
   Erdbild — füllt den gesamten Container
   ============================================================ */

#live-earth-asia-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* Füllt quadratische und runde Displays */
    object-position: center center;
    opacity: 0;
    transition: opacity 2s ease;
    image-rendering: -webkit-optimize-contrast;  /* Schärfer auf Pi-Displays */
}

#live-earth-asia-img.loaded {
    opacity: 1;
}

/* TV-Display: leichte Rand-Abdunkelung für Tiefe */
.tv-display #live-earth-asia-img {
    filter: brightness(1.08) saturate(1.12);
}

/* ============================================================
   Lade-Spinner (während Bild lädt)
   ============================================================ */

#live-earth-asia-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

#live-earth-asia-spinner .spinner-ring {
    width: 4em;
    height: 4em;
    border: 0.3em solid rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: himawari-spin 1s linear infinite;
}

@keyframes himawari-spin {
    to { transform: rotate(360deg); }
}

#live-earth-asia-spinner.hidden {
    display: none;
}

/* ============================================================
   Overlay: Label oben links
   ============================================================ */

#live-earth-asia-label {
    position: absolute;
    top: 1.8em;
    left: 1.8em;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease;

    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

#live-earth-asia-label.visible {
    opacity: 1;
}

.lea-label-primary {
    font-size: 2.0em;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0,0,0,0.9);
    line-height: 1;
}

.lea-label-secondary {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

/* Live-Punkt */
.lea-live-dot {
    display: inline-block;
    width: 0.55em;
    height: 0.55em;
    background: #ff4444;
    border-radius: 50%;
    margin-right: 0.4em;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(255, 68, 68, 0.8);
    animation: himawari-pulse 2s ease-in-out infinite;
}

@keyframes himawari-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Runde Displays: Label kompakter */
.round-display .lea-label-primary { font-size: 1.5em; }
.round-display .lea-label-secondary { font-size: 1.0em; }

/* ============================================================
   Overlay: Zeitstempel unten links
   ============================================================ */

#live-earth-asia-timestamp {
    position: absolute;
    bottom: 1.8em;
    left: 1.8em;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease;
}

#live-earth-asia-timestamp.visible {
    opacity: 1;
}

.lea-time-utc {
    font-size: 1.5em;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.05em;
    text-shadow: 0 0 12px rgba(0,0,0,0.9), 0 2px 6px rgba(0,0,0,0.9);
    line-height: 1.2;
}

.lea-time-jst {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.04em;
    text-shadow: 0 1px 5px rgba(0,0,0,0.9);
    margin-top: 0.2em;
}

.round-display .lea-time-utc { font-size: 1.2em; }
.round-display .lea-time-jst { font-size: 0.95em; }

/* ============================================================
   Overlay: NICT Badge unten rechts
   ============================================================ */

#live-earth-asia-badge {
    position: absolute;
    bottom: 1.8em;
    right: 1.8em;
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2em;
}

#live-earth-asia-badge.visible {
    opacity: 1;
}

.lea-badge-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0,0,0,0.9), 0 2px 6px rgba(0,0,0,0.9);
}

.lea-badge-source {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    text-shadow: 0 1px 5px rgba(0,0,0,0.9);
}

.round-display .lea-badge-name { font-size: 1.1em; }
.round-display .lea-badge-source { font-size: 0.85em; }
