

.main-content {
    padding: 30px 0 0px;
    min-height: calc(100vh - 200px);
}


.game-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    margin-bottom: 40px;
}


.game-detail {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


.game-preview-card {
    position: relative;
    border-radius: 16px;
    padding: 140px 30px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}


.preview-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(30px);
    transform: scale(1.1);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.preview-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.game-image {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 16px;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.game-publisher {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 28px 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}


.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 36px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
}

.play-button i {
    font-size: 1.2rem;
}

.play-button span {
    font-size: 1.1rem;
}


.game-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.info-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-label {
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
}

.info-value {
    font-size: 1.1rem;
    color: #1f2937;
    font-weight: 600;
}

.info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 60px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.meta-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.meta-label {
    font-size: 0.95rem;
    color: #6b7280;
    white-space: nowrap;
}

.meta-link {
    font-size: 0.95rem;
    color: #4f46e5;
    text-decoration: underline;
}

.meta-link:hover {
    color: #6366f1;
}

.meta-value {
    font-size: 0.95rem;
    color: #1f2937;
    font-weight: 500;
}

.meta-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #1f2937;
    font-weight: 600;
}

.meta-rating i {
    color: #f59e0b;
    font-size: 1rem;
}

.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 60px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.game-tags-section {
    margin-bottom: 28px;
}

.tag-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tag-label {
    font-size: 0.95rem;
    color: #374151;
    font-weight: 500;
}

.tag-item {
    padding: 6px 16px;
    background: lch(73 23.3 287.14);
    color: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.info-section {
    margin-bottom: 24px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.section-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #4f46e5;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-section p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #374151;
}

.related-games {
    margin-top: 40px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.related-card {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.related-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.3);
}

.related-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-title {
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4f46e5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}


@media (max-width: 1400px) {
    .related-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {

    .game-preview-card {
        padding: 40px 24px;
    }

    .game-image {
        width: 120px;
        height: 120px;
    }

    .game-title {
        font-size: 1.5rem;
    }

    .game-info-card {
        padding: 24px;
    }

    .info-meta {
        flex-direction: column;
        gap: 16px;
    }

    .info-tags {
        flex-direction: column;
        gap: 16px;
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .related-title {
        font-size: 0.8rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .game-preview-card {
        padding: 32px 16px;
    }

    .game-image {
        width: 100px;
        height: 100px;
        border-radius: 16px;
    }

    .game-title {
        font-size: 1.3rem;
    }

    .play-button {
        padding: 12px 32px;
        font-size: 1rem;
    }

    .game-info-card {
        padding: 20px;
    }

    .tag-item {
        padding: 4px 12px;
        font-size: 0.8rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .related-title {
        font-size: 0.75rem;
        padding: 8px;
    }

    .game-layout {
        grid-template-columns: 1fr;
    }

    .game-detail {
        order: -1;
    }
}


.similar-games-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: fit-content;
    position: relative;
    top: 0px;
}

.similar-games-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4f46e5;
    margin: 0 0 20px 0;
}

.similar-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    overflow: hidden;
}

.similar-game-card {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
    overflow: hidden;
    min-width: 0;
}

.similar-game-card:hover {
    transform: translateY(-4px);
}

.similar-game-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.similar-game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.similar-game-card:hover .similar-game-image img {
    transform: scale(1.05);
}

.similar-game-info {
    padding: 0 2px;
    overflow: hidden;
    width: 100%;
}

.similar-game-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.similar-game-publisher {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}


@media (max-width: 1200px) {
    .game-layout {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 992px) {
    .game-layout {
        grid-template-columns: 1fr;
    }

    .similar-games-sidebar {
        position: static;
    }

    .similar-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .similar-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .similar-games-sidebar {
        padding: 16px;
    }

    .similar-games-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
}
