        /* ANTI-LONG-PRESS E APP-LIKE UX */
        .aiftsongs-wrap{ background:#0b141a;color:#e9edef;padding:15px;border-radius:12px;font-family:sans-serif;max-width:1200px;margin:20px auto;position:relative; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }
        .aiftsongs-wrap input, .aiftsongs-wrap textarea, .chat-msg { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; -webkit-touch-callout: default; }
        .aiftsongs-header{display:flex;justify-content:space-between;margin-bottom:12px;}.aiftsongs-appname{font-weight:bold;color:#00a884;}
        .aiftsongs-player-container-central{background:#111b21;padding:15px;border-radius:10px;border:1px solid #222;text-align:center;position:relative;}
        .aiftsongs-now-title{font-size:18px;font-weight:bold;color:#00a884;}.aiftsongs-now-meta{font-size:13px;color:#9aa;}
        .aiftsongs-ytwrap{background:#000;aspect-ratio:16/9;margin:10px 0;border-radius:8px;overflow:hidden;}
        .aiftsongs-yt{width:100%;height:100%;}.aiftsongs-controls-row{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:10px;align-items:center;}
        .aiftsongs-btn{border:none;padding:8px 14px;border-radius:20px;background:#2a3942;color:#fff;cursor:pointer;font-size:11px;}
        .aiftsongs-btn-primary{background:#00a884;font-weight:bold;}.aiftsongs-btn-ai{background:linear-gradient(45deg,#6e45e2,#88d3ce);}.aiftsongs-field-compact{background:#2a3942;border:1px solid #333;color:#fff;padding:5px 10px;border-radius:6px;font-size:11px;}
        .aiftsongs-tablebox{margin-top:15px;background:#111b21;max-height:450px;overflow-y:auto;border:1px solid #222;}
        .aiftsongs-table{width:100%;border-collapse:collapse;font-size:13px;}
        .aiftsongs-table th,.aiftsongs-table td{padding:10px;text-align:left;border-bottom:1px solid #222;}
        .aiftsongs-table th{background:#202c33;position:sticky;top:0;z-index:10;cursor:pointer;user-select:none;}
        .track-row { cursor: pointer; transition: 0.2s; }
        .track-row:hover { background: rgba(0,168,132,0.15); }
        .aiftsongs-row-playing{background:rgba(0,168,132,0.25)!important;font-weight:bold;}
        .aiftsongs-blue-row { color: #4aa3ff !important; font-weight: 500; }
        .aiftsongs-blue-row td { color: #4aa3ff !important; }
        .aiftsongs-row-yellow { color: #f1c40f !important; font-weight: 500; }
        .aiftsongs-row-yellow td { color: #f1c40f !important; }
        .aiftsongs-row-green { color: #00ff00 !important; font-weight: 500; }
        .aiftsongs-row-green td { color: #00ff00 !important; }
        .aiftsongs-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.85);display:flex;align-items:center;justify-content:center;z-index:99999;backdrop-filter:blur(3px);}
        .aiftsongs-modal-box{background:#1f2b33;padding:20px;border-radius:15px;width:95%;max-width:550px;color:#fff;border:1px solid #444;text-align:center; position:relative;}
        #aifts_root .modal-close-btn, #aifts_root .aiftsongs-del, #aifts_root .clear_selection_x, #aifts_root .btn-red-force, #aifts_root #btn-jam_close_bottom, #aifts_root #btn_loop_reset, #aifts_root #btn_ai_close, #aifts_root #btn_ai_close_bottom, #aifts_root #btn_uni_close, #aifts_root #btn_video_close { color: #ff3b30 !important; font-weight: 900 !important; cursor:pointer; background:none; border:none; opacity: 1 !important; -webkit-text-fill-color: #ff3b30 !important; }
        .modal-close-btn { position:absolute;top:10px;right:10px;font-size:24px;line-height:1; z-index: 10; }
        .aifts-link{color:#4aa3ff; text-decoration:none; font-size:14px; display:block; margin-bottom:5px;} .aifts-link:hover{text-decoration:underline;}
        .sortable:hover{color:#00ff00;}
        :fullscreen .aiftsongs-wrap{width:100%;height:100%;max-width:none;border-radius:0; display:flex; flex-direction:column;}
        :fullscreen .aiftsongs-tablebox { flex:1; max-height:none; }
        :fullscreen #fs_controls_bar { display:flex !important; }
        .chat-box-container{display:flex;flex-direction:column;height:80vh;max-width:600px;padding:0;overflow:hidden;}
        .chat-header{padding:15px;background:#202c33;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #333;}
        .chat-header h3{margin:0;color:#e9edef;font-size:16px;}
        .chat-body{flex:1;overflow-y:auto;padding:15px;background:#0b141a;display:flex;flex-direction:column;gap:10px;}
        .chat-msg{max-width:80%;padding:10px 12px;border-radius:8px;font-size:14px;line-height:1.4;word-wrap:break-word; white-space:pre-wrap;}
        .chat-msg.ai{align-self:flex-start;background:#202c33;color:#fff;border-radius:0 8px 8px 8px;}
        .chat-msg.me{align-self:flex-end;background:#005c4b;color:#fff;border-radius:8px 0 8px 8px;}
        .chat-footer{padding:10px;background:#202c33;display:flex;gap:10px;border-top:1px solid #333;}
        .chat-input{flex:1;background:#2a3942;border:none;color:#fff;padding:10px;border-radius:8px;font-size:14px;outline:none;}
        .chat-send-btn{background:#00a884;border:none;color:#fff;padding:0 15px;border-radius:8px;cursor:pointer;font-size:18px;}
        .jam-msg { color: #4cd964; }
        .jam-peer-row { display:flex; justify-content:space-between; align-items:center; background:#111; padding:5px; margin:5px 0; border-radius:4px; }
        .jam-status { font-size:11px; color:#aaa; margin-top:5px; }
        .jam-action-btn { border:none; padding:8px 10px; font-size:12px; font-weight:bold; cursor:pointer; color:#fff; background:#444; border-radius:6px; margin-left:2px; white-space:nowrap; }
        .jam-action-btn:hover { filter:brightness(1.2); }
        
        #aifts_toast_container { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); z-index: 9999999; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; width: 90%; max-width: 400px; }
        .aifts-toast { pointer-events: auto; width: 100%; text-align: center; background:#00a884; color:#fff; padding:15px; border-radius:8px; box-shadow:0 5px 15px rgba(0,0,0,0.5); cursor:pointer; font-size:14px; animation: slideDown 0.3s; margin-bottom:10px; border-bottom: 4px solid #fff; }
        
        .jam-av-opt { padding:5px; border-radius:5px; transition:0.2s; cursor:pointer; }
        .jam-av-opt.selected { background:#00a884; }
        .jam-av-opt.custom-av { display:inline-flex; align-items:center; justify-content:center; }
        .jam-preview-box { width: 140px; height: 100px; background: #000; border: 2px solid #444; border-radius: 8px; overflow: hidden; position: relative; pointer-events:auto; margin-bottom:5px; }
        .jam-preview-box video { width: 100%; height: 100%; object-fit: cover; }
        .jam-preview-close { position: absolute; top: 2px; right: 2px; background: red; color: #fff; border: none; font-size: 12px; padding: 2px 6px; cursor: pointer; border-radius: 4px; font-weight:bold; }
        .jam-preview-box.expanded { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80vw; height: auto; max-height: 80vh; border: 4px solid #00a884; box-shadow: 0 0 50px rgba(0,0,0,0.8); z-index: 20000010; }
        #jam_previews_container { position: fixed; bottom: 20px; left: 20px; right: auto; display: flex; flex-direction: column; gap: 10px; z-index: 20000005; }
        .aiftsongs-lang-switch { display: flex; flex-direction: row; gap: 12px; align-items: center; margin-right: 15px; }
        .aifts-l-opt { color: #888; font-weight: normal; cursor: pointer; transition: 0.2s; }
        .aifts-l-opt.active { color: #fff; font-weight: bold; text-decoration: underline; }
        @media (max-width: 600px) { .aiftsongs-lang-switch { flex-direction: column; gap: 2px; margin-right: 10px; } }
        @keyframes slideDown { from { transform:translateY(-20px); opacity:0; } to { transform:translateY(0); opacity:1; } }
        @keyframes pulse { 0% { opacity: 0.5; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0.5; transform: scale(0.9); } }
        