.source-video-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    width: auto;
    margin-inline: 15px;
}

.content .source-video-grid > .thumb-videos {
    min-width: 0;
    width: 100%;
    padding: var(--card-padding, 0);
    margin: 0;
    box-sizing: border-box;
}

.source-video-grid .thumb .block2 {
    display: block;
}

.source-video-grid .thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.source-video-grid > .thumb-videos p {
    overflow-wrap: anywhere;
}

@media (min-width: 480px) {
    .source-video-grid {
        --card-padding: 3px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-inline: 0;
    }
}

@media (min-width: 768px) {
    .source-video-grid {
        --card-padding: 5px;
    }
}

@media (min-width: 1024px) {
    .source-video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .source-video-grid {
        --card-padding: 10px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.yarpp-related > .content > .intro > h2 {
    margin: 0;
    font-size: 20px;
    line-height: 24px;
}

.content .videoinfo .video-details .watch-tags {
    display: block;
    padding-right: 5px;
}

.videoinfo .watch-tags a {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    padding-block: 0;
    text-indent: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.videoinfo .watch-episodes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.videoinfo .watch-episodes a {
    max-width: 100%;
    border-radius: 3px;
    padding: 2px 8px;
    background: #ececec;
    overflow-wrap: anywhere;
}

.videoinfo .watch-episodes [aria-current="true"] {
    color: white;
    background: #287baa;
}
