body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0b486b, #f56217);
    color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

header {
    text-align: center;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 20px 0;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px; /* Отступ между логотипом и заголовком */
}

.logo {
    width: 80px; /* Уменьшаем размер логотипа */
    height: 80px; /* Уменьшаем размер логотипа */
    background-color: white;
    border: 2px solid white; /* Добавляем белую рамку */
    border-radius: 10px;
    object-fit: cover;
}

header h1 {
    margin: 0;
    font-size: 2em;
}

#selected-date {
    font-size: 1.5em;
    margin: 0 20px;
    color: white;
}

#current-program {
    font-size: 1.2em;
    margin-top: 10px;
    color: black; /* Изменяем цвет текста на черный */
    background-color: #ffeb3b; /* Жёлтый акцент */
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#player {
    width: 100%;
    max-width: 640px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

#player h2 {
    margin-top: 0;
    color: #e74c3c;
}

#player iframe {
    width: 100%;
    height: 360px;
    border: none;
    border-radius: 10px;
}

#timeline {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    position: relative;
    transition: transform 0.7s ease-in-out; /* Увеличиваем время и используем ease-in-out для плавности */
}

.date-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.date-navigation button {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.date-navigation button:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

#program-list {
    list-style: none;
    padding: 0;
    opacity: 0;
    transition: opacity 0.7s ease-in-out; /* Увеличиваем время и используем ease-in-out для плавности */
}

#program-list li {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: background 0.3s ease;
}

#program-list li:hover {
    background: rgba(255, 255, 255, 0.2);
}

#program-list li.current-program {
    background-color: #ffeb3b; /* Жёлтый акцент */
    font-weight: bold;
    color: black; /* Изменяем цвет текста на черный */
    border-radius: 5px;
}

#program-list li:last-child {
    border-bottom: none;
}

#preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1.5s linear infinite; /* Увеличиваем время анимации до 1.5 секунд */
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #0b486b, #f56217);
    color: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
}

footer p {
    margin: 0;
}