.zemra-yt-wrap {
    --zemra-yt-accent: #b10001;
    width: 100%;
}

.zemra-yt-section + .zemra-yt-section {
    margin-top: 2.25rem;
}

.zemra-yt-heading {
    margin: 0 0 1rem;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.2;
}

.zemra-yt-feature {
    width: 100%;
    margin: 0 0 16px;
    overflow: hidden;
    border-radius: 16px;
    background: #101010;
    box-shadow: 0 8px 28px rgba(0,0,0,.16);
}

.zemra-yt-feature.is-empty {
    display: none;
}

.zemra-yt-feature-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.zemra-yt-feature-poster {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #000;
    cursor: pointer;
}

.zemra-yt-feature-poster img,
.zemra-yt-feature-poster .zemra-yt-thumb-fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zemra-yt-feature-poster img {
    transition: transform .28s ease, opacity .28s ease;
}

.zemra-yt-feature-poster:hover img,
.zemra-yt-feature-poster:focus-visible img {
    transform: scale(1.015);
    opacity: .9;
}

.zemra-yt-feature .zemra-yt-play {
    width: 78px;
    height: 56px;
    border-radius: 14px;
}

.zemra-yt-feature .zemra-yt-play span {
    left: 31px;
    top: 16px;
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 18px;
}

.zemra-yt-feature-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px 13px;
    color: #fff;
}

.zemra-yt-feature-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
    line-height: 1.35;
}

.zemra-yt-feature-date {
    flex: 0 0 auto;
    font-size: .78rem;
    color: #aaa;
}

.zemra-yt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.zemra-yt-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    box-shadow: 0 5px 18px rgba(0,0,0,.11);
    transition: transform .18s ease, box-shadow .18s ease, outline-color .18s ease;
    outline: 2px solid transparent;
    outline-offset: 0;
}

.zemra-yt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

.zemra-yt-card.is-selected {
    outline-color: var(--zemra-yt-accent);
}

.zemra-yt-poster {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.zemra-yt-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #181818;
}

.zemra-yt-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease, opacity .25s ease;
}

.zemra-yt-poster:hover .zemra-yt-media img,
.zemra-yt-poster:focus-visible .zemra-yt-media img {
    transform: scale(1.03);
    opacity: .9;
}

.zemra-yt-thumb-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #191919, #2b2b2b);
}

.zemra-yt-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 39px;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    background: var(--zemra-yt-accent);
    box-shadow: 0 5px 18px rgba(0,0,0,.35);
    transition: transform .2s ease;
}

.zemra-yt-play span {
    position: absolute;
    left: 22px;
    top: 11px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #fff;
}

.zemra-yt-poster:hover .zemra-yt-play,
.zemra-yt-poster:focus-visible .zemra-yt-play,
.zemra-yt-feature-poster:hover .zemra-yt-play,
.zemra-yt-feature-poster:focus-visible .zemra-yt-play {
    transform: translate(-50%, -50%) scale(1.07);
}

.zemra-yt-info {
    display: block;
    padding: 10px 11px 11px;
}

.zemra-yt-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.55em;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.zemra-yt-date {
    display: block;
    margin-top: 6px;
    font-size: .73rem;
    color: #aaa;
}

.zemra-yt-iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.zemra-yt-consent {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 3vw, 28px);
    background: rgba(10,10,10,.96);
    color: #fff;
    text-align: center;
}

.zemra-yt-consent strong {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.zemra-yt-consent p {
    max-width: 38rem;
    margin: 9px 0 14px;
    font-size: .86rem;
    line-height: 1.45;
    color: #d4d4d4;
}

.zemra-yt-consent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.zemra-yt-consent-actions button,
.zemra-yt-more {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.zemra-yt-consent-primary,
.zemra-yt-more {
    background: var(--zemra-yt-accent);
    color: #fff;
}

.zemra-yt-consent-secondary {
    background: #fff;
    color: #111;
}

.zemra-yt-consent-cancel {
    background: transparent;
    color: #cfcfcf;
    text-decoration: underline;
}

.zemra-yt-consent-actions button {
    padding: 9px 12px;
    font-size: .8rem;
}

.zemra-yt-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.zemra-yt-more {
    min-width: 190px;
    padding: 11px 18px;
    transition: transform .18s ease, opacity .18s ease;
}

.zemra-yt-more:hover,
.zemra-yt-more:focus-visible {
    transform: translateY(-1px);
}

.zemra-yt-more:disabled {
    opacity: .65;
    cursor: progress;
}

.zemra-yt-empty,
.zemra-yt-admin-hint {
    padding: 14px 16px;
    border: 1px dashed #777;
    border-radius: 10px;
}

@media (max-width: 760px) {
    .zemra-yt-feature {
        margin-bottom: 12px;
        border-radius: 12px;
    }
    .zemra-yt-feature-meta {
        padding: 10px 12px;
    }
    .zemra-yt-feature-title {
        font-size: .92rem;
    }
    .zemra-yt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .zemra-yt-card {
        border-radius: 10px;
    }
    .zemra-yt-info {
        padding: 9px 9px 10px;
    }
    .zemra-yt-title {
        font-size: .84rem;
    }
    .zemra-yt-play {
        width: 48px;
        height: 35px;
        border-radius: 9px;
    }
    .zemra-yt-play span {
        left: 20px;
        top: 10px;
        border-top-width: 7px;
        border-bottom-width: 7px;
        border-left-width: 11px;
    }
    .zemra-yt-feature .zemra-yt-play {
        width: 64px;
        height: 46px;
        border-radius: 12px;
    }
    .zemra-yt-feature .zemra-yt-play span {
        left: 26px;
        top: 13px;
        border-top-width: 10px;
        border-bottom-width: 10px;
        border-left-width: 15px;
    }
    .zemra-yt-consent {
        padding: 12px;
    }
    .zemra-yt-consent p {
        margin: 7px 0 10px;
        font-size: .76rem;
    }
    .zemra-yt-consent-actions button {
        padding: 8px 9px;
        font-size: .74rem;
    }
}

@media (max-width: 370px) {
    .zemra-yt-grid {
        grid-template-columns: 1fr;
    }
}
