* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
        body { background-color: #0f172a; color: #f8fafc; font-family: 'Inter', 'Noto Sans Thai', sans-serif; padding-bottom: 90px; min-height: 100vh; }
        header { background-color: #1e293b; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #334155; position: sticky; top: 0; z-index: 50; }
        h1 { font-size: 22px; font-weight: 600; }
        h1 span { color: #6366f1; }
        .search-container { padding: 16px 24px 8px 24px; max-width: 900px; margin: 0 auto; }
        .search-box { position: relative; width: 100%; margin-bottom: 12px; }
        .search-box input { width: 100%; background-color: #1e293b; border: 1px solid #334155; border-radius: 10px; padding: 12px 16px 12px 45px; color: white; font-family: inherit; font-size: 15px; transition: all 0.2s; }
        .search-box input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }
        .search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: 16px; }
        .filter-group { display: flex; gap: 10px; flex-wrap: wrap; }
        .btn-filter { background-color: #1e293b; border: 1px solid #334155; color: #cbd5e1; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; }
        .btn-filter:hover { border-color: #6366f1; color: white; }
        .btn-filter.active { background-color: #6366f1; border-color: #6366f1; color: white; }
        .app-view { display: none; padding: 10px 24px; max-width: 900px; margin: 0 auto; }
        .app-view.active { display: block; }
        .panel-title { font-size: 15px; font-weight: 500; margin-bottom: 15px; color: #64748b; }
        .song-list-container { display: flex; flex-direction: column; gap: 10px; width: 100%; }
        .song-row-item { background-color: #1e293b; border: 1px solid #334155; padding: 6px 18px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: background-color 0.15s; }
        .song-row-item:hover { background-color: #24334d; }
        .drag-handle { color: #64748b; cursor: grab; padding-right: 8px; font-size: 18px; }
        .sortable-ghost { opacity: 0.4; background-color: #4f46e5 !important; }
        .song-inline-info { display: flex; align-items: center; gap: 12px; flex-grow: 1; overflow: hidden; }
        .song-meta-line { font-size: 16px; font-weight: 500; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
        .song-title-text { color: #f8fafc; }
        .song-artist-text { color: #94a3b8; font-size: 14px; font-weight: 400; }
        .song-bpm-text { color: #cbd5e1; font-size: 13px; font-weight: 400; }
        .badge-key { background-color: #4f46e5; color: #ffffff; padding: 2px 8px; border-radius: 4px; font-weight: 600; font-size: 12px; display: inline-block; margin: 0 5px;}
        .action-group { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
        .btn-action { background: none; border: none; color: #6366f1; cursor: pointer; font-size: 13px; padding: 8px 12px; border-radius: 6px; border: 1px solid #334155; display: inline-flex; align-items: center; gap: 5px; transition: all 0.15s; }
        .btn-action:hover { background-color: #6366f1; color: white; }
        .btn-green { color: #10b981; border-color: #10b981; }
        .btn-green:hover { background-color: #10b981; color: white; }
        .btn-warning { color: #f59e0b; border-color: #f59e0b; }
        .btn-warning:hover { background-color: #f59e0b; color: white; }
        .btn-danger { color: #d98181; border-color: #994b4b; }
        .btn-danger:hover { background-color: #994b4b; color: white; }
        .btn-fab { background-color: #6366f1; color: white; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
        .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background-color: #1e293b; border-top: 1px solid #334155; display: flex; justify-content: space-around; padding: 12px 0; z-index: 100; }
        .nav-item { background: none; border: none; color: #94a3b8; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-family: inherit; width: 45%; }
        .nav-item i { font-size: 20px; }
        .nav-item.active { color: #6366f1; }
        
        /* Modal Styles */
        .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(15, 23, 42, 0.8); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 200; }
        .modal-overlay.active { opacity: 1; pointer-events: auto; }
        .modal { background-color: #1e293b; border: 1px solid #334155; border-radius: 16px; width: 90%; max-width: 500px; padding: 8px; position: relative; }
        .modal-header { font-size: 18px; font-weight: 500; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
        .modal-close { background: none; border: none; color: #94a3b8; font-size: 20px; cursor: pointer; }
        .form-group { margin-bottom: 15px; }
        .form-group label { display: block; font-size: 13px; color: #94a3b8; margin-bottom: 6px; }
        .form-control { width: 100%; background-color: #0f172a; border: 1px solid #334155; border-radius: 8px; padding: 10px 12px; color: white; font-family: inherit; font-size: 15px; }
        .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        .btn-submit { width: 100%; background-color: #6366f1; color: white; border: none; padding: 12px; border-radius: 8px; font-weight: 500; font-size: 16px; cursor: pointer; margin-top: 5px; }
        .btn-submit.btn-warning-submit { background-color: #f59e0b; }
        .modal-lyrics { max-width: 1440px; }
        .lyrics-img-container { width: 100%; max-height:auto; overflow-y: auto; background-color: #0f172a; border-radius: 8px; display: flex; justify-content: center; padding: 10px; }
        .lyrics-img-container img { max-width: 100%; height: auto; }
        .empty-state { text-align: center; padding: 40px; color: #64748b; font-style: italic; font-size: 14px; }

		/* สำหรับปุ่ม 3 จุด และ Dropdown */
		.menu-container { position: relative; display: inline-block; }
		.btn-dots { background: none; border: 1px solid #334155; color: #94a3b8; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 16px; }
		.btn-dots:hover { border-color: #6366f1; color: white; }
		.dropdown-menu { 
		    display: none; position: absolute; right: 0; top: 110%; background: #1e293b; 
		    border: 1px solid #334155; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.5);
		    z-index: 100; min-width: 150px; padding: 5px 0;
		}
		.dropdown-menu.show { display: block; }
		.dropdown-item { 
		    display: block; width: 100%; padding: 10px 15px; color: #f8fafc; text-align: left;
		    background: none; border: none; cursor: pointer; font-size: 14px;
		}
		.dropdown-item:hover { background: #334155; }
		.btn-added {
		    background-color: #334155 !important;
		    color: #94a3b8 !important;
		    cursor: not-allowed;
		    border: none;
		    padding: 8px 12px;
		    border-radius: 5px;
		}