:root {
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-secondary: #cccccc;
    --accent: #24aaec;
}

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

body {
    background-color: #0a0a0a;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #ecedee;
    line-height: 1.5;
    padding: 2rem 1rem;
}

/* Запрещаем скролл фона при открытом модальном окне */
body.modal-open {
    overflow: hidden;
}

.nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav a:hover, .nav a.active {
    color: var(--accent);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Заголовок страницы */
.page-header {
    margin-bottom: 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff, #a0a0a0);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #8a8a8a;
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Лента постов */
.screenshot-feed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Отдельный блок */
.screenshot-card {
    border-bottom: 1px solid #1e1e1e;
    padding-bottom: 2rem;
    transition: all 0.2s ease;
}

/* Заголовок и мета-информация */
.card-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.title-section {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.game-title a {
    color: var(--accent);
}

.counter {
    font-size: 0.75rem;
    color: #4a4a4a;
    font-family: monospace;
    background: #121212;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #252525;
}

.meta-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #8a8a8a;
    margin-bottom: 1rem;
}

.location, .period {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Галерея скриншотов */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.2rem 0;
}

.screenshot-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0e0e0e;
    border: 1px solid #1e1e1e;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.screenshot-item:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    border-color: #3a3a3a;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.2s;
}

/* Подпись под скриншотом (опционально) */
.caption {
    font-size: 0.7rem;
    color: #6a6a6a;
    padding: 0.5rem 0.75rem;
    background: #0c0c0c;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

/* Нижняя панель */
.card-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.comment-placeholder {
    font-size: 0.7rem;
    color: #4a4a4a;
    cursor: default;
}

/* МОДАЛЬНОЕ ОКНО (ЛАЙТБОКС) */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    cursor: default;
}

.lightbox-caption {
    margin-top: 1rem;
    color: #aaa;
    font-size: 0.9rem;
    text-align: center;
    max-width: 80%;
    background: rgba(20,20,20,0.8);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    backdrop-filter: blur(4px);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    font-family: monospace;
    transition: transform 0.2s;
    z-index: 1001;
}

.close-lightbox:hover {
    transform: scale(1.1);
    color: #ff7b89;
}

/* Навигационные стрелки */
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30,30,30,0.7);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    z-index: 1001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(80,80,80,0.9);
    transform: translateY(-50%) scale(1.05);
}

@media (max-width: 640px) {
    body {
        padding: 1rem;
    }
    .container {
        margin-top: 70px;
    }
    .game-title {
        font-size: 1.2rem;
    }
    .meta-info {
        font-size: 0.7rem;
    }
    .screenshot-gallery {
        grid-template-columns: 1fr;
    }
    .lightbox-prev, .lightbox-next {
        padding: 0.5rem 0.8rem;
        font-size: 1.5rem;
    }
    .close-lightbox {
        top: 15px;
        right: 20px;
        font-size: 2rem;
    }
}

/* footer */
.footer-note {
    text-align: center;
    margin-top: 0rem;
    font-size: 0.7rem;
    color: #3a3a3a;
    border-top: 0px solid #151515;
    padding-top: 2rem;
}