﻿/* Local video cards */
.post-thumb-video-local:after {
    display: none !important;
}

.post-thumb-video-local {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: 25px;
    background: #1a1a1a;
}

.post-thumb-video-local .video-preview,
.post-thumb-video-local .video-player-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.post-thumb-video-local .video-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-thumb-video-local .video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border: none;
    border-radius: 50%;
    background: rgba(237, 32, 36, 0.92);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}

.post-thumb-video-local .video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: #c41a1d;
}

.post-thumb-video-local .mondef-video {
    width: 100%;
    height: calc(100% - 36px);
    object-fit: contain;
    background: #000;
    display: block;
    cursor: pointer;
}

.post-thumb-video-local .video-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
    background: linear-gradient(to bottom, #ece9d8, #d4d0c8);
    border-top: 1px solid #808080;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 11px;
    color: #000;
    box-sizing: border-box;
}

.post-thumb-video-local .vc-btn {
    width: 26px;
    height: 24px;
    min-width: 26px;
    padding: 0;
    border: 1px solid #808080;
    border-radius: 2px;
    background: linear-gradient(to bottom, #fff 0%, #e8e8e8 50%, #d0d0d0 100%);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #000;
}

.post-thumb-video-local .vc-btn:hover {
    background: linear-gradient(to bottom, #fff 0%, #f0f0f0 50%, #e0e0e0 100%);
}

.post-thumb-video-local .vc-btn:active {
    background: #c0c0c0;
    border-color: #404040;
}

.post-thumb-video-local .vc-seek {
    flex: 1;
    min-width: 40px;
    height: 18px;
    margin: 0 4px;
    accent-color: #ED2024;
}

.post-thumb-video-local .vc-volume {
    width: 52px;
    height: 18px;
    accent-color: #ED2024;
}

.post-thumb-video-local .vc-time {
    white-space: nowrap;
    min-width: 72px;
    text-align: center;
    font-size: 10px;
    padding: 0 2px;
}

.post-thumb-video-local .vc-close {
    margin-left: auto;
}

.post-thumb-video-local .vc-expand-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.post-thumb-video-local .video-player-wrap.is-active .vc-expand-btn {
    display: flex;
}

.post-thumb-video-local .vc-expand-btn:hover {
    background: rgba(237, 32, 36, 0.9);
    transform: scale(1.05);
}

/* Full-size video modal */
.mondef-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.mondef-video-modal[hidden] {
    display: none !important;
}

.mondef-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.mondef-video-modal-dialog {
    position: relative;
    z-index: 1;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 1px solid #808080;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.mondef-video-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: 1px solid #808080;
    border-radius: 2px;
    background: linear-gradient(to bottom, #fff 0%, #e8e8e8 50%, #d0d0d0 100%);
    color: #000;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mondef-video-modal-close:hover {
    background: #f0f0f0;
}

.mondef-video-modal-stage {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-width: 320px;
    min-height: 180px;
}

.mondef-video-modal-stage video {
    display: block;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 160px);
    width: auto;
    height: auto;
    cursor: pointer;
}

.mondef-video-modal-stage {
    cursor: pointer;
}

.mondef-video-modal-dialog.is-native-fullscreen,
.mondef-video-modal-dialog:fullscreen,
.mondef-video-modal-dialog:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    display: flex;
    flex-direction: column;
    background: #000;
    border: none;
}

.mondef-video-modal-dialog.is-native-fullscreen .mondef-video-modal-stage,
.mondef-video-modal-dialog:fullscreen .mondef-video-modal-stage,
.mondef-video-modal-dialog:-webkit-full-screen .mondef-video-modal-stage {
    flex: 1;
    min-height: 0;
    width: 100%;
}

.mondef-video-modal-dialog.is-native-fullscreen .mondef-video-modal-stage video,
.mondef-video-modal-dialog:fullscreen .mondef-video-modal-stage video,
.mondef-video-modal-dialog:-webkit-full-screen .mondef-video-modal-stage video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mondef-video-modal-dialog.is-native-fullscreen .mondef-video-modal-controls,
.mondef-video-modal-dialog:fullscreen .mondef-video-modal-controls,
.mondef-video-modal-dialog:-webkit-full-screen .mondef-video-modal-controls {
    flex-shrink: 0;
    width: 100%;
}

.mondef-video-modal .mondef-video-modal-controls {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-height: 48px;
    height: 48px;
    flex-shrink: 0;
    padding: 0 12px;
    gap: 8px;
    box-sizing: border-box;
    background: #1a1a1a;
    border-top: 1px solid #404040;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #ffffff;
    visibility: visible;
    opacity: 1;
}

.mondef-video-modal .mondef-video-modal-controls .vc-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.mondef-video-modal .mondef-video-modal-controls .vc-btn i {
    color: #ffffff;
}

.mondef-video-modal .mondef-video-modal-controls .vc-btn:hover {
    background: #ED2024;
    border-color: #ED2024;
}

.mondef-video-modal .mondef-video-modal-controls .vc-btn:active {
    background: #c41a1d;
    border-color: #c41a1d;
}

.mondef-video-modal .mondef-video-modal-controls .vc-seek {
    flex: 1;
    min-width: 100px;
    height: 6px;
    margin: 0 6px;
    accent-color: #ED2024;
    cursor: pointer;
}

.mondef-video-modal .mondef-video-modal-controls .vc-volume {
    width: 80px;
    height: 6px;
    accent-color: #ED2024;
    cursor: pointer;
    flex-shrink: 0;
}

.mondef-video-modal .mondef-video-modal-controls .vc-time {
    min-width: 90px;
    font-size: 12px;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.mondef-video-modal .mondef-video-modal-controls .vc-seek::-webkit-slider-runnable-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

.mondef-video-modal .mondef-video-modal-controls .vc-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    margin-top: -4px;
    background: #ED2024;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
}

.mondef-video-modal .mondef-video-modal-controls .vc-volume::-webkit-slider-runnable-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

.mondef-video-modal .mondef-video-modal-controls .vc-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    margin-top: -4px;
    background: #ED2024;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
}

.mondef-video-modal .mondef-video-modal-controls .vc-seek::-moz-range-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

.mondef-video-modal .mondef-video-modal-controls .vc-seek::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #ED2024;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
}

.mondef-video-modal .mondef-video-modal-controls .vc-volume::-moz-range-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
}

.mondef-video-modal .mondef-video-modal-controls .vc-volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #ED2024;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
}
