/* Game Detail Page Styles */
main {
    display: flex;
    flex-direction: column;
}

.game-detail-container {
    max-width: var(--all-width);
    margin: 30px auto;
    padding: 0 20px;
}

/* Game Header Section */
.game-header {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.game-thumbnail {
    flex-shrink: 0;
}

.game-thumbnail .img-box {
    width: 200px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.game-thumbnail .img-box::before {
    padding-top: 100%;
}

.game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

/* Rating Stars */
.game-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    display: flex;
    gap: 3px;
}

.star {
    font-size: 24px;
    color: #ddd;
}

.star.filled {
    color: darkorange;
}

.rating-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Game Meta Info */
.game-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 14px;
    color: #666;
}

.meta-item strong {
    color: #000;
    font-weight: 600;
}

/* Play Button */
.play-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background-color: darkorange;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.play-button svg {
    width: 20px;
    height: 20px;
}

.play-button:hover {
    background-color: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 140, 0, 0.4);
}

/* Game Content Sections */
.game-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.game-section {
    margin-bottom: 35px;
}

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

.game-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid darkorange;
}

.game-description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

/* Instructions Box */
.instructions-box {
    background: #f9f9f9;
    border-left: 4px solid darkorange;
    padding: 20px;
    border-radius: 8px;
}

.instructions-box p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Game Tags */
.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: darkorange;
    color: #fff;
    transform: translateY(-2px);
}

/* Share Section in Detail Page */
.game-detail-container .share-section {
    margin: 0 0 30px 0;
}

/* Responsive Design */
@media screen and (max-width: 769px) {
    .game-header {
        flex-direction: column;
        padding: 25px;
        gap: 25px;
        align-items: center;
    }

    .game-thumbnail .img-box {
        width: 150px;
        margin: 0 auto;
    }

    .game-title {
        font-size: 24px;
        text-align: center;
    }

    .game-rating {
        justify-content: center;
    }

    .game-meta {
        justify-content: center;
    }

    .play-button {
        align-self: center;
        width: 100%;
        justify-content: center;
    }

    .game-content {
        padding: 25px;
    }

    .game-section h2 {
        font-size: 20px;
    }

    .game-description {
        font-size: 15px;
    }
}

/* Old styles for compatibility */
.game {
    display: none;
}

/* Video Preview Section */
.video-preview-section {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.video-preview-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid darkorange;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 18px;
}

/* Screenshots Gallery */
.screenshots-section {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.screenshots-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid darkorange;
}

.screenshots-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.generate-btn {
    padding: 12px 24px;
    background-color: darkorange;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.generate-btn:hover:not(:disabled) {
    background-color: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

.generate-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.screenshots-status {
    font-size: 14px;
    color: #666;
}

.screenshots-status.loading {
    color: darkorange;
    font-weight: 600;
}

.screenshots-status.error {
    color: #e74c3c;
}

.screenshots-status.success {
    color: #27ae60;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.screenshot-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.screenshot-timestamp {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.screenshot-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    background: #f0f0f0;
    border-radius: 8px;
    color: #666;
}

/* Screenshot Modal */
.screenshot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.screenshot-modal.active {
    display: flex;
}

.screenshot-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.screenshot-modal img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.screenshot-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
}
/* Responsive Design for Video and Screenshots */
@media screen and (max-width: 769px) {
    .video-preview-section,
    .screenshots-section {
        padding: 25px;
    }

    .screenshots-controls {
        flex-direction: column;
        gap: 10px;
    }

    .generate-btn {
        width: 100%;
    }

    .screenshots-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .screenshot-modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .screenshot-modal-close {
        top: -35px;
        font-size: 25px;
    }
}