/* Player Switcher Offcanvas Component - Single Source CSS */

/* Player Switcher Widget */
.player-switcher-widget {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1100;
}

.player-switcher-toggle {
    width: 25px;
    height: 60px;
    border-radius: 8px 0 0 8px;
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: -2px 0 10px rgba(44, 90, 160, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
}

.player-switcher-toggle:hover {
    width: 40px;
    box-shadow: -4px 0 15px rgba(44, 90, 160, 0.4);
}

/* Player Switcher Offcanvas */
.player-switcher-offcanvas {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1200;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.player-switcher-offcanvas.open {
    right: 0;
}

.player-switcher-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2c5aa0;
    color: white;
}

.player-switcher-header h3 {
    margin: 0;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    aspect-ratio: 1;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.player-switcher-content {
    padding: 1rem;
    flex: 1;
}

.player-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
    border: 2px solid #e9ecef;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.player-option:hover {
    background: #f8f9fa;
    border-color: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.15);
}

.player-option.selected {
    background: #f0f4ff;
    border-color: #2c5aa0;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.2);
}

.player-option:last-child {
    margin-bottom: 0;
}

.player-icon {
    width: 80px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px;
}

.player-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

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

.player-info h4 {
    margin: 0 0 0.25rem 0;
    color: #2c5aa0;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-align: left;
}

.player-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Overlay */
.player-switcher-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.player-switcher-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive - Only for Offcanvas */
@media (max-width: 576px) {
    .player-switcher-offcanvas {
        width: 100vw;
        right: -100vw;
    }
    
    .player-option {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .player-icon {
        width: 50px;
        height: 38px;
    }
    
    .player-info h4 {
        font-size: 0.9rem;
    }
    
    .player-info p {
        font-size: 0.8rem;
    }
}
