:root {
    --steam-bg-main: #1b2838;
    --steam-bg-dark: #101822;
    --steam-bg-surface: rgba(0, 0, 0, 0.2);
    --steam-text-primary: #c7d5e0;
    --steam-text-title: #ffffff;
    --steam-accent-blue: #66c0f4;
    --steam-btn-grad: linear-gradient(to right, #75b022 5%, #588a1b 95%);
    --steam-btn-grad-hover: linear-gradient(to right, #8ed629 5%, #6aa621 95%);
    --steam-border: #2a475e;
}

.steam-integration-section {
    padding-top: 8rem;
}

.steam-game-container {
    width: 100%;
    max-width: 1000px;
    background-color: var(--steam-bg-main);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 2rem;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

.steam-game-header {
    background-color: var(--steam-bg-dark);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--steam-border);
}

.steam-game-header h3 {
    margin: 0;
    color: var(--steam-text-title);
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.steam-game-body {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(to bottom, var(--steam-bg-surface) 0%, transparent 100%);
}

.steam-media-viewer {
    flex: 6;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.steam-main-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
}

.steam-main-media video,
.steam-main-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.steam-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.steam-thumbnail {
    cursor: pointer;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.steam-thumbnail:hover {
    opacity: 1;
    transform: scale(1.02);
}

.steam-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.steam-game-sidebar {
    flex: 4;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.steam-game-capsule {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.steam-game-desc {
    color: var(--steam-text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.steam-game-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    background-color: var(--steam-bg-dark);
    padding: 1rem;
    border-radius: 4px;
}

.steam-info-row {
    display: flex;
    justify-content: space-between;
}

.steam-info-label {
    color: #556772;
}

.steam-info-value {
    color: var(--steam-accent-blue);
    text-align: right;
    max-width: 60%;
}

.steam-action-bar {
    margin-top: auto;
}

.steam-buy-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--steam-btn-grad);
    color: #d2efa9;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: background 0.2s ease, transform 0.1s ease;
}

.steam-buy-button:hover {
    background: var(--steam-btn-grad-hover);
    color: #ffffff;
}

.steam-buy-button:active {
    transform: scale(0.98);
}

.steam-error {
    color: var(--steam-text-primary);
    margin-top: 2rem;
    font-style: italic;
}

@media (max-width: 850px) {
    .steam-game-body {
        flex-direction: column;
    }
    .steam-game-sidebar {
        order: -1;
    }
}