.lr-player {
    position: fixed;
    bottom: 20px;
    right: -500px;
    width: 420px;
    max-width: 90vw;
    max-height: 80vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 0, 0, 0.4);
    border-radius: 20px;
    padding: 15px 25px 25px;
    z-index: 100000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 0, 0, 0.5) transparent;
}

.lr-player::-webkit-scrollbar {
    width: 6px;
}

.lr-player::-webkit-scrollbar-track {
    background: transparent;
}
/* Updated emoji styling - black/transparent background */
.lr-player .emoji {
    background-color: transparent !important;
    color: #fff;
}

/* Force emoji backgrounds to be transparent/black */
.lr-player *[class*="emoji"],
.lr-player span:has-emoji,
.lr-volume-icon,
.lr-control-btn {
    background: transparent !important;
}
.lr-player::-webkit-scrollbar-thumb {
    background: rgba(255, 0, 0, 0.5);
    border-radius: 3px;
}

.lr-player.open {
    right: 20px;
    transform: translateY(0);
}

.lr-player-toggle {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 15px;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.4);
    z-index: 100001;
    gap: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    justify-content: center;
    align-content: center;
}

.lr-player-toggle:hover {
    transform: scale(1.01) translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 0, 0, 0.6);
}

.lr-player-toggle:active {
    transform: scale(0.99);
}
.lr-toggle-text {
    font-size: 0.7rem !important;
    font-weight: 600;
    text-align: center;
    opacity: 0.9;
}

.lr-player h3 {
    color: #ff0000;
    font-size: 1.75rem !important;
    margin: 0 0 20px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lr-category {
    margin-bottom: 12px;
}

.lr-category-header {
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.4);
    color: #fff;
    padding: 15px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    user-select: none;
}

.lr-category-header:hover {
    background: rgba(255, 0, 0, 0.25);
    border-color: rgba(255, 0, 0, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.lr-category-header.active {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.3);
}

.lr-category-shows {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lr-category-shows.open {
    max-height: 600px;
}

.lr-show-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 18px;
    margin: 6px 0 6px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9em;
    display: block;
    width: calc(100% - 20px);
    text-align: left;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.lr-show-btn:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.5);
    transform: translateX(4px);
}

.lr-show-btn.active {
    background: rgba(255, 0, 0, 0.4);
    border-color: #ff0000;
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.3);
    transform: translateX(4px);
}

.lr-show-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.lr-show-btn.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: lr-loading 1.5s infinite;
}

@keyframes lr-loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

.lr-audio-container {
    position: relative;
    margin: 15px 0;
}

.lr-player audio {
    width: 100%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.lr-audio-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff0000;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.lr-audio-loading.visible {
    opacity: 1;
}

.lr-now-playing {
    font-size: 0.95rem;
    color: #ff0000;
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 0, 0, 0.12);
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    font-weight: 500;
    line-height: 1.4;
}

.lr-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lr-control-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.4);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    font-weight: 600;
}

.lr-control-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: translateY(-1px);
}

#lr-popout-btn {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.3);
}

#lr-popout-btn:hover {
    background: rgba(255, 0, 0, 0.25);
    border-color: rgba(255, 0, 0, 0.5);
}

.lr-volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.lr-volume-icon {
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.lr-volume-icon:hover {
    transform: scale(1.1);
}

.lr-volume-slider {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.lr-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #ff0000;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.lr-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.lr-volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #ff0000;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.lr-chevron {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem;
}

.lr-chevron.open {
    transform: rotate(90deg);
}

.lr-error-message {
    background: rgba(255, 87, 87, 0.2);
    border: 1px solid rgba(255, 87, 87, 0.4);
    color: #ff5757;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 0.85rem;
    text-align: center;
    animation: lr-shake 0.5s ease-in-out;
}

@keyframes lr-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.lr-keyboard-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

/* Popout specific styles */
.popout-player .lr-player {
    position: static;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    transition: none;
}

@media (max-width: 768px) {
    .lr-player {
        bottom: 0;
        right: -110vw;
        width: 95vw;
        max-width: 100vw;
        max-height: 75vh;
        border-radius: 20px 20px 0 0;
        padding: 20px;
    }
    
    .lr-player.open {
        right: 0;
    }
    
    .lr-player-toggle {
        bottom: 20px;
        right: 20px;
        padding: 12px;
        font-size: 1rem;
    }
    
    .lr-show-btn {
        padding: 12px 15px;
        font-size: 0.85em;
        margin-left: 15px;
        width: calc(100% - 15px);
    }
    
    .lr-controls {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .lr-control-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .lr-volume-control {
        width: 100%;
        margin-top: 8px;
    }
    
    .lr-keyboard-hint {
        display: none;
    }
}

@media (max-width: 480px) {
    .lr-player {
        padding: 15px;
        max-height: 85vh;
    }
    
    .lr-player h3 {
        font-size: 1.5rem !important;
        margin-bottom: 15px;
    }
    
    .lr-category-header {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .lr-show-btn {
        padding: 10px 12px;
        font-size: 0.8em;
    }
}