/* Premium Video Switcher - Frontend Styles */
.premium-video-switcher {
    max-width: 900px;
    margin: 50px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.video-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.video-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.video-title i {
    font-size: 22px;
    opacity: 0.9;
}

.video-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

.video-badge i {
    font-size: 14px;
    color: #4CAF50;
}

.video-platforms {
    display: flex;
    gap: 15px;
    padding: 25px 30px 0;
    flex-wrap: wrap;
}

.platform-btn {
    flex: 1;
    min-width: 140px;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-btn:hover {
    background: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.platform-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

/* Стили для YouTube и VK */
.platform-btn[data-platform="youtube"] .btn-icon i {
    color: #FF0000;
}

.platform-btn[data-platform="vk"] .btn-icon i {
    color: #4C75A3;
}

/* Стили для активных YouTube и VK */
.platform-btn.active .btn-icon i {
    color: white !important;
}

/* Стили для RuTube */
.rutube-icon {
    position: relative;
    width: 24px;
    height: 24px;
    background: #000;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rutube-letter {
    color: white;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1;
    position: relative;
    z-index: 10;
    transform: translateY(0.5px);
}

.rutube-corner-dot {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 24px;
    height: 24px;
    background: #FF2D00;
    border-radius: 50%;
    z-index: 5;
}

/* Для активной кнопки RuTube */
.platform-btn.active .rutube-icon {
    background: white;
}

.platform-btn.active .rutube-letter {
    color: #000;
}

.platform-btn.active .rutube-corner-dot {
    background: #FF2D00;
}

.video-container {
    padding: 25px 30px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    display: none;
}

.video-wrapper.active {
    display: block;
    animation: pvsFadeIn 0.5s ease;
}

@keyframes pvsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    padding: 25px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.video-description h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-description h4 i {
    color: #667eea;
    font-size: 16px;
}

.video-description p {
    margin: 0;
    line-height: 1.7;
    color: #4a5568;
    font-size: 15px;
}

/* Оповещение о лицензии */
.pvs-license-notice {
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 20px 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .premium-video-switcher {
        margin: 20px;
        border-radius: 16px;
    }
    
    .video-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        min-height: auto;
    }
    
    .video-title {
        font-size: 20px;
        width: 100%;
    }
    
    .video-badge {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .video-platforms {
        padding: 20px 20px 0;
        flex-direction: column;
    }
    
    .platform-btn {
        width: 100%;
    }
    
    .video-container {
        padding: 20px;
    }
    
    .video-description {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .video-title {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .video-title i {
        font-size: 18px;
    }
    
    .video-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* RTL поддержка */
.rtl .video-title {
    flex-direction: row-reverse;
}

.rtl .video-badge {
    margin-left: 0;
    margin-right: auto;
}

.rtl .video-platforms {
    flex-direction: row-reverse;
}

.rtl .platform-btn {
    flex-direction: row-reverse;
}

.rtl .video-description h4 {
    flex-direction: row-reverse;
}