/* ===== TEMEL AYARLAR ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

/* ===== KONTAINER ===== */
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ===== VIDEO OYNATICI ALANI ===== */
.player-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    position: relative;
    overflow: hidden;
}

#youtube-player {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== KONTROL PANELİ ===== */
.control-panel {
    background: #212121;
    padding: 20px;
    height: auto;
    max-height: 35vh;
    overflow-y: auto;
    border-top: 2px solid #333;
}

/* ===== ARAMA KUTUSU ===== */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #444;
    border-radius: 8px;
    background: #333;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

.quality-select {
    min-width: 110px;
    padding: 12px 10px;
    font-size: 15px;
    border: 2px solid #444;
    border-radius: 8px;
    background: #333;
    color: #fff;
    outline: none;
}

.quality-select:focus {
    border-color: #e82127;
}

#search-input:focus {
    border-color: #e82127;
}

#search-input::placeholder {
    color: #999;
}

/* ===== BUTONLAR ===== */
.btn-primary,
.btn-control {
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    touch-action: manipulation;
    user-select: none;
}

.btn-primary {
    background: #e82127;
    color: #fff;
    min-width: 150px;
}

.btn-primary:active {
    background: #cc1a1f;
    transform: scale(0.98);
}

.btn-control {
    background: #333;
    color: #fff;
    border: 1px solid #444;
    min-height: 50px;
    min-width: 100%;
    text-align: left;
    padding: 12px 20px;
    margin-bottom: 8px;
}

.btn-control:active {
    background: #444;
    transform: scale(0.98);
}

/* ===== KONTROL GRUPLARı ===== */
.player-controls,
.skip-controls,
.volume-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;

body.jsmpeg-seek-disabled .skip-controls {
    display: none;
}
}

.skip-controls .btn-control {
    grid-column: auto;
}

.volume-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.volume-controls #mute-btn {
    min-width: 150px;
    margin: 0;
}

/* ===== VOLUME SLIDER ===== */
.volume-slider {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #444;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #e82127;
    cursor: pointer;
    border-radius: 50%;
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #e82127;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

#volume-display {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
}

/* ===== BİLGİ PANELİ ===== */
.info-panel {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #e82127;
}

.info-panel p {
    margin: 5px 0;
    font-size: 14px;
}

#current-video-title {
    font-weight: 600;
    font-size: 15px;
    color: #e82127;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#player-status {
    color: #aaa;
    font-size: 13px;
}

/* ===== RESPONSIVE TASARIM ===== */

/* Tesla Screen (17") */
@media (max-width: 1920px) {
    .btn-primary,
    .btn-control {
        font-size: 15px;
        padding: 14px 22px;
    }
    
    .control-panel {
        padding: 15px;
        max-height: 40vh;
    }
}

/* Tablet ve Küçük Ekranlar */
@media (max-width: 1024px) {
    .player-controls,
    .skip-controls {
        grid-template-columns: 1fr;
    }
    
    .btn-control {
        min-width: 100%;
    }
    
    .control-panel {
        max-height: 50vh;
    }
}

/* ===== FULLSCREEN MODU ===== */
#youtube-player:fullscreen {
    width: 100vw;
    height: 100vh;
}

iframe:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
}

/* Fullscreen'de kontrol panelini gizle */
.container:fullscreen .control-panel,
body:fullscreen .control-panel {
    display: none;
}

/* ===== ACCESSIBILITY ===== */
button:focus {
    outline: 3px solid #e82127;
    outline-offset: 2px;
}

/* ===== SCROLLBAR TASARIMI ===== */
.control-panel::-webkit-scrollbar {
    width: 8px;
}

.control-panel::-webkit-scrollbar-track {
    background: #2a2a2a;
}

.control-panel::-webkit-scrollbar-thumb {
    background: #e82127;
    border-radius: 4px;
}

.control-panel::-webkit-scrollbar-thumb:hover {
    background: #cc1a1f;
}
