.com-videos {
    --cv-text: #0f172a;
    --cv-muted: #667085;
    --cv-surface: #f2f4f7;
    --cv-border: rgba(15, 23, 42, .14);
    --cv-player: #000;
    width: 100%;
    min-width: 0;
    color: var(--cv-text);
    box-sizing: border-box;
}

.com-videos *,
.com-videos *::before,
.com-videos *::after {
    box-sizing: border-box;
}

/* Fill the complete content width supplied by the active website template. */
div.com-videos.cv-page {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-inline-size: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: clip;
    contain: inline-size;
}

.cv-watch {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-inline-size: 0;
    overflow: hidden;
}

/*
 * Local and YouTube players use the exact same 16:9 frame. A 16:9 frame
 * cannot remain taller than 720px without also limiting its width to 1280px.
 */
.com-videos .cv-player {
    position: relative !important;
    display: block !important;
    inline-size: min(100%, 1280px) !important;
    width: min(100%, 1280px) !important;
    max-inline-size: 1280px !important;
    max-width: 1280px !important;
    block-size: auto !important;
    height: auto !important;
    max-block-size: 720px !important;
    max-height: 720px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
    contain: layout paint style;
    overflow: hidden !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px;
    background: var(--cv-player);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
    line-height: 0;
}

.com-videos .cv-player > iframe,
.com-videos .cv-player > video,
.com-videos .cv-player > .cv-player-error {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    inline-size: 100% !important;
    width: 100% !important;
    max-inline-size: 100% !important;
    max-width: 100% !important;
    block-size: 100% !important;
    height: 100% !important;
    max-block-size: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    transform: none !important;
}

.com-videos .cv-player > iframe,
.com-videos .cv-player > video {
    background: #000;
    object-fit: contain !important;
    object-position: center center !important;
}

.com-videos .cv-player > video.cv-local-video {
    flex: none !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
    max-block-size: 720px !important;
    max-height: 720px !important;
    object-fit: contain !important;
}

.com-videos .cv-player-error {
    display: grid !important;
    place-items: center;
    padding: 1.25rem !important;
    color: #fff;
    text-align: center;
    line-height: 1.5;
}

.cv-video-header {
    padding-top: 14px;
}

.cv-video-header h1 {
    margin: 0 0 12px;
    color: inherit;
    font-size: clamp(1.25rem, 2.35vw, 1.85rem);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -.02em;
}

.cv-video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cv-channel {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.cv-channel-avatar {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: .9rem;
    line-height: 1;
}

.cv-channel div {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.cv-channel strong,
.cv-channel-link {
    overflow: hidden;
    color: inherit;
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cv-channel-link:hover,
.cv-channel-link:focus-visible {
    text-decoration: underline;
}

.cv-channel span:last-child {
    color: var(--cv-muted);
    font-size: .82rem;
    line-height: 1.35;
}

.cv-meta-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.cv-meta-chips span {
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--cv-surface);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.cv-description {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--cv-surface);
    color: var(--cv-text);
    font-size: .94rem;
    line-height: 1.6;
}

.cv-description > :first-child {
    margin-top: 0;
}

.cv-description > :last-child {
    margin-bottom: 0;
}


.cv-related {
    width: 100%;
    margin-top: 30px;
    content-visibility: auto;
    contain-intrinsic-size: 520px;
}

.cv-related h2 {
    margin: 0 0 16px;
    font-size: 1.3rem;
    font-weight: 700;
}

.com-videos.cv-page .cv-grid,
.com-videos.cv-page [data-cv-grid] {
    display: grid !important;
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 22px 14px !important;
}

.cv-card {
    min-width: 0;
    content-visibility: auto;
    contain-intrinsic-size: 250px;
}

.cv-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.cv-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 7px;
    background: #e5e7eb;
}

.cv-card-media img,
.cv-card-preview {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border: 0;
    object-fit: cover;
    object-position: center;
    transition: transform .2s ease, opacity .18s ease;
}

.cv-card-preview {
    pointer-events: none;
    background: #111827;
}

.cv-card-media:not(.cv-preview-ready) .cv-card-preview {
    opacity: .72;
}

.cv-card-link:hover .cv-card-media img,
.cv-card-link:focus-visible .cv-card-media img,
.cv-card-link:hover .cv-card-preview,
.cv-card-link:focus-visible .cv-card-preview {
    transform: scale(1.025);
}

.cv-card-probe,
.cv-youtube-probe,
.cv-youtube-probe iframe {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip-path: inset(50%) !important;
}

.cv-card-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: #242424;
    color: #fff;
    font-size: 2rem;
}

.cv-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    opacity: 0;
    transition: opacity .16s ease;
}

.cv-card-link:hover .cv-card-play,
.cv-card-link:focus-visible .cv-card-play {
    opacity: 1;
}

.cv-duration {
    position: absolute;
    right: 7px;
    bottom: 7px;
    padding: 3px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .78);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1;
}

.cv-card-body {
    padding-top: 9px;
}

.cv-card-body h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: inherit;
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cv-card-body p {
    overflow: hidden;
    margin: 6px 0 1px;
    color: var(--cv-muted);
    font-size: .82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cv-card-source {
    color: var(--cv-muted);
    font-size: .76rem;
}

.cv-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 14px 0 0;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.cv-back:hover {
    text-decoration: underline;
}

.cv-pagination {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 30px;
}

.cv-page-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cv-page-list a,
.cv-page-list span[aria-current="page"] {
    display: grid;
    min-width: 36px;
    height: 36px;
    padding: 0 9px;
    place-items: center;
    border: 1px solid var(--cv-border);
    border-radius: 7px;
    color: inherit;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.cv-page-list a:hover,
.cv-page-list a:focus-visible,
.cv-page-list span[aria-current="page"] {
    border-color: currentColor;
    background: var(--cv-surface);
}

.cv-page-gap {
    padding: 0 3px;
    color: var(--cv-muted);
}


.com-videos.cv-page .cv-pagination .pagination,
.com-videos.cv-page .cv-pagination ul.pagination {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.com-videos.cv-page .cv-pagination .page-link,
.com-videos.cv-page .cv-pagination .page-item > span {
    display: grid !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 9px !important;
    place-items: center !important;
}

@supports not (aspect-ratio: 1 / 1) {
    .com-videos .cv-player {
        height: 0 !important;
        padding-top: 56.25% !important;
    }
}

@media (max-width: 1180px) {
    .com-videos.cv-page .cv-grid,
    .com-videos.cv-page [data-cv-grid] {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 920px) {
    .com-videos.cv-page .cv-grid,
    .com-videos.cv-page [data-cv-grid] {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .com-videos.cv-page .cv-grid,
    .com-videos.cv-page [data-cv-grid] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .com-videos .cv-player {
        border-radius: 4px;
    }

    .cv-video-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .cv-meta-chips {
        justify-content: flex-start;
    }

    .cv-grid {
        gap: 18px 12px;
    }

    .cv-card-play {
        display: none;
    }
}

@media (max-width: 460px) {
    .com-videos.cv-page .cv-grid,
    .com-videos.cv-page [data-cv-grid] {
        grid-template-columns: 1fr !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cv-card-media img,
    .cv-card-play {
        transition: none;
    }
}
