/**
 * Meşk FM - Audio Player CSS
 */

/* ========================================
   PLAYER CONTAINER
======================================== */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 12px 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s ease forwards;
}

.player-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ========================================
   PLAYER INFO (Left)
======================================== */
.player-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.player-cover {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--card-light), var(--card));
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.player-cover.playing {
    animation: pulse 2s ease-in-out infinite;
}

.player-meta {
    min-width: 0;
    overflow: hidden;
}

.player-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 2px;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 2s ease-in-out infinite;
}

.player-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.player-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}

/* ========================================
   PLAYER CONTROLS (Center)
======================================== */
.player-controls {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.player-share-btn {
    color: var(--text-muted);
    padding: 8px;
    transition: var(--transition);
}

.player-share-btn:hover {
    color: var(--text);
}

/* Main Play Button */
.player-main-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.4);
    transition: var(--transition);
}

.player-main-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(217, 119, 6, 0.5);
}

.player-main-btn:active {
    transform: scale(0.95);
}

/* Volume Control */
.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-volume-btn {
    color: var(--text-muted);
    padding: 4px;
    transition: var(--transition);
}

.player-volume-btn:hover {
    color: var(--text);
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.5);
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.5);
}

/* ========================================
   PLAYER EXTRA (Right)
======================================== */
.player-extra {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.player-error {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: #ef4444;
}

.player-mute-mobile {
    display: none;
    padding: 8px;
    color: var(--text-muted);
}

.player-embed-btn {
    font-size: 0.75rem;
}

.player-embed-btn span {
    display: inline;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .audio-player {
        padding: 10px 0;
    }

    .player-inner {
        gap: 12px;
    }

    .player-info {
        flex: 1;
    }

    .player-cover {
        width: 44px;
        height: 44px;
    }

    .player-title {
        font-size: 0.875rem;
    }

    .player-controls {
        gap: 12px;
    }

    .player-share-btn {
        display: none;
    }

    .player-main-btn {
        width: 48px;
        height: 48px;
    }

    .player-volume {
        display: none;
    }

    .player-mute-mobile {
        display: block;
    }

    .player-embed-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .player-cover {
        width: 40px;
        height: 40px;
    }

    .player-live {
        font-size: 0.625rem;
    }

    .player-title {
        font-size: 0.8125rem;
    }

    .player-subtitle {
        font-size: 0.6875rem;
    }
}