/* [SYSTEM_UI_DECODER_v1.0] */
:root { --p-clr: #1877f2; --bg-main: #f0f2f5; --card-bg: #ffffff; }
body { font-family: 'Kanit', sans-serif; background: var(--bg-main); padding: 20px; color: #1c1e21; line-height: 1.6; }
.container { max-width: 700px; margin: auto; background: var(--card-bg); padding: 25px; border-radius: 24px; box-shadow: 0 12px 40px rgba(0,0,0,0.08); position: relative; overflow: hidden; }

/* AI Neon Header */
h1 { text-align: center; color: var(--p-clr); margin-bottom: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.status-bar { text-align: center; background: #e7f3ff; color: var(--p-clr); padding: 12px; border-radius: 14px; margin-bottom: 25px; font-size: 0.9em; border: 1px solid rgba(24,119,242,0.1); }

/* Search & Filter Matrix */
.search-box { width: 100%; padding: 15px; border-radius: 12px; border: 1px solid #ddd; margin-bottom: 15px; box-sizing: border-box; font-size: 16px; transition: 0.3s; }
.search-box:focus { border-color: var(--p-clr); outline: none; box-shadow: 0 0 0 3px rgba(24,119,242,0.1); }
.filter-group { display: flex; gap: 10px; margin-bottom: 25px; overflow-x: auto; padding: 5px 0; scrollbar-width: none; }
.filter-btn { padding: 8px 18px; border-radius: 20px; border: none; background: #e4e6eb; cursor: pointer; white-space: nowrap; font-size: 14px; transition: 0.2s; }
.filter-btn.active { background: var(--p-clr); color: white; box-shadow: 0 4px 12px rgba(24,119,242,0.3); }

/* Track Item Cyber-Style */
.track-item { 
    background: #fff; border: 1px solid #eee; padding: 20px; border-radius: 18px; margin-bottom: 15px; 
    transition: 0.3s; position: relative; z-index: 1;
}
.track-item:hover { transform: translateY(-3px); border-color: var(--p-clr); box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
.track-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.cat-badge { font-size: 11px; background: #f0f2f5; color: #65676b; padding: 3px 10px; border-radius: 6px; font-weight: 500; }
.dl-count { font-size: 12px; color: #90949c; font-family: monospace; }

.player-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
audio { flex-grow: 1; height: 38px; border-radius: 8px; }

.btn-dl { 
    background: #42b72a; color: white; text-decoration: none; padding: 10px 22px; 
    border-radius: 10px; font-weight: 600; font-size: 14px; transition: 0.2s;
}
.btn-dl:hover { background: #36a420; transform: scale(1.05); }
.btn-dl.ios-mode { background: #000000; }

/* Machine Loading Animation */
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
.loading { animation: pulse 1.5s infinite; }
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
input {
    -webkit-user-select: text;
    user-select: text;
}
/* Modal Style */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 25px;
    border-radius: 20px;
    width: 85%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}