main {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 15px;
}


.results-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 30px;
    padding: 0 15px;
}

.results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: calc(4 * 200px + 3 * 20px);
    margin: 0 auto;
}


.result-block {
    width: 200px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.result-block:hover {
    transform: translateY(-5px);
    opacity: 0.9;
}

.result-poster {
    color: #aaa;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 2 / 3;
    margin-bottom: 10px;
}

.result-title {
    color: #aaa;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 1.4;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: calc(1.4em * 2);
    width: 100%;
    font-family: 'Segoe UI';
}

.empty-results {
    color: #aaa;
}



/* Для мобильных устройств */
@media (max-width: 768px) {
    .results-grid {
        max-width: 100%;
        gap: 15px;
    }
    
    .result-block {
        width: calc(50% - 7.5px);
        flex-basis: calc(50% - 7.5px);
        flex-shrink: 1;
        min-width: 0;
        max-width: none;
    }
    
    .result-title {
        font-size: 13px;
    }
}

