/* Enhanced Custom Instagram-style Video Player */
.custom-video-player {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    /* Disable mobile touch highlights */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    transition: all 0.3s ease;
}

/* Mini Player Mode */
.custom-video-player.mini-player {
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    width: 300px !important;
    height: 169px !important; /* 16:9 aspect ratio */
    z-index: 9999 !important;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-video-player.mini-player:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .custom-video-player.mini-player {
        width: 250px !important;
        height: 141px !important;
        bottom: 10px;
        right: 10px;
    }
}

.custom-video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    cursor: pointer;
    /* Disable mobile touch highlights */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

/* Hide all native video controls */
.custom-video-player video::-webkit-media-controls {
    display: none !important;
}

.custom-video-player video::-webkit-media-controls-panel {
    display: none !important;
}

.custom-video-player video::-webkit-media-controls-play-button {
    display: none !important;
}

.custom-video-player video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.custom-video-player video::-webkit-media-controls-overlay-play-button {
    display: none !important;
}

.custom-video-player video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
}

.custom-video-player video::-moz-media-controls {
    display: none !important;
}

.custom-video-player video::-ms-media-controls {
    display: none !important;
}

/* Play/Pause Overlay (Instagram style) - DISABLED */
.video-play-overlay {
    display: none !important; /* Removed center overlay */
}

/* Basic progress bar removed - using only enhanced interactive progress bar */

/* Video Controls - Above progress bar */
.video-controls {
    position: absolute;
    bottom: 30px; /* Progress bar'ın üzerinde */
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 8;
    /* Disable mobile touch highlights */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.video-controls.show {
    opacity: 1;
}

.video-left-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}

.video-play-pause-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    z-index: 10;
}

.video-play-pause-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.video-play-pause-btn svg {
    width: 16px;
    height: 16px;
    fill: white;
    margin-left: 2px; /* Slight offset for play button */
}

.video-play-pause-btn.playing svg {
    margin-left: 0; /* No offset for pause icon */
}

/* Volume Controls */
.video-volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    margin-right: 8px;
    margin-left: -18px;
}

.video-volume-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.video-volume-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.video-volume-btn svg {
    width: 14px;
    height: 14px;
    fill: white;
}

.video-volume-slider-container {
    width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.video-volume-container:hover .video-volume-slider-container,
.video-volume-slider-container.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.video-volume-slider {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.video-volume-track {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.video-volume-fill {
    height: 100%;
    background: #fff;
    width: 80%;
    transition: width 0.1s linear;
    border-radius: 2px;
}

.video-volume-handle {
    position: absolute;
    top: 50%;
    left: 80%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    transition: all 0.2s ease;
    opacity: 0;
}

.video-volume-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
}

.video-volume-slider:hover .video-volume-handle,
.video-volume-slider-container.active .video-volume-handle {
    opacity: 1;
}

.video-time {
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 10px;
    background: transparent;
    min-width: 65px;
    text-align: center;
    margin-right: 12px;
    margin-left: 1px !important;
}

.video-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

/* Speed Control */
.video-speed-btn {
    background: transparent;
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 40px;
    text-align: center;
}

.video-speed-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.video-speed-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 20;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.video-speed-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.video-speed-option {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    min-width: 50px;
    text-align: center;
}

.video-speed-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.video-speed-option.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
}

/* Picture-in-Picture Button */
.video-pip-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    z-index: 10;
}

.video-pip-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.video-pip-btn.active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
}

.video-pip-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Mini Player Button */
.video-mini-player-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    z-index: 10;
}

.video-mini-player-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.video-mini-player-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.video-fullscreen-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    /* Mobile touch optimization */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Ensure button is above everything */
    position: relative;
    z-index: 10;
}

.video-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.video-fullscreen-btn svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

/* Overflow Menu Button (3 dots) */
.video-overflow-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    z-index: 10;
    margin-right: 15px;
    margin-left: -7px;
}

.video-overflow-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.video-overflow-btn svg {
    width: 14px;
    height: 14px;
    fill: white;
}

/* Overflow Menu Dropdown */
.video-overflow-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 20;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    min-width: 180px;
}

.video-overflow-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.video-overflow-option {
    background: transparent;
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.video-overflow-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.video-overflow-option svg {
    width: 18px;
    height: 18px;
    fill: white;
    stroke: white;
    flex-shrink: 0;
}

/* Gesture Overlay */
.video-gesture-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(10px);
    z-index: 15;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
    min-width: 120px;
}

.video-gesture-overlay.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Keyboard Shortcuts Help */
.video-shortcuts-help {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 24px;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    z-index: 20;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: all 0.3s ease;
    pointer-events: none;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.video-shortcuts-help.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

.shortcuts-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
    color: #fff;
}

.shortcuts-list {
    display: grid;
    gap: 8px;
}

.shortcuts-list > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.shortcuts-list kbd {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Default: Use overflow menu for better space management */
.video-speed-btn,
.video-pip-btn,
.video-mini-player-btn {
    display: none;
}

/* Desktop'ta fullscreen butonunu göster */
.video-fullscreen-btn {
    display: flex;
    order: 10; /* Volume'dan sonra, overflow'dan önce */
    margin-right: 15px;
}

/* Volume container order ayarı */
.video-volume-container {
    order: 9;
}

/* Overflow button order ayarı - sola kaydır */
.video-overflow-btn {
    display: flex;
    order: 11;
    margin-right: 2px;
}

/* Desktop için tüm kontrol butonlarını küçült */
@media (min-width: 769px) {
    /* Play/Pause button küçült */
    .video-play-pause-btn {
        width: 30px !important;
        height: 30px !important;
    }
    
    .video-play-pause-btn svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    /* Volume button küçült */
    .video-volume-btn {
        width: 30px !important;
        height: 30px !important;
    }
    
    .video-volume-btn svg {
        width: 11px !important;
        height: 11px !important;
    }
    
    /* Fullscreen button küçült */
    .video-fullscreen-btn {
        width: 30px !important;
        height: 30px !important;
    }
    
    .video-fullscreen-btn svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    /* Overflow button (3 nokta) küçült */
    .video-overflow-btn {
        width: 30px !important;
        height: 30px !important;
    }
    
    .video-overflow-btn svg {
        width: 11px !important;
        height: 11px !important;
    }
    
    /* Timer yazısını küçült */
    .video-time {
        font-size: 10px !important;
        padding: 4px 8px !important;
        min-width: 55px !important;
    }
}

/* Fullscreen mode - Hide individual buttons since they're in overflow menu */
@media (min-width: 1200px) {
    .custom-video-player:fullscreen .video-speed-btn,
    .custom-video-player:fullscreen .video-pip-btn,
    .custom-video-player:fullscreen .video-mini-player-btn {
        display: none;
    }
    
    .custom-video-player:fullscreen .video-fullscreen-btn {
        display: flex;
    }
}

/* Fullscreen'de left controls'taki elementler için stiller */
.custom-video-player:fullscreen .video-left-controls .video-time {
    margin-left: 15px !important;
    margin-right: 0 !important;
    font-size: 14px;
    padding: 8px 12px;
}

/* Fullscreen'de buton boyutlarını piyasa standartlarına uygun yap */
.custom-video-player:fullscreen .video-play-pause-btn {
    width: 36px !important;
    height: 36px !important;
    background: transparent !important;
}

.custom-video-player:fullscreen .video-play-pause-btn svg {
    width: 16px !important;
    height: 16px !important;
}

.custom-video-player:fullscreen .video-play-pause-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.custom-video-player:fullscreen .video-fullscreen-btn {
    width: 36px !important;
    height: 36px !important;
    background: transparent !important;
}

.custom-video-player:fullscreen .video-fullscreen-btn svg {
    width: 18px !important;
    height: 18px !important;
}

.custom-video-player:fullscreen .video-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.custom-video-player:fullscreen .video-volume-btn {
    width: 36px !important;
    height: 36px !important;
    background: transparent !important;
}

.custom-video-player:fullscreen .video-volume-btn svg {
    width: 14px !important;
    height: 14px !important;
}

.custom-video-player:fullscreen .video-volume-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Fullscreen'de sağ taraftaki düzen: volume → fullscreen → overflow */
.custom-video-player:fullscreen .video-volume-container {
    order: 9;
    margin-right: 8px !important;
}

.custom-video-player:fullscreen .video-fullscreen-btn {
    order: 10;
    margin-right: 8px !important;
}

.custom-video-player:fullscreen .video-overflow-btn {
    order: 11;
    background: transparent !important;
}

.custom-video-player:fullscreen .video-overflow-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .video-play-pause-btn {
        width: 36px;
        height: 36px;
        background: transparent !important;
    }
    
    /* Larger touch area for mobile - keeps original 48px touch target */
    .video-play-pause-btn::before {
        content: '';
        position: absolute;
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
        border-radius: 50%;
    }
    
    /* Touch feedback - show background when pressed */
    .video-play-pause-btn:active {
        background: rgba(255, 255, 255, 0.25) !important;
    }
    
    .video-play-pause-btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* Mobilde fullscreen butonunu göster ve doğru konumlandır */
    .video-fullscreen-btn {
        display: flex !important;
        width: 36px;
        height: 36px;
        background: transparent !important;
        order: 1; /* Volume'dan sonra gelecek */
        margin-right: 12px; /* Sola kaydır */
    }
    
    /* Larger touch area for mobile - keeps original 48px touch target */
    .video-fullscreen-btn::before {
        content: '';
        position: absolute;
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
        border-radius: 50%;
    }
    
    /* Touch feedback - show background when pressed */
    .video-fullscreen-btn:active {
        background: rgba(255, 255, 255, 0.25) !important;
    }
    
    .video-fullscreen-btn svg {
        width: 14px;
        height: 14px;
    }
    
    /* Volume container'ın order'ını ayarla */
    .video-volume-container {
        order: 0;
        margin-right: 18px;
    }
    
    /* Overflow button'ın order'ını ayarla */
    .video-overflow-btn {
        order: 2; /* Fullscreen'den sonra gelecek */
        display: flex !important;
    }
    
    .video-time {
        font-size: 11px;
        padding: 5px 8px;
        min-width: 60px;
        margin-right: 8px;
        margin-left: -10px !important;
    }
    
    .video-controls {
        padding: 12px;
        bottom: 25px; /* Progress bar'ın üzerinde */
    }
    
    .video-progress-enhanced {
        bottom: 0; /* En altta */
        padding: 6px 12px; /* Mobile için daha küçük padding */
    }
    
    /* Hide volume slider on mobile */
    .video-volume-slider-container {
        display: none;
    }
    
    .video-volume-btn {
        width: 36px;
        height: 36px;
        background: transparent !important;
    }
    
    /* Larger touch area for volume button */
    .video-volume-btn::before {
        content: '';
        position: absolute;
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
        border-radius: 50%;
    }
    
    /* Touch feedback for volume button */
    .video-volume-btn:active {
        background: rgba(255, 255, 255, 0.25) !important;
    }
    
    .video-volume-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .video-speed-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 35px;
    }
    
    .video-pip-btn,
    .video-mini-player-btn {
        width: 36px;
        height: 36px;
        background: transparent !important;
    }
    
    /* Touch feedback for PiP and mini player buttons */
    .video-pip-btn:active,
    .video-mini-player-btn:active {
        background: rgba(255, 255, 255, 0.25) !important;
    }
    
    .video-pip-btn svg,
    .video-mini-player-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .video-overflow-btn {
        width: 36px;
        height: 36px;
        margin-right: 0;
        background: transparent !important;
    }
    
    /* Larger touch area for overflow button */
    .video-overflow-btn::before {
        content: '';
        position: absolute;
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
        border-radius: 50%;
    }
    
    /* Touch feedback for overflow button */
    .video-overflow-btn:active {
        background: rgba(255, 255, 255, 0.25) !important;
    }
    
    .video-overflow-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .video-overflow-menu {
        min-width: 160px;
        padding: 6px;
    }
    
    .video-overflow-option {
        padding: 10px 12px;
        font-size: 13px;
        gap: 10px;
    }
    
    .video-overflow-option svg {
        width: 16px;
        height: 16px;
    }
    
    .video-shortcuts-help {
        max-width: 250px;
        padding: 20px;
    }
    
    .shortcuts-title {
        font-size: 16px;
    }
    
    .shortcuts-list > div {
        font-size: 13px;
    }
    
    .shortcuts-list kbd {
        font-size: 11px;
        padding: 3px 6px;
    }
}

.video-fullscreen-btn svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

/* Enhanced Progress Bar (Interactive scrub slider) */
.video-progress-enhanced {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    z-index: 50; /* Parent container'ı da yükselt */
    opacity: 0; /* Varsayılan olarak gizli */
    transition: opacity 0.3s ease;
    cursor: pointer;
    padding: 8px 15px; /* İç boşluk ekle */
}

/* Progress bar show class ile görünür olur */
.video-progress-enhanced.show {
    opacity: 1;
}

.video-progress-track {
    position: relative;
    width: 100%;
    height: 5px; /* Biraz daha kalın yap */
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
    transition: height 0.2s ease;
    overflow: hidden;
}

/* Buffered Progress Bar for Enhanced Slider */
.video-progress-enhanced .video-buffered-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    width: 0%;
    transition: width 0.3s ease;
    z-index: 1;
    border-radius: 3px;
}

.video-progress-enhanced.scrubbing .video-progress-track {
    height: 7px;
}

.video-progress-enhanced.scrubbing .video-progress-bar {
    height: 7px;
}

@media (min-width: 769px) {
    .video-progress-enhanced:hover .video-progress-track {
        height: 7px;
    }
    
    .video-progress-enhanced.scrubbing .video-progress-track {
        height: 9px;
    }
}

.video-progress-enhanced .video-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 5px; /* Track ile aynı yükseklik */
    background: #fff;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear, height 0.2s ease;
    z-index: 2;
}

.video-progress-enhanced.scrubbing .video-progress-bar {
    transition: width 0.05s linear, height 0.2s ease;
}

.video-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .video-progress-handle {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
}

.video-progress-enhanced:hover .video-progress-handle,
.video-progress-enhanced.scrubbing .video-progress-handle {
    opacity: 1;
}

.video-progress-handle:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.video-progress-handle:active,
.video-progress-handle.dragging {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.video-progress-tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transform: translateX(-50%);
    margin-bottom: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    z-index: 99999 !important; /* Çok yüksek z-index */
}

.video-progress-enhanced.scrubbing .video-progress-tooltip,
.video-progress-enhanced:hover .video-progress-tooltip {
    opacity: 1;
}

@media (min-width: 769px) {
    .video-progress-enhanced:hover .video-progress-tooltip {
        opacity: 1;
    }
}

/* Loading Indicator */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.video-loading.show {
    opacity: 1;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* TAM EKRAN VIDEO BOYUTLANDIRMA DÜZELTMESİ */
.custom-video-player:fullscreen {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: #121212 !important; /* Koyu gri arkaplan (Netflix/YouTube standardı) */
}

.custom-video-player:fullscreen video {
    width: auto !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    object-fit: contain !important;
    position: relative !important;
}

/* Alternatif renk seçenekleri: */
/* 
.custom-video-player:fullscreen {
    background: #121212 !important;  // Koyu gri
    background: #1a1a1a !important;  // Daha koyu gri
    background: transparent !important;  // Şeffaf
}
*/ 

.custom-video-player:fullscreen .video-controls {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent) !important;
}

.custom-video-player:fullscreen .video-progress-enhanced {
    background: rgba(255,255,255,0.1) !important;
}

.custom-video-player:fullscreen .video-progress-track {
    background: rgba(255, 255, 255, 0.3) !important;
}

.custom-video-player:fullscreen .video-progress-bar {
    background: rgb(255, 255, 255) !important; /* YouTube kırmızısı */
}

.custom-video-player:fullscreen .video-play-pause-btn {
    background: rgba(30,30,30,0.8) !important;
    color: #fff !important;
}

.custom-video-player:fullscreen .video-time {
    color: #aaa !important; /* Gri metin */
} 