.video-content-card {
    position: relative;
    width: min(100%, 1180px);
    height: min(92vh, 720px);
    padding: 0;
    overflow: hidden;
    border-radius: 2px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.58);
    text-align: left;
}

.video-content-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 48px;
    padding: 10px 16px;
    background: transparent;
    pointer-events: none;
}

.video-content-close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.88);
    cursor: pointer;
    pointer-events: auto;
}

.video-content-close-button .close-button-icon {
    width: 14px;
    height: 14px;
    opacity: 0.78;
}

.video-content-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

.video-content-element {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #000000;
}

.video-content-element video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.video-content-center-play-button {
    position: relative;
    z-index: 3;
    width: 74px;
    height: 74px;
    border: 0;
    border-radius: 50%;
    background: rgba(105, 105, 105, 0.8);
    cursor: pointer;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.video-content-center-play-button::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 23px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 24px solid #ffffff;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
}

.video-content-center-play-button:hover {
    transform: scale(1.04);
}

.video-content-center-play-button.hidden {
    display: none;
}

.video-content-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: grid;
    grid-template-rows: 12px 44px;
    gap: 0;
    background: rgba(22, 22, 22, 0.96);
}

.video-content-range {
    position: relative;
    display: block;
    height: 12px;
}

.video-content-range input {
    position: absolute;
    left: 0;
    top: -3px;
    width: 100%;
    height: 18px;
    margin: 0;
    accent-color: #0043ce;
}

.video-content-control-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 0 30px;
    color: rgba(255, 255, 255, 0.92);
}

.video-icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
}

.video-seek-button {
    width: 38px;
}

.video-icon-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.video-button-icon {
    display: block;
    width: 20px;
    height: 20px;
    margin: auto;
    filter: invert(1);
}

.video-seek-button .video-button-icon {
    width: 22px;
    height: 22px;
}

.video-play-toggle::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 6px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid rgba(255, 255, 255, 0.9);
}

.video-play-toggle.is-playing::before,
.video-play-toggle.is-playing::after {
    content: '';
    position: absolute;
    top: 6px;
    width: 4px;
    height: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.video-play-toggle.is-playing::before {
    left: 9px;
    border: 0;
}

.video-play-toggle.is-playing::after {
    left: 17px;
}

.video-mute-toggle.is-muted {
    opacity: 0.7;
}

.video-volume-mute-icon,
.video-mute-toggle.is-muted .video-volume-up-icon {
    display: none;
}

.video-mute-toggle.is-muted .video-volume-mute-icon {
    display: block;
}

.video-volume-control {
    position: relative;
    display: flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.video-volume-popover {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 132px;
    padding: 10px 6px;
    border-radius: 4px 4px 0 0;
    background: rgba(22, 22, 22, 0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease, visibility 0.12s ease;
}

.video-volume-control:hover .video-volume-popover,
.video-volume-control:has(:focus-visible) .video-volume-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-content-volume-slider {
    width: 20px;
    height: 108px;
    margin: 0;
    writing-mode: vertical-lr;
    direction: rtl;
    -webkit-appearance: slider-vertical;
    appearance: slider-vertical;
    accent-color: #d7d7d7;
    cursor: pointer;
}

.video-stop-button::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 9px;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.9);
}

.video-content-time {
    flex: 0 0 auto;
    min-width: 116px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .video-content-card {
        height: min(76vh, 520px);
    }

    .video-content-control-row {
        gap: 8px;
        padding: 0 12px;
    }

    .video-seek-button {
        width: 34px;
    }

    .video-content-time {
        min-width: 86px;
        font-size: 12px;
    }

}
