/**
 * On Air Box Styles
 * Ella Radio Theme
 */

.on-air-box {
    background: #e20717;
    border: none;
    border-radius: 1.5rem;
    padding: 2rem 2rem;
    box-shadow: none;
    height: 560px;
    max-height: 560px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.on-air-box-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
    min-height: 0;
}

/* Play Button */
.on-air-play-button {
    text-align: center;
}

.on-air-play-btn {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    color: #e20717;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(60, 46, 37, 0.2);
}

.on-air-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(60, 46, 37, 0.3);
}

/* Icon inside On-Air button (pure CSS, kein SVG) */
.on-air-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Play: Ausgefülltes Dreieck mit abgerundeten Ecken - DEFAULT SICHTBAR */
.on-air-icon-play {
    width: 72px;
    height: 90px;
    margin-left: 8px; /* optische Zentrierung */
    display: block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 90'%3E%3Cpath d='M 12 8 L 64 45 L 12 82 Z' fill='%23e20717' stroke='%23e20717' stroke-width='8' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Pause: Ausgefüllte Balken mit abgerundeten Ecken - DEFAULT VERSTECKT */
.on-air-icon-pause {
    width: 70px;
    height: 90px;
    display: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 90'%3E%3Crect x='12' y='10' width='16' height='70' rx='6' fill='%23e20717'/%3E%3Crect x='42' y='10' width='16' height='70' rx='6' fill='%23e20717'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Zustand: spielend → Pause-Icon anzeigen, Play-Icon ausblenden */
.on-air-play-btn.playing .on-air-icon-play {
    display: none !important;
}

.on-air-play-btn.playing .on-air-icon-pause {
    display: block !important;
}

.on-air-play-btn.playing {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(60, 46, 37, 0.2);
    }
    50% {
        box-shadow: 0 6px 20px rgba(60, 46, 37, 0.3);
    }
}

/* Title */
.on-air-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Current Channel */
.on-air-channel {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1.25rem;
}

.on-air-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.on-air-channel-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: -0.5rem;
}

.on-air-channel-logo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: #e20717;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.on-air-channel-logo img {
    border: 1px solid #ffffff;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.on-air-channel-details {
    flex: 1;
}

.on-air-channel-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.on-air-channel-genre {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
}

/* Now Playing */
.on-air-now-playing {
    display: flex;
    flex-direction: column;
}

.now-playing-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
}

.now-playing-cover {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
}

.now-playing-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.now-playing-info {
    flex: 1;
    min-width: 0;
}

.now-playing-track {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.125rem 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.now-playing-meta {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.now-playing-time {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.8);
}

.time-icon {
    width: 16px;
    height: 16px;
}

.time-text {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
}

/* Social Media */
.on-air-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 0.75rem;
    margin-top: auto;
}

.on-air-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
}

.on-air-social-link:hover {
    background: #ffffff;
    color: #e20717;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1279px) {
    .on-air-box {
        height: 460px;
        max-height: 460px;
        padding: 2rem 1.5rem;
    }
    
    .on-air-play-btn {
        width: 140px;
        height: 140px;
    }
    
    .on-air-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .on-air-box {
        height: 380px;
        max-height: 380px;
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .on-air-box-inner {
        gap: 1.5rem;
    }
    
    .on-air-play-btn {
        width: 120px;
        height: 120px;
    }
    
    .on-air-title {
        font-size: 1.125rem;
    }
    
    .on-air-channel-name {
        font-size: 1.125rem;
    }
    
    .on-air-channel-genre {
        font-size: 0.8125rem;
    }
}
