/* ===== GAME DETAIL ===== */
.game-detail {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.gd-banner {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
}
.gd-banner img, .gd-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gd-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg) 0%, rgba(10,10,15,0.3) 50%, transparent 100%);
}

.gd-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.gd-copy {
    min-width: 0;
}

.gd-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.gd-badge {
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.gd-badge.ps5 { background: rgba(0,112,216,0.2); color: #60a5fa; }
.gd-badge.ps4 { background: rgba(109,40,217,0.2); color: #a78bfa; }
.gd-badge.ps4_ps5 { background: rgba(34,197,94,0.2); color: #86efac; }
.gd-badge.cat { background: rgba(255,255,255,0.06); color: var(--text-secondary); }

.gd-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}
.gd-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-line;
}

.gd-gallery {
    margin-top: 32px;
}

.gd-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.gd-gallery-title {
    font-size: 20px;
    font-weight: 700;
}

.gd-gallery-count {
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gd-gallery-main {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    aspect-ratio: 16 / 9;
    margin-bottom: 14px;
}

.gd-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gd-gallery-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.gd-gallery-thumb {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    aspect-ratio: 16 / 9;
}

.gd-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gd-gallery-thumb:hover,
.gd-gallery-thumb.is-active {
    transform: translateY(-2px);
    border-color: rgba(233, 30, 99, 0.45);
    box-shadow: 0 10px 24px rgba(233, 30, 99, 0.16);
}

/* Purchase card */
.gd-buy-card {
    background: linear-gradient(160deg, rgba(28,28,42,0.98) 0%, rgba(16,16,26,1) 100%);
    border: 1px solid rgba(233,30,99,0.18);
    border-radius: 20px;
    overflow: hidden;
    position: sticky;
    top: 80px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 24px 60px rgba(0,0,0,0.5),
        0 0 80px rgba(233,30,99,0.07);
}
.gd-card-accent {
    height: 3px;
    background: linear-gradient(90deg, #e91e63 0%, #9c27b0 50%, #2196f3 100%);
}
.gd-card-body {
    padding: 24px;
}
.gd-price-block {
    background: rgba(233,30,99,0.06);
    border: 1px solid rgba(233,30,99,0.12);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
}
.gd-price-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.gd-price-old {
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: line-through;
}
.gd-price-badge {
    display: inline-block;
    background: #e91e63;
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}
.gd-price-main {
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.gd-price-current {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
}
.gd-price-currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-secondary);
}
.gd-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.gd-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.gd-buy-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.gd-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(233,30,99,0.5);
}
.gd-buy-btn:hover::after { opacity: 1; }
.gd-buy-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.gd-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
}
.gd-cart-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}
.gd-cart-btn--added {
    background: rgba(76,175,80,0.1) !important;
    border-color: rgba(76,175,80,0.35) !important;
    color: #4caf50 !important;
}
.gd-cart-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.gd-wish-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin-bottom: 14px;
    background: none;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}
.gd-wish-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.gd-wish-btn:hover {
    border-color: rgba(233,30,99,0.3);
    color: #e91e63;
    background: rgba(233,30,99,0.05);
}
.gd-wish-btn--active {
    color: #e91e63 !important;
    border-color: rgba(233,30,99,0.3) !important;
    background: rgba(233,30,99,0.06) !important;
}
.gd-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
}
.gd-info-row span:first-child { color: var(--text-secondary); }
.gd-info-row span:last-child { color: var(--text); font-weight: 500; }

/* Related games */
.gd-related { margin-top: 60px; }
.gd-related-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}
.gd-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.gd-rel-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.3s;
}
.gd-rel-card:hover {
    border-color: var(--border-light);
    transform: translateY(-3px);
}
.gd-rel-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}
.gd-rel-body { padding: 12px; }
.gd-rel-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.gd-rel-price { font-size: 16px; font-weight: 700; color: var(--accent-light); }

@media (max-width: 768px) {
    .gd-grid { grid-template-columns: 1fr; }
    .gd-buy-card { position: static; }
    .gd-banner { height: 250px; }
    .game-detail { padding: 20px 16px 40px; }
    .gd-gallery-strip {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .gd-gallery-thumb {
        flex: 0 0 132px;
    }
}
