/* Audio Player Styles */
.audio-player {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-link {
    color: #666666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.audio-link:hover {
    color: #ffffff;
}

.audio-link.playing .audio-text {
    color: #ffffff;
}

.audio-text {
    transition: color 0.3s ease;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-label {
    color: #666666;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.volume-slider {
    -webkit-appearance: none;
    width: 60px;
    height: 2px;
    background: #333333;
    outline: none;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: #cccccc;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 2px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    background: #cccccc;
}

.volume-slider:hover {
    background: #444444;
}

/* Audio Visualizer Effect */
.audio-visualizer {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 1rem;
}

.audio-bar {
    width: 3px;
    height: 10px;
    background: #ff0033;
    border-radius: 1px;
    animation: audio-visualize 1s infinite ease-in-out;
}

.audio-bar:nth-child(1) {
    animation-delay: 0s;
}

.audio-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.audio-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.audio-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.audio-bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes audio-visualize {
    0%, 100% {
        height: 10px;
        opacity: 0.6;
    }
    50% {
        height: 25px;
        opacity: 1;
    }
}

/* Audio Status Display */
.audio-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.audio-status.playing {
    color: #ff0033;
}

.audio-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #666666;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.audio-status.playing::before {
    background: #ff0033;
    box-shadow: 0 0 10px rgba(255, 0, 51, 0.5);
    animation: status-blink 1s infinite;
}

@keyframes status-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Audio Loading Effect */
.audio-loading {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.audio-loading-dot {
    width: 4px;
    height: 4px;
    background: #ff0033;
    border-radius: 50%;
    animation: audio-loading-bounce 1.4s infinite ease-in-out both;
}

.audio-loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.audio-loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes audio-loading-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Custom Audio Context Display */
.audio-context-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 0, 51, 0.3);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.8rem;
    color: #888888;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.audio-context-info.show {
    opacity: 1;
    transform: translateY(0);
}

.audio-context-info .info-label {
    color: #ff0033;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.audio-context-info .info-value {
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
}

/* Enhanced Mobile Audio Player */
@media (max-width: 768px) {
    .audio-player {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin: 0.5rem;
        width: auto;
    }

    .audio-link {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
        background: rgba(255, 0, 51, 0.1);
        border: 1px solid rgba(255, 0, 51, 0.3);
        border-radius: 8px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(255, 0, 51, 0.1);
        transition: all 0.3s ease;
    }

    .audio-link:active {
        background: rgba(255, 0, 51, 0.15);
        transform: scale(0.98);
    }

    .audio-controls {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        width: 100%;
    }

    .volume-label {
        font-size: 0.9rem;
        color: #cccccc;
        text-align: center;
    }

    .volume-slider {
        width: 200px;
        height: 8px;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.1);
        cursor: pointer;
        touch-action: manipulation;
    }

    .volume-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        height: 24px;
        width: 24px;
        border-radius: 50%;
        background: #ff0033;
        cursor: pointer;
        border: 2px solid #ffffff;
        box-shadow: 0 0 10px rgba(255, 0, 51, 0.3);
        transition: all 0.3s ease;
    }

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

    .volume-slider::-moz-range-thumb {
        height: 24px;
        width: 24px;
        border-radius: 50%;
        background: #ff0033;
        cursor: pointer;
        border: 2px solid #ffffff;
        box-shadow: 0 0 10px rgba(255, 0, 51, 0.3);
        transition: all 0.3s ease;
    }

    .audio-visualizer {
        margin-left: 0;
        width: 100px;
        height: 40px;
        justify-content: center;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 8px;
    }

    .audio-bar {
        width: 4px;
        height: 15px;
    }

    .audio-status {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        text-align: center;
        min-width: 120px;
    }

    .audio-context-info {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        width: 100%;
        text-align: center;
        opacity: 1;
        transform: none;
    }
} 