/* Основные стили для модуля Stream */
.stream-tabs {
    display: flex;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stream-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stream-tab:hover {
    color: #495057;
    background-color: #f8f9fa;
}

.stream-tab.active {
    color: #4196da;
    border-bottom-color: #4196da;
    background-color: rgba(65, 150, 218, 0.05);
}

.platform-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.platform-content.active {
    display: block;
}

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

/* Карточка стримера */
.streamer-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.streamer-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.streamer-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.streamer-info {
    flex: 1;
    min-width: 250px;
}

.streamer-name {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #343a40;
}

.streamer-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.platform-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.platform-twitch {
    background: linear-gradient(135deg, #6441a5 0%, #9146ff 100%);
    color: white;
}

.platform-youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
}

.platform-kick {
    background: linear-gradient(135deg, #53fc18 0%, #2bd600 100%);
    color: #000;
}

.username {
    color: #6c757d;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.streamer-actions {
    display: flex;
    gap: 8px;
}

.accordion-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.accordion-toggle.active {
    background-color: #2c649c;
}

/* Контент трансляции */
.streamer-content {
    padding: 0;
}

.stream-embed-container {
    background: #000;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.stream-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stream-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.show {
    max-height: 1000px;
}

.streamer-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Бейджи для боковой панели */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

.bg-twitch {
    background: #9146ff;
    color: white;
}

.bg-youtube {
    background: #ff0000;
    color: white;
}

.bg-kick {
    background: #53fc18;
    color: #000;
}

/* Адаптивность */
@media (max-width: 768px) {
    .stream-tabs {
        flex-direction: column;
    }
    
    .stream-tab {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
        border-bottom: 1px solid #dee2e6;
        border-radius: 0;
    }
    
    .stream-tab.active {
        border-bottom: 3px solid #4196da;
    }
    
    .streamer-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .streamer-info {
        min-width: auto;
    }
    
    .streamer-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .streamer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .stream-embed-container {
        padding-top: 75%; /* 4:3 для мобильных */
    }
}

@media (max-width: 576px) {
    .stream-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .streamer-name {
        font-size: 18px;
    }
    
    .platform-badge {
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .streamer-footer .row {
        flex-direction: column;
        gap: 5px;
    }
    
    .streamer-footer .text-end {
        text-align: left !important;
    }
}

/* Специальные стили для разных платформ */
.stream-embed[data-platform="twitch"] {
    background: #0f0e11;
}

.stream-embed[data-platform="youtube"] {
    background: #000;
}

.stream-embed[data-platform="kick"] {
    background: #0f0e11;
}

/* Индикатор загрузки */
.stream-embed .fa-spinner {
    color: #4196da;
    font-size: 24px;
}

/* Сообщения об ошибках */
.stream-embed .alert {
    margin: 20px;
    border-radius: 6px;
}