* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    background-color: #0b0b0d;
    overflow: hidden;
}

body {
    background-image: url('img/logo.jpg?v=2');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: env(safe-area-inset-top, 14px) 16px env(safe-area-inset-bottom, 16px) 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #ffffff;
}

.live-badge {
    margin-top: 6px;
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #f3e5ab;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #666666;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.attiva-pagina .live-dot {
    background-color: #ff3b30;
    box-shadow: 0 0 10px #ff3b30;
}

.cover-box {
    margin-top: 14px;
    margin-bottom: auto;
    width: 200px;
    height: 200px;
    border-radius: 18px;
    border: 2.5px solid #d4af37;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95);
    background-color: #0b0b0d;
    transition: box-shadow 0.4s ease;
    flex-shrink: 0;
}

.attiva-pagina .cover-box {
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.65), 0 10px 30px rgba(0, 0, 0, 0.95);
}

.cover-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.player-bar {
    width: 100%;
    max-width: 520px;
    background: rgba(15, 15, 15, 0.90);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid #d4af37;
    border-radius: 50px;
    padding: 10px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.95);
    flex-shrink: 0;
}

.play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa7c11 100%);
    border: none;
    color: #000000;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
}

.info {
    overflow: hidden;
    flex-grow: 1;
    min-width: 0;
}

.artist-name {
    color: #f3e5ab;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-title {
    color: #ffffff;
    font-size: 13px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.92;
}

.onda {
    display: flex;
    align-items: center;
    gap: 3.5px;
    height: 24px;
    padding-right: 4px;
    flex-shrink: 0;
}

.onda span {
    display: block;
    width: 3.5px;
    height: 6px;
    background: linear-gradient(to top, #aa7c11, #f3e5ab);
    border-radius: 3px;
}

.attiva-pagina .onda span {
    animation: muoviOnda 0.7s infinite alternate;
}

.attiva-pagina .onda span:nth-child(2) { animation-delay: 0.2s; }
.attiva-pagina .onda span:nth-child(3) { animation-delay: 0.4s; }
.attiva-pagina .onda span:nth-child(4) { animation-delay: 0.1s; }
.attiva-pagina .onda span:nth-child(5) { animation-delay: 0.3s; }

@keyframes muoviOnda {
    from { height: 6px; }
    to { height: 22px; }
}

/* Desktop */
@media (min-width: 601px) and (min-height: 551px) {
    body {
        background-size: contain;
        background-image: 
            radial-gradient(circle at center, rgba(11, 11, 13, 0) 40%, #0b0b0d 85%),
            url('img/logo.jpg?v=2');
    }
}

/* Orizzontale (Landscape) con bordo dorato sul medaglione */
@media (orientation: landscape) and (max-height: 550px) {
    body {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 10px 24px;
        background-color: #0b0b0d;
        background-image: radial-gradient(circle at 65% 45%, #242018 0%, #0b0b0d 68%, #050507 100%);
        background-size: cover;
    }

    body::after {
        content: "";
        position: fixed;
        right: 12%;
        top: 44%;
        transform: translateY(-50%);
        width: 175px;
        height: 175px;
        border-radius: 50%;
        background-image: url('img/logo.jpg?v=2');
        background-size: 135%;
        background-position: center 52%;
        border: 3px solid #d4af37;
        box-shadow: 0 0 0 4px rgba(11, 11, 13, 0.9), 0 0 0 5.5px rgba(212, 175, 55, 0.45), 0 10px 30px rgba(0, 0, 0, 0.95);
        transition: box-shadow 0.4s ease;
        pointer-events: none;
        z-index: 0;
    }

    body.attiva-pagina::after {
        box-shadow: 0 0 0 4px rgba(11, 11, 13, 0.9), 0 0 35px rgba(212, 175, 55, 0.65), 0 10px 30px rgba(0, 0, 0, 0.95);
    }

    .live-badge {
        margin-top: 2px;
        z-index: 2;
    }

    .cover-box {
        position: relative;
        z-index: 2;
        align-self: flex-start;
        width: 145px;
        height: 145px;
        margin: auto 0 auto 10%;
    }

    .player-bar {
        position: relative;
        z-index: 2;
        width: 92%;
        max-width: 560px;
        margin: 0 0 4px 0;
    }
}
