@font-face {
    font-family: 'Renaissance';
    src: url('https://shiklink.ru/fonts/Renaissance.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    font-family: 'Renaissance', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Фон */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.background-image.active {
    opacity: 1;
}

/* Верхний футер */
.top-footer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    font-family: 'Renaissance', sans-serif;
}

.header-left {
    display: flex;
    align-items: center;
}

.menu-toggle {
    font-size: 24px;
    cursor: pointer;
    margin-right: 25px;
    transition: opacity 0.3s ease;
}

.menu-toggle:hover {
    opacity: 0.8;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
}

.location-data, .device-model, .datetime, .season-counter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.season-counter {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #8b4513;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.season-name {
    font-size: 11px;
    opacity: 0.9;
}

.countdown-timer {
    font-size: 11px;
    opacity: 0.8;
}


.background-controls {
    margin-left: 20px;
}

#backgroundSpeed {
    background: #000; /* Черный фон */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    font-family: 'Renaissance', sans-serif;
    margin-left: 5px;
}

#backgroundSpeed option {
    background: #000; /* Черный фон для опций */
    color: white;
}

/* Боковое меню */
.side-menu {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    transition: left 0.4s ease;
    z-index: 200;
    padding: 80px 25px 25px;
    overflow-y: auto;
}

.side-menu.active {
    left: 0;
}

.menu-item {
    padding: 15px 20px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-item a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

/* Основной контент */
.main-content {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 80px;
}

.left-column, .right-column {
    flex: 1;
}

.center-column {
    flex: 3;
    padding: 40px;
    background-color: transparent; /* Убираем черный фон */
    margin: 20px;
    border-radius: 15px;
}

.center-column h1 {
    margin-bottom: 30px;
    font-size: 32px;
    text-align: center;
    color: #fff;
    text-transform: uppercase; /* КАПС */
}

/* ОБНОВЛЕНО: Прозрачность новостей как в мобильной версии */
.news-item {
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.29); /* 29% прозрачности */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
}

.news-item h2 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #000; /* Черный текст */
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 15px #fff,
        0 0 20px #fff; /* Белое свечение */
}

.news-item p {
    line-height: 1.6;
    color: #000; /* Черный текст */
    margin-bottom: 10px;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 15px #fff; /* Белое свечение */
}

.news-date {
    font-size: 12px;
    color: #000; /* Черный текст */
    text-align: right;

}

/* Значок NEW */
.new-badge {
    background: #00FF00;
    color: black;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Нижний футер */
.bottom-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    padding: 15px 30px;
    text-align: center;
    z-index: 100;
    font-family: 'Renaissance', sans-serif;
}

.footer-content {
    font-size: 14px;
}

/* Cookie согласие */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background-color: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(10px);
}

.cookie-consent.active {
    display: block;
}

.cookie-content {
    text-align: center;
}

.cookie-content p {
    margin-bottom: 15px;
    line-height: 1.5;
}

#acceptCookies {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Renaissance', sans-serif;
}

#acceptCookies:hover {
    background: #45a049;
}

/* Стили для управления фоном в меню */
.background-controls-menu {
    padding: 15px 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.control-title {
    font-size: 14px;
    margin-bottom: 8px;
    color: #fff;
    opacity: 0.8;
}

#menuBackgroundSpeed {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 8px 10px;
    font-size: 14px;
    font-family: 'Renaissance', sans-serif;
}

#menuBackgroundSpeed option {
    background: #333;
    color: white;
}