body { 
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    padding: 24px; 
    max-width: 800px; 
    margin: auto;
    transition: background-color 0.8s ease;
    min-height: 100vh;
    color: #222;
}

h1 { 
    margin-bottom: 24px; 
    font-weight: 800;
    letter-spacing: -0.5px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.6);
}


h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #333;
    text-align: center;
    text-transform: uppercase;
}
.control-box h3 {
    margin-top: 0;
}

img { 
    width: 84px; 
    height: 84px; 
    border-radius: 8px; 
    object-fit: cover; 
}

.card, .control-box { 
    border-radius: 16px; 
    padding: 20px; 
    background: rgba(255, 255, 255, 0.82); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.4);
    /*text-align: center;*/
}

.control-box { 
    text-align: center;
}

.card {
    display: flex; 
    gap: 16px; 
    align-items: center; 
}

.meta { 
    flex: 1; 
}

.title { 
    font-weight: 700; 
    font-size: 1.15rem; 
}

.artists { 
    color: #555; 
    margin-top: 2px;
}

.status { 
    margin-top: 8px; 
    color: #777; 
    font-size: 0.85rem; 
    text-transform: uppercase;
    font-weight: 600;
}

textarea { 
    width: 100%; 
    height: 90px; 
    font-size: 0.95rem; 
    font-family: inherit;
    padding: 12px; 
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
    outline: none;
    resize: vertical;
    transition: all 0.2s ease;
}

textarea:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: #1db954;
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.2);
}

.row { 
    display: flex; 
    gap: 40px; 
    margin-top: 12px; 
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    padding: 8px 18px;
    border-radius: 16px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

#saveResult, .control-box .muted {
    text-align: center;
}

#saveBtn {
    background-color: #1db954;
    color: white;
}

#saveBtn:hover {
    background-color: #1ed760;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

#refreshBtn {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

#refreshBtn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.muted { 
    color: #666; 
    font-size: 0.85rem; 
}

#saveResult {
    margin-top: 8px;
    font-weight: 500;
    text-transform: uppercase;
}

.progress-container { 
    margin-top: 12px; 
    width: 100%; 
}

.progress-bar-bg { 
    background-color: rgba(0, 0, 0, 0.08); 
    height: 6px; 
    border-radius: 3px; 
    overflow: hidden; 
    width: 100%; 
}

.progress-bar-fill { 
    background-color: #1db954; 
    height: 100%; 
    width: 0%; 
    transition: width 0.3s ease; 
}

.time-info { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.8rem; 
    color: #666; 
    margin-top: 6px; 
    font-variant-numeric: tabular-nums;
}

/* --- MODAL DIALOG --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.2s ease;
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
}

.modal-box h3 {
    margin-top: 0;
    margin-bottom: 6px;
}

.modal-box input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin: 16px 0;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    box-sizing: border-box;
    outline: none;
}

.modal-box input[type="password"]:focus {
    border-color: #0874c6;
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.2);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

#modalCancelBtn {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
}

#modalConfirmBtn {
    background: #0874c6;
    color: white;
}