/* ===== ОСНОВНЫЕ СТИЛИ ===== */
/* Глобальные стили body убраны - они должны быть в base_generic.css */

* {
    box-sizing: border-box;
}

/* ===== КОНТЕЙНЕР СТРАНИЦЫ ===== */
.livestream-container {
    max-width: 1400px;
    margin: 100px auto 0;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ ===== */
.livestream-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.livestream-header h1 {
    font-family: 'Teko', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
}

.livestream-header h1 i {
    margin-right: 15px;
    color: #ff6b6b;
    text-shadow: 0 0 10px #ff6b6b;
}

.livestream-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    z-index: 10;
}

/* ===== ФИЛЬТРЫ ===== */
.filters-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filters-header {
    text-align: center;
    margin-bottom: 30px;
}

.filters-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.filters-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.filters-form {
    max-width: 1000px;
    margin: 0 auto;
}

.filters-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label i {
    color: #ff6b6b;
}

.search-input,
.category-select,
.status-select,
.type-select {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.search-input:focus,
.category-select:focus,
.status-select:focus,
.type-select:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.filter-btn,
.clear-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:focus,
.clear-btn:focus {
    outline: 3px solid rgba(78, 205, 196, 0.8);
    outline-offset: 3px;
}

.filter-btn {
    background: linear-gradient(135deg, #00d4aa, #00a085);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
}

.clear-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.filter-add-stream-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.35);
}
.filter-add-stream-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.45);
}
.filter-add-stream-btn:focus {
    outline: 3px solid rgba(229, 57, 53, 0.8);
    outline-offset: 3px;
}

/* ===== СЕКЦИИ ТРАНСЛЯЦИЙ ===== */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #00d4aa);
    border-radius: 2px;
}

/* ===== ТЕКУЩИЕ ТРАНСЛЯЦИИ ===== */
.live-now-section {
    margin-bottom: 50px;
    position: relative;
    z-index: 5;
}

.live-now-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.live-now-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(220, 20, 60, 0.2));
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.live-now-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.5);
}

.live-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.live-dot {
    width: 12px;
    height: 12px;
    background: #ff6b6b;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px #ff6b6b;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.live-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff6b6b;
    text-shadow: 0 0 10px #ff6b6b;
}

.stream-thumbnail {
    position: relative;
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    height: 200px;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.live-now-card:hover .thumbnail-img {
    transform: scale(1.05);
}

.no-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

.stream-info {
    margin-bottom: 20px;
}

.stream-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.stream-category {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-weight: 500;
}

.stream-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.viewers-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.viewers-count i {
    color: #00d4aa;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #00d4aa, #00a085);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
    color: white;
    text-decoration: none;
}

.watch-btn:focus {
    outline: 3px solid rgba(78, 205, 196, 0.8);
    outline-offset: 3px;
}

/* ===== РЕКОМЕНДУЕМЫЕ ТРАНСЛЯЦИИ ===== */
.featured-section {
    margin-bottom: 50px;
    position: relative;
    z-index: 5;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.featured-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.stream-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.stream-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-live {
    background: rgba(255, 107, 107, 0.9);
    color: white;
}

.status-scheduled {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.status-ended {
    background: rgba(108, 117, 125, 0.9);
    color: white;
}

.stream-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 15px;
}

.stream-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.stream-date {
    color: rgba(255, 255, 255, 0.6);
}

/* ===== ВСЕ ТРАНСЛЯЦИИ ===== */
.all-streams-section {
    margin-bottom: 50px;
    position: relative;
    z-index: 5;
}

.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stream-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.stream-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.stream-card-link:hover .stream-card,
.stream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.stream-card-link:focus {
    outline: 3px solid rgba(78, 205, 196, 0.8);
    outline-offset: 3px;
    border-radius: 15px;
}

.stream-card .stream-thumbnail {
    position: relative;
    height: 180px;
    margin-bottom: 0;
}

.stream-card .stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.stream-card:hover .stream-thumbnail img {
    transform: scale(1.05);
}

.stream-card .stream-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.stream-card:hover .stream-overlay {
    opacity: 1;
}

.live-badge,
.upcoming-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.live-badge {
    background: rgba(255, 107, 107, 0.9);
    color: white;
}

.upcoming-badge {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.stream-details {
    padding: 20px;
}

.stream-details h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.stream-details p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.stream-details .viewers {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.stream-details .viewers i {
    color: #00d4aa;
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding: 20px;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.page-btn:focus {
    outline: 3px solid rgba(78, 205, 196, 0.8);
    outline-offset: 3px;
}

.page-info {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ===== НЕТ ТРАНСЛЯЦИЙ ===== */
.no-streams {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    margin: 40px 0;
}

.no-streams-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.no-streams h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.no-streams p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.6;
}

.no-streams .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #00d4aa, #00a085);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.no-streams .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
    color: white;
    text-decoration: none;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .livestream-container {
        margin: 80px auto 0;
        padding: 25px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

/* Мобильная и альбомная ориентация (992px — как на остальных страницах) */
@media (max-width: 992px) {
    .livestream-container {
        margin: 72px auto 0;
        padding: 16px 12px;
    }
    
    .livestream-header h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    .filters-section {
        padding: 20px 16px;
        margin-bottom: 24px;
    }
    
    .filters-header {
        margin-bottom: 20px;
    }
    
    .filters-title {
        font-size: 1.35rem;
    }
    
    .filters-subtitle {
        font-size: 0.95rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 20px;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-btn,
    .clear-btn,
    .filter-add-stream-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .live-now-grid,
    .featured-grid,
    .streams-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .live-now-card,
    .featured-card,
    .stream-card {
        padding: 18px;
    }
    
    .stream-thumbnail,
    .live-now-card .stream-thumbnail {
        height: 160px;
    }
    
    .stream-card .stream-thumbnail {
        height: 160px;
    }
    
    .stream-title {
        font-size: 1.2rem;
    }
    
    .stream-details {
        padding: 16px;
    }
    
    .stream-details h4 {
        font-size: 1.1rem;
    }
    
    .watch-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .section-wrapper {
        margin-bottom: 32px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 16px;
    }
    
    .page-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .no-streams {
        padding: 40px 16px;
    }
    
    .no-streams h3 {
        font-size: 1.5rem;
    }
    
    .no-streams p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .livestream-container {
        margin: 64px auto 0;
        padding: 12px 10px;
    }
    
    .livestream-header h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .livestream-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }
    
    .filters-title {
        font-size: clamp(1.2rem, 4vw, 1.35rem);
    }
    
    .section-title {
        font-size: clamp(1.35rem, 5vw, 1.5rem);
    }
    
    .stream-title {
        font-size: clamp(1.05rem, 3vw, 1.2rem);
    }
    
    .stream-thumbnail,
    .live-now-card .stream-thumbnail,
    .stream-card .stream-thumbnail {
        height: 140px;
    }
}