/* Timarhane FM - Modern YouTube Oynatıcı Stilleri v2.0 */

#timarhane-player-container {
    position: relative !important; /* Progress bar için gerekli */
    width: 100%;
    aspect-ratio: 16 / 9; /* 16:9 en-boy oranını koru */
    background-color: #000;
    border-radius: 6px; /* Çok hafif yuvarlatılmış köşeler */
    overflow: hidden; /* KRITIK: Köşelerin yuvarlaklığını koru */
    /* Taşıma sırasında smooth geçiş */
    transition: all 0.3s ease;
    /* Hardware acceleration */
    transform: translateZ(0);
    will-change: transform;
    /* İframe tam oturması için ENHANCED */
    display: block;
    isolation: isolate;
    /* Container yüksekliğini sabitlemek için */
    contain: layout style paint;
    /* Z-index overlay butonlar için */
    z-index: 1000;
    /* KULLANICI MÜDAHALESİNİ ENGELLE - CONTAINER SEVİYESİ */
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

#youtube-player {
    width: 100%;
    height: 100%;
    /* Iframe için optimize et */
    border: none;
    display: block;
    /* İframe tam oturması için */
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 6px; /* Container ile aynı yuvarlaklık */
    overflow: hidden;
    /* KULLANICI MÜDAHALESİNİ ENGELLE - PLAYER SEVİYESİ */
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
    z-index: 1 !important; /* YouTube player en altta */
    position: relative;
}

/* YouTube iframe'ini tam otur - ENHANCED + MAXIMUM PROTECTED */
#youtube-player iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 6px !important; /* Hafif yuvarlatılmış köşeler */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    display: block !important;
    /* İframe'in kendi köşelerini de yuvarlatacak - ENHANCED */
    clip-path: inset(0 round 6px) !important;
    /* YouTube video elementini de yuvarlatmak için */
    -webkit-clip-path: inset(0 round 6px) !important;
    /* Video elementine direkt etki */
    object-fit: cover !important;
    /* Browser compat için */
    -webkit-border-radius: 6px !important;
    -moz-border-radius: 6px !important;
    /* İframe içindeki video için ek kurallar */
    overflow: hidden !important;
    /* KULLANICI MÜDAHALESİNİ TAMAMEN ENGELLE - MAXIMUM PROTECTION */
    pointer-events: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: none !important;
    /* İframe'i tamamen etkileşimden kopar */
    visibility: visible !important;
    /* İframe'in z-index'ini düşür */
    z-index: 1 !important;
    position: relative;
}

/* YouTube iframe içindeki video elementini hedefle */
#youtube-player iframe video,
#youtube-player iframe .html5-main-video {
    border-radius: 6px !important;
    -webkit-border-radius: 6px !important;
    -moz-border-radius: 6px !important;
    clip-path: inset(0 round 6px) !important;
    -webkit-clip-path: inset(0 round 6px) !important;
    object-fit: cover !important;
}

/* Katmanlar (Overlay) - UNMUTE OVERLAY KALDIRILDI */
#player-unmute-overlay {
    display: none !important; /* UNMUTE OVERLAY TAMAMEN GİZLİ */
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#player-status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8); /* Daha koyu */
    color: #fff;
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Daha iyi metin görünürlüğü */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* UNMUTE OVERLAY TAMAMEN KALDIRILDI */

#player-status-overlay {
    z-index: 10;
    opacity: 0; /* Başlangıçta gizli */
    visibility: hidden;
    pointer-events: none; /* Tıklanamaz */
}

/* Overlay görünürlük durumları - SADECE STATUS OVERLAY */
#player-status-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* UNMUTE OVERLAY KURALLAR KALDIRILDI */

/* UNMUTE BUTTON TAMAMEN KALDIRILDI */
#unmute-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* PULSING GLOW EFFECT - SES AÇMA DÜĞMESİ ANİMASYONU */
.pulsing-glow-effect {
    position: relative;
    animation: pulsingGlow 2s infinite;
}

.pulsing-glow-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.6) 0%, rgba(0, 191, 255, 0.3) 50%, transparent 70%);
    border-radius: inherit;
    transform: translate(-50%, -50%);
    animation: pulsingRing 2s infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes pulsingGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(0, 191, 255, 0.8), 0 0 12px rgba(0, 191, 255, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 191, 255, 1), 0 0 40px rgba(0, 191, 255, 0.8), 0 0 60px rgba(0, 191, 255, 0.4);
    }
}

@keyframes pulsingRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Mobil için optimize edilmiş animasyon */
@media (max-width: 767px) {
    .pulsing-glow-effect::before {
        background: radial-gradient(circle, rgba(0, 191, 255, 0.7) 0%, rgba(0, 191, 255, 0.4) 50%, transparent 70%);
    }
    
    @keyframes pulsingGlow {
        0%, 100% {
            box-shadow: 0 0 5px rgba(0, 191, 255, 0.9), 0 0 8px rgba(0, 191, 255, 0.7);
        }
        50% {
            box-shadow: 0 0 20px rgba(0, 191, 255, 1), 0 0 30px rgba(0, 191, 255, 0.9), 0 0 40px rgba(0, 191, 255, 0.6);
        }
    }
    
    @keyframes pulsingRing {
        0% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }
        50% {
            transform: translate(-50%, -50%) scale(1.3);
            opacity: 0.7;
        }
        100% {
            transform: translate(-50%, -50%) scale(1.6);
            opacity: 0;
        }
    }
}

/* Durum Metni - İYİLEŞTİRİLMİŞ */
#player-status-text {
    font-size: 18px;
    padding: 20px;
    text-align: center;
    line-height: 1.4;
    max-width: 80%;
    /* Animasyon için */
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Web görünümü için (masaüstü) - SABİT 16:9 FORMAT */
@media (min-width: 768px) {
    #timarhane-player-container {
        /* Sabit genişlik ve 16:9 aspect ratio */
        width: 100%;
        max-width: 800px; /* Maksimum genişlik sınırı */
        aspect-ratio: 16 / 9; /* Kesinlikle 16:9 oranını koru */
        height: auto; /* Height otomatik hesaplanacak */
        border-radius: 8px; /* Web'de biraz daha yuvarlatılmış */
        /* Genişlemenin önlenmesi için */
        flex-shrink: 0;
        overflow: hidden;
    }
    
    /* Web görünümünde container'ın kendisi de sınırlandırılmalı */
    #web-player-slot {
        width: 100%;
        max-width: 800px; /* Aynı maksimum genişlik */
        margin: 0 auto; /* Ortalanmış */
    }
    
    /* Web görünümünde iframe köşe yuvarlaklığı - ENHANCED */
    #youtube-player,
    #youtube-player iframe {
        border-radius: 8px !important;
        clip-path: inset(0 round 8px) !important;
        -webkit-clip-path: inset(0 round 8px) !important;
        overflow: hidden !important;
    }
    
    /* Web görünümünde iframe video elementleri */
    #youtube-player iframe video,
    #youtube-player iframe .html5-main-video {
        border-radius: 8px !important;
        -webkit-border-radius: 8px !important;
        -moz-border-radius: 8px !important;
        clip-path: inset(0 round 8px) !important;
        -webkit-clip-path: inset(0 round 8px) !important;
    }
    
    #unmute-button {
        font-size: 20px;
        padding: 18px 36px;
        border-radius: 14px;
    }
    
    #player-status-text {
        font-size: 20px;
        padding: 24px;
    }
}

/* Mobil Cihazlar için - İYİLEŞTİRİLMİŞ */
@media (max-width: 767px) and (hover: none) and (pointer: coarse) {
    #timarhane-player-container {
        border-radius: 4px; /* Mobilde çok hafif yuvarlaklık */
        /* Mobilde tam genişlik */
        margin: 0;
    }

    #youtube-player,
    #youtube-player iframe {
        border-radius: 4px !important;
        clip-path: inset(0 round 4px) !important;
    }

    #unmute-button {
        font-size: 16px;
        padding: 12px 24px;
        border-radius: 10px;
        min-width: 100px;
        /* Touch için daha büyük alan */
        min-height: 48px;
    }

    #player-status-text {
        font-size: 16px;
        padding: 16px;
    }
}

/* Mobil görünümde mobile-only göster */
@media (max-width: 767px) and (hover: none) and (pointer: coarse) {
    .mobile-only {
        display: block !important;
    }
    
    /* Mobil butonların görünürlüğü JavaScript tarafından kontrol edilir */
    #mobileSkipBtn.hidden,
    #overlaySongHistoryBtn.hidden,
    #overlayAutoPlaylistBtn.hidden,
    #overlayBlacklistBtn.hidden {
        display: none !important;
    }
}

/* Mobil cihazlarda mobile-player-overlay göster */
@media (max-width: 767px) and (hover: none) and (pointer: coarse) {
    #mobile-player-overlay {
        display: block !important;
    }
    
    .overlay-volume-controls {
        display: flex !important;
    }
}

/* Mobil cihazlarda overlay-song-info boyutları */
@media (max-width: 767px) and (hover: none) and (pointer: coarse) {
    .overlay-song-info {
        padding: 8px !important;
    }
    
    .overlay-request-queue {
        padding: 8px !important;
    }
    
    .song-times {
        font-size: 12px !important;
    }
    
    .current-time {
        font-size: 12px !important;
    }
    
    .total-time {
        font-size: 12px !important;
    }
}

/* Mobil cihazlarda YouTube player ayarları */
@media (max-width: 767px) and (hover: none) and (pointer: coarse) {
    #youtube-player {
        width: 100% !important;
        height: 56.25vw !important; /* 16:9 aspect ratio */
        max-height: 40vh !important;
    }
    
    #youtube-player iframe {
        width: 100% !important;
        height: 100% !important;
    }
    
    #mobile-player-overlay {
        display: block !important;
    }
    
    .overlay-request-queue {
        max-height: 200px !important;
    }
    
    .request-queue-list {
        max-height: 150px !important;
    }
    
    .request-item {
        padding: 6px !important;
        font-size: 12px !important;
    }
    
    .simpleSongModal {
        display: none !important;
    }
    
    .modal {
        display: none !important;
    }
    
    #youtube-player {
        pointer-events: auto !important;
    }
    
    #youtube-player iframe {
        pointer-events: auto !important;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 480px) {
    #timarhane-player-container {
        border-radius: 3px; /* Çok küçük ekranlarda minimal yuvarlaklık */
    }
    
    #youtube-player,
    #youtube-player iframe {
        border-radius: 3px !important;
        clip-path: inset(0 round 3px) !important;
    }
    
    #unmute-button {
        font-size: 14px;
        padding: 10px 20px;
        min-width: 90px;
        min-height: 44px;
    }
    
    #player-status-text {
        font-size: 14px;
        padding: 12px;
    }
}

/* Yüksek çözünürlük ekranlar için - SABİT 16:9 FORMAT */
@media (min-width: 1200px) {
    #timarhane-player-container {
        /* Daha büyük maksimum genişlik ama yine 16:9 */
        max-width: 900px; /* Biraz daha büyük maksimum */
        aspect-ratio: 16 / 9; /* Kesinlikle 16:9 oranını koru */
        height: auto; /* Height otomatik hesaplanacak */
        border-radius: 10px; /* Yüksek çözünürlükte hafif yuvarlaklık */
    }
    
    #youtube-player,
    #youtube-player iframe {
        border-radius: 10px !important;
        clip-path: inset(0 round 10px) !important;
    }
    
    #web-player-slot {
        max-width: 900px; /* Container da aynı maksimum genişlik */
    }
    
    #unmute-button {
        font-size: 22px;
        padding: 20px 40px;
        border-radius: 16px;
    }
    
    #player-status-text {
        font-size: 22px;
        padding: 28px;
    }
}

/* Performans optimizasyonları */
#timarhane-player-container * {
    box-sizing: border-box;
}

/* Loading state için */
#timarhane-player-container.loading {
    background: linear-gradient(45deg, #000, #333, #000);
    background-size: 200% 200%;
    animation: loadingGradient 2s ease infinite;
}

@keyframes loadingGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hata durumu için */
#timarhane-player-container.error {
    background-color: #1a1a1a;
    border: 2px solid #ff4444;
}

#timarhane-player-container.error #player-status-text {
    color: #ff6666;
}

/* WEB GÖRÜNÜMÜNDE YOUTUBE GENİŞLEME ÖNLEYİCİ KURALLAR */
@media (min-width: 768px) {
    /* Ana video column'ının genişlemesini önle */
    .yt-video-col {
        max-width: 800px;
        flex: 0 0 auto; /* Flex grow ve shrink'i devre dışı bırak */
    }
    
    /* Web player slot'ını sabitle */
    #web-player-slot {
        position: relative;
        display: block;
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        /* Container'ın dışına çıkmasını önle */
        overflow: hidden;
    }
    
    /* YouTube iframe'inin kendi kendine büyümesini önle */
    #timarhane-player-container iframe,
    #youtube-player iframe,
    #youtube-player {
        max-width: 100% !important;
        max-height: 100% !important;
        width: 100% !important;
        height: 100% !important;
        /* YouTube'un kendi stillerini override et */
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        border: none !important;
        border-radius: 8px !important; /* Web görünümünde hafif yuvarlaklık */
        clip-path: inset(0 round 8px) !important;
    }
    
    /* Container'ın kendisinin genişlemesini kesinlikle önle */
    #timarhane-player-container {
        position: relative !important;
        width: 100% !important;
        max-width: 800px !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        /* Flexbox ile büyümesini önle */
        flex: 0 0 auto !important;
        /* Grid ile büyümesini önle */
        grid-auto-rows: auto !important;
        /* Manuel boyutlandırmayı önle */
        resize: none !important;
    }
}

@media (min-width: 1200px) {
    .yt-video-col {
        max-width: 900px;
    }
    
    #web-player-slot {
        max-width: 900px;
    }
    
    #timarhane-player-container {
        max-width: 900px !important;
    }
}

/* Tablet görünümü için ek koruma */
@media (min-width: 768px) and (max-width: 1023px) {
    #timarhane-player-container {
        max-width: 700px !important;
        border-radius: 7px !important; /* Tablet için orta yuvarlaklık */
    }
    
    #web-player-slot {
        max-width: 700px;
    }
    
    .yt-video-col {
        max-width: 700px;
    }
    
    /* Tablet iframe köşe yuvarlaklığı */
    #timarhane-player-container iframe,
    #youtube-player iframe,
    #youtube-player {
        border-radius: 7px !important;
        clip-path: inset(0 round 7px) !important;
    }
}

/* ========================================= */
/* MOBİL OVERLAY KONTROLLER STİLLERİ */
/* ========================================= */

/* Sadece mobilde görünsün */
.mobile-only {
    display: none;
}

@media (max-width: 767px) {
    .mobile-only {
        display: block;
    }
}

/* Sadece web'de görünsün */
.web-only {
    display: none;
}

@media (min-width: 768px) {
    .web-only {
        display: block;
    }
}

/* ========================================= */
/* WEB OVERLAY KONTROLLER STİLLERİ */
/* ========================================= */

#web-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Overlay genel olarak tıklanamaz */
    z-index: 9998; /* Mobil'den bir alt - 9999 yerine 9998 */
}

/* Web Şarkı Bilgisi - Sol Üst - Tek Satır */
.web-overlay-song-info {
    position: absolute;
    top: 8px; /* Daha üst: 15px -> 8px */
    left: 8px; /* Daha sol: 15px -> 8px */
    background: transparent; /* Tamamen şeffaf zemin */
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    backdrop-filter: none; /* Blur efekti kaldırıldı */
    -webkit-backdrop-filter: none; /* Blur efekti kaldırıldı */
    max-width: calc(100% - 16px);
    pointer-events: auto;
    box-shadow: none; /* Gölge kaldırıldı */
    transition: all 0.3s ease;
}

.web-overlay-song-info:hover {
    background: transparent; /* Hover'da da şeffaf */
    transform: translateY(-2px);
    box-shadow: none; /* Hover'da da gölge yok */
}

/* Web Ana Satır - Hepsi Yan Yana */
.web-song-main-line {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
}

/* Web Avatar */
.web-requester-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.web-overlay-song-info:hover .web-requester-avatar {
    border-color: rgba(255, 255, 255, 0.6);
}

/* Web İsteyen Kişi Adı */
.web-requester-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    opacity: 0.95;
    flex-shrink: 0;
}

/* Web Ayırıcı */
.web-separator {
    color: #fff;
    opacity: 0.7;
    font-size: 14px;
    flex-shrink: 0;
}

/* Web Şarkı Adı */
.web-song-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* Web Zaman Bilgileri */
.web-song-times {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
}

.web-current-time {
    color: #00ff00; /* Neon yeşil - geriye sayaç */
    font-weight: 700;
}

.web-time-separator {
    color: #ffffff;
    opacity: 0.8;
}

.web-total-time {
    color: #00bfff; /* Neon mavi - toplam süre */
    font-weight: 700;
}

/* Web overlay responsive - büyük ekranlarda biraz daha büyük */
@media (min-width: 1200px) {
    .web-overlay-song-info {
        top: 10px; /* Daha üst: 20px -> 10px */
        left: 10px; /* Daha sol: 20px -> 10px */
        padding: 12px 18px;
        border-radius: 14px;
    }
    
    .web-song-main-line {
        gap: 12px;
    }
    
    .web-requester-avatar {
        width: 30px;
        height: 30px;
    }
    
    .web-requester-name {
        font-size: 16px;
    }
    
    .web-separator {
        font-size: 16px;
    }
    
    .web-song-title {
        font-size: 17px;
    }
    
    .web-song-times {
        font-size: 14px;
        padding: 5px 10px;
        border-radius: 10px;
    }
}

#mobile-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Overlay genel olarak tıklanamaz */
    z-index: 100000; /* YouTube player'ın üstünde - çok yüksek z-index */
}

/* Şarkı Bilgisi - Sol Üst - Tek Satır */
.overlay-song-info {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    max-width: calc(100% - 20px);
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 100001; /* En üstte */
}

/* Ana Satır - Hepsi Yan Yana */
.song-main-line {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
}

/* Avatar */
.requester-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

/* İsteyen Kişi Adı */
.requester-name {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    opacity: 0.9;
    flex-shrink: 0;
}

/* Ayırıcı */
.separator {
    color: #fff;
    opacity: 0.6;
    font-size: 12px;
    flex-shrink: 0;
}

/* Şarkı Adı */
.song-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff; /* Beyaz */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* Zaman Bilgileri */
.song-times {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 20.625px; /* %25 büyütüldü: 16.5px -> 20.625px */
    font-weight: 500;
    flex-shrink: 0;
}

.current-time {
    color: #00ff00; /* Neon yeşil - geriye sayaç */
    font-weight: 700;
}

.time-separator {
    color: #ffffff;
    opacity: 0.7;
}

.total-time {
    color: #00bfff; /* Neon mavi - toplam süre */
    font-weight: 700;
}

/* İstek Listesi - Orta Bölge */
.overlay-request-queue {
    position: absolute;
    left: 10px;
    right: 70px; /* Sağ ses kontrollerinden boşluk */
    top: 50px; /* Şarkı bilgisinden sonra */
    bottom: 80px; /* Alt butonlardan önce */
    background: rgba(0, 0, 0, 0.75);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    z-index: 100002; /* İstek listesi en üstte */
}

/* İstek Listesi İçeriği */
.request-queue-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 100003; /* Liste içeriği en üstte */
}

/* İstek Yok Mesajı */
.no-requests-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-style: italic;
    padding: 20px 10px;
    line-height: 1.4;
}

/* İstek Öğesi */
.request-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid #00ff00;
    transition: all 0.2s ease;
    cursor: pointer; /* Tıklanabilir olduğunu belirt */
    z-index: 100004; /* Her öğe tıklanabilir */
    position: relative;
}

.request-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

/* İstek Öğesi Avatar - Mobil */
#mobile-player-overlay .request-item .requester-avatar,
.request-item .requester-avatar {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    flex-shrink: 0 !important;
    display: block !important; /* Avatar'ın kesinlikle görünmesi için */
    opacity: 1 !important;
    visibility: visible !important;
}

/* İstek Öğesi Bilgileri */
.request-item-info {
    flex: 1;
    min-width: 0;
}

.request-item-title {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

.request-item-details {
    display: flex;
    align-items: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    white-space: nowrap;
}

.request-item-requester {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
}

.request-item-duration {
    color: #00bfff; /* Neon mavi - çalan şarkıdaki süre ile aynı */
    flex-shrink: 0;
    margin-left: 4px;
    font-weight: 500; /* Biraz kalın */
}

/* İstek Sırası */
.request-item-order {
    font-size: 10px;
    color: #00bfff;
    font-weight: 600;
    background: rgba(0, 191, 255, 0.2);
    padding: 2px 4px;
    border-radius: 4px;
    min-width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* Scroll Bar Gizle */
.request-queue-list::-webkit-scrollbar {
    display: none;
}

.request-queue-list {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

/* Kontrol Butonları - Sol Alt */
.overlay-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: calc(100% - 20px);
    z-index: 100005; /* Kontrol butonları en üstte */
}

.overlay-btn {
    width: 34px; /* Ses butonları ile aynı boyut */
    height: 34px; /* Ses butonları ile aynı boyut */
    min-width: 34px; /* Ses butonları ile aynı boyut */
    min-height: 34px; /* Ses butonları ile aynı boyut */
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px; /* Ses butonları ile aynı boyut */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 1px 4px rgba(255, 255, 255, 0.1);
    pointer-events: auto !important; /* Butonlar kesinlikle tıklanabilir */
    /* Tam yuvarlak için ek kurallar */
    aspect-ratio: 1/1; /* 1:1 oran zorla */
    flex-shrink: 0; /* Küçülmeyi önle */
    /* Touch optimizasyonları */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.overlay-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.15);
}

.overlay-btn:active {
    transform: scale(0.95);
}

/* Touch optimizasyonları */
.overlay-btn {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

/* Gizle butonu için özel stil - Beyaz Cam */
.overlay-btn.toggle-btn {
    background: rgba(255, 255, 255, 0.25); /* Beyaz cam */
}

.overlay-btn.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.4); /* Daha belirgin beyaz cam */
}

/* Ses Kontrol Butonları - Sağ Taraf */
.overlay-volume-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px; /* Skip butonuna uygun gap - 8px -> 6px */
    z-index: 100006; /* Ses kontrolleri en üstte */
    /* Tam oturma için padding ve margin sıfırla */
    padding: 0;
    margin: 0;
}

.volume-btn {
    width: 34px; /* %15 küçültüldü: 40px -> 34px */
    height: 34px; /* %15 küçültüldü: 40px -> 34px */
    min-width: 34px; /* %15 küçültüldü: 40px -> 34px */
    min-height: 34px; /* %15 küçültüldü: 40px -> 34px */
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px; /* %15 küçültüldü: 16px -> 14px */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 1px 4px rgba(255, 255, 255, 0.1);
    pointer-events: auto !important;
    /* Tam yuvarlak için ek kurallar */
    aspect-ratio: 1/1; /* 1:1 oran zorla */
    flex-shrink: 0; /* Küçülmeyi önle */
    /* Touch optimizasyonları */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.volume-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.15);
}

.volume-btn:active {
    transform: scale(0.95);
}



/* Ses seviyesi göstergesi - %25 küçültülmüş */
.volume-level-display {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 8px; /* Küçültüldü: 6px 10px -> 4px 8px */
    border-radius: 15px; /* Küçültüldü: 20px -> 15px */
    font-size: 9px; /* %25 küçültüldü: 12px -> 9px */
    font-weight: 600;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 1px 4px rgba(255, 255, 255, 0.1);
    min-width: 30px; /* Küçültüldü: 40px -> 30px */
    text-align: center;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Skip butonu için özel stil - Beyaz Cam */
.volume-btn.skip-btn {
    background: rgba(255, 255, 255, 0.25); /* Beyaz cam */
}

.volume-btn.skip-btn:hover {
    background: rgba(255, 255, 255, 0.4); /* Daha belirgin beyaz cam */
}

/* Mobil görünümde skip butonunu %35 küçült */
@media (max-width: 767px) {
    .volume-btn.skip-btn {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
        font-size: 10px;
    }
}

/* Skip butonunu zorla gizlemek için güçlü class */
.force-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    z-index: -9999 !important;
}

/* Web görünümde overlay'i gizle */
@media (min-width: 768px) {
    #mobile-player-overlay,
    .overlay-volume-controls {
        display: none !important;
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 800px;
    width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalIn 0.2s;
}

@keyframes modalIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-body {
    padding: 20px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
.btn-close:hover {
    color: #e74c3c;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* MOBİL GÖRÜNÜM İÇİN ÖZEL AYARLAR */
@media (max-width: 767px) {
    /* Çalan şarkının zemin alt divi tamamen şeffaf */
    .overlay-song-info {
        background: transparent !important;
    }
    
    /* İstek listesi zemin rengi tamamen şeffaf */
    .overlay-request-queue {
        background: transparent !important;
    }
    
    /* Zaman bilgilerini %25 daha büyüt */
    .song-times {
        font-size: 20.625px !important; /* %25 daha büyütüldü: 16.5px -> 20.625px */
        gap: 4px !important; /* %50 büyütüldü: 3px -> 4px */
    }
    
    .current-time {
        font-weight: 700 !important; /* %50 büyütüldü: 600 -> 700 */
    }
    
    .total-time {
        font-weight: 700 !important; /* %50 büyütüldü: 600 -> 700 */
    }
}

/* MOBİL GÖRÜNÜM İÇİN DAHA GÜÇLÜ OVERRIDE */
@media (max-width: 767px) {
    /* Çalan şarkının zemin alt divi tamamen şeffaf - daha spesifik */
    #mobile-player-overlay .overlay-song-info {
        background: transparent !important;
        background-color: transparent !important;
    }
    
    /* İstek listesi zemin rengi tamamen şeffaf - daha spesifik */
    #mobile-player-overlay .overlay-request-queue {
        background: transparent !important;
        background-color: transparent !important;
    }
}

/* EN GÜÇLÜ OVERRIDE - TÜM DİĞER KURALLARI GEÇERSİZ KILAR */
@media (max-width: 767px) {
    /* Çalan şarkının zemin alt divi tamamen şeffaf - en güçlü */
    #timarhane-player-container #mobile-player-overlay .overlay-song-info {
        background: transparent !important;
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        /* Pozisyon ayarları - %50 sol %50 yukarı */
        top: 5px !important;
        left: 5px !important;
        padding: 4px 8px !important;
        border-radius: 6px !important;
    }
    
    /* İstek listesi zemin rengi tamamen şeffaf - en güçlü */
    #timarhane-player-container #mobile-player-overlay .overlay-request-queue {
        background: transparent !important;
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        /* Pozisyon ayarları - skip butonuna uygun */
        left: 5px !important;
        right: 50px !important; /* Skip butonuna uygun: 60px -> 50px */
        top: 35px !important;
        bottom: 60px !important;
        border-radius: 4px !important;
    }
    
    /* İstek listesi içeriği daha kompakt */
    #timarhane-player-container #mobile-player-overlay .overlay-request-queue .request-queue-list {
        padding: 4px !important;
        gap: 3px !important;
    }
    
    /* İstek öğeleri daha kompakt */
    #timarhane-player-container #mobile-player-overlay .overlay-request-queue .request-item {
        padding: 3px 6px !important;
        gap: 4px !important;
        border-radius: 4px !important;
    }
    
    /* İstek öğesi avatar daha küçük */
    #timarhane-player-container #mobile-player-overlay .overlay-request-queue .request-item .requester-avatar {
        width: 16px !important;
        height: 16px !important;
    }
    
    /* İstek öğesi başlık daha küçük */
    #timarhane-player-container #mobile-player-overlay .overlay-request-queue .request-item .request-item-title {
        font-size: 10px !important;
        margin-bottom: 1px !important;
    }
    
    /* İstek öğesi detaylar daha küçük */
    #timarhane-player-container #mobile-player-overlay .overlay-request-queue .request-item .request-item-details {
        font-size: 9px !important;
    }
    
    /* Çalan şarkı bilgisi içeriği daha kompakt */
    #timarhane-player-container #mobile-player-overlay .overlay-song-info .song-main-line {
        gap: 4px !important;
    }
    
    /* Çalan şarkı avatar daha küçük */
    #timarhane-player-container #mobile-player-overlay .overlay-song-info .requester-avatar {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Çalan şarkı metinleri daha küçük */
    #timarhane-player-container #mobile-player-overlay .overlay-song-info .requester-name {
        font-size: 10px !important;
    }
    
    #timarhane-player-container #mobile-player-overlay .overlay-song-info .song-title {
        font-size: 11px !important;
    }
    
    #timarhane-player-container #mobile-player-overlay .overlay-song-info .song-times {
        font-size: 20.625px !important; /* %25 daha büyütüldü: 16.5px -> 20.625px */
        gap: 4px !important; /* %50 büyütüldü: 3px -> 4px */
    }
    
    /* Zaman bilgileri kalınlığını artır */
    #timarhane-player-container #mobile-player-overlay .overlay-song-info .current-time {
        font-weight: 700 !important;
    }
    
    #timarhane-player-container #mobile-player-overlay .overlay-song-info .total-time {
        font-weight: 700 !important;
    }
}

/* Kırmızı Neon Progress Bar Stilleri - Mobil ve Web */
#mobile-neon-progress-container,
#web-neon-progress-container {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.5);
    margin-top: -4px; /* YouTube player'ın altına yapıştır */
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    z-index: 9999;
    pointer-events: none;
}

#mobile-neon-progress-fill,
#web-neon-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%; /* Başlangıçta boş */
    background: linear-gradient(90deg, 
        #ff0000 0%, 
        #ff3333 25%, 
        #ff6666 50%, 
        #ff3333 75%, 
        #ff0000 100%
    );
    border-radius: 0 0 6px 6px;
    transition: width 0.1s ease; /* Smooth animasyon */
    box-shadow: 
        0 0 5px #ff0000,
        0 0 10px #ff0000,
        0 0 15px #ff0000,
        0 0 20px #ff0000; /* Neon efekti */
    animation: neonPulse 2s ease-in-out infinite alternate;
}

/* Neon pulse animasyonu */
@keyframes neonPulse {
    0% {
        box-shadow: 
            0 0 5px #ff0000,
            0 0 10px #ff0000,
            0 0 15px #ff0000,
            0 0 20px #ff0000;
    }
    100% {
        box-shadow: 
            0 0 10px #ff0000,
            0 0 20px #ff0000,
            0 0 30px #ff0000,
            0 0 40px #ff0000;
    }
}

/* Web görünümü için progress bar */
@media (min-width: 768px) {
    #web-neon-progress-container {
        height: 5px; /* Web'de daha kalın */
        margin-top: -5px;
    }
    
    #web-neon-progress-fill {
        box-shadow: 
            0 0 8px #ff0000,
            0 0 16px #ff0000,
            0 0 24px #ff0000,
            0 0 32px #ff0000;
    }
}

/* YouTube Player'ın z-index'ini düşür */
#youtube-player {
    z-index: 1 !important; /* YouTube player en altta */
    position: relative;
}

/* YouTube iframe'inin z-index'ini de düşür */
#youtube-player iframe {
    z-index: 1 !important;
    position: relative;
}

/* MOBİL GÖRÜNÜM İÇİN ÖZEL AYARLAR */
@media (max-width: 767px) {
    /* YouTube player'ı tamamen arka plana at */
    #youtube-player {
        z-index: 0 !important;
        position: relative;
    }
    
    #youtube-player iframe {
        z-index: 0 !important;
        position: relative;
    }
    
    /* Mobil overlay'i en üste çıkar */
    #mobile-player-overlay {
        z-index: 100000 !important;
        pointer-events: auto !important; /* Tüm overlay'i tıklanabilir yap */
    }
    
    /* İstek listesini kesinlikle tıklanabilir yap */
    .overlay-request-queue {
        z-index: 100002 !important;
        pointer-events: auto !important;
    }
    
    .request-queue-list {
        z-index: 100003 !important;
        pointer-events: auto !important;
    }
    
    .request-item {
        z-index: 100004 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }
    
    /* Şarkı seçenekleri modal'ını en üste çıkar */
    .simpleSongModal {
        z-index: 999999 !important;
    }
    
    /* Tüm modal'ları en üste çıkar */
    .modal {
        z-index: 999999 !important;
    }
    
    /* YouTube player'ın tüm etkileşimlerini engelle */
    #youtube-player {
        pointer-events: none !important;
    }
    
    #youtube-player iframe {
        pointer-events: none !important;
    }
}

/* ========================================= */
/* OTOMATİK LİSTE ANİMASYONU */
/* ========================================= */

/* Otomatik Liste Animasyon Container */
.auto-playlist-animation {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Mobil için daha küçük */
@media (max-width: 767px) {
    .auto-playlist-animation {
        width: 22px;
        height: 22px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* Dönen Müzik Notası */
.auto-playlist-animation::before {
    content: '♪';
    font-size: 14px;
    color: white;
    font-weight: bold;
    animation: rotateMusicNote 3s linear infinite;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Mobil için daha küçük nota */
@media (max-width: 767px) {
    .auto-playlist-animation::before {
        font-size: 12px;
    }
}

/* Dönen Animasyon */
@keyframes rotateMusicNote {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Hover Efekti */
.auto-playlist-animation:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
}

/* Web Görünümü için Hover */
.web-overlay-song-info:hover .auto-playlist-animation {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Pulse Efekti */
.auto-playlist-animation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
}

/* Büyük Ekranlar için Daha Büyük */
@media (min-width: 1200px) {
    .auto-playlist-animation {
        width: 30px;
        height: 30px;
    }
    
    .auto-playlist-animation::before {
        font-size: 16px;
    }
}

/* Web Görünümü için Özel Stil */
.web-auto-playlist-animation {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: all 0.3s ease;
}

.web-auto-playlist-animation::before {
    content: '♪';
    font-size: 14px;
    color: white;
    font-weight: bold;
    animation: rotateMusicNote 3s linear infinite;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.web-auto-playlist-animation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 2s ease-in-out infinite;
    pointer-events: none;
}

/* Büyük Ekranlar için Web Görünümü */
@media (min-width: 1200px) {
    .web-auto-playlist-animation {
        width: 30px;
        height: 30px;
    }
    
    .web-auto-playlist-animation::before {
        font-size: 16px;
    }
} 

/* ========================================= */
/* TAM EKRAN BUTONU STİLLERİ */
/* ========================================= */

/* Tam ekran butonu - Genel */
.fullscreen-toggle-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    user-select: none;
    -webkit-user-select: none;
}

.fullscreen-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.fullscreen-toggle-btn:active {
    transform: scale(0.95);
}

/* Web görünümü için */
@media (min-width: 768px) {
    .fullscreen-toggle-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 6px;
        top: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .fullscreen-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
    }
}

/* Mobil görünümü için */
@media (max-width: 767px) {
    .fullscreen-toggle-btn {
        width: 22px;
        height: 22px;
        font-size: 12px;
        top: 8px;
        right: 8px;
        /* Dokunma için daha büyük alan */
        min-width: 22px;
        min-height: 22px;
        z-index: 100006;
    }
}

/* Tam ekran modu */
#timarhane-player-container.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#timarhane-player-container.fullscreen #youtube-player,
#timarhane-player-container.fullscreen #youtube-player iframe {
    border-radius: 0 !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    aspect-ratio: 16/9 !important;
    max-width: calc(100vh * 16 / 9) !important;
    max-height: 100vh !important;
}

/* Web görünümünde tam ekran - 16:9 oranını koru */
@media (min-width: 768px) {
    #timarhane-player-container.fullscreen #youtube-player,
    #timarhane-player-container.fullscreen #youtube-player iframe {
        width: calc(100vh * 16 / 9) !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: calc(100vw * 9 / 16) !important;
    }
    
    /* Ekran genişse yüksekliğe göre ayarla */
    @media (min-aspect-ratio: 16/9) {
        #timarhane-player-container.fullscreen #youtube-player,
        #timarhane-player-container.fullscreen #youtube-player iframe {
            width: calc(100vh * 16 / 9) !important;
            height: 100vh !important;
        }
    }
    
    /* Ekran dar ise genişliğe göre ayarla */
    @media (max-aspect-ratio: 16/9) {
        #timarhane-player-container.fullscreen #youtube-player,
        #timarhane-player-container.fullscreen #youtube-player iframe {
            width: 100vw !important;
            height: calc(100vw * 9 / 16) !important;
        }
    }
}

/* Mobil görünümünde tam ekran - 16:9 oranını koru */
@media (max-width: 767px) {
    #timarhane-player-container.fullscreen {
        /* Mobilde yatay düzenleme */
        transform: rotate(90deg) !important;
        transform-origin: center center !important;
        width: 100vh !important; /* Viewport height'ı width olarak kullan */
        height: 100vw !important; /* Viewport width'ı height olarak kullan */
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        margin-top: -50vw !important; /* Height'ın yarısı kadar yukarı */
        margin-left: -50vh !important; /* Width'ın yarısı kadar sola */
        -webkit-transform: rotate(90deg) !important;
        -webkit-transform-origin: center center !important;
        -webkit-margin-top: -50vw !important;
        -webkit-margin-left: -50vh !important;
    }
    
    #timarhane-player-container.fullscreen #youtube-player,
    #timarhane-player-container.fullscreen #youtube-player iframe {
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        -webkit-transform: none !important;
        object-fit: cover !important;
        aspect-ratio: 16/9 !important;
    }
    
    /* Mobil tam ekran modunda buton pozisyonu - sola taşıma */
    #timarhane-player-container.fullscreen .fullscreen-toggle-btn {
        position: absolute !important;
        top: 15px !important;
        right: auto !important;
        left: 15px !important; /* Sağ yerine sol */
        /* Butonun kendisi döndürülmemeli */
        transform: rotate(-90deg) !important;
        -webkit-transform: rotate(-90deg) !important;
        z-index: 100007 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
    }
}

/* Tam ekran modunda buton pozisyonu */
#timarhane-player-container.fullscreen .fullscreen-toggle-btn {
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Tam ekran modunda diğer overlay'leri gizle */
#timarhane-player-container.fullscreen #player-unmute-overlay,
#timarhane-player-container.fullscreen #player-status-overlay,
#timarhane-player-container.fullscreen #web-player-overlay,
#timarhane-player-container.fullscreen #mobile-player-overlay {
    display: none !important;
}

/* Tam ekran modunda PWA butonlarını koru */
#timarhane-player-container.fullscreen ~ .install-icon {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100008 !important;
    pointer-events: auto !important;
}

/* Tam ekran modunda ESC tuşu ile çıkış için overlay */
.fullscreen-escape-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    z-index: 99998;
    display: none;
}

#timarhane-player-container.fullscreen + .fullscreen-escape-overlay {
    display: block;
}

/* Tam ekran modunda body scroll'u engelle */
body.fullscreen-mode {
    overflow: hidden !important;
}

/* ========================================= */ 