/* Game Detail Inline CSS - Extracted for caching */
/* Version: 1.1 - Added Glass Card Effect */

/* ===== GLASS CARD - Download Sidebar ===== */
.download-sidebar {
    background: var(--glass-bg, rgba(30, 30, 30, 0.7));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: var(--glass-border, 1px solid rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    box-shadow: var(--glass-shadow, 0 8px 32px 0 rgba(0, 0, 0, 0.37));
    padding: 25px;
    transition: all 0.3s ease;
}

.download-sidebar:hover {
    box-shadow: var(--glass-shadow, 0 8px 32px 0 rgba(0, 0, 0, 0.37)),
                var(--neon-glow, 0 0 10px rgba(155, 44, 136, 0.6));
    border-color: rgba(155, 44, 136, 0.3);
}

.download-sidebar .sidebar-title {
    color: var(--text-heading, #fff);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
}

.download-sidebar .sidebar-title i {
    color: var(--accent-primary, #9b2c88);
    font-size: 1.2rem;
}

.download-sidebar .download-info {
    margin-bottom: 20px;
}

.download-sidebar .info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.download-sidebar .info-item:last-child {
    border-bottom: none;
}

.download-sidebar .info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-sidebar .info-value {
    color: var(--text-heading, #fff);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Support Section - Glass Effect */
.support-section {
    background: var(--glass-bg, rgba(30, 30, 30, 0.7));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: var(--glass-border, 1px solid rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    box-shadow: var(--glass-shadow, 0 8px 32px 0 rgba(0, 0, 0, 0.37));
    padding: 20px;
    transition: all 0.3s ease;
}

.support-section:hover {
    border-color: rgba(155, 44, 136, 0.2);
}

/* Download Sections - PC & Android */
.download-section {
    margin-bottom: 20px;
}

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

.download-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(155, 44, 136, 0.3);
}

.download-section-header i {
    color: #9b2c88;
    font-size: 1.1rem;
}

/* Download Links List */
.download-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-link-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #2d2d2d;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid #444;
}

.download-link-btn:hover {
    background: linear-gradient(135deg, #9b2c88, #c73e77);
    border-color: #9b2c88;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(155, 44, 136, 0.3);
}

.download-link-btn i {
    font-size: 1.2rem;
    color: #9b2c88;
    min-width: 24px;
}

.download-link-btn:hover i {
    color: white;
}

.download-link-btn span {
    flex: 1;
}

.no-download-alert {
    background: #2d2d2d;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.no-download-alert i {
    margin-right: 8px;
}

/* ===== Skeleton Loading Animation ===== */
.skeleton {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-title {
    height: 2em;
    width: 70%;
    margin-bottom: 1em;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 16/9;
}

/* Screenshot skeleton - full size placeholder */
.screenshot-skeleton {
    min-height: 400px;
    background: #0a0a0a;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.screenshot-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.05) 50%, transparent 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@media (max-width: 768px) {
    .screenshot-skeleton {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .screenshot-skeleton {
        min-height: 180px;
    }
}

.skeleton-tag {
    display: inline-block;
    width: 80px;
    height: 28px;
    border-radius: 20px;
}

.skeleton-btn {
    height: 50px;
    width: 100%;
    border-radius: 8px;
}

.skeleton-btn-second {
    margin-top: 10px;
}

.download-skeleton {
    padding: 5px 0;
}

.description-skeleton {
    padding: 10px 0;
}

/* Developer Tag with Pink Background */
.tag-developer {
    background: linear-gradient(135deg, #ff69b4, #ff1493) !important;
    border-color: #ff1493 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.tag-developer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

.tag-developer i {
    margin-right: 6px;
}

/* Copy Button Styles */
.copy-btn {
    background: transparent;
    border: none;
    color: #9b2c88;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: rgba(155, 44, 136, 0.2);
    color: #c94fb8;
}

.copy-btn.copied {
    color: #28a745;
}

.copy-btn.copied i::before {
    content: "\f00c"; /* fa-check */
}

/* Video Section Styles */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(4px);
    transform: scale(1.05);
    z-index: 5;
}

.video-overlay:hover {
    filter: blur(2px);
}

.video-play-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
}

.video-play-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

.video-play-btn i {
    font-size: 5rem;
    color: #9b2c88;
    text-shadow: 0 0 20px rgba(155, 44, 136, 0.5);
    transition: transform 0.3s ease;
}

.video-play-btn:hover i {
    transform: scale(1.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Screenshot Slider Styles */
.screenshot-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.screenshot-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    border-radius: 10px;
    overflow: hidden;
}

.screenshot-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.screenshot-image.active {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    opacity: 1;
    z-index: 1;
}

.screenshot-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    box-shadow: 0 0 10px rgba(155, 44, 136, 0.5);
    width: 30px;
    border-radius: 6px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid rgba(155, 44, 136, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border-color: var(--accent-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(155, 44, 136, 0.6);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

@media (max-width: 768px) {
    .screenshot-image {
        max-height: 60vh;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .screenshot-image {
        max-height: 50vh;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .indicator.active {
        width: 20px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }
}

/* ===== Related Games Section - Inline (inside main column) ===== */
.related-games-inline {
    padding: 30px;
    background: var(--bg-card, #1a1a1a);
    border-radius: 10px;
    border: 1px solid rgba(155, 44, 136, 0.2);
}

.related-games-inline .section-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-games-inline .section-subtitle i {
    color: #9b2c88;
}

.related-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1rem;
}

/* Related Games Carousel Container */
.related-games-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.related-games-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-bottom: 10px;
}

.related-games-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.related-games-grid.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.related-games-grid .related-game-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: calc(33.333% - 14px);
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: rgba(155, 44, 136, 0.5);
    border-color: #9b2c88;
    transform: scale(1.1);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow i {
    font-size: 1rem;
}

.related-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #888;
}

/* Poster Style Card - High specificity with ID */
#relatedGamesGrid .related-game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(155, 44, 136, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    aspect-ratio: 3 / 4; /* Poster ratio */
}

#relatedGamesGrid .related-game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(155, 44, 136, 0.5);
    box-shadow: 0 10px 25px rgba(155, 44, 136, 0.25);
}

#relatedGamesGrid .related-game-card .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#relatedGamesGrid .related-game-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Platform icons - top right corner */
#relatedGamesGrid .related-game-card .platform-icons {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: row;
    gap: 6px;
    z-index: 2;
}

#relatedGamesGrid .related-game-card .platform-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#relatedGamesGrid .related-game-card .icon-pc {
    background: rgba(52, 152, 219, 0.9);
    color: #fff;
}

#relatedGamesGrid .related-game-card .icon-android {
    background: rgba(61, 220, 132, 0.9);
    color: #fff;
}

/* Title overlay at bottom - always visible */
#relatedGamesGrid .related-game-card .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    z-index: 2;
}

#relatedGamesGrid .related-game-card .card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hide unused elements */
#relatedGamesGrid .related-game-card .card-overlay,
#relatedGamesGrid .related-game-card .card-meta,
#relatedGamesGrid .related-game-card .card-tag,
#relatedGamesGrid .related-game-card .card-developer {
    display: none;
}

/* Related Games - Responsive */
@media (max-width: 1200px) {
    #relatedGamesGrid.related-games-grid .related-game-card {
        flex: 0 0 calc(33.333% - 14px);
        min-width: calc(33.333% - 14px);
    }
}

@media (max-width: 992px) {
    #relatedGamesGrid.related-games-grid .related-game-card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
}

/* Related Games - Mobile */
@media (max-width: 768px) {
    .related-games-inline {
        padding: 20px 15px;
        overflow: hidden;
    }

    #relatedGamesGrid.related-games-grid {
        gap: 12px;
    }

    #relatedGamesGrid.related-games-grid .related-game-card {
        flex: 0 0 120px;
        min-width: 120px;
    }

    #relatedGamesGrid .related-game-card .card-info {
        padding: 25px 8px 8px;
    }

    #relatedGamesGrid .related-game-card .card-title {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }

    #relatedGamesGrid .related-game-card .platform-icon {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    #relatedGamesGrid.related-games-grid .related-game-card {
        flex: 0 0 100px;
        min-width: 100px;
    }

    #relatedGamesGrid .related-game-card .card-title {
        font-size: 0.7rem;
    }

    #relatedGamesGrid .related-game-card .platform-icon {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }
}

/* Tags Bottom Section */
.game-tags-bottom {
    padding: 30px;
    background: var(--bg-card, #1a1a1a);
    border-radius: 10px;
    border: 1px solid rgba(155, 44, 136, 0.2);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tags-container .tag {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #2d2d2d !important;
    color: #e0e0e0 !important;
}

/* Override any tag-specific colors */
.tags-container .tag[class*="tag-"] {
    background: #2d2d2d !important;
    color: #e0e0e0 !important;
}

.tags-container .tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 44, 136, 0.4);
}

/* Comments Section Styling */
/* ===== Discord-style Comments Section ===== */
.comments-section {
    padding: 30px;
    background: #1e1e2e;
    border-radius: 12px;
    border: 1px solid rgba(155, 44, 136, 0.15);
}

.comments-section .section-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 20px;
}

.comments-section .section-subtitle::before {
    content: '';
}

.comments-count {
    background: rgba(155, 44, 136, 0.3);
    color: #c74b8a;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Comments Display - Discord Style */
.comments-display {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 30px;
}

.comments-display::-webkit-scrollbar {
    width: 6px;
}

.comments-display::-webkit-scrollbar-track {
    background: #1a1a2e;
    border-radius: 3px;
}

.comments-display::-webkit-scrollbar-thumb {
    background: #9b2c88;
    border-radius: 3px;
}

/* Date Separator - Discord Style */
.comment-date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    margin: 8px 0;
}

.comment-date-separator::before,
.comment-date-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.comment-date-separator span {
    padding: 0 12px;
    font-size: 0.7rem;
    color: #72767d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Comment Item - Chat Bubble Style */
.comment-item {
    display: flex;
    gap: 16px;
    padding: 4px 16px;
    margin: 0;
    border-radius: 0;
    transition: background 0.1s ease;
}

.comment-item:hover {
    background: rgba(4, 4, 5, 0.07);
}

.comment-item.has-header {
    margin-top: 17px;
    padding-top: 4px;
}

/* Avatar - Discord color palette */
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #5865f2; /* Discord blurple default */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
    text-transform: uppercase;
    margin-top: 2px;
    cursor: pointer;
}

/* Discord avatar colors based on user */
.comment-avatar.avatar-red { background: #ed4245; }
.comment-avatar.avatar-orange { background: #faa61a; }
.comment-avatar.avatar-yellow { background: #fee75c; color: #000; }
.comment-avatar.avatar-green { background: #57f287; color: #000; }
.comment-avatar.avatar-teal { background: #1abc9c; }
.comment-avatar.avatar-blue { background: #3498db; }
.comment-avatar.avatar-purple { background: #9b59b6; }
.comment-avatar.avatar-pink { background: #eb459e; }
.comment-avatar.avatar-blurple { background: #5865f2; }

/* Comment Content */
.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
    line-height: 1.375rem;
}

.comment-author {
    font-weight: 500;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.comment-author:hover {
    text-decoration: underline;
}

.comment-date {
    font-size: 0.75rem;
    color: #72767d;
    font-weight: 400;
}

.comment-text {
    color: #dcddde;
    line-height: 1.375rem;
    font-size: 1rem;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #72767d;
}

.no-comments i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #4f545c;
}

.no-comments p {
    margin: 0;
    font-size: 0.95rem;
}

/* Comment Form - Discord Chat Input Style */
.comment-form-wrapper {
    background: #2a2a3e;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(155, 44, 136, 0.2);
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-form-header i {
    color: #9b2c88;
    font-size: 1.1rem;
}

.comment-form-header span {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.comment-form .form-control {
    background: #1e1e2e;
    border: none;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.comment-form .form-control:focus {
    background: #1a1a2e;
    box-shadow: 0 0 0 2px rgba(155, 44, 136, 0.3);
    color: #fff;
    outline: none;
}

.comment-form .form-control::placeholder {
    color: #666;
}

.comment-form textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.comment-form-group {
    position: relative;
}

.comment-form-group label {
    position: absolute;
    left: 12px;
    top: -8px;
    background: #2a2a3e;
    padding: 0 6px;
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
}

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.comment-form .save-info-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
}

.comment-form .save-info-check input {
    accent-color: #9b2c88;
}

.comment-form .btn-send {
    background: linear-gradient(135deg, #9b2c88, #c74b8a);
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(155, 44, 136, 0.4);
}

.comment-form .btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.required {
    color: #ff6b6b;
}

.comment-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-check-input {
    background-color: var(--bg-secondary, #2a2a2a);
    border: 2px solid var(--border-color, #333);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--accent-primary, #9b2c88);
    border-color: var(--accent-primary, #9b2c88);
}

.form-check-input:focus {
    border-color: var(--accent-primary, #9b2c88);
    box-shadow: 0 0 0 0.2rem rgba(155, 44, 136, 0.25);
}

.form-check-label {
    color: var(--text-secondary, #999);
    cursor: pointer;
    user-select: none;
}

.comment-form .btn-primary {
    background: linear-gradient(135deg, var(--accent-primary, #9b2c88), var(--accent-hover, #7a1f6b));
    border: none;
    padding: 12px 35px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.comment-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(155, 44, 136, 0.4);
}

.comment-form .btn-primary i {
    margin-right: 8px;
}

/* Mobile Download Section */
.mobile-download {
    background: var(--bg-card, #1a1a1a);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(155, 44, 136, 0.2);
}

/* Sticky Sidebar - Download section stays visible while scrolling */
.col-lg-4 {
    position: relative;
}

.sidebar-sticky-wrapper {
    position: sticky;
    top: 100px;
}

@media (max-width: 991px) {
    .sidebar-sticky-wrapper {
        position: static;
    }
}

/* Fix hero tags to be horizontal on mobile */
.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .game-meta {
        flex-direction: row !important;
        justify-content: center;
    }
    .comments-section {
        padding: 20px 15px;
    }

    .game-tags-bottom {
        padding: 20px 15px;
    }

    .comments-display {
        max-height: 400px;
    }

    .comment-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .comment-form-row {
        grid-template-columns: 1fr;
    }

    .comment-form-actions {
        flex-direction: column;
        gap: 15px;
    }

    .comment-form .btn-send {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile spacing adjustments */
@media (max-width: 768px) {
    /* Reduce spacing for hero section on mobile */
    .game-hero {
        min-height: 250px !important;
        padding-top: 80px !important;
    }

    .game-details.section-padding {
        padding-top: 5px !important;
    }
}

/* Desktop PC ONLY - Min 992px */
@media screen and (min-width: 992px) {
    /* Hero Section - Room for centered title */
    section.game-hero,
    .game-hero {
        min-height: 145px !important;
        max-height: 175px !important;
        padding-top: 62px !important;
        padding-bottom: 8px !important;
        margin-bottom: 0 !important;
        overflow: visible !important;
    }

    /* Hero Content - No extra padding + CENTER alignment */
    .game-hero .hero-content,
    .hero-content {
        padding: 0 !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    /* Game Title - LARGE + CENTER */
    .game-hero .game-main-title,
    .game-main-title {
        font-size: 2.3rem !important;
        margin: 0 0 10px 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        text-align: center !important;
    }

    /* Tags - Very compact + CENTER */
    .game-hero .game-meta,
    .game-meta {
        font-size: 0.7rem !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* Game Details Section - Close to hero */
    section.game-details,
    .game-details {
        padding-top: 5px !important;
        margin-top: 0 !important;
    }

    /* Align Download Game icon with Screenshots text - EXACT BASELINE */
    .download-sidebar {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .download-sidebar .sidebar-title {
        margin-top: 0 !important;
        padding-top: 0 !important;
        line-height: 1 !important;
    }

    .download-sidebar .sidebar-title i {
        font-size: 1rem !important;
        vertical-align: baseline !important;
        margin-right: 8px !important;
    }

    .media-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .media-section .section-subtitle:first-of-type {
        margin-top: 0 !important;
        padding-top: 0 !important;
        line-height: 1 !important;
    }
}

/* Tablet: Spacing adjustment */
@media (max-width: 991px) and (min-width: 769px) {
    body .game-hero {
        min-height: 250px !important;
        padding-top: 80px !important;
        padding-bottom: 20px !important;
    }

    body .game-details.section-padding {
        padding-top: 10px !important;
    }

    body .hero-content {
        padding-top: 15px !important;
        padding-bottom: 10px !important;
    }
}

/* Prevent auto-scroll when clicking links or focusing inputs */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Prevent search modal from causing scroll */
.search-modal {
    pointer-events: none;
}

.search-modal.active {
    pointer-events: auto;
}

.search-modal-input:focus {
    scroll-margin-top: 100px;
}

/* No download alert styling */
.no-download-alert {
    background: linear-gradient(135deg, #4a1a1a 0%, #2d1515 100%);
    border: 1px solid #ff4757;
    border-radius: 8px;
    padding: 15px 20px;
    text-align: center;
    color: #ff6b7a;
    font-weight: 600;
    font-size: 1rem;
}

.no-download-alert i {
    margin-right: 8px;
}

.no-download-placeholder {
    text-align: center;
    padding: 20px;
    color: #888;
}

/* Error Report Modal */
.error-report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.error-report-content {
    background: #1a1a2e;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(155, 44, 136, 0.3);
}

.error-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.error-report-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

.error-report-header h3 i {
    color: #9b2c88;
    margin-right: 10px;
}

.error-report-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.error-report-close:hover {
    color: #fff;
}

.error-report-body {
    padding: 20px;
}

.error-game-name {
    background: rgba(155, 44, 136, 0.2);
    padding: 10px 15px;
    border-radius: 8px;
    color: #c74b8a;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.error-form-group {
    margin-bottom: 15px;
}

.error-form-group label {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.error-form-group input,
.error-form-group textarea {
    width: 100%;
    background: #2a2a3e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 0.95rem;
}

.error-form-group input:focus,
.error-form-group textarea:focus {
    outline: none;
    border-color: #9b2c88;
}

.error-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.error-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.error-type-btn {
    background: #2a2a3e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 10px;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.error-type-btn:hover {
    border-color: #9b2c88;
    color: #fff;
}

.error-type-btn.selected {
    background: rgba(155, 44, 136, 0.3);
    border-color: #9b2c88;
    color: #fff;
}

.error-type-btn i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.error-type-btn span {
    font-size: 0.8rem;
}

.error-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #9b2c88, #c74b8a);
    border: none;
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(155, 44, 136, 0.4);
}

.error-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.error-submit-btn i {
    margin-right: 8px;
}
