/**
 * Pro Video Player - Premium Style
 * Professional video player with !important rules to override theme conflicts
 */

:root {
    --pvp-primary: #ed1b23 !important;
    --pvp-primary-hover: #ed1b23 !important;
    --pvp-secondary: #1a1a2e !important;
    --pvp-bg-dark: #0f0f1a !important;
    --pvp-bg-controls: rgba(0, 0, 0, 0.85) !important;
    --pvp-text: #ffffff !important;
    --pvp-text-muted: #a0a0a0 !important;
    --pvp-border: rgba(255, 255, 255, 0.1) !important;
    --pvp-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    --pvp-radius: 8px !important;
    --pvp-transition: all 0.2s ease !important;
}

/* ===== CONTAINER ===== */
.pvp-container {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: var(--pvp-bg-dark) !important;
    border-radius: var(--pvp-radius) !important;
    overflow: hidden !important;
    box-shadow: var(--pvp-shadow) !important;
    box-sizing: border-box !important;
}

.pvp-container *,
.pvp-container *::before,
.pvp-container *::after {
    box-sizing: border-box !important;
}

.pvp-container.pvp-theater-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    border-radius: 0 !important;
    background: #000 !important;
}

.pvp-player-wrapper {
    position: relative !important;
    width: 100% !important;
    padding-top: 56.25% !important;
    /* 16:9 aspect ratio */
    background: #000 !important;
}

.pvp-theater-mode .pvp-player-wrapper {
    padding-top: 0 !important;
    height: 100% !important;
}

/* ===== VIDEO ELEMENT ===== */
.pvp-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000 !important;
}

/* ===== CONTROLS ===== */
.pvp-controls {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%) !important;
    /* Minimal padding */
    padding: 4px 8px 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    z-index: 2500 !important;
}

/* Drag (scrubbing) sırasında orta play butonu görünmesin */
.pvp-container.pvp-scrubbing .pvp-big-play-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Sadece class ile kontrol - hover mobilde sorun çıkarıyor */
.pvp-container.pvp-controls-visible .pvp-controls {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Desktop hover - sadece fine pointer cihazlarda */
@media (hover: hover) and (pointer: fine) {
    .pvp-container:hover .pvp-controls {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ===== PROGRESS CONTAINER ===== */
.pvp-progress-container {
    position: relative !important;
    height: 18px !important;
    margin-bottom: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
}

.pvp-progress-bar {
    position: relative !important;
    width: 100% !important;
    height: 3px !important;
    background: transparent !important;
    border-radius: 2px !important;
    overflow: visible !important;
    transition: height 0.2s ease !important;
}

.pvp-progress-bar::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    height: 3px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border-radius: 2px !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

.pvp-progress-container:hover .pvp-progress-bar {
    height: 5px !important;
}

/* ===== HEATMAP ===== */
.pvp-heatmap {
    position: absolute !important;
    bottom: 100% !important;
    left: 0 !important;
    right: 0 !important;
    height: 24px !important;
    display: flex !important;
    align-items: flex-end !important;
    opacity: 0 !important;
    transition: var(--pvp-transition) !important;
    pointer-events: none !important;
}

.pvp-progress-container:hover .pvp-heatmap {
    opacity: 1 !important;
}

/* Heatmap katmanini tamamen kapat (hover cizgisi olusmasin) */
.pvp-heatmap,
.pvp-progress-container:hover .pvp-heatmap,
.pvp-progress-container:active .pvp-heatmap {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
}

.pvp-heatmap-bar {
    flex: 1 !important;
    background: var(--pvp-primary) !important;
    opacity: 0.6 !important;
    min-height: 0 !important;
    transition: height 0.1s !important;
}

/* ===== PROGRESS INDICATORS ===== */
/* Yüklenen (buffered) kısım - GRİ */
.pvp-progress-buffered {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 0 !important;
    height: 3px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 2px !important;
    transition: width 0.1s linear !important;
    z-index: 1 !important;
    width: 0% !important;
}

.pvp-progress-container:hover .pvp-progress-buffered {
    height: 5px !important;
}

/* İzlenen (played) kısım - KIRMIZI (üstte, izlendikçe doluyor) */
.pvp-progress-played {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 0 !important;
    height: 3px !important;
    background: #ed1b23 !important;
    border-radius: 2px !important;
    will-change: width !important;
    transition: width 0.05s linear !important;
    z-index: 2 !important;
}

.pvp-progress-container:hover .pvp-progress-played {
    background: #ed1b23 !important;
    height: 5px !important;
}

.pvp-progress-played::after {
    content: '' !important;
    position: absolute !important;
    right: -6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 12px !important;
    height: 12px !important;
    background: #ed1b23 !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(237, 27, 35, 0.4) !important;
    opacity: 0 !important;
    transition: opacity 0.2s !important;
}

.pvp-progress-container:hover .pvp-progress-played::after {
    background: #ed1b23 !important;
    box-shadow: 0 2px 10px rgba(237, 27, 35, 0.48) !important;
    opacity: 1 !important;
    width: 14px !important;
    height: 14px !important;
    right: -7px !important;
}

/* ===== THUMBNAIL PREVIEW ===== */
.pvp-thumbnail-preview {
    position: absolute !important;
    bottom: 35px !important;
    transform: translateX(-50%) !important;
    background: transparent !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s ease !important;
    pointer-events: none !important;
    z-index: 999 !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    max-width: 220px !important;
    max-height: 124px !important;
}

.pvp-thumbnail-preview.pvp-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Thumbnail image - dinamik boyut (JS tarafından ayarlanır) */
.pvp-thumbnail-image {
    min-width: 80px !important;
    min-height: 0 !important;
    background-size: auto !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
    display: block !important;
    /* Boyutlar ve background-position JS tarafından inline style ile ayarlanır */
}

/* Portrait (dikey) video thumbnail'leri için */
.pvp-thumbnail-preview.pvp-portrait {
    /* Dikey videolar için daha yüksekte göster */
    bottom: 30px !important;
    max-height: none !important;
    max-width: none !important;
}

.pvp-thumbnail-time {
    position: absolute !important;
    bottom: 4px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 3px 6px !important;
    font-size: 11px !important;
    font-weight: 300 !important;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.35) !important;
    border-radius: 3px !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    backdrop-filter: blur(6px) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    white-space: nowrap !important;
    letter-spacing: 0.3px !important;
}

/* ===== CONTROLS BAR ===== */
.pvp-controls-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
}

.pvp-controls-left,
.pvp-controls-right {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* ===== BUTTONS ===== */
.pvp-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.pvp-btn:hover {
    background: rgba(237, 27, 35, 0.22) !important;
    color: #ed1b23 !important;
    box-shadow: 0 0 0 1px rgba(237, 27, 35, 0.32) inset !important;
    transform: scale(1.1) !important;
}

.pvp-btn svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
}

/* ===== PLAY/PAUSE ICONS ===== */
.pvp-icon-pause,
.pvp-icon-fullscreen-exit,
.pvp-icon-volume-muted {
    display: none !important;
}

.pvp-container.pvp-playing .pvp-icon-play {
    display: none !important;
}

.pvp-container.pvp-playing .pvp-icon-pause {
    display: block !important;
}

.pvp-container.pvp-fullscreen .pvp-icon-fullscreen {
    display: none !important;
}

.pvp-container.pvp-fullscreen .pvp-icon-fullscreen-exit {
    display: block !important;
}

.pvp-container.pvp-muted .pvp-icon-volume-high {
    display: none !important;
}

.pvp-container.pvp-muted .pvp-icon-volume-muted {
    display: block !important;
}

/* ===== VOLUME CONTROL ===== */
.pvp-volume-control {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.pvp-volume-slider {
    width: 0 !important;
    opacity: 0 !important;
    transition: width 0.2s, opacity 0.2s !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 4px !important;
    background: transparent !important;
    border-radius: 2px !important;
    border: none !important;
    outline: none !important;
}

.pvp-volume-control:hover .pvp-volume-slider,
.pvp-volume-slider:focus {
    width: 100px !important;
    opacity: 1 !important;
}

/* Volume slider track - Webkit (Chrome, Safari) */
.pvp-volume-slider::-webkit-slider-runnable-track {
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(to right, #ed1b23 0%, #ed1b23 var(--volume-percent, 100%), rgba(255, 255, 255, 0.3) var(--volume-percent, 100%), rgba(255, 255, 255, 0.3) 100%) !important;
    border-radius: 2px !important;
    border: none !important;
}

/* Volume slider track - Firefox */
.pvp-volume-slider::-moz-range-track {
    width: 100% !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 2px !important;
    border: none !important;
}

.pvp-volume-slider::-moz-range-progress {
    height: 4px !important;
    background: #ed1b23 !important;
    border-radius: 2px !important;
}

.pvp-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 12px !important;
    height: 12px !important;
    background: #ed1b23 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    border: none !important;
    margin-top: -4px !important;
}

.pvp-volume-slider::-moz-range-thumb {
    width: 12px !important;
    height: 12px !important;
    background: #ed1b23 !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer !important;
}

/* ===== TIME DISPLAY ===== */
.pvp-time {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 13px !important;
    color: #ffffff !important;
    margin-left: 8px !important;
    font-variant-numeric: tabular-nums !important;
}

.pvp-time-separator {
    color: #a0a0a0 !important;
}

/* ===== SPEED & QUALITY CONTROL ===== */
.pvp-speed-control,
.pvp-quality-control {
    position: relative !important;
}

.pvp-speed-btn,
.pvp-quality-btn {
    font-size: 12px !important;
    font-weight: 600 !important;
    width: auto !important;
    padding: 0 8px !important;
    color: #ffffff !important;
    background: transparent !important;
}

.pvp-speed-menu,
.pvp-quality-menu {
    position: absolute !important;
    bottom: 100% !important;
    right: 0 !important;
    background: #1a1a2e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    padding: 4px !important;
    min-width: 80px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: var(--pvp-transition) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    z-index: 100 !important;
}

.pvp-speed-control:hover .pvp-speed-menu,
.pvp-quality-control:hover .pvp-quality-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.pvp-speed-option,
.pvp-quality-option {
    display: block !important;
    width: 100% !important;
    padding: 8px 12px !important;
    text-align: left !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 13px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    transition: var(--pvp-transition) !important;
}

.pvp-speed-option:hover,
.pvp-quality-option:hover {
    background: rgba(237, 27, 35, 0.22) !important;
    color: #ed1b23 !important;
}

.pvp-speed-option.pvp-active,
.pvp-quality-option.pvp-active {
    background: #ed1b23 !important;
    color: #fff !important;
}

/* ===== LOADER (HARDENED) ===== */
.pvp-loader {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 72px !important;
    height: 72px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
    z-index: 2050 !important;
    pointer-events: none !important;
}

.pvp-loader::before,
.pvp-loader::after,
.pvp-loader-ring::before,
.pvp-loader-ring::after {
    content: none !important;
    display: none !important;
}

.pvp-container.pvp-loading-active .pvp-loader {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Loading aktifken big play button gizle */
.pvp-container.pvp-loading-active .pvp-big-play-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.pvp-loader-ring {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background:
        conic-gradient(from 0deg,
            rgba(237, 27, 35, 0.98) 0deg 105deg,
            rgba(255, 255, 255, 0.28) 105deg 360deg) !important;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)) !important;
    mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)) !important;
    animation: pvp-loader-spin 0.95s linear infinite !important;
    -webkit-animation: pvp-loader-spin 0.95s linear infinite !important;
}

@keyframes pvp-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes pvp-loader-spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

/* Legacy class kill switch */
.pvp-loading,
.pvp-spinner {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    animation: none !important;
}

/* ===== BIG PLAY BUTTON - GRİ/BEYAZ TONLAR ===== */
.pvp-big-play-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 70px !important;
    height: 70px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    /* Beyaz */
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 2100 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    opacity: 0.9 !important;
}

.pvp-big-play-btn svg {
    width: 32px !important;
    height: 32px !important;
    fill: #ed1b23 !important;
    /* Merkez ikon */
    margin-left: 0 !important;
}

.pvp-big-play-btn .pvp-center-play-icon {
    margin-left: 4px !important;
}

.pvp-big-play-btn .pvp-center-pause-icon {
    display: none !important;
}

.pvp-container.pvp-show-center-pause .pvp-big-play-btn .pvp-center-play-icon {
    display: block !important;
}

.pvp-container.pvp-show-center-pause .pvp-big-play-btn .pvp-center-pause-icon {
    display: none !important;
}

.pvp-big-play-btn:hover {
    background: #FFFFFF !important;
    /* Tam beyaz */
    transform: translate(-50%, -50%) scale(1.15) !important;
    box-shadow: 0 8px 34px rgba(0, 0, 0, 0.44), 0 0 18px rgba(237, 27, 35, 0.45) !important;
    opacity: 1 !important;
}

.pvp-big-play-btn:hover svg {
    fill: #ed1b23 !important;
}

.pvp-container.pvp-playing .pvp-big-play-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.pvp-container.pvp-intro-active .pvp-big-play-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ===== END SCREEN CARDS ===== */
.pvp-endscreen {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2600 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.78)) !important;
    padding: 14px !important;
    display: none !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.pvp-endscreen.pvp-visible {
    display: flex !important;
}

.pvp-container.pvp-ended .pvp-controls,
.pvp-container.pvp-ended .pvp-big-play-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.pvp-endscreen-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

.pvp-endscreen-title {
    margin: 0 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.pvp-endscreen-replay {
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 8px 14px !important;
    cursor: pointer !important;
}

.pvp-endscreen-replay:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.pvp-endscreen-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    min-height: 0 !important;
}

.pvp-endscreen-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
    text-align: left !important;
    padding: 0 !important;
    cursor: pointer !important;
}

.pvp-endscreen-card:hover {
    border-color: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-1px) !important;
}

.pvp-endscreen-thumb {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    background: #111 !important;
    background-size: cover !important;
    background-position: center !important;
}

.pvp-endscreen-thumb-img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    background: #111 !important;
}

.pvp-endscreen-card-title {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    padding: 20px 10px 8px !important;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.08) 28%,
            rgba(0, 0, 0, 0.42) 68%,
            rgba(0, 0, 0, 0.86) 100%) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85) !important;
    pointer-events: none !important;
}

.pvp-endscreen-empty {
    grid-column: 1 / -1 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13px !important;
    padding: 14px !important;
    border: 1px dashed rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px !important;
}

.pvp-endscreen-debug {
    grid-column: 1 / -1 !important;
    margin-top: -6px !important;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 8px !important;
    background: rgba(0, 0, 0, 0.28) !important;
}

/* ===== ERROR STATE ===== */
.pvp-error {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px !important;
    background: #1a1a2e !important;
    color: #ffffff !important;
    border-radius: var(--pvp-radius) !important;
    text-align: center !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .pvp-controls-bar {
        flex-wrap: nowrap !important;
    }

    /* Mobil için DAHA BÜYÜK butonlar - Apple/Google guideline 44-48px */
    .pvp-btn {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
    }

    .pvp-btn svg {
        width: 26px !important;
        height: 26px !important;
    }

    /* Progress bar daha kalın - daha kolay dokunma */
    .pvp-progress-bar {
        height: 5px !important;
    }

    .pvp-progress-container {
        height: 32px !important;
        padding: 12px 0 !important;
    }

    .pvp-progress-container:hover .pvp-progress-bar,
    .pvp-progress-container:active .pvp-progress-bar {
        height: 6px !important;
    }

    .pvp-time {
        font-size: 13px !important;
    }

    .pvp-big-play-btn {
        width: 80px !important;
        height: 80px !important;
    }

    .pvp-big-play-btn svg {
        width: 36px !important;
        height: 36px !important;
    }

    /* Volume slider mobilde daha geniş */
    .pvp-volume-control:hover .pvp-volume-slider,
    .pvp-volume-control:active .pvp-volume-slider,
    .pvp-volume-slider:focus {
        width: 80px !important;
    }

    /* Controls mobilde MİNİMAL - video alanını maksimize et */
    .pvp-controls {
        padding: 5px 6px 2px !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 80%, transparent 100%) !important;
    }

    /* Butonlar minimal ama hala dokunulabilir */
    .pvp-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    .pvp-btn svg {
        width: 22px !important;
        height: 22px !important;
    }

    /* Time text küçük */
    .pvp-time {
        font-size: 11px !important;
    }

    /* Progress bar touch alanı daha büyük */
    .pvp-progress-container {
        padding: 14px 0 !important;
    }

    .pvp-endscreen {
        padding: 10px !important;
        gap: 8px !important;
    }

    .pvp-endscreen-title {
        font-size: 14px !important;
    }

    .pvp-endscreen-replay {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }

    .pvp-endscreen-grid {
        gap: 6px !important;
    }

    .pvp-endscreen-card-title {
        font-size: 11px !important;
        min-height: 34px !important;
        padding: 6px !important;
    }

    .pvp-thumbnail-preview {
        max-width: 170px !important;
        max-height: 96px !important;
    }

    .pvp-thumbnail-preview.pvp-portrait {
        max-width: none !important;
        max-height: none !important;
    }
}

/* ===== FULLSCREEN ===== */
.pvp-container:fullscreen,
.pvp-container:-webkit-full-screen,
.pvp-container:-moz-full-screen,
.pvp-container:-ms-fullscreen,
.pvp-container.pvp-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    background: #000 !important;
    max-width: none !important;
}

.pvp-container:fullscreen .pvp-player-wrapper,
.pvp-container:-webkit-full-screen .pvp-player-wrapper,
.pvp-container:-moz-full-screen .pvp-player-wrapper,
.pvp-container:-ms-fullscreen .pvp-player-wrapper,
.pvp-container.pvp-fullscreen .pvp-player-wrapper {
    padding-top: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.pvp-container:fullscreen .pvp-video,
.pvp-container.pvp-fullscreen .pvp-video {
    height: 100% !important;
    width: 100% !important;
}

.pvp-container:fullscreen .pvp-controls,
.pvp-container.pvp-fullscreen .pvp-controls {
    z-index: 2147483647 !important;
    /* Max z-index for fullscreen */
}

/* ===== DOUBLE-TAP SKIP FEEDBACK (Mobile) ===== */
.pvp-doubletap-feedback {
    pointer-events: none !important;
}

@keyframes pvpDoubleTapRipple {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    60% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ===== ACCESSIBILITY ===== */
.pvp-btn:focus-visible {
    outline: 2px solid #ed1b23 !important;
    outline-offset: 2px !important;
}

/* ===== HIDE NATIVE CONTROLS ===== */
.pvp-video::-webkit-media-controls {
    display: none !important;
}

.pvp-video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* ===== OVERRIDE VIDEOJS IF PRESENT ===== */
.pvp-container .video-js,
.pvp-container .vjs-control-bar,
.pvp-container .vjs-big-play-button {
    display: none !important;
}

/* VideoJS loading spinner pseudo halkalari beyaz cizgi/kare artefakti uretebiliyor */
.pvp-container .vjs-loading-spinner,
.pvp-container .vjs-loading-spinner::before,
.pvp-container .vjs-loading-spinner::after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    border: 0 !important;
    box-shadow: none !important;
    animation: none !important;
}

/* Player wrapper'a dis scriptlerden eklenen yabanci overlay katmanlarini kes */
.pvp-player-wrapper > :not(.pvp-video):not(.pvp-intro-overlay):not(.pvp-controls):not(.pvp-loader):not(.pvp-big-play-btn):not(.pvp-endscreen):not(.pvp-debug-band) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* VTT preview acik kalsin; yalnizca legacy player cizgi/overlay artefaktlarini bastir */
.pvp-container .vjs-text-track-display,
.pvp-container .vjs-text-track-cue,
.pvp-container .vjs-text-track-settings,
.pvp-container .vjs-control-text,
.pvp-container .vjs-caption-settings {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Bazi temalar pseudo-element ile cizgi basabiliyor */
.pvp-container .pvp-player-wrapper::before,
.pvp-container .pvp-player-wrapper::after {
    content: none !important;
    display: none !important;
}

/* Metadata cue satirlari ekrana cizgi gibi yansimasin */
.pvp-container .pvp-video::cue {
    color: transparent !important;
    background: transparent !important;
    text-shadow: none !important;
}

/* ===== OVERRIDE THEME PLAYER STYLES ===== */
.responsive-player .pvp-container {
    position: relative !important;
}

.responsive-player .pvp-controls {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)) !important;
}

.responsive-player .pvp-btn {
    background: transparent !important;
    color: #ffffff !important;
}

.responsive-player .pvp-btn:hover {
    background: rgba(237, 27, 35, 0.22) !important;
    color: #ed1b23 !important;
}

.responsive-player .pvp-big-play-btn {
    background: rgba(237, 27, 35, 0.9) !important;
}

/* Timeline renkleri - İZLENEN KIRMIZI, KALAN GRİ */
.responsive-player .pvp-progress-played,
.pvp-container .pvp-progress-played,
.pvp-player-wrapper .pvp-progress-played,
div.pvp-progress-played {
    background: #ed1b23 !important;
    background-color: #ed1b23 !important;
}

.responsive-player .pvp-progress-buffered,
.pvp-container .pvp-progress-buffered,
.pvp-player-wrapper .pvp-progress-buffered,
div.pvp-progress-buffered {
    background: rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    width: 100% !important;
}

.responsive-player .pvp-progress-played::after,
.pvp-container .pvp-progress-played::after {
    background: #ed1b23 !important;
}

/* Volume slider agresif override */
.responsive-player .pvp-volume-slider,
.pvp-container .pvp-volume-slider,
input.pvp-volume-slider[type="range"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
}

.responsive-player .pvp-volume-slider::-webkit-slider-runnable-track,
.pvp-container .pvp-volume-slider::-webkit-slider-runnable-track,
input.pvp-volume-slider[type="range"]::-webkit-slider-runnable-track {
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(to right, #ed1b23 0%, #ed1b23 var(--volume-percent, 100%), rgba(255, 255, 255, 0.3) var(--volume-percent, 100%), rgba(255, 255, 255, 0.3) 100%) !important;
    border-radius: 2px !important;
    border: none !important;
}

.responsive-player .pvp-volume-slider::-webkit-slider-thumb,
.pvp-container .pvp-volume-slider::-webkit-slider-thumb,
input.pvp-volume-slider[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 12px !important;
    height: 12px !important;
    background: #ed1b23 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    border: none !important;
    margin-top: -4px !important;
}

.responsive-player .pvp-volume-slider::-moz-range-track,
.pvp-container .pvp-volume-slider::-moz-range-track {
    width: 100% !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 2px !important;
}

.responsive-player .pvp-volume-slider::-moz-range-progress,
.pvp-container .pvp-volume-slider::-moz-range-progress {
    height: 4px !important;
    background: #ed1b23 !important;
    border-radius: 2px !important;
}

.responsive-player .pvp-volume-slider::-moz-range-thumb,
.pvp-container .pvp-volume-slider::-moz-range-thumb {
    width: 12px !important;
    height: 12px !important;
    background: #ed1b23 !important;
    border-radius: 50% !important;
    border: none !important;
}

/* ===== AGGRESSIVE THEME OVERRIDE ===== */
/* Force red theme - override any theme colors */
.pvp-container .pvp-big-play-btn,
.responsive-player .pvp-big-play-btn,
div.pvp-big-play-btn,
button.pvp-big-play-btn {
    background: rgba(237, 27, 35, 0.9) !important;
    background-color: #ed1b23 !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.pvp-container .pvp-big-play-btn:hover,
.responsive-player .pvp-big-play-btn:hover {
    background: rgba(237, 27, 35, 1) !important;
    background-color: #ed1b23 !important;
    box-shadow: 0 8px 34px rgba(0, 0, 0, 0.44), 0 0 18px rgba(237, 27, 35, 0.45) !important;
}

.pvp-container .pvp-big-play-btn svg,
.responsive-player .pvp-big-play-btn svg {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* Force button colors */
.pvp-container .pvp-btn,
.responsive-player .pvp-btn,
div.pvp-container button.pvp-btn,
.pvp-controls-bar .pvp-btn {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    border: none !important;
}

.pvp-container .pvp-btn:hover,
.responsive-player .pvp-btn:hover {
    background: rgba(237, 27, 35, 0.22) !important;
    color: #ed1b23 !important;
}

.pvp-container .pvp-btn svg,
.responsive-player .pvp-btn svg {
    fill: currentColor !important;
}

/* Override HD/Speed buttons */
.pvp-container .pvp-speed-btn,
.pvp-container .pvp-quality-btn,
.responsive-player .pvp-speed-btn,
.responsive-player .pvp-quality-btn {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    border: none !important;
}

/* Force controls background */
.pvp-container .pvp-controls,
.responsive-player .pvp-controls {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)) !important;
}

/* Thumbnail container fix */
.pvp-thumbnail-image {
    overflow: hidden !important;
}

/* ===== FINAL TIMELINE OVERRIDE (YOUTUBE-LIKE HOVER) ===== */
.pvp-container .pvp-progress-bar::before,
.responsive-player .pvp-progress-bar::before,
.pvp-player-wrapper .pvp-progress-bar::before {
    height: 3px !important;
    background: rgba(255, 255, 255, 0.24) !important;
}

.pvp-container .pvp-progress-buffered,
.responsive-player .pvp-progress-buffered,
.pvp-player-wrapper .pvp-progress-buffered,
div.pvp-progress-buffered {
    height: 3px !important;
    background: rgba(255, 255, 255, 0.34) !important;
    background-color: rgba(255, 255, 255, 0.34) !important;
}

.pvp-container .pvp-progress-played,
.responsive-player .pvp-progress-played,
.pvp-player-wrapper .pvp-progress-played,
div.pvp-progress-played {
    height: 3px !important;
    background: #ed1b23 !important;
    background-color: #ed1b23 !important;
}

.pvp-container .pvp-progress-played::after,
.responsive-player .pvp-progress-played::after {
    background: #ed1b23 !important;
    box-shadow: 0 2px 10px rgba(237, 27, 35, 0.45) !important;
}

.pvp-container .pvp-progress-container:hover .pvp-progress-bar::before,
.responsive-player .pvp-progress-container:hover .pvp-progress-bar::before,
.pvp-player-wrapper .pvp-progress-container:hover .pvp-progress-bar::before {
    height: 6px !important;
}

.pvp-container .pvp-progress-container:hover .pvp-progress-buffered,
.responsive-player .pvp-progress-container:hover .pvp-progress-buffered,
.pvp-player-wrapper .pvp-progress-container:hover .pvp-progress-buffered {
    height: 6px !important;
}

.pvp-container .pvp-progress-container:hover .pvp-progress-played,
.responsive-player .pvp-progress-container:hover .pvp-progress-played,
.pvp-player-wrapper .pvp-progress-container:hover .pvp-progress-played {
    height: 6px !important;
}

/* ===== CONTROL UI SIZE BOOST (+30%) ===== */
/* Only player-inner controls: icons, time text, speed/quality labels */
.pvp-controls .pvp-btn,
.pvp-controls-bar .pvp-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
}

.pvp-controls .pvp-btn svg,
.pvp-controls-bar .pvp-btn svg {
    width: 26px !important;
    height: 26px !important;
}

.pvp-controls .pvp-time,
.pvp-controls .pvp-current-time,
.pvp-controls .pvp-duration,
.pvp-controls .pvp-time-separator {
    font-size: 17px !important;
    line-height: 1 !important;
}

.pvp-controls .pvp-speed-btn,
.pvp-controls .pvp-quality-btn {
    font-size: 16px !important;
    min-width: 42px !important;
    padding: 0 10px !important;
}

.pvp-controls .pvp-speed-option,
.pvp-controls .pvp-quality-option {
    font-size: 17px !important;
}

/* Volume slider touch/readability */
.pvp-controls .pvp-volume-slider::-webkit-slider-runnable-track {
    height: 5px !important;
}

.pvp-controls .pvp-volume-slider::-webkit-slider-thumb {
    width: 16px !important;
    height: 16px !important;
    margin-top: -6px !important;
}

.pvp-controls .pvp-volume-slider::-moz-range-track,
.pvp-controls .pvp-volume-slider::-moz-range-progress {
    height: 5px !important;
}

.pvp-controls .pvp-volume-slider::-moz-range-thumb {
    width: 16px !important;
    height: 16px !important;
}

@media (max-width: 768px) {
    .pvp-controls .pvp-btn,
    .pvp-controls-bar .pvp-btn {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
    }

    .pvp-controls .pvp-btn svg,
    .pvp-controls-bar .pvp-btn svg {
        width: 29px !important;
        height: 29px !important;
    }

    .pvp-controls .pvp-time,
    .pvp-controls .pvp-current-time,
    .pvp-controls .pvp-duration,
    .pvp-controls .pvp-time-separator {
        font-size: 14px !important;
    }

    .pvp-controls .pvp-speed-btn,
    .pvp-controls .pvp-quality-btn {
        font-size: 14px !important;
        min-width: 40px !important;
        padding: 0 8px !important;
    }

    .pvp-controls .pvp-speed-option,
    .pvp-controls .pvp-quality-option {
        font-size: 15px !important;
    }
}
