:root {
    --emv-primary: #E8732B;
    --emv-primary-a11y: #E8732B;
    --emv-primary-dark: #0E2B5C;
    --emv-on-primary: #0E2B5C;
    --emv-navy: #0E2B5C;
    --emv-navy-soft: #173d73;
    --emv-text: #243247;
    --emv-muted: #667085;
    --emv-border: rgba(14, 43, 92, 0.12);
    --emv-surface: #ffffff;
    --emv-surface-soft: #f6f8fb;
    --emv-radius-lg: 22px;
    --emv-radius-md: 16px;
    --emv-shadow: 0 18px 50px rgba(14, 43, 92, 0.10);
}

body.emv-video-design-active {
    color: var(--emv-text);
    background: var(--emv-surface-soft);
}

body.emv-video-design-active,
body.emv-video-design-active button,
body.emv-video-design-active input,
body.emv-video-design-active textarea,
body.emv-video-design-active select {
    font-family: "Almarai", Tahoma, Arial, sans-serif;
}

.emv-container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

/* =============================
   Single video page
   ============================= */
.single-dyt_video .entry-header,
.single-dyt_video .ast-single-entry-banner,
.single-dyt_video h1.entry-title,
.single-dyt_video .entry-title,
.single-dyt_video .page-title,
.single-dyt_video .post-navigation,
.single-dyt_video .navigation.post-navigation {
    display: none !important;
}

.single-dyt_video .site-content,
.single-dyt_video .site-content > .ast-container,
.single-dyt_video #primary,
.single-dyt_video .content-area,
.single-dyt_video article,
.single-dyt_video .ast-article-single,
.single-dyt_video .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.single-dyt_video .dyt-rebuilt-single-video {
    display: flex !important;
    flex-direction: column !important;
    width: min(1120px, calc(100% - 32px)) !important;
    max-width: 1120px !important;
    margin: 34px auto 56px !important;
    padding: 26px !important;
    border: 1px solid var(--emv-border) !important;
    border-radius: var(--emv-radius-lg) !important;
    background: var(--emv-surface) !important;
    box-shadow: var(--emv-shadow) !important;
    overflow: hidden !important;
}

.single-dyt_video .dyt-rebuilt-breadcrumb {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid var(--emv-border) !important;
    color: var(--emv-muted) !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

.single-dyt_video .dyt-rebuilt-breadcrumb a {
    color: var(--emv-navy) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.single-dyt_video .dyt-rebuilt-breadcrumb a:hover {
    color: var(--emv-primary-a11y) !important;
}

.single-dyt_video .dyt-rebuilt-breadcrumb-current {
    color: var(--emv-muted) !important;
}

.single-dyt_video .dyt-rebuilt-title {
    order: 2 !important;
    position: relative !important;
    margin: 0 0 14px !important;
    padding: 0 18px 0 0 !important;
    color: var(--emv-navy) !important;
    font-size: clamp(24px, 3vw, 38px) !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
    letter-spacing: -0.35px !important;
}

.single-dyt_video .dyt-rebuilt-title::before {
    content: "";
    position: absolute;
    top: 8px;
    right: 0;
    width: 5px;
    height: calc(100% - 16px);
    border-radius: 999px;
    background: var(--emv-primary);
}

.single-dyt_video .dyt-rebuilt-meta {
    order: 3 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
    margin: 0 0 22px !important;
    color: var(--emv-muted) !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
}

.single-dyt_video .dyt-rebuilt-meta span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 34px !important;
    padding: 5px 12px !important;
    border: 1px solid var(--emv-border) !important;
    border-radius: 999px !important;
    background: var(--emv-surface-soft) !important;
}

.single-dyt_video .dyt-rebuilt-video-box {
    order: 4 !important;
    position: relative !important;
    width: 100% !important;
    margin: 0 0 20px !important;
    overflow: hidden !important;
    border: 4px solid #fff !important;
    border-radius: 20px !important;
    background: #081a35 !important;
    box-shadow: 0 18px 46px rgba(14, 43, 92, 0.20) !important;
}

.single-dyt_video .dyt-rebuilt-lazy-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 43, 92, 0.02), rgba(14, 43, 92, 0.22));
    pointer-events: none;
}

.single-dyt_video .dyt-rebuilt-lazy-video img {
    opacity: 1 !important;
    transition: transform 0.5s ease, filter 0.5s ease !important;
}

.single-dyt_video .dyt-rebuilt-lazy-video:hover img {
    transform: scale(1.018) !important;
    filter: brightness(0.92) !important;
}

.single-dyt_video .dyt-rebuilt-play {
    z-index: 2 !important;
    width: 82px !important;
    height: 82px !important;
    padding: 0 !important;
    border: 5px solid rgba(255, 255, 255, 0.82) !important;
    background: var(--emv-primary-a11y) !important;
    color: var(--emv-on-primary) !important;
    font-size: 29px !important;
    box-shadow: 0 16px 40px rgba(14, 43, 92, 0.36) !important;
    transition: transform 0.25s ease, background 0.25s ease !important;
}

.single-dyt_video .dyt-rebuilt-lazy-video:hover .dyt-rebuilt-play {
    transform: translate(-50%, -50%) scale(1.08) !important;
    background: var(--emv-navy) !important;
}

.single-dyt_video .dyt-rebuilt-source {
    order: 5 !important;
    margin: 0 0 24px !important;
    padding: 15px 18px !important;
    border-right: 4px solid var(--emv-primary) !important;
    border-radius: 12px !important;
    background: rgba(232, 115, 43, 0.08) !important;
    color: var(--emv-text) !important;
    line-height: 1.9 !important;
}

.single-dyt_video .dyt-rebuilt-source a {
    color: var(--emv-navy) !important;
    text-decoration: none !important;
}

.single-dyt_video .dyt-rebuilt-source a:hover {
    color: var(--emv-primary-a11y) !important;
}

.single-dyt_video .dyt-rebuilt-description {
    order: 6 !important;
    margin: 0 0 24px !important;
    padding: 24px !important;
    border: 1px solid var(--emv-border) !important;
    border-radius: var(--emv-radius-md) !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(14, 43, 92, 0.05) !important;
}

.single-dyt_video .dyt-rebuilt-description > h2,
.single-dyt_video .dyt-vseo-rich-content h2 {
    position: relative !important;
    margin: 28px 0 12px !important;
    padding-bottom: 10px !important;
    color: var(--emv-navy) !important;
    font-size: clamp(20px, 2.3vw, 27px) !important;
    font-weight: 800 !important;
    line-height: 1.6 !important;
}

.single-dyt_video .dyt-rebuilt-description > h2:first-child,
.single-dyt_video .dyt-vseo-rich-content h2:first-of-type {
    margin-top: 0 !important;
}

.single-dyt_video .dyt-rebuilt-description > h2::after,
.single-dyt_video .dyt-vseo-rich-content h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 9px;
    border-radius: 999px;
    background: var(--emv-primary);
}

.single-dyt_video .dyt-rebuilt-description-content,
.single-dyt_video .dyt-vseo-rich-content {
    color: var(--emv-text) !important;
    font-size: 16px !important;
    line-height: 2.05 !important;
}

.single-dyt_video .dyt-rebuilt-description-content p,
.single-dyt_video .dyt-vseo-rich-content p {
    margin: 0 0 18px !important;
}

.single-dyt_video .dyt-rebuilt-description-content a,
.single-dyt_video .dyt-vseo-rich-content a {
    color: var(--emv-navy) !important;
    font-weight: 700 !important;
    text-decoration-line: underline !important;
    text-decoration-color: var(--emv-primary) !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
}

.single-dyt_video .dyt-rebuilt-description-content strong,
.single-dyt_video .dyt-vseo-rich-content strong {
    color: var(--emv-navy) !important;
}

.single-dyt_video .dyt-rebuilt-cta {
    order: 7 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    margin: 0 0 28px !important;
    padding: 22px 24px !important;
    border: 0 !important;
    border-radius: var(--emv-radius-md) !important;
    background: linear-gradient(135deg, var(--emv-navy), var(--emv-navy-soft)) !important;
    color: #fff !important;
    box-shadow: 0 16px 38px rgba(14, 43, 92, 0.22) !important;
}

.single-dyt_video .dyt-rebuilt-cta strong {
    margin: 0 !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1.6 !important;
}

.single-dyt_video .dyt-rebuilt-cta a {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 11px 20px !important;
    border: 2px solid var(--emv-primary-a11y) !important;
    border-radius: 999px !important;
    background: var(--emv-primary-a11y) !important;
    color: var(--emv-on-primary) !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 10px 26px rgba(232, 115, 43, 0.28) !important;
}

.single-dyt_video .dyt-rebuilt-cta a:hover {
    background: transparent !important;
    color: #fff !important;
}

/* Related videos slider */
.single-dyt_video .dyt-rebuilt-page-carousel {
    order: 8 !important;
    position: relative !important;
    margin: 0 !important;
    padding: 26px 0 4px !important;
    border-top: 1px solid var(--emv-border) !important;
    overflow: visible !important;
}

.emv-slider-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.single-dyt_video .dyt-rebuilt-page-carousel h2 {
    position: relative !important;
    margin: 0 !important;
    padding-right: 16px !important;
    color: var(--emv-navy) !important;
    font-size: clamp(22px, 2.5vw, 30px) !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
}

.single-dyt_video .dyt-rebuilt-page-carousel h2::before {
    content: "";
    position: absolute;
    top: 7px;
    right: 0;
    width: 5px;
    height: calc(100% - 14px);
    border-radius: 999px;
    background: var(--emv-primary);
}

.emv-slider-controls {
    display: inline-flex;
    gap: 9px;
    direction: ltr;
}

.emv-slider-button {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--emv-border);
    border-radius: 50%;
    background: #fff;
    color: var(--emv-navy);
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(14, 43, 92, 0.10);
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.emv-slider-button span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.emv-slider-next span::before {
    transform: translate(-60%, -50%) rotate(45deg);
}

.emv-slider-prev span::before {
    transform: translate(-40%, -50%) rotate(-135deg);
}

.emv-slider-button:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--emv-primary-a11y);
    background: var(--emv-primary-a11y);
    color: var(--emv-on-primary);
}

.emv-slider-button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.single-dyt_video .dyt-rebuilt-carousel {
    display: flex !important;
    gap: 18px !important;
    padding: 4px 2px 16px !important;
    scroll-padding-inline: 2px !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(232, 115, 43, 0.7) transparent !important;
}

.single-dyt_video .dyt-rebuilt-carousel::-webkit-scrollbar {
    display: block !important;
    height: 5px !important;
}

.single-dyt_video .dyt-rebuilt-carousel::-webkit-scrollbar-thumb {
    border-radius: 999px !important;
    background: rgba(232, 115, 43, 0.7) !important;
}

.single-dyt_video .dyt-rebuilt-carousel .dyt-rebuilt-card {
    flex: 0 0 calc((100% - 36px) / 3) !important;
    min-width: 0 !important;
}

.dyt-rebuilt-card {
    overflow: hidden !important;
    border: 1px solid var(--emv-border) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 12px 34px rgba(14, 43, 92, 0.08) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.dyt-rebuilt-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(232, 115, 43, 0.52) !important;
    box-shadow: 0 20px 44px rgba(14, 43, 92, 0.16) !important;
}

.dyt-rebuilt-card a {
    position: relative !important;
    height: 100% !important;
}

.dyt-rebuilt-card a::before,
.dyt-rebuilt-card a::after {
    content: none !important;
}

.dyt-rebuilt-card-media {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    background: #0e2b5c !important;
}

.dyt-rebuilt-card-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.dyt-rebuilt-card-play {
    position: absolute !important;
    z-index: 3 !important;
    top: 50% !important;
    left: 50% !important;
    width: 54px !important;
    height: 54px !important;
    border: 3px solid rgba(255, 255, 255, 0.88) !important;
    border-radius: 50% !important;
    background: var(--emv-primary-a11y) !important;
    box-shadow: 0 12px 30px rgba(14, 43, 92, 0.34) !important;
    opacity: 0 !important;
    transform: translate(-50%, -50%) scale(0.78) !important;
    transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease !important;
    pointer-events: none !important;
}

.dyt-rebuilt-card-play::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 52% !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 8px solid transparent !important;
    border-bottom: 8px solid transparent !important;
    border-left: 13px solid #fff !important;
    transform: translate(-42%, -50%) !important;
}

.dyt-rebuilt-card:hover .dyt-rebuilt-card-play,
.dyt-rebuilt-card:focus-within .dyt-rebuilt-card-play {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
    background: var(--emv-navy) !important;
}

.dyt-rebuilt-card img {
    transition: transform 0.35s ease, filter 0.35s ease !important;
}

.dyt-rebuilt-card:hover img {
    transform: scale(1.035) !important;
    filter: brightness(0.86) !important;
}

.dyt-rebuilt-card-body {
    padding: 18px !important;
}

.dyt-rebuilt-card-title {
    min-height: 54px !important;
    color: var(--emv-navy) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.75 !important;
}

.dyt-rebuilt-card:hover .dyt-rebuilt-card-title {
    color: var(--emv-primary-dark) !important;
}

.dyt-rebuilt-views {
    color: var(--emv-muted) !important;
}

.dyt-rebuilt-btn {
    padding: 9px 15px !important;
    border-radius: 999px !important;
    background: var(--emv-primary-a11y) !important;
    color: var(--emv-on-primary) !important;
    font-weight: 800 !important;
}

/* =============================
   Video archive
   ============================= */
.emv-archive {
    min-height: 60vh;
    background: var(--emv-surface-soft);
}

.emv-archive-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0;
    background:
        radial-gradient(circle at 14% 20%, rgba(232, 115, 43, 0.20), transparent 28%),
        linear-gradient(135deg, #0a2249 0%, var(--emv-navy) 55%, #173d73 100%);
    color: #fff;
}

.emv-archive-hero::after {
    content: "";
    position: absolute;
    left: -110px;
    bottom: -150px;
    width: 360px;
    height: 360px;
    border: 50px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
}

.emv-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.emv-breadcrumb a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.emv-hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 50px;
    align-items: center;
}

.emv-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border: 1px solid rgba(232, 115, 43, 0.55);
    border-radius: 999px;
    background: rgba(232, 115, 43, 0.12);
    color: #ffd4b9;
    font-size: 13px;
    font-weight: 800;
}

.emv-hero-content h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.35;
}

.emv-hero-content p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 2;
}

.emv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.emv-primary-button,
.emv-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.emv-primary-button {
    border: 2px solid var(--emv-primary-a11y);
    background: var(--emv-primary-a11y);
    color: var(--emv-on-primary) !important;
    box-shadow: 0 12px 28px rgba(232, 115, 43, 0.28);
}

.emv-secondary-button {
    border: 2px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.emv-primary-button:hover,
.emv-secondary-button:hover {
    transform: translateY(-2px);
}

.emv-secondary-button:hover {
    border-color: var(--emv-primary-a11y);
    background: var(--emv-primary-a11y);
    color: var(--emv-on-primary) !important;
}

.emv-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 24px 50px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
}

.emv-stat-icon,
.emv-empty-icon,
.emv-card-placeholder {
    position: relative;
    display: block;
}

.emv-stat-icon {
    width: 48px;
    height: 34px;
    margin-bottom: 14px;
    border: 2px solid var(--emv-primary);
    border-radius: 10px;
}

.emv-stat-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid var(--emv-primary);
    transform: translate(-50%, -50%);
}

.emv-hero-stat strong {
    color: #fff;
    font-size: 44px;
    line-height: 1.2;
}

.emv-hero-stat > span:last-child {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.emv-archive-content {
    padding: 56px 0 70px;
}

.emv-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.emv-section-heading span {
    display: block;
    margin-bottom: 4px;
    color: var(--emv-primary-dark);
    font-size: 13px;
    font-weight: 800;
}

.emv-section-heading h2 {
    margin: 0;
    color: var(--emv-navy);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.45;
}

.emv-section-heading > a {
    color: var(--emv-navy);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.emv-section-heading > a:hover {
    color: var(--emv-primary-a11y);
}

.emv-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.emv-video-card {
    min-width: 0;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--emv-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(14, 43, 92, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.emv-video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 115, 43, 0.5);
    box-shadow: 0 22px 52px rgba(14, 43, 92, 0.15);
}

.emv-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit !important;
    text-decoration: none !important;
}

.emv-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--emv-navy);
}

.emv-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(8, 26, 53, 0.45));
}

.emv-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.emv-video-card:hover .emv-card-media img {
    transform: scale(1.05);
    filter: brightness(0.86);
}

.emv-card-play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    border: 4px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    background: var(--emv-primary-a11y);
    box-shadow: 0 14px 34px rgba(14, 43, 92, 0.30);
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease, background 0.25s ease;
}

.emv-card-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #fff;
    transform: translate(-50%, -50%);
}

.emv-video-card:hover .emv-card-play {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--emv-navy);
}

.emv-card-duration {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(8, 26, 53, 0.82);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.emv-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--emv-navy), var(--emv-navy-soft));
}

.emv-card-placeholder::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    transform: translate(-50%, -50%);
}

.emv-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.emv-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--emv-muted);
    font-size: 12px;
}

.emv-card-body h2 {
    margin: 0 0 10px;
    color: var(--emv-navy);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.75;
    transition: color 0.2s ease;
}

.emv-video-card:hover h2 {
    color: var(--emv-primary-dark);
}

.emv-card-body p {
    margin: 0 0 14px;
    color: var(--emv-muted);
    font-size: 14px;
    line-height: 1.9;
}

.emv-card-source {
    display: block;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--emv-border);
    color: var(--emv-muted);
    font-size: 12px;
    line-height: 1.7;
}

.emv-card-button {
    align-self: flex-start;
    margin-top: 14px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--emv-primary-a11y);
    color: var(--emv-on-primary);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 9px 22px rgba(232, 115, 43, 0.25);
}

.emv-pagination {
    margin-top: 42px;
}

.emv-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.emv-pagination a,
.emv-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 7px 12px;
    border: 1px solid var(--emv-border);
    border-radius: 12px;
    background: #fff;
    color: var(--emv-navy);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.emv-pagination .current,
.emv-pagination a:hover {
    border-color: var(--emv-primary-a11y);
    background: var(--emv-primary-a11y);
    color: var(--emv-on-primary);
}

.emv-empty-state {
    max-width: 680px;
    margin: 0 auto;
    padding: 46px 30px;
    border: 1px solid var(--emv-border);
    border-radius: 24px;
    background: #fff;
    text-align: center;
    box-shadow: var(--emv-shadow);
}

.emv-empty-icon {
    width: 68px;
    height: 48px;
    margin: 0 auto 18px;
    border: 3px solid var(--emv-primary);
    border-radius: 14px;
}

.emv-empty-state h2 {
    color: var(--emv-navy);
}

.emv-empty-state p {
    color: var(--emv-muted);
}

/* =============================
   Responsive
   ============================= */
@media (max-width: 1024px) {
    .emv-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-dyt_video .dyt-rebuilt-carousel .dyt-rebuilt-card {
        flex-basis: calc((100% - 18px) / 2) !important;
    }
}

@media (max-width: 767px) {
    .emv-container,
    .single-dyt_video .dyt-rebuilt-single-video {
        width: min(100% - 20px, 1120px) !important;
    }

    .single-dyt_video .dyt-rebuilt-single-video {
        margin: 16px auto 34px !important;
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .single-dyt_video .dyt-rebuilt-title {
        padding-right: 14px !important;
        font-size: 23px !important;
    }

    .single-dyt_video .dyt-rebuilt-meta {
        gap: 7px !important;
        font-size: 12px !important;
    }

    .single-dyt_video .dyt-rebuilt-meta span {
        min-height: 30px !important;
        padding: 4px 9px !important;
    }

    .single-dyt_video .dyt-rebuilt-video-box {
        border-width: 2px !important;
        border-radius: 14px !important;
    }

    .single-dyt_video .dyt-rebuilt-play {
        width: 62px !important;
        height: 62px !important;
        border-width: 4px !important;
        font-size: 23px !important;
    }

    .single-dyt_video .dyt-rebuilt-description {
        padding: 18px !important;
    }

    .single-dyt_video .dyt-rebuilt-description-content,
    .single-dyt_video .dyt-vseo-rich-content {
        font-size: 15px !important;
        line-height: 2 !important;
    }

    .single-dyt_video .dyt-rebuilt-cta {
        align-items: stretch !important;
        flex-direction: column !important;
        padding: 19px !important;
    }

    .single-dyt_video .dyt-rebuilt-cta a {
        text-align: center !important;
    }

    .emv-slider-heading {
        align-items: flex-start;
    }

    .emv-slider-button {
        width: 38px;
        height: 38px;
    }

    .single-dyt_video .dyt-rebuilt-carousel .dyt-rebuilt-card {
        flex-basis: 86% !important;
    }

    .emv-archive-hero {
        padding: 36px 0;
    }

    .emv-hero-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .emv-hero-stat {
        min-height: 150px;
    }

    .emv-video-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .emv-section-heading {
        align-items: flex-start;
    }

    .emv-section-heading > a {
        display: none;
    }

    .emv-card-body h2 {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .emv-video-card,
    .emv-card-media img,
    .emv-card-play,
    .dyt-rebuilt-card,
    .dyt-rebuilt-card img,
    .emv-slider-button,
    .single-dyt_video .dyt-rebuilt-lazy-video img,
    .single-dyt_video .dyt-rebuilt-play {
        transition: none !important;
    }

    .single-dyt_video .dyt-rebuilt-carousel {
        scroll-behavior: auto !important;
    }
}

/* =============================
   v1.1: standalone shortcode carousel
   ============================= */
.emv-video-shortcode-active .dyt-rebuilt-carousel,
.emv-video-carousel .dyt-rebuilt-carousel {
    display: flex !important;
    direction: ltr !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 5px 3px 18px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(232, 115, 43, 0.72) transparent !important;
}

.emv-video-shortcode-active .dyt-rebuilt-carousel::-webkit-scrollbar,
.emv-video-carousel .dyt-rebuilt-carousel::-webkit-scrollbar {
    display: block !important;
    height: 5px !important;
}

.emv-video-shortcode-active .dyt-rebuilt-carousel::-webkit-scrollbar-thumb,
.emv-video-carousel .dyt-rebuilt-carousel::-webkit-scrollbar-thumb {
    border-radius: 999px !important;
    background: rgba(232, 115, 43, 0.72) !important;
}

.emv-video-carousel {
    direction: rtl;
    width: 100%;
    margin: 26px 0;
    padding: 24px;
    border: 1px solid var(--emv-border);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafe 100%);
    box-shadow: 0 16px 44px rgba(14, 43, 92, 0.09);
}

.emv-shortcode-carousel {
    clear: both;
}

.emv-video-carousel .emv-slider-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 17px;
    padding: 0 0 15px;
    border-bottom: 1px solid var(--emv-border);
}

.emv-video-carousel .emv-slider-heading h2 {
    position: relative;
    margin: 0 !important;
    padding-right: 16px;
    color: var(--emv-navy) !important;
    font-size: clamp(21px, 2.3vw, 29px) !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
}

.emv-video-carousel .emv-slider-heading h2::before {
    content: "";
    position: absolute;
    top: 7px;
    right: 0;
    width: 5px;
    height: calc(100% - 14px);
    border-radius: 999px;
    background: var(--emv-primary);
}

.emv-video-carousel .dyt-rebuilt-carousel .dyt-rebuilt-card {
    flex: 0 0 calc((100% - 36px) / 3) !important;
    min-width: 0 !important;
    scroll-snap-align: start !important;
    direction: rtl !important;
}

.emv-video-carousel .dyt-rebuilt-card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
}

.emv-video-carousel .dyt-rebuilt-card-title {
    display: -webkit-box;
    min-height: 57px !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.emv-video-carousel .dyt-rebuilt-views {
    margin-top: 8px !important;
    font-size: 13px !important;
}

.emv-video-carousel .dyt-rebuilt-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 12px !important;
}

.emv-slider-fits .emv-slider-controls {
    display: none;
}

/* Archive explanatory content. */
.emv-archive-intro {
    padding: 30px 0 0;
    background: var(--emv-surface-soft);
}

.emv-intro-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    align-items: center;
    gap: 34px;
    padding: 28px 32px;
    border: 1px solid var(--emv-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(14, 43, 92, 0.07);
}

.emv-intro-card h2 {
    margin: 7px 0 0;
    color: var(--emv-navy);
    font-size: clamp(23px, 2.4vw, 33px);
    line-height: 1.55;
}

.emv-intro-card p {
    margin: 0;
    color: var(--emv-text);
    font-size: 16px;
    line-height: 2;
}

@media (max-width: 1024px) {
    .emv-video-carousel .dyt-rebuilt-carousel .dyt-rebuilt-card {
        flex-basis: calc((100% - 18px) / 2) !important;
    }
}

@media (max-width: 767px) {
    .emv-video-carousel {
        margin: 20px 0;
        padding: 17px;
        border-radius: 17px;
    }

    .emv-video-carousel .emv-slider-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .emv-video-carousel .emv-slider-heading h2 {
        padding-right: 13px;
        font-size: 20px !important;
    }

    .emv-video-carousel .dyt-rebuilt-carousel .dyt-rebuilt-card {
        flex-basis: 86% !important;
    }

    .emv-intro-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px;
    }
}


/* =============================
   v1.4: strict carousel width + simpler archive cards
   ============================= */
body.emv-video-shortcode-active {
    overflow-x: clip;
}

.emv-video-carousel,
.dyt-rebuilt-page-carousel,
.emv-shortcode-carousel {
    box-sizing: border-box !important;
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    min-inline-size: 0 !important;
    overflow: hidden !important;
}

.emv-video-carousel .dyt-rebuilt-carousel,
.dyt-rebuilt-page-carousel .dyt-rebuilt-carousel,
.emv-video-shortcode-active .dyt-rebuilt-carousel {
    box-sizing: border-box !important;
    inline-size: 100% !important;
    width: 100% !important;
    max-inline-size: 100% !important;
    max-width: 100% !important;
    min-inline-size: 0 !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
    overscroll-behavior-inline: contain;
}

.emv-video-carousel .dyt-rebuilt-carousel > *,
.dyt-rebuilt-page-carousel .dyt-rebuilt-carousel > * {
    box-sizing: border-box !important;
    min-inline-size: 0;
    max-inline-size: 100%;
}

@supports not (overflow: clip) {
    body.emv-video-shortcode-active {
        overflow-x: hidden;
    }
}

/* Two wider archive cards per row so the video image is more prominent. */
.emv-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.emv-video-card {
    border-radius: 18px;
}

.emv-card-media {
    aspect-ratio: 16 / 9;
}

.emv-card-media img {
    min-height: 260px;
}

.emv-card-body {
    display: block;
    padding: 18px 20px 20px;
}

.emv-card-body h2 {
    display: -webkit-box;
    min-height: 58px;
    margin: 0 0 12px;
    overflow: hidden;
    font-size: 19px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.emv-card-meta {
    justify-content: flex-start;
    gap: 8px 16px;
    margin: 0;
    padding-top: 11px;
    border-top: 1px solid var(--emv-border);
    font-size: 12px;
}

.emv-card-body p,
.emv-card-source,
.emv-card-button {
    display: none !important;
}

@media (max-width: 767px) {
    .emv-video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .emv-card-media img {
        min-height: 0;
    }

    .emv-card-body {
        padding: 15px 16px 17px;
    }

    .emv-card-body h2 {
        min-height: auto;
        font-size: 17px;
    }
}


/* =============================
   v1.5: concise titles, clipped carousel, centered play controls
   ============================= */
.dyt-rebuilt-carousel,
.single-dyt_video .dyt-rebuilt-carousel,
.emv-video-carousel .dyt-rebuilt-carousel,
.dyt-rebuilt-page-carousel .dyt-rebuilt-carousel,
.emv-video-shortcode-active .dyt-rebuilt-carousel {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overscroll-behavior-x: none !important;
}

.dyt-rebuilt-carousel::-webkit-scrollbar,
.single-dyt_video .dyt-rebuilt-carousel::-webkit-scrollbar,
.emv-video-carousel .dyt-rebuilt-carousel::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.single-dyt_video .dyt-rebuilt-play {
    padding: 0 !important;
}