
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}
.game-container {
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1600px) {
    .game-container {
        padding: 20px 30px;
    }
}
.game-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.game-nav a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.game-nav a:hover {
    color: #0056b3;
    text-decoration: underline;
}
.game-cover-with-cards {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    overflow-x: visible;
}
.game-video-container {
    flex: 1;
    min-width: 0; 
}

.side-game-cards {
    display: none; 
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0; 
}

.side-game-cards.left {
    flex-direction: column;
}

.side-game-cards.right {
    flex-direction: column;
}

.side-game-card {
    background:#F3EFEA;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 240px;
}

.side-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    border: 1px solid #007bff;
}

.side-game-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.side-game-card:hover .side-game-image {
    transform: scale(1.1);
}

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

.side-game-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #333;
    transition: color 0.3s ease;
}

.side-game-card:hover .side-game-title {
    color: #007bff;
}

.side-game-rating {
    font-size: 14px;
    color: #ffc107;
    font-weight: 500;
}

@media (min-width: 1600px) {
    .side-game-cards {
        display: flex;
    }
}

.game-video-container {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media (min-width: 1400px) {
    .game-video-container {
        border-radius: 16px;
    }
}

.game-cover-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1px);
}

.game-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    color: white;
    max-width: 300px;
    z-index: 999;
}

.game-icon-container {
    margin-bottom: 15px;
}

.game-icon {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.game-title {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.play-game-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #FFA500;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.play-game-btn:hover {
    background-color: #FF8C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.play-game-btn:active {
    transform: translateY(0);
}
.game-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 2;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.game-image-container:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-text {
    color: white;
    font-size: 20px;
    font-weight: 600;
    background-color: rgba(0, 123, 255, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

.game-video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,123,255,0.1) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .play-button svg {
        width: 40px;
        height: 40px;
    }
    
    .play-text {
        font-size: 16px;
        padding: 8px 16px;
    }
}

@media (max-width: 576px) {
    .play-button svg {
        width: 32px;
        height: 32px;
    }
    
    .play-text {
        font-size: 14px;
        padding: 6px 12px;
    }
    .game-title-overlay {
        top:25%
    }
    .play-game-btn{
        width: 100%;
        padding: 13px 18px
    }
}

.game-info {
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    background: #F3EFEA;
}

.game-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(0,123,255,0.05) 0%, rgba(0,123,255,0) 50%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    z-index: 0;
}

.game-info > * {
    position: relative;
    z-index: 1;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.game-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #333;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

.game-rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 10px;
    border: 2px solid #ffc107;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.rating-score {
    font-size: 32px;
    font-weight: 700;
    color: #e68a00;
    line-height: 1;
}

.rating-stars {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stars {
    color: #ffc107;
    font-size: 18px;
    letter-spacing: 1px;
}

.rating-count {
    font-size: 14px;
    color: #666;
    text-align: center;
}

@media (min-width: 1400px) {
    .game-info {
        padding: 40px;
    }
    
    .main-content {
        padding: 40px;
    }
    
    .related-games {
        padding: 30px;
    }
    
    .more-games {
        padding: 40px;
    }
    
    .game-header {
        gap: 30px;
    }
    
    .game-title {
        font-size: 38px;
    }
    
    .rating-score {
        font-size: 36px;
    }
    
    .game-tags {
        gap: 15px;
    }
    
    .game-tag {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .game-description {
        font-size: 17px;
        line-height: 1.8;
    }
}

@media (min-width: 1600px) {
    .game-container {
        padding: 20px 40px;
    }
    
    .side-game-card {
        width: 280px;
        padding: 20px;
        gap: 15px;
    }
    
    .side-game-img {
        width: 70px;
        height: 70px;
    }
    
    .side-game-title {
        font-size: 18px;
    }
    
    .game-rating-display {
        padding: 20px 30px;
        gap: 15px;
    }
    
    .rating-score {
        font-size: 42px;
    }
    
    .stars {
        font-size: 20px;
    }
    
    .game-info {
        padding: 50px;
    }
    
    .game-title {
        font-size: 44px;
    }
    
    .game-sections {
        gap: 50px;
    }
        .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 25px;
    }
    
    .game-card {
        min-width: 220px;
    }
    
    .game-card-img {
        height: 140px;
    }
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.game-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.game-meta-item::before {
    content: '';
    width: 4px;
    height: 4px;
    background-color: #007bff;
    border-radius: 50%;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.game-tag {
    padding: 6px 16px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

.game-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.4);
}

.game-description {
    line-height: 1.7;
    color: #555;
    font-size: 16px;
    margin-bottom: 0;
}
.game-sections {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1400px) {
    .game-sections {
        gap: 40px;
    }
}

@media (min-width: 1600px) {
    .game-sections {
        grid-template-columns: 4fr 1fr;
    }
}

.main-content {
    background-color: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 3px solid #007bff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    border-radius: 3px;
}

.controls-section {
    margin-bottom: 40px;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.control-item:hover {
    background-color: #e9ecef;
}

.control-item::before {
    content: '•';
    color: #007bff;
    font-size: 20px;
    font-weight: bold;
}

.screenshots-section {
    margin-bottom: 40px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 1200px) {
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .screenshots-grid {
        gap: 25px;
    }
}

.game-screenshot-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    aspect-ratio: 16/9;
    cursor: pointer;
    background-color: #f8f9fa;
}

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

.game-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-screenshot-container:hover .game-screenshot {
    transform: scale(1.05);
}

.game-screenshot-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.controls-section {
    margin-bottom: 40px;
    position: relative;
}

.controls-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.control-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #007bff, #0056b3);
}

.control-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (min-width: 1400px) {
    .controls-container {
        gap: 20px;
    }
    
    .control-item {
        padding: 22px;
    }
}

.related-games {
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.related-games .section-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.related-games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 1400px) {
    .related-games {
        padding: 30px;
    }
    
    .related-games-grid {
        gap: 20px;
    }
    
    .related-game-item {
        padding: 20px;
    }
    
    .related-game-img {
        width: 100px;
        height: 100px;
    }
    
    .related-game-title {
        font-size: 18px;
    }
}

.related-game-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    background: #F3EFEA;
}

.related-game-item:hover {
    transform: translateY(-2px);
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.related-game-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.related-game-item:hover .related-game-img img {
    transform: scale(1.1);
}

.related-game-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-game-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
    color: #333;
    transition: color 0.2s ease;
}

.related-game-item:hover .related-game-title {
    color: #007bff;
}

.related-game-rating {
    font-size: 14px;
    color: #ffc107;
    display: flex;
    align-items: center;
}
.more-games {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.more-games .section-title {
    margin-bottom: 25px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

@media (min-width: 1400px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 25px;
    }
}

@media (min-width: 1600px) {
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.game-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.game-card-img {
    aspect-ratio: 4/4;
    overflow: hidden;
}

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

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

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

.game-card-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.game-card-rating {
    color: #ffc107;
    font-size: 14px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,123,255,0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 1200px) {
    .game-sections {
        grid-template-columns: 1fr 280px;
    }
    
    .game-info {
        padding: 25px;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .related-games {
        padding: 20px;
    }
}

@media (max-width: 992px) {
    .game-container {
        padding: 15px;
    }
    
    .game-sections {
        grid-template-columns: 1fr;
    }
    
    .related-games {
        position: static;
    }
    
    .game-title {
        font-size: 28px;
    }
    
    .game-meta {
        gap: 15px;
    }
}
@media (max-width: 560px) { 
      .game-video-container {
        aspect-ratio: 4/3;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .game-nav {
        padding: 12px 15px;
        font-size: 13px;
    }
    
  
    
    .game-info {
        padding: 20px;
        border-radius: 8px;
    }
    
    .game-title {
        font-size: 24px;
    }
    
    .game-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .game-meta-item {
        font-size: 13px;
    }
    
    .game-description {
        font-size: 15px;
    }
    
    .main-content,
    .related-games,
    .more-games {
        padding: 20px;
        border-radius: 8px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .related-games .section-title {
        font-size: 18px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .game-container {
        padding: 10px;
    }
    
    .game-info {
        padding: 15px;
    }
    
    .game-title {
        font-size: 22px;
    }
    
    .game-tag {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .main-content,
    .related-games,
    .more-games {
        padding: 15px;
    }
    
    .section-title {
        font-size: 18px;
        padding-bottom: 10px;
    }
    
    .control-item {
        padding: 12px;
        font-size: 14px;
    }
    
    .related-game-item {
        padding: 12px;
    }
    
    .related-game-img {
        width: 70px;
        height: 70px;
    }
    
    .related-game-title {
        font-size: 15px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .game-nav,
    .game-info,
    .main-content,
    .related-games,
    .more-games {
        background-color: #2d2d2d;
        color: #e0e0e0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .game-title,
    .section-title,
    .related-game-title,
    .game-card-title {
        color: #ffffff;
    }
    
    .game-meta-item,
    .game-description {
        color: #b0b0b0;
    }
    
    .control-item {
        background-color: #3d3d3d;
    }
    
    .control-item:hover {
        background-color: #4d4d4d;
    }
    
    .related-game-item {
        background-color: #3d3d3d;
    }
    
    .related-game-item:hover {
        background-color: #4d4d4d;
    }
    
    .game-card {
        background-color: #3d3d3d;
    }
    
    .game-screenshot-placeholder {
        background: linear-gradient(135deg, #3d3d3d 0%, #2d2d2d 100%);
        color: #b0b0b0;
    }
    
    .game-nav a,
    .related-game-item:hover .related-game-title {
        color: #66b3ff;
    }
    
    .game-nav a:hover {
        color: #99ccff;
    }
}