/* Sağ Tıklama Menüsü Stilleri */
.context-menu {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    border-radius: 4px;
    min-width: 150px;
}

.context-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.context-menu li {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.context-menu li:hover {
    background-color: #f0f0f0;
}

/* Şarkı Seçenek Menüsü Stilleri - GÜÇLENDİRİLMİŞ VERSİYON */
#songOptionsModal.song-options-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
}

#songOptionsModal[style*="none"] {
    display: none !important;
}

#songOptionsModal .song-options-content {
    background-color: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    max-width: 400px !important;
    width: 90% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    position: relative !important;
    z-index: 100000 !important;
}

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

.song-options-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.close-options {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-options:hover {
    background-color: #f0f0f0;
    color: #333;
}

.song-options-body {
    padding: 20px;
}

.song-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.song-info span {
    display: block;
    margin-bottom: 5px;
}

#selectedSongTitle {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

#selectedSongRequester {
    color: #666;
    font-size: 14px;
}

.song-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: none;
    background-color: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #333;
    text-align: left;
    width: 100%;
}

.option-btn:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

.option-btn.delete-btn:hover {
    background-color: #f8d7da;
    color: #721c24;
}

.option-btn.auto-playlist-btn:hover {
    background-color: #d1ecf1;
    color: #0c5460;
}

.option-btn.blacklist-btn:hover {
    background-color: #f8d7da;
    color: #721c24;
}

.option-btn.move-top-btn:hover {
    background-color: #d4edda;
    color: #155724;
}

.option-icon {
    margin-right: 10px;
    font-size: 16px;
}

.option-text {
    flex: 1;
}

/* İstek Listesi Stilleri */
.request-queue-container {
    width: 100%;
}

.request-queue-list {
    max-height: 400px;
    overflow-y: auto;
}

.request-queue-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.request-queue-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.request-queue-error {
    text-align: center;
    padding: 20px;
    color: #721c24;
    background-color: #f8d7da;
    border-radius: 6px;
    margin: 10px;
}

.request-queue-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.request-queue-item:hover {
    background-color: #f8f9fa;
}

.request-queue-item:last-child {
    border-bottom: none;
}

.request-number {
    background-color: #007bff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.request-user {
    display: flex;
    align-items: center;
    margin-right: 12px;
    min-width: 120px;
}

.request-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.request-username {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.request-song {
    flex: 1;
    min-width: 0;
}

.song-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.song-duration {
    font-size: 12px;
    color: #666;
}

/* Kullanıcı Bilgi/Aksiyon Modalı Stilleri */
.modal {
    display: none; /* Varsayılan olarak gizli */
    overflow: auto; /* Gerekirse kaydırma çubukları */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* Dikeyde ortala */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Genişlik */
    max-width: 400px; /* Maksimum genişlik */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative; /* Kapatma düğmesi için */
}

.close-button {
    background: rgba(0, 0, 0, 0.8) !important; /* Koyu siyah background */
    color: #ffffff !important; /* Beyaz metin */
    float: right;
    font-size: 24px !important;
    font-weight: bold;
    cursor: pointer;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    border: none !important;
}

.close-button:hover,
.close-button:focus {
    background: #dc3545 !important; /* Kırmızı background */
    color: #ffffff !important; /* Beyaz metin */
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1) !important;
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

.modal-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-options li {
    padding: 10px 0;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    border-bottom: 1px solid #eee; /* Seçenekler arasına çizgi */
}

.modal-options li:last-child {
    border-bottom: none; /* Son seçenekte çizgi olmasın */
}

.modal-options li:hover {
    color: #000; /* Hover rengi */
}

.modal-options li i {
    margin-right: 10px; /* Emoji veya ikonlar için boşluk */
}

#messageContextMenu {
    display: none; /* Başlangıçta gizli */
    position: fixed; /* Ekran içinde sabit */
    background-color: #fff; /* Beyaz arka plan */
    border: 1px solid #ccc; /* Kenarlık */
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2); /* Gölge */
    z-index: 1000; /* Diğer elementlerin üstünde */
    list-style: none; /* Liste işaretlerini kaldır */
    padding: 0; /* İç boşluğu kaldır */
    margin: 0; /* Dış boşluğu kaldır */
    border-radius: 4px; /* Köşeleri yuvarla */
    min-width: 150px; /* Minimum genişlik */
}

#messageContextMenu li {
    padding: 8px 12px; /* Seçeneklerin iç boşluğu */
    cursor: pointer; /* Fare imlecini el yap */
    font-size: 14px;
}

#messageContextMenu li:hover {
    background-color: #f0f0f0; /* Üzerine gelince arka plan rengi */
}

/* Geçmiş Listesi Context Menu Stilleri */
.history-context-menu {
    position: fixed;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 200px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    z-index: 10000;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.history-context-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-context-menu li {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.history-context-menu li:last-child {
    border-bottom: none;
}

.history-context-menu li:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.history-context-menu li i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    font-size: 14px;
}

/* Geçmiş listesi öğelerine hover efekti */
.history-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Kanaldan At modalı ile ilgili tüm CSS kaldırıldı */