* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Затемнение фона для читаемости */
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(3px);
    z-index: -1;
}

/* --- Картинки по углам --- */
.corner-img {
    position: absolute;
    width: 250px; /* Размер картинок. Если нужно больше/меньше - меняй это число */
    height: auto;
    opacity: 0.9;
    z-index: 10;
    transition: opacity 0.3s;
}

.corner-img:hover {
    opacity: 1;
}

.top-left { top: 95px; left: 30px; }
.top-right { top: 55px; right: 25px; }

/* --- Обертка для центрирования --- */
.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 50px 20px;
}

/* --- Основной контейнер (как в 1 версии) --- */
.container {
    max-width: 800px;
    width: 100%;
    background: rgba(20, 20, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.subtitle {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Плеер */
.player-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #b03030;
    color: #b03030;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-btn:hover {
    background: #b03030;
    color: #fff;
    box-shadow: 0 0 15px rgba(176, 48, 48, 0.5);
}

.now-playing { text-align: right; }

.label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.country-name {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 400;
}

/* Инфо-блок */
.info-box {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #aaa;
    margin-bottom: 30px;
    text-align: center;
    padding: 0 20px;
}

.contacts a {
    color: #b03030;
    text-decoration: none;
    font-weight: 600;
}

.contacts a:hover { text-decoration: underline; }

/* Расписание */
.schedule-box h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.schedule-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 5px;
    font-size: 0.9rem;
    color: #888;
    transition: all 0.3s ease;
}

.schedule-list li.active {
    background: rgba(176, 48, 48, 0.2);
    color: #fff;
    border-left: 3px solid #b03030;
}

.time-tag {
    font-weight: 600;
    color: #ccc;
}

/* --- Замочная скважина внизу --- */
.keyhole-section {
    text-align: center;
    margin-top: 100px; /* Отталкивает скважину вниз, за пределы экрана */
    margin-bottom: 50px;
    cursor: pointer;
}

.poem {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: #ccc;
    margin-bottom: 15px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    line-height: 1.4;
}

.keyhole-img {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    opacity: 0.7;
}

.keyhole-section:hover .keyhole-img {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px rgba(176, 48, 48, 0.7));
    opacity: 1;
}

/* --- Модальное окно --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; top: 0;
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #151518;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid #333;
    width: 85%; 
    max-width: 600px;
    border-radius: 10px;
    color: #ccc;
    line-height: 1.8;
    box-shadow: 0 10px 40px rgba(0,0,0,1);
    max-height: 80vh; /* Ограничение высоты */
    overflow-y: auto; /* Включает прокрутку */
}

.modal-content h2 {
    font-family: 'Cormorant Garamond', serif;
    color: #fff;
    margin-bottom: 20px;
    font-size: 2rem;
}

.close-btn {
    color: #888;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover { color: #b03030; }

@media (max-width: 600px) {
    .schedule-list { grid-template-columns: 1fr; }
    .player-box { flex-direction: column; gap: 20px; text-align: center; }
    .now-playing { text-align: center; }
    .top-left { top: 10px; left: 10px; width: 50px; }
    .top-right { top: 10px; right: 10px; width: 50px; }
}

/* Стили для счетчика в модальном окне */
.modal-counter {
    text-align: right; /* Прижимает содержимое вправо */
    margin-top: 80px; /* Отделяет счетчик от текста пустым пространством */
    opacity: 0.5; /* Делает его полупрозрачным, чтобы не отвлекал */
    transition: opacity 0.3s ease;
}

.modal-counter:hover {
    opacity: 1; /* При наведении мышки счетчик становится ярким */
}

.modal-counter img {
    height: 20px; /* Устанавливаем аккуратный размер картинки */
}

/* Контейнер для трех окошек внизу */
.bottom-icons-container {
    display: flex;
    justify-content: center; /* Центрируем весь ряд */
    align-items: center;     /* Выравниваем по центру (было flex-end) */
    gap: 20px;               /* Увеличиваем расстояние между ними (было 40px) */
    margin-top: 60px;        /* Чуть поднимаем вверх (было 80px) */
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* Немного уменьшаем отступ у самих окошек, так как он теперь у контейнера */
.keyhole-section {
    text-align: center;
    cursor: pointer;
    margin-top: 0; 
}

/* Стили для кнопок скачивания */
.download-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #d97a27; /* Приятный оранжевый/янтарный */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #c06014; /* Более светлый оранжевый при наведении */
}

/* Стих над картинками */
.poem-container {
    text-align: center;
    margin-top: 80px;    /* Отступ сверху */
    margin-bottom: 30px; /* Отступ до картинок */
}

/* Настройка отступов между самими картинками */
.bottom-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px; /* ТЕПЕРЬ МОЖНО СТАВИТЬ ХОТЬ 20px, им ничего не мешает! */
    margin-bottom: 50px;
}

/* --- Настройки для мобильных устройств --- */
.keyhole-section {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent; /* Убирает синюю рамку при нажатии на телефоне */
    user-select: none; /* Запрещает выделять картинку как текст при долгом нажатии */
    touch-action: manipulation; /* Ускоряет реакцию на тап */
}

.keyhole-img {
    pointer-events: none; /* Картинка не перехватывает клик, клик идет на весь блок */
}