.game-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.game-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    opacity: 0.3;
    pointer-events: none;
}

.game-hero-content {
    position: relative;
    padding: 3rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.game-hero-thumb {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.game-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-hero-info {
    flex: 1;
}

.game-hero-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1rem;
}

.game-rating .stars {
    display: flex;
    gap: 3px;
}

.game-rating .stars i {
    color: #ffc107;
    font-size: 1.1rem;
}

.game-energy-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 50px;
    margin-bottom: 1rem;
    width: fit-content;
}

.game-energy-info i {
    color: #ffc107;
    font-size: 1rem;
}

.game-energy-info span {
    color: #ffc107;
    font-weight: 700;
    font-size: 1rem;
}

.game-energy-info small {
    color: #aaa;
    font-size: 0.85rem;
}

.game-timer {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(40, 40, 40, 0.6);
    border: none;
    border-radius: 8px;
    z-index: 100;
}

.game-timer i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.game-timer span {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 1rem;
    font-family: monospace;
}

.game-timer.warning {
    background: rgba(60, 50, 30, 0.6);
}

.game-timer.warning i,
.game-timer.warning span {
    color: rgba(255, 180, 100, 0.9);
}

.game-timer.danger {
    background: rgba(60, 30, 30, 0.6);
    animation: pulse 1s infinite;
}

.game-timer.danger i,
.game-timer.danger span {
    color: rgba(255, 120, 120, 0.9);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.game-hero-info .play-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.game-hero-info .play-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.game-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b6b;
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #ff6b6b;
}

.breadcrumb span {
    color: #666;
}

.game-section {
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.game-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-section h2 i {
    color: #ff6b6b;
}

.game-section p {
    color: #aaa;
    line-height: 1.8;
}

.tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #ccc;
}

.game-frame-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
}

.game-frame-wrapper.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 9999;
    aspect-ratio: auto;
    border-radius: 0;
    overflow: hidden;
    touch-action: none;
}

body.fullscreen-active {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

.game-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.fullscreen-close-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.8);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 10001;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto !important;
}

.fullscreen-close-btn:hover,
.fullscreen-close-btn:active {
    background: #ff6b6b;
    border-color: #ff6b6b;
    transform: scale(1.1);
}

.fullscreen-top-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: #1a1a1a;
    z-index: 10001;
    align-items: center;
    padding: 0 12px;
}

.exit-fullscreen-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 4px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.game-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.5);
    border-radius: 0 0 24px 24px;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.controls-right {
    display: flex;
    gap: 0.5rem;
}

.game-title {
    font-weight: 600;
    color: #fff;
    margin-right: 0.5rem;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.action-btn.active {
    background: #ff6b6b;
    color: #fff;
}

.action-btn-fav:hover,
.action-btn-fav.active {
    background: #ff6b6b;
    color: #fff;
}

.control-btn {
    width: 40px;
    height: 40px;
    background: #ff6b6b;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.control-btn:hover:not(:disabled) {
    background: #ff8e53;
    transform: scale(1.05);
}

.control-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

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

.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.sidebar-games {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-game {
    display: flex;
    gap: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-game:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(5px);
}

.sidebar-game img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.sidebar-game-info {
    padding: 0.8rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-game-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.sidebar-game-info span {
    font-size: 0.8rem;
    color: #888;
}

@media (max-width: 992px) {
    .game-page-layout {
        grid-template-columns: 1fr !important;
    }
    
    .sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .sidebar-games {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .fullscreen-close-btn {
        display: none !important;
    }
    
    .game-frame-wrapper.fullscreen-mode .fullscreen-top-bar {
        display: flex;
    }
    
    .game-frame-wrapper.fullscreen-mode .game-frame {
        height: calc(100dvh - 44px);
        margin-top: 44px;
    }
    
    .game-hero-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .game-hero-thumb {
        width: 120px;
        height: 120px;
    }
    
    .game-hero-info h1 {
        font-size: 1.5rem;
    }
    
    .game-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .game-rating {
        justify-content: center;
    }
    
    .game-energy-info {
        margin-left: auto;
        margin-right: auto;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .game-section {
        padding: 1.5rem;
    }
    
    .game-frame-wrapper {
        aspect-ratio: 4/3;
    }
    
    .game-controls-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .game-title {
        display: none;
    }
    
    .controls-left,
    .controls-right {
        gap: 0.3rem;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .game-hero-content {
        padding: 1rem;
    }
    
    .game-hero-thumb {
        width: 100px;
        height: 100px;
    }
    
    .game-hero-info h1 {
        font-size: 1.3rem;
    }
    
    .play-now-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .game-stats {
        gap: 0.8rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .tags {
        gap: 0.5rem;
    }
    
    .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}
