body {
    background-color: #1B2838;
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow: auto;
    font-family: Arial, sans-serif;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
}

.image-wrapper {
    background-color: #233B53;
    width: 100%;
    max-width: 950px;
    min-height: 555px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    flex-wrap: wrap;
    height: auto;
    box-sizing: border-box;
}

.image-container {
    position: relative;
    width: 635px;
    height: 360px;
    padding: 15px 15px 0 15px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.details-container {
    width: 635px;
    height: auto;
    background-color: #19222C;
    border: 3px solid #35465E;
    box-sizing: border-box;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 15px;
    margin-left: 15px;
    position: relative;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.description {
    font-size: 15px;
    color: #A1B0C7;
    margin-top: 10px;
    line-height: 1.5;
    word-wrap: break-word;
    text-align: center; 
}

.description img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
    border-radius: 5px;
}

.download-btn {
    width: 138px;
    height: 35px;
    background: linear-gradient(to bottom, #A4D007, #536904);
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 19px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
}

.download-btn:hover {
    background: linear-gradient(to bottom, #8DC50E, #475F2D);
}

.game-mode,
.tags,
.file-size,
.added-time {
    font-size: 13px;
    color: #A1B0C7;
    font-weight: normal;
    padding-left: 5px;
    margin-top: 10px;
}

.game-mode { position: absolute; top: 15px; left: 660px; }
.tags { position: absolute; top: 100px; left: 660px; }
.file-size { position: absolute; top: 150px; left: 660px; }
.added-time { position: absolute; top: 170px; left: 660px; }

.dynamic-data {
    font-size: 14px;
    font-weight: normal;
    color: white;
    margin-left: 5px;
}

.file-size .dynamic-data,
.added-time .dynamic-data {
    color: #A1B0C7;
}

.youtube-container {
    margin-top: 15px;
    width: 265px;
    height: 150px;
    position: absolute;
    top: 210px;
    left: 660px;
}

/* Мобильная адаптация */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
        align-items: center;
    }

    .main-container {
        padding: 10px 0;
    }

    .image-wrapper {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        flex-direction: column;
        padding: 10px;
    }

    .image-container {
        width: 100%;
        height: auto;
        padding: 0;
    }

    .image-container img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }

    .details-container {
        width: 100%;
        margin: 10px 0 0 0;
        padding: 15px;
        position: static;
    }

    .card-title {
        font-size: 18px;
    }

    .description {
        font-size: 14px;
    }

    .description img {
        max-width: 100%;
        height: auto;
    }

    .download-btn {
        position: static;
        width: 100%;
        height: 45px;
        font-size: 16px;
        margin-top: 15px;
    }

    .game-mode,
    .tags,
    .file-size,
    .added-time {
        position: static;
        margin-top: 10px;
        padding-left: 0;
    }

    .dynamic-data {
        display: block;
        margin-left: 0;
        font-size: 13px;
    }

    .youtube-container {
        position: static;
        width: 100%;
        height: auto;
        margin-top: 15px;
    }

    .youtube-container iframe {
        width: 100%;
        height: 200px; 
    }
}

@media screen and (max-width: 480px) {
    .card-title {
        font-size: 16px;
    }

    .description {
        font-size: 13px;
    }

    .description img {
        max-width: 100%;
        height: auto;
    }

    .download-btn {
        height: 40px;
        font-size: 14px;
    }

    .game-mode,
    .tags,
    .file-size,
    .added-time {
        font-size: 12px;
    }

    .dynamic-data {
        font-size: 12px;
    }

    .youtube-container iframe {
        height: 180px;
    }
}