/* --- ОБЩИЕ СТИЛИ И ПЕРЕМЕННЫЕ --- */
:root {
    --primary-font: 'Montserrat', sans-serif;
    --bg-gradient-start: #e0eafc;
    --bg-gradient-end: #cfdef3;
    --text-color: #3f4c6b;
    --header-color: #1e2b4e;
    --shadow-color: rgba(30, 43, 78, 0.1);
}

body {
    font-family: var(--primary-font);
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-color);
    margin: 0;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Класс для body, чтобы фон не скроллился, когда модальное окно открыто */
body.modal-open {
    overflow: hidden;
}

/* --- ОСНОВНОЙ КОНТЕНТ --- */
.main-content {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    box-sizing: border-box;
}

@keyframes fadeInFromBottom {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    max-width: 750px;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 25px;
    padding: 40px 50px;
    box-shadow: 0 16px 40px var(--shadow-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInFromBottom 1s ease-out forwards;
}

/* --- ЗАГОЛОВКИ И ТЕКСТ --- */
h1 {
    font-size: 4.2rem;
    font-weight: 800;
    color: var(--header-color);
    margin: 20px 0 15px;
    letter-spacing: -2px;
    line-height: 1.1;
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.5);
}

.container > p {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0 0 40px;
    font-weight: 700;
}

.congrats-text p {
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: left;
}

/* --- ДИНОЗАВР T-REX (КАРТИНКА) --- */
.dino-trex {
    width: 130px;
    height: 130px;
    margin: -80px auto 10px auto;
    position: relative;
    animation: dino-wiggle 3s infinite ease-in-out;
}

.dino-trex img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes dino-wiggle {
    0% { transform: rotate(-3deg) translateY(0px); }
    50% { transform: rotate(3deg) translateY(-5px); }
    100% { transform: rotate(-3deg) translateY(0px); }
}

/* --- МУЗЫКАЛЬНЫЙ ОВЕРЛЕЙ --- */
#play-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: opacity 0.5s ease;
}

.play-button {
    padding: 20px 40px;
    background-color: #fff;
    color: var(--header-color);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}
.play-button:hover {
    transform: scale(1.05);
}

#play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- НИЖНЯЯ ЛЕНТА С ФОТОГРАФИЯМИ --- */
.live-feed-wrapper {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    white-space: nowrap;
}

.feed-strip-container {
    display: flex;
}

@keyframes scroll-left {
    from { transform: translateX(0%); }
    to { transform: translateX(-100%); }
}

/* Добавляем префиксы для совместимости */
.feed-strip {
    display: flex;
    flex-shrink: 0;
    animation: scroll-left 45s linear infinite;
    -webkit-animation: scroll-left 45s linear infinite;
}

.feed-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    border: 1px solid #eef1f4;
    padding: 8px 20px 8px 8px;
    margin: 0 15px;
    min-width: 280px;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* Делаем курсор-указатель */
}
.feed-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.feed-item img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.feed-item span {
    font-weight: 700;
    color: var(--header-color);
    font-size: 1.1rem;
}

/* --- СТИЛИ: Модальное окно для фото --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; /* По умолчанию скрыто */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: fadeInFromBottom 0.5s ease-out forwards;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: #bbb;
}

/* --- МЕДИА-ЗАПРОСЫ (АДАПТИВНОСТЬ) --- */
@media (max-width: 768px) {
    .container {
        padding: 30px;
        border-radius: 20px;
    }
    h1 { font-size: 3.2rem; letter-spacing: -1px; }
    .container > p { font-size: 1.5rem; margin-bottom: 30px; }
    .congrats-text p { font-size: 1rem; }
    .dino-trex { width: 100px; height: 100px; margin: -60px auto 10px; }
    .live-feed-wrapper { padding: 15px 0; }
    .feed-item { min-width: 240px; padding: 6px 15px 6px 6px; margin: 0 10px; border-radius: 40px; }
    .feed-item img { width: 45px; height: 45px; margin-right: 10px; }
    .feed-item span { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    .main-content { padding: 40px 15px; }
    .container { padding: 25px 20px; border-radius: 15px; box-shadow: 0 10px 30px var(--shadow-color); }
    h1 { font-size: 2.5rem; }
    .container > p { font-size: 1.2rem; margin-bottom: 25px; }
    .congrats-text p { font-size: 0.9rem; }
    .dino-trex { width: 80px; height: 80px; margin: -50px auto 5px; }
    .play-button { padding: 15px 30px; font-size: 1.2rem; border-radius: 40px; }
    .live-feed-wrapper { padding: 10px 0; }
    .feed-item { min-width: 200px; padding: 5px 10px 5px 5px; margin: 0 8px; border-radius: 30px; }
    .feed-item img { width: 40px; height: 40px; margin-right: 8px; }
    .feed-item span { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 360px) {
    h1 { font-size: 2.2rem; }
    .container > p { font-size: 1.1rem; }
    .play-button { font-size: 1rem; padding: 12px 25px; }
    .feed-item { min-width: 180px; }
}
