/* /apps/css/cafe_jukebox.css */
.jb_wrap { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1e293b; width: 100%; box-sizing: border-box; font-size: 13px; position: relative; }
.jb_wrap *, .jb_wrap *::before, .jb_wrap *::after { box-sizing: border-box; }

/* Kompakt Birləşmiş Master Kart (Premium Dark Gradient & Responsive) */
.jb_master_top_card { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); border-radius: 20px; padding: 20px; color: #fff; margin-bottom: 20px; box-shadow: 0 15px 35px rgba(15, 23, 42, 0.2); border: 1px solid rgba(56, 189, 248, 0.2); width: 100%; }
.jb_header_inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; width: 100%; }

.jb_header_left { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.jb_cafe_logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: #334155; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); }
.jb_header_text_wrap { min-width: 0; flex: 1; }
.jb_master_top_card h1 { font-size: 17.5px; font-weight: 900; margin: 0 0 4px 0; display: flex; align-items: center; gap: 6px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.3px; }
.jb_master_top_card h1 svg { width: 18px; height: 18px; color: #38bdf8; flex-shrink: 0; }
.jb_master_top_card p { font-size: 11.5px; color: #94a3b8; margin: 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }

/* Adres ve Telefon Dikey Stack Yapısı */
.jb_venue_meta_stack { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.jb_meta_row { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb_meta_row svg { flex-shrink: 0; color: #38bdf8; }

.jb_header_stats { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.jb_stat_badge { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 6px 12px; text-align: center; min-width: 75px; backdrop-filter: blur(5px); }
.jb_stat_badge span { font-size: 9px; text-transform: uppercase; color: #94a3b8; font-weight: 700; display: block; margin-bottom: 2px; letter-spacing: 0.5px; }
.jb_stat_badge strong { font-size: 12.5px; font-weight: 900; color: #38bdf8; font-family: 'JetBrains Mono', monospace; }

/* Canlı Pleyer Paneli */
.jb_venue_player { display: none; align-items: center; justify-content: space-between; gap: 15px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, 0.12); width: 100%; }
.jb_venue_player.active { display: flex; }

.jb_vp_left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.jb_vp_cover { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: #334155; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); }
.jb_vp_info { min-width: 0; flex: 1; }
.jb_vp_info h4 { font-size: 13px; font-weight: 900; color: #fff; margin: 0 0 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb_vp_info span { font-size: 11px; color: #94a3b8; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.jb_vp_center { display: flex; flex-direction: column; gap: 5px; width: 180px; flex-shrink: 0; }
.jb_vp_time { display: flex; justify-content: space-between; font-size: 10px; color: #94a3b8; font-family: 'JetBrains Mono', monospace; font-weight: 700; }

.jb_vp_progress { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; position: relative; }
.jb_vp_progress.is_owner_scrub { cursor: pointer; }
.jb_vp_progress.is_customer_scrub { pointer-events: none; opacity: 0.8; }
.jb_vp_progress_fill { height: 100%; background: #38bdf8; width: 0%; pointer-events: none; transition: width 0.1s linear; }

.jb_vp_right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.jb_vp_vol_box { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.08); padding: 5px 10px; border-radius: 10px; }
.jb_vp_vol_box input[type=range] { width: 55px; accent-color: #38bdf8; cursor: pointer; }

.jb_vol_icon_btn { background: none; border: none; color: #fff; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.jb_vol_icon_btn:hover { color: #38bdf8; transform: scale(1.05); }
.jb_vol_icon_btn svg { width: 15px; height: 15px; fill: currentColor; }

/* Kompakt Accordion (Ayarlar Paneli) */
.jb_accordion_card { background: #f0fdf4; border-color: #bbf7d0; padding: 14px 18px !important; }
.jb_accordion_header { cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.jb_accordion_header h3 { color: #16a34a; margin-bottom: 0 !important; font-size: 13.5px !important; }
.jb_accordion_body { display: none; margin-top: 12px; border-top: 1px solid #bbf7d0; padding-top: 12px; }

/* Grid & Mobil Responsive Optimizasyonu */
.jb_grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; width: 100%; }
@media(max-width: 900px) {
    .jb_grid { grid-template-columns: 1fr; }
    .jb_header_inner { flex-direction: column; align-items: stretch; }
    .jb_header_stats { width: 100%; justify-content: space-between; }
    .jb_stat_badge { flex: 1; min-width: 0; }
    .jb_venue_player { flex-direction: column; align-items: stretch; gap: 12px; }
    .jb_vp_center { width: 100%; }
    .jb_vp_right { justify-content: flex-end; }
}

.jb_card { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); margin-bottom: 20px; width: 100%; position: relative; }
.jb_card h3 { font-size: 15px; font-weight: 900; color: #0f172a; margin: 0 0 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jb_card h3 svg { width: 18px; height: 18px; color: #0284c7; flex-shrink: 0; }

/* Arama ve Arama Sonuçları (Z-Index ve Özel Scrollbar) */
.jb_search_box { position: relative; margin-bottom: 0; width: 100%; }
.jb_search_input { width: 100%; padding: 11px 36px 11px 40px; border: 1px solid #cbd5e1; border-radius: 12px; font-size: 13px; font-weight: 600; outline: none; background: #f8fafc; color: #0f172a; transition: 0.2s; }
.jb_search_input:focus { border-color: #0284c7; background: #fff; box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12); }
.jb_search_icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #64748b; pointer-events: none; }

.jb_search_results { background: #fff; border: 1px solid #cbd5e1; border-radius: 14px; max-height: 300px; overflow-y: auto; position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 999999; box-shadow: 0 20px 40px rgba(0,0,0,0.15); display: none; }
.jb_search_results.show { display: block; }
.jb_search_results::-webkit-scrollbar, .jb_search_results::-webkit-scrollbar { width: 6px; }
.jb_search_results::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* Şarkı Satırları ve Mobil Taşma Koruması */
.jb_song_item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid #f1f5f9; gap: 12px; width: 100%; transition: 0.2s; border-radius: 10px; }
.jb_song_item.is_playing { background: #f0fdf4 !important; border-color: #86efac; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08); }
.jb_song_item:hover { background: #f8fafc; }
.jb_song_info { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.jb_song_cover { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #e2e8f0; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.jb_song_details { min-width: 0; flex: 1; }
.jb_song_details h4 { font-size: 12.5px; font-weight: 800; color: #0f172a; margin: 0 0 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb_song_details span { font-size: 11px; color: #64748b; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* Buton Grupları (Mobilde Taşmayı Önleyen Sarılma Yapısı) */
.jb_btn_group { display: flex; gap: 5px; flex-shrink: 0; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.jb_btn { padding: 6px 10px; border-radius: 8px; font-weight: 800; font-size: 11.5px; cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 4px; transition: 0.2s; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 5px rgba(0,0,0,0.04); }
.jb_btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.jb_btn_preview { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.jb_btn_action { background: #0284c7; color: #fff; }
.jb_btn_success { background: #10b981; color: #fff; }
.jb_btn_danger { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }

/* Kuyruk Listesi */
.jb_queue_item { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; margin-bottom: 10px; font-size: 12.5px; gap: 12px; width: 100%; transition: 0.3s; }
.jb_queue_item.is_playing { background: #f0fdf4; border-color: #86efac; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12); }
.jb_queue_info { min-width: 0; flex: 1; }
.jb_queue_info strong { font-size: 12.5px; color: #0f172a; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb_queue_info span { font-size: 11px; color: #64748b; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb_queue_requester { font-size: 10.5px; color: #94a3b8; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }

.jb_badge { font-size: 9.5px; font-weight: 900; padding: 4px 8px; border-radius: 7px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; flex-shrink: 0; }
.jb_badge.playing { background: #dcfce7; color: #16a34a; border: 1px solid #86efac; }
.jb_badge.pending { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }

/* Equalizer Animasyonu */
.jb_eq_bars { display: flex; align-items: flex-end; gap: 3px; height: 15px; width: 15px; flex-shrink: 0; }
.jb_eq_bar { width: 3px; background: #10b981; animation: bounceEq 1.2s infinite ease-in-out; border-radius: 2px; }
.jb_eq_bar:nth-child(2) { animation-delay: 0.2s; }
.jb_eq_bar:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounceEq { 0%, 100% { height: 4px; } 50% { height: 15px; } }

/* Şık Onay Modalı */
.jb_modal_overlay { position: fixed; inset: 0; background: rgba(5, 8, 15, 0.75); backdrop-filter: blur(6px); z-index: 9999999; display: none; align-items: center; justify-content: center; padding: 15px; }
.jb_modal_overlay.open { display: flex; }
.jb_modal_box { background: #fff; width: 100%; max-width: 380px; border-radius: 22px; padding: 25px; box-shadow: 0 25px 50px rgba(0,0,0,0.25); text-align: center; border: 1px solid #e2e8f0; animation: modalPop 0.2s ease-out; }
@keyframes modalPop { 0% { transform: scale(0.95); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.jb_modal_icon { width: 48px; height: 48px; border-radius: 50%; background: #e0f2fe; color: #0284c7; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px auto; }
.jb_modal_box h3 { font-size: 17px; font-weight: 900; color: #0f172a; margin: 0 0 8px 0; }
.jb_modal_box p { font-size: 13px; color: #64748b; margin: 0 0 20px 0; line-height: 1.5; }
.jb_modal_actions { display: flex; gap: 10px; }
.jb_modal_btn { flex: 1; padding: 10px; border-radius: 12px; font-weight: 800; font-size: 13px; cursor: pointer; border: none; transition: 0.2s; }
.jb_modal_btn:hover { filter: brightness(1.05); }
.jb_modal_btn.cancel { background: #f1f5f9; color: #475569; }
.jb_modal_btn.confirm { background: #10b981; color: #fff; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25); }

/* Ekstra Küçük Mobil Ekran Optimizasyonları (< 480px) */
@media(max-width: 480px) {
    .jb_master_top_card { padding: 15px; border-radius: 16px; }
    .jb_cafe_logo { width: 40px; height: 40px; }
    .jb_master_top_card h1 { font-size: 15px; }
    .jb_card { padding: 15px; border-radius: 14px; }
    .jb_song_item { padding: 8px 10px; }
    .jb_btn { padding: 5px 7px; font-size: 10.5px; }
}