.evf-feed,
.evf-archive,
.evf-single {
    width: min(1180px, calc(100% - 32px));
    min-width: 0;
    margin: 0 auto;
}

.evf-feed__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
    align-items: start;
}

.evf-video-card {
    background: #fff;
    border: 1px solid rgba(20, 24, 31, 0.12);
    border-radius: 8px;
    overflow: hidden;
    min-width: 0;
    color: #1d2327;
}

.evf-video-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #171a20;
    overflow: hidden;
}

.evf-video-card--vertical .evf-video-thumb {
    aspect-ratio: 9 / 16;
}

.evf-video-card--square .evf-video-thumb {
    aspect-ratio: 1 / 1;
}

.evf-video-thumb img,
.evf-video-thumb iframe {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: 0;
}

.evf-video-thumb__fallback {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(54, 64, 78, 0.95), rgba(19, 23, 29, 0.95)),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 10px, transparent 10px 20px);
}

.evf-play-button {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
}

.evf-play-button span {
    position: absolute;
    left: 23px;
    top: 18px;
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 16px solid #111827;
}

.evf-video-card__body {
    padding: 12px 13px 14px;
    color: #1d2327;
}

.evf-video-card__title {
    font-size: 16px;
    line-height: 1.35;
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}

.evf-video-card__title a {
    color: #1d2327;
    text-decoration: none;
}

.evf-video-card__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: #5f6875;
    font-size: 13px;
}

.evf-ad-card {
    min-height: 120px;
    border: 1px dashed rgba(20, 24, 31, 0.22);
    border-radius: 8px;
    background: #f6f7f9;
    display: grid;
    place-items: center;
    padding: 12px;
    overflow: hidden;
}

.evf-ad-card--empty {
    display: none;
}

.evf-ad-card > [id^="SRTB_"] {
    width: 100%;
    min-height: 120px;
}

.evf-load-more,
.evf-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #fff;
    color: #1d2327;
    text-decoration: none;
    cursor: pointer;
}

.evf-load-more {
    margin: 22px auto 0;
}

.evf-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 22px 0 0;
}

.evf-preroll-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(14, 18, 24, 0.94);
    color: #fff;
}

.evf-preroll-overlay__panel {
    width: min(600px, calc(100vw - 32px));
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
}

.evf-preroll-overlay__ad {
    aspect-ratio: 600 / 340;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.evf-ad-frame {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: transparent;
}

.evf-preroll-overlay__controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.evf-preroll-overlay button {
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    padding: 0 12px;
    cursor: pointer;
}

.evf-single__title {
    margin-top: 24px;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
    max-width: 100%;
    letter-spacing: 0;
}

.evf-single__player {
    max-width: 920px;
}

.evf-single__player .evf-video-card {
    border: 0;
}

.evf-related {
    margin-top: 34px;
}

.evf-sape-comments {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(20, 24, 31, 0.12);
}

.evf-sape-comments h2 {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.25;
}

.evf-sape-comment {
    padding: 14px 0;
    border-bottom: 1px solid rgba(20, 24, 31, 0.10);
}

.evf-sape-comment__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #5f6875;
}

.evf-sape-comment__author {
    font-weight: 700;
    color: #1d2327;
}

.evf-sape-comment__text {
    overflow-wrap: anywhere;
}

@media (max-width: 680px) {
    .evf-feed,
    .evf-archive,
    .evf-single {
        width: min(100% - 20px, 1180px);
    }

    .evf-feed__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
