/* Стили для страницы прямой трансляции */

@font-face {
    font-family: Hero_light;
    src: url(../Fonts/Hero\ light.ttf);
}

@font-face {
    font-family: Hero_regular;
    src: url(../Fonts/Hero\ regular.ttf);
}

@font-face {
    font-family: Old_Classic;
    src: url(../Fonts/Old\ Classic.ttf);
}

@font-face {
    font-family: BonaNova;
    src: url(../Fonts/BonaNovaSC-Regular.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Hero_regular, Arial, sans-serif;
    background-color: #F6F9FA;
    color: #12171D;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Кнопка назад */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(89, 93, 94, 0.9);
    border: 1px solid #595D5E;
    border-radius: 8px;
    padding: 12px 16px;
    color: #F6F9FA;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: Hero_regular;
}

.back-button:hover {
    background: #595D5E;
    transform: translateX(-2px);
}

.back-button svg {
    width: 16px;
    height: 16px;
}

/* Основной контейнер */
.live-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 20px;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

/* Заголовок трансляции */
.live-header {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #74807F 0%, #12171D 100%);
    border-radius: 15px;
    color: #F6F9FA;
}

.live-status {
    display: flex;
    align-items: center;
    gap: 15px;
}

.live-indicator {
    background: #ff4757;
    color: #F6F9FA;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    font-family: Hero_regular;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.live-header h1 {
    font-size: 28px;
    font-weight: 300;
    color: #F6F9FA;
    font-family: Hero_regular;
}

.live-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.fullscreen-btn {
    background: rgba(249, 247, 242, 0.2);
    border: 1px solid rgba(249, 247, 242, 0.3);
    color: #F6F9FA;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-btn:hover {
    background: rgba(249, 247, 242, 0.3);
    border-color: rgba(249, 247, 242, 0.5);
    transform: translateY(-2px);
}

/* Контейнер плеера */
.live-player-container {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

/* Загрузка */
.live-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #F6F9FA;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(249, 247, 242, 0.3);
    border-top: 4px solid #F6F9FA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.live-loading p {
    font-family: Hero_regular;
    font-size: 18px;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Информация о трансляции */
.live-info {
    text-align: center;
    padding: 20px;
    background: rgba(116, 128, 127, 0.1);
    border-radius: 10px;
    margin-bottom: 30px;
}

.live-info p {
    font-family: Hero_light;
    font-size: 16px;
    margin: 0 0 10px 0;
    color: #74807F;
}

.live-info .live-note {
    font-size: 14px;
    opacity: 0.8;
}

/* Заглушка когда нет трансляции */
.no-live {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.no-live-icon {
    margin-bottom: 30px;
}

.no-live-icon img {
    opacity: 0.7;
    width: 140px;
}

.no-live h1 {
    font-family: Hero_regular;
    font-size: 36px;
    margin-bottom: 20px;
    color: #12171D;
}

.no-live p {
    font-family: Hero_light;
    font-size: 18px;
    margin-bottom: 15px;
    color: #74807F;
    line-height: 1.6;
}

.back-to-site {
    margin-top: 40px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #74807F;
    text-decoration: none;
    font-family: Hero_light;
    font-size: 16px;
    padding: 12px 20px;
    border: 1px solid rgba(116, 128, 127, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: #12171D;
    border-color: #74807F;
    background: rgba(116, 128, 127, 0.1);
}

/* Футер */
footer {
    background-color: #595D5E;
    height: 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

footer p {
    font-family: Hero_regular;
    font-size: 1vw;
    color: #F6F9FA;
}

.copyright {
    font-size: 2vw !important;
    margin-right: 0.3vw;
}

/* Адаптивность */
@media (max-width: 768px) {
    .live-container {
        padding: 80px 15px 20px;
    }
    
    .live-header {
        gap: 20px;
        text-align: center;
        padding: 20px 15px;
    }
    
    .live-header h1 {
        font-size: 22px;
    }
    
    .live-controls {
        justify-content: center;
    }
    
    .live-player-container {
        margin: 0 -5px 20px;
        border-radius: 10px;
    }
    
    .live-info {
        padding: 15px;
        margin: 0 -5px 20px;
    }
    
    .no-live {
        padding: 40px 15px;
    }
    
    .no-live h1 {
        font-size: 28px;
    }
    
    .back-button {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Футер - мобильная версия */
    footer {
        height: auto;
        padding: 20px;
        flex-direction: row;
        gap: 5px;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    footer p {
        font-size: 14px;
    }

    .copyright {
        font-size: 18px !important;
        margin-right: 5px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .live-container {
        padding: 90px 30px 30px;
    }
    
    .live-header h1 {
        font-size: 24px;
    }
    
    .no-live h1 {
        font-size: 32px;
    }
    
    footer {
        height: auto;
        padding: 30px;
    }
    
    footer p {
        font-size: 16px;
    }
    
    .copyright {
        font-size: 24px !important;
    }
} 
/* Прокрутка мобильного меню и списка пунктов */
@media screen and (max-width: 768px) {
    .mobile-menu {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: 100vh;
        padding: 60px 16px 16px; /* если уже есть — можно не дублировать */
    }
    .mobile-menu .main_menu {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Усиление для горизонтальной ориентации маленьких телефонов */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .mobile-menu {
        padding-top: 56px;
        max-height: 100vh;
        overflow-y: auto;
    }
    .mobile-menu .main_menu {
        top: 30px; /* если используется относительное позиционирование */
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}