.nefar-evp {
    --nefar-evp-accent: #007c89;
    --nefar-evp-glass: rgba(2, 28, 34, 0.62);
    --nefar-evp-glass-strong: rgba(0, 76, 84, 0.76);
    --nefar-evp-glass-soft: rgba(255, 255, 255, 0.1);
    --nefar-evp-line: rgba(255, 255, 255, 0.24);
    --nefar-evp-white: #fff;
    --nefar-evp-font: Arial, Helvetica, sans-serif;
    font-family: var(--nefar-evp-font);
    margin: 0 auto;
    max-width: 100%;
    position: relative;
}

.nefar-evp .plyr {
    --plyr-color-main: var(--nefar-evp-accent);
    --plyr-menu-background: rgba(2, 28, 34, 0.9);
    --plyr-menu-color: var(--nefar-evp-white);
    --plyr-menu-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
    --plyr-tooltip-background: rgba(2, 28, 34, 0.88);
    --plyr-tooltip-color: var(--nefar-evp-white);
    --plyr-font-family: var(--nefar-evp-font);
    background: #051b20;
    border-radius: 16px;
    color: var(--nefar-evp-white);
    font-family: var(--nefar-evp-font);
    overflow: hidden;
}

.nefar-evp__frame {
    aspect-ratio: 16 / 9;
    background: #051b20;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(2, 28, 34, 0.18);
    overflow: hidden;
}

.nefar-evp__frame > video,
.nefar-evp__frame > .plyr,
.nefar-evp__frame > .plyr__video-embed {
    height: 100%;
    width: 100%;
}

.nefar-evp .plyr__controls {
    align-items: center;
    background: linear-gradient(135deg, rgba(2, 28, 34, 0.76), rgba(0, 76, 84, 0.48)) !important;
    border: 1px solid var(--nefar-evp-line);
    border-radius: 16px;
    bottom: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    gap: 2px;
    left: 12px;
    padding: 7px 9px !important;
    right: 12px;
    width: auto;
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
}

.nefar-evp .plyr__controls::before {
    display: none;
}

.nefar-evp .plyr button.plyr__control {
    appearance: none;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.88) !important;
    margin: 0 !important;
    min-height: 34px;
    min-width: 34px;
    padding: 8px !important;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nefar-evp .plyr button.plyr__control:hover,
.nefar-evp .plyr button.plyr__control:focus-visible,
.nefar-evp .plyr button.plyr__control[aria-expanded="true"] {
    background: rgba(0, 124, 137, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    color: var(--nefar-evp-white) !important;
}

.nefar-evp .plyr button.plyr__control:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.92);
    outline-offset: 2px;
}

.nefar-evp .plyr button.plyr__control--overlaid {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(0, 124, 137, 0.52)) !important;
    border: 1px solid rgba(255, 255, 255, 0.38) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28) !important;
    color: var(--nefar-evp-white) !important;
    height: 68px;
    padding: 0 !important;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    width: 68px;
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
}

.nefar-evp .plyr button.plyr__control--overlaid:hover,
.nefar-evp .plyr button.plyr__control--overlaid:focus-visible {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(0, 124, 137, 0.72)) !important;
    transform: translate(-50%, -50%) scale(1.04);
}

.nefar-evp .plyr__control svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.24));
}

.nefar-evp .plyr button.plyr__control--overlaid svg {
    height: 30px;
    margin-left: 17px;
    width: 30px;
}

.nefar-evp .plyr__time {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.nefar-evp .plyr--full-ui input[type="range"] {
    accent-color: var(--nefar-evp-accent);
    color: var(--nefar-evp-accent);
}

.nefar-evp .plyr__progress__buffer {
    color: rgba(255, 255, 255, 0.18);
}

.nefar-evp .plyr__menu__container {
    background: rgba(2, 28, 34, 0.9);
    border: 1px solid var(--nefar-evp-line);
    border-radius: 14px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
    color: var(--nefar-evp-white);
    overflow: hidden;
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
}

.nefar-evp .plyr__menu__container::after {
    border-top-color: rgba(2, 28, 34, 0.9);
}

.nefar-evp .plyr__menu__container .plyr__control {
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

.nefar-evp .plyr__menu__container .plyr__control:hover,
.nefar-evp .plyr__menu__container .plyr__control:focus-visible {
    background: rgba(0, 124, 137, 0.46) !important;
}

.nefar-evp .plyr__tooltip {
    background: rgba(2, 28, 34, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: var(--nefar-evp-white);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.nefar-evp .plyr__tooltip::before {
    border-top-color: rgba(2, 28, 34, 0.88);
}

.nefar-evp .plyr__captions {
    bottom: 82px;
}

.nefar-evp .plyr__caption {
    background: rgba(2, 28, 34, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: var(--nefar-evp-white);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.nefar-evp__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}

.nefar-evp__button,
.nefar-evp__copy-row button {
    align-items: center;
    background: var(--nefar-evp-glass-strong);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    min-height: 40px;
    padding: 0 18px;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

.nefar-evp__button {
    border: 0 !important;
    outline: 0;
}

.nefar-evp__button:hover,
.nefar-evp__button:focus-visible {
    background: var(--nefar-evp-accent);
    border: 0 !important;
    border-color: transparent !important;
    color: #fff;
    transform: translateY(-1px);
}

.nefar-evp__button:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.48);
}

.nefar-evp__dialog {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 15px;
    box-shadow: 0 28px 80px rgba(0, 29, 35, 0.42);
    max-width: min(640px, calc(100vw - 32px));
    padding: 0;
    width: 100%;
}

.nefar-evp__dialog::backdrop {
    background:
        radial-gradient(circle at 25% 20%, rgba(0, 124, 137, 0.24), transparent 34%),
        rgba(0, 19, 24, 0.68);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.nefar-evp__dialog-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.19), rgba(0, 76, 84, 0.48)),
        rgba(2, 28, 34, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 15px;
    color: var(--nefar-evp-white);
    padding: 30px;
    position: relative;
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    backdrop-filter: blur(28px) saturate(150%);
}

.nefar-evp__dialog-card h2 {
    color: inherit;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 42px 22px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.nefar-evp__dialog-close {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.86);
    cursor: pointer;
    display: inline-flex;
    font-size: 30px;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 4px;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 40px;
}

.nefar-evp__dialog-close:hover,
.nefar-evp__dialog-close:focus-visible {
    background: rgba(0, 124, 137, 0.5);
    color: #fff;
}

.nefar-evp__field {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-top: 18px;
    text-transform: uppercase;
}

.nefar-evp__field > span:first-child {
    color: rgba(255, 255, 255, 0.82);
}

.nefar-evp__field small {
    color: rgba(255, 255, 255, 0.68);
    display: block;
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.45;
    margin-top: 5px;
    text-transform: none;
}

.nefar-evp__copy-row {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    box-sizing: border-box;
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding: 8px;
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

.nefar-evp__copy-row input,
.nefar-evp__copy-row textarea {
    appearance: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(232, 250, 250, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0, 29, 35, 0.12);
    box-sizing: border-box;
    color: #07333a;
    flex: 1;
    font: 400 0.83rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    min-width: 0;
    min-height: 46px;
    padding: 12px 13px;
    resize: vertical;
}

.nefar-evp__copy-row input:focus,
.nefar-evp__copy-row textarea:focus {
    border-color: rgba(237, 122, 45, 0.62);
    box-shadow:
        inset 0 1px 2px rgba(0, 29, 35, 0.12),
        0 0 0 2px rgba(237, 122, 45, 0.18);
    outline: none;
}

.nefar-evp__copy-row textarea {
    min-height: 96px;
}

.nefar-evp__copy-row button {
    align-self: flex-start;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(0, 124, 137, 0.34)),
        rgba(0, 76, 84, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.24);
    border-radius: 6px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 29, 35, 0.28),
        0 1px 0 rgba(255, 255, 255, 0.08);
    flex: 0 0 96px;
    height: 46px;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    width: 96px;
}

.nefar-evp__copy-row button:hover,
.nefar-evp__copy-row button:focus-visible {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(237, 122, 45, 0.56)),
        rgba(166, 79, 28, 0.46);
    border-color: rgba(255, 214, 180, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(94, 39, 14, 0.3),
        0 8px 18px rgba(94, 39, 14, 0.2);
}

.nefar-evp__download-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    box-sizing: border-box;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 18px;
    padding: 8px 8px 8px 14px;
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

.nefar-evp__download-card strong {
    color: rgba(255, 255, 255, 0.86);
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
}

.nefar-evp__download-card small {
    color: rgba(255, 255, 255, 0.68);
    display: block;
    font-size: 0.84rem;
    line-height: 1.45;
    margin-top: 5px;
}

.nefar-evp__download-link {
    align-items: center;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(0, 124, 137, 0.34)),
        rgba(0, 76, 84, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 6px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 29, 35, 0.28),
        0 1px 0 rgba(255, 255, 255, 0.08);
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 700;
    height: 46px;
    justify-content: center;
    min-width: 112px;
    padding: 0 16px;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
}

.nefar-evp__download-link:hover,
.nefar-evp__download-link:focus-visible {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(237, 122, 45, 0.56)),
        rgba(166, 79, 28, 0.46);
    border-color: rgba(255, 214, 180, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(94, 39, 14, 0.3),
        0 8px 18px rgba(94, 39, 14, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

.nefar-evp__embed-actions {
    display: none;
}

.nefar-evp--embed .nefar-evp__embed-actions {
    align-items: center;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(0, 76, 84, 0.4)),
        rgba(2, 28, 34, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
    display: flex;
    gap: 2px;
    left: 50%;
    opacity: 1;
    padding: 5px 7px;
    pointer-events: auto;
    position: absolute;
    top: 10px;
    transform: translateX(-50%) translateY(0);
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 7;
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
}

.nefar-evp--embed.nefar-evp--playing .nefar-evp__embed-actions {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-4px);
}

.nefar-evp--embed.nefar-evp--playing:hover .nefar-evp__embed-actions,
.nefar-evp--embed.nefar-evp--playing:focus-within .nefar-evp__embed-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nefar-evp__embed-action {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 7px;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    opacity: 0.86;
    padding: 0;
    position: relative;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
    width: 32px;
}

.nefar-evp__embed-action:hover,
.nefar-evp__embed-action:focus-visible,
.nefar-evp__embed-action[data-nefar-copied="true"] {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    opacity: 1;
}

.nefar-evp__embed-action:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

.nefar-evp__embed-action svg {
    fill: none;
    height: 19px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 19px;
}

.nefar-evp--embed .nefar-evp__embed-actions::after {
    background: rgba(2, 28, 34, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
    box-sizing: border-box;
    color: #fff;
    content: attr(data-nefar-active-tooltip);
    font-size: 0.72rem;
    font-weight: 700;
    left: 50%;
    letter-spacing: 0.01em;
    line-height: 1;
    max-width: calc(100vw - 10px);
    opacity: 0;
    overflow: hidden;
    padding: 8px 10px;
    pointer-events: none;
    position: absolute;
    text-align: center;
    text-overflow: ellipsis;
    top: calc(100% + 6px);
    transform: translateX(-50%) translateY(-3px);
    transition: opacity 140ms ease, transform 140ms ease;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.nefar-evp--embed .nefar-evp__embed-actions[data-nefar-active-tooltip]::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nefar-evp .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

.nefar-evp-watch-page {
    background: #f5f7fa;
    box-sizing: border-box;
    min-height: 70vh;
    padding: clamp(32px, 6vw, 80px) 20px;
}

.nefar-evp-watch-page__inner {
    margin: 0 auto;
    max-width: 1040px;
}

.nefar-evp-watch-page__brand {
    color: #52606d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.nefar-evp-watch-page__title {
    color: #1f2933;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    line-height: 1.12;
    margin: 0 0 22px;
}

.nefar-evp-watch-canvas-document {
    margin: 0;
}

.nefar-evp-embed-html,
.nefar-evp-embed-document {
    font-family: Arial, Helvetica, sans-serif;
    height: 100%;
    margin: 0;
    overflow: hidden;
    width: 100%;
}

.nefar-evp-embed-document {
    background: #111;
}

.nefar-evp-embed-document .nefar-evp,
.nefar-evp-embed-document .nefar-evp__frame {
    border-radius: 0;
    height: 100%;
    width: 100%;
}

.nefar-evp-embed-document .nefar-evp {
    max-width: none;
    overflow: hidden;
}

.nefar-evp__dialog {
    max-height: calc(100vh - 24px);
    overflow: auto;
}

@media (max-width: 520px) {
    .nefar-evp .plyr__controls {
        bottom: 7px;
        left: 7px;
        padding: 5px 6px !important;
        right: 7px;
    }

    .nefar-evp .plyr button.plyr__control {
        min-height: 32px;
        min-width: 32px;
        padding: 7px !important;
    }

    .nefar-evp .plyr__time + .plyr__time {
        display: none;
    }

    .nefar-evp__copy-row {
        flex-direction: column;
    }

    .nefar-evp__copy-row button {
        align-self: flex-end;
        flex-basis: auto;
        width: 96px;
    }

    .nefar-evp__download-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .nefar-evp__download-link {
        align-self: flex-end;
    }
}
