/*деталка игры*/
.game-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Отступы и выравнивание в заголовке */
.game-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 2rem;
}


.cover-box .cover-square {
    margin: 0.5rem 0 0;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Заголовок и цена — больше отступа от обложки */
.info-box {
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    height: 2.6em; /* 2 строки */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* === Цены === */

/* Блок с ценой */
.price-block {
    margin: 0.5rem 0 1rem;
}

/* Цена в виде строки, а не кнопки */
.price-option strong {
    font-size: 1.25rem;
    font-weight: 600;
    background: none;
    padding: 0.3em;
    border-radius: 0;
    color: #FFFFFF;
}

/* Убираем вид badge */
.price-option .price-badge {
    background: transparent;
    color: #00cc66;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0;
    border-radius: 0;
}

/* Подпись цены — серый, меньше */
.price-option .label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
    margin-right: 0.25rem;
}


.price-content {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-content del {
    color: #999;
    font-size: 0.95rem;
    text-decoration: line-through;
}

.price-content strong {
    font-size: 1.15rem;
    font-weight: bold;
    color: #ffffff;
}

.price-content .discount {
    background: #c92e2e;
    color: white;
    font-weight: bold;
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

.sale-until {
    font-size: 0.75rem;
    color: #aaa;
    margin-left: 0.5rem;
}

.price-badge {
    padding: 0.3rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 999px;
    white-space: nowrap;
}

.price-badge.has-lang {
    background: #2e8b57;
    color: #fff;
}

.price-badge.no-lang {
    background: #5e5e5e;
    color: #ccc;
}

.sale-until {
    font-size: 0.85rem;
    color: #aaa;
    margin-left: 0.5rem;
}

.buy-buttons.compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.buy-buttons .buy-btn {
    padding: 0.4rem 0.75rem;
    border-radius: 0.75rem;
    background: #5a2fc2;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.95rem;
}

.buy-buttons .buy-btn:hover {
    background: #7148db;
}

/* Карусель */
.carousel-section {
    margin-top: 2rem;
}

.screenshot-thumbs {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-snap-type: x mandatory;
}

.screenshot-thumb {
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.2s ease;
}

.screenshot-thumb:hover {
    transform: scale(1.05);
}

/* Lightbox overlay */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
}

.lightbox-image {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.lightbox-nav {
    margin-top: 1rem;
    display: flex;
    gap: 2rem;
}

.lightbox-nav button {
    background: none;
    color: white;
    font-size: 2rem;
    border: none;
    cursor: pointer;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.hidden {
    display: none;
}

/* Блок с трейлерами */
.trailer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trailer-links a {
    color: #66aaff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.routuber-link {
    color: #00cc66;
    font-weight: bold;
}

.meta-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.play-modes {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mode {
    background: #333;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    display: inline-block;
}

.mode.warning {
    background: #a83232;
}

.lang-support .lang-yes {
    color: #00cc66;
    font-weight: bold;
}

.lang-support .lang-no {
    color: #ff4444;
    font-weight: bold;
}


/*related games*/
.related-games {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.related-card {
    display: flex;
    flex-direction: column;
    background: #2a2a2a;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    padding: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.related-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    object-fit: cover;
}

.related-title {
    max-width: 100%;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-price {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.2rem;
}

/* Медиа-запросы */
.desktop-only {
    display: none;
}

.mobile-only {
    display: block;
}

@media (min-width: 800px) {
    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none;
    }

    .game-header {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 2rem;
    }

    .related-games.desktop-only {
        max-width: 200px;
        margin-left: auto;
    }
}


.container.game-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.two-column-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.main-content {
    flex: 1;
    min-width: 0; /* важно для избежания переполнения */
}

.side-content {
    flex: 0 0 240px;
    max-width: 240px;
}

@media (min-width: 900px) {
    .two-column-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .side-content {
        margin-left: 2rem;
    }

    .related-games.mobile-only {
        display: none !important;
    }

    .related-games.mobile-only h2 {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 899px) {
    .desktop-only {
        display: none !important;
    }
}

.game-extra-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.info-card {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* ⬅ добавляем это */
    text-align: center;  /* ⬅ и это */
    gap: 0.4rem;
    line-height: 1.5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.info-card i {
    color: #888;
    margin-right: 0.5rem;
}

.info-card.warning {
    background: #3a1c1c;
    border-left: 4px solid #c92e2e;
    color: #f5c6c6;
}

.rating-text {
    color: #aaa;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.mode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mode-list li {
    background: #333;
    color: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.info-card.chip-flex-card .chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.info-card.chip-flex-card .chip {
    background-color: #2c2c2e;
    border: 1px solid #444;
    border-radius: 9999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    height: 26px;
    line-height: 1;
}

.review-highlight {
    margin-top: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #6c5ce7, #ff7675);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.5);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(108, 92, 231, 0.7);
}

.review-highlight-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 1.25rem;
}

.review-highlight-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 500;
    gap: 0.75rem;
}

.review-highlight-content i {
    font-size: 1.1rem;
}
