/* ==========================================================================
   ALFA KEŞİF - ÖZELLEŞTİRİLEBİLİR ÖZEL VİDEO OYNATICI (AlfaVideoPlayer)
   Renkleri ve görünümü :root altındaki CSS değişkenlerinden özelleştirebilirsiniz.
   ========================================================================== */

:root {
    --alfa-player-accent: #8b5cf6;       /* Ana vurgu rengi (Mor) */
    --alfa-player-accent-2: #00b4db;     /* İkincil vurgu (Camgöbeği) */
    --alfa-player-bg: #030712;           /* Oynatıcı arka planı */
    --alfa-player-controls-bg: rgba(10, 15, 30, 0.86);
    --alfa-player-text: #f8fafc;
}

.alfa-player-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--alfa-player-bg);
    overflow: hidden;
    user-select: none;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alfa-player-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

/* Sağ Üst Marka Filigranı (Özelleştirilebilir) */
.alfa-player-watermark {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(248, 250, 252, 0.85);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.alfa-player-watermark i {
    color: var(--alfa-player-accent-2);
}

/* Ortadaki Büyük Oynat/Duraklat Butonu */
.alfa-player-center-btn {
    position: absolute;
    z-index: 5;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.88), rgba(0, 180, 219, 0.88));
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(139, 92, 246, 0.45);
    transition: transform 0.2s ease, opacity 0.25s ease;
}

.alfa-player-center-btn:hover {
    transform: scale(1.08);
}

.alfa-player-wrapper.is-playing .alfa-player-center-btn {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

/* Yükleniyor & Hata Durumu */
.alfa-player-overlay-state {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(3, 7, 18, 0.82);
    color: var(--alfa-player-text);
    text-align: center;
    padding: 20px;
}

.alfa-player-overlay-state.active {
    display: flex;
}

.alfa-player-overlay-state i {
    font-size: 2rem;
    color: var(--alfa-player-accent-2);
}

.alfa-player-error-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.alfa-player-error-btn {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.alfa-player-error-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Alt Kontrol Çubuğu */
.alfa-player-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 7;
    padding: 28px 16px 12px;
    background: linear-gradient(to top, var(--alfa-player-controls-bg) 0%, rgba(10, 15, 30, 0.55) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.alfa-player-wrapper.is-playing.controls-hidden .alfa-player-controls,
.alfa-player-wrapper.is-playing.controls-hidden .alfa-player-watermark {
    opacity: 0;
    pointer-events: none;
}

/* İlerleme Çubuğu (Seek Bar) */
.alfa-progress-wrap {
    position: relative;
    width: 100%;
    height: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.alfa-progress-track {
    position: relative;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: height 0.15s ease;
}

.alfa-progress-wrap:hover .alfa-progress-track {
    height: 7px;
}

.alfa-progress-buffer {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: rgba(255, 255, 255, 0.3);
}

.alfa-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--alfa-player-accent), var(--alfa-player-accent-2));
    border-radius: 999px;
}

/* Buton Satırı */
.alfa-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.alfa-controls-left,
.alfa-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alfa-ctrl-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.06);
    color: var(--alfa-player-text);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.alfa-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.15);
}

.alfa-ctrl-btn:active {
    transform: scale(0.94);
}

.alfa-time-display {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    font-variant-numeric: tabular-nums;
    margin-left: 4px;
    white-space: nowrap;
}

.alfa-volume-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.alfa-volume-slider {
    width: 68px;
    accent-color: var(--alfa-player-accent-2);
    cursor: pointer;
    height: 4px;
}

.alfa-speed-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    padding: 5px 8px;
    cursor: pointer;
    outline: none;
}

.alfa-speed-select option {
    background: #0f172a;
    color: #fff;
}

@media (max-width: 640px) {
    .alfa-player-controls {
        padding: 20px 10px 8px;
        gap: 6px;
    }
    .alfa-controls-row {
        gap: 6px;
    }
    .alfa-controls-left {
        gap: 4px;
        min-width: 0;
        flex: 1 1 auto;
    }
    .alfa-controls-right {
        gap: 4px;
        flex-shrink: 0;
    }
    .alfa-volume-slider {
        display: none;
    }
    .alfa-player-center-btn {
        width: 54px;
        height: 54px;
        font-size: 20px;
    }
    .alfa-ctrl-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
        border-radius: 7px;
        flex-shrink: 0;
    }
    .alfa-time-display {
        font-size: 10.5px;
        margin-left: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .alfa-speed-select {
        font-size: 10px;
        padding: 4px 5px;
    }
}

@media (max-width: 390px) {
    .alfa-back-btn,
    .alfa-fwd-btn {
        display: none;
    }
}

