/* === Tablet single-column: proportional thumbnail, object-fit prevents distortion === */
@media (max-width: 1200px) {
    .video-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .video-item-wrap {
        width: 100%;
    }
    .video-item-left {
        width: 38%;
        min-width: 260px;
        max-width: 420px;
    }
    .video-item-left img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
}

/* === Small tablet: slightly wider thumbnail === */
@media (max-width: 900px) {
    .video-item-left {
        width: 44%;
        min-width: 220px;
        max-width: 360px;
    }
}

/* === Mobile: stacked, 16:9 container, auto height === */
@media (max-width: 768px) {
    .video-category-item {
        padding: 5px 10px;
        font-size: 15rem;
    }
    .video-header {
        flex-direction: column-reverse;
        margin: 10px 0;
        gap: 12px;
    }
    .video-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .video-item-wrap {
        width: 100%;
        flex-direction: column;
        height: auto;
    }
    .video-item-left {
        width: 100%;
        min-width: unset;
        max-width: unset;
        min-height: unset;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .video-item-left iframe,
    .video-item-left video {
        width: 100%;
        height: 100%;
        display: block;
    }
    .video-item-left img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .video-item-right {
        min-height: 110px;
    }
    .video-category a {
        min-width: 80px;
    }
    .search-ipt-wrap {
        width: 100%;
    }
}

/* === Small phone: tighter spacing, smaller type === */
@media (max-width: 480px) {
    .video-category {
        column-gap: 8px !important;
        row-gap: 8px !important;
    }
    .video-category-item {
        padding: 4px 8px;
        font-size: 14rem;
        min-width: 0 !important;
    }
    .video-item-title {
        font-size: 17rem;
    }
    .video-content {
        font-size: 15rem;
        margin-top: 10px;
    }
    .video-item-right {
        padding: 14px;
    }
    .video-header {
        gap: 10px;
    }
}
