/* Genel Ayarlar */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Player Container */
.player-container {
    width: 80%;
    max-width: 800px;
    background: none;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    background: black;
}

video {
    width: 100%;
    display: block;
}

/* Overlay */
.overlay {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 10;
}

.video-wrapper:hover .overlay {
    opacity: 0;
}

/* Kontroller */
.controls {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7); /* Şeffaf siyah arka plan */
    border-radius: 50px; /* Yuvarlak köşeler */
    position: absolute;
    bottom: 3px; /* Alt bardan biraz yukarı taşı */
    width: calc(100% - 0px); /* Kenarlardan boşluk bırak */
    z-index: 20;
    box-sizing: border-box;
    gap: 10px;
    opacity: 1;
    transition: opacity 0.3s ease, background 0.3s ease; /* Yumuşak geçiş efekti */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Hafif gölge efekti */
}

/* Butonlar */
.button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background: #ff00ff56;
    transform: scale(1.1);
}

/* Skip Buttons */
.skip-button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.skip-button:hover {
    background: #ff00ff56;
    transform: scale(1.1);
}

/* Progress Bar */
.progress-bar {
    flex: 1;
    height: 10px;
    background: #555;
    cursor: pointer;
    position: relative;
    margin: 0 10px;
    border-radius: 5px;
    overflow: visible;
    transition: height 0.125s ease;
}

.progress-bar:hover {
    height: 15px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #ff00ff, #800080);
    width: 0;
    position: relative;
    border-radius: 5px;
}

.thumb {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
}

.progress-tooltip {
    position: absolute;
    top: -5px; /* Tooltip'u yukarı taşı */
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    display: none;
    z-index: 2000; /* Tooltip'un diğer elemanların üstünde görünmesini sağla */
    transform: translate(-50%, -150%);
}

.progress-thumbnail {
    position: absolute;
    bottom: 100%;
    left: 0;
    transform: translate(-50%, -10px);
    width: 240px; /* Genişlik artırıldı */
    height: 135px; /* 16:9 oranı için yükseklik artırıldı */
    background: black;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    display: none;
    z-index: 1000;
    pointer-events: none;
}

/* Zaman Göstergesi */
.time-display {
    font-size: 14px;
    margin-right: 10px;
}

/* Ses Kontrolü */
.volume {
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible; /* Çubuğun ve hover efektinin tam görünmesini sağla */
    width: 40px; /* Başlangıç genişliği */
    transition: width 0.3s ease; /* Genişleme animasyonu */
    z-index: 10; /* Hover efektinin diğer elemanların üstünde görünmesini sağla */
}

.volume:hover {
    width: 150px; /* Butonun üzerine gelindiğinde genişlik artır */
    z-index: 15; /* Hover durumunda daha yüksek bir z-index ver */
}

.volume-slider {
    display: block;
    position: absolute;
    top: 44%;
    left: 50px; /* Çubuğun sağa doğru kaymasını sağla */
    transform: translateY(-50%); /* Dikey olarak ortala */
    background: linear-gradient(90deg, #ff00ff, #800080); /* Progress bar ile aynı renkler */
    border-radius: 5px;
    z-index: 15;
    width: 100px; /* Çubuğun uzunluğu */
    height: 8px; /* Çubuğun kalınlığı */
    cursor: pointer;
    outline: none;
    opacity: 0; /* Başlangıçta görünmez */
    visibility: hidden; /* Görünürlüğü tamamen kaldır */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Görünürlük ve opaklık geçişi */
}

.volume:hover .volume-slider {
    opacity: 1; /* Hover durumunda görünür yap */
    visibility: visible; /* Görünürlüğü aktif et */
}

/* Dropdown */
.dropdown {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.dropdown:focus {
    outline: none;
    border-color: #007bff;
}

.dropdown:hover {
    background: #007bff33;
    color: #007bff;
}

/* Pause Indicator */
.pause-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 20px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.8); /* Daha geniş ve belirgin gölge efekti */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 30;
}

.pause-indicator.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Ayarlar Menüsü */
.settings {
    position: relative;
}

.settings-menu {
    display: none;
    position: absolute;
    bottom: 50px;
    right: 0px; 
    background: #333;
    border: 1px solid #555;
    border-radius: 10px; /* Daha yuvarlak köşeler */
    padding: 15px; /* Daha geniş iç boşluk */
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    width: 80px; /* Sabit genişlik */
    text-align: left; /* İçeriği sola hizala */
    font-size: 14px; /* Yazı boyutunu düzenle */
    line-height: 1.8; /* Satır aralığını artır */
}

.settings-menu label {
    display: block; /* Her elemanı alt alta yerleştir */
    margin-bottom: 10px; /* Elemanlar arasında boşluk bırak */
    color: #fff;
    font-size: 14px;
    font-weight: bold; /* Yazıları vurgula */
}

.settings-menu select {
    display: block; /* Kutucukları alt alta yerleştir */
    width: 100%; /* Genişliği tam yap */
    background: #444; /* Daha koyu arka plan */
    color: #fff;
    border: 1px solid #666;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
    margin-bottom: 15px; /* Alt elemanlarla arada boşluk bırak */
}

.settings-menu select:focus {
    outline: none;
    border-color: #ff00ff;
}

.settings-menu select:hover {
    background: #555;
    color: #fff;
}

#settingsButton {
    font-size: 22px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease; /* transform geçişi eklendi */
    transition: transform 0.3s ease; /* Dönme efekti için geçiş */
}

#settingsButton:hover {
    background: #ff00ff56;
    transform: scale(1.1); /* Hover durumunda büyüme efekti */
}

#settingsButton:active {
    transform: rotate(90deg); /* Sağa dönme efekti */
}

#settingsButton.active {
    transform: rotate(90deg); /* Sağa dönme efekti */
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .player-container {
        width: 100%;
        height: auto;
    }

    .controls {
        flex-direction: column;
        gap: 5px;
    }

    .button {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .progress-bar {
        height: 8px;
    }

    .settings-menu {
        display: none;
        width: 200px; /* Daha dar genişlik */
    }
}