:root {
    --apple-red: #24c8fa;
    --bg-color: #000;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-active: rgba(255, 255, 255, 0.2);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'MiSans Semibold', sans-serif; user-select: none; }
body { background-color: var(--bg-color); color: #fff; overflow: hidden; height: 100vh; }
#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; filter: blur(60px) brightness(0.6); transition: background 1.5s ease; background-size: cover; background-position: center; }
#top-bar { position: fixed; top: 0; width: 100%; padding: 20px 50px; z-index: 100; display: flex; align-items: center; justify-content: space-between; }
.search-container { background: var(--glass-bg); backdrop-filter: blur(20px); border-radius: 12px; padding: 8px 15px; display: flex; align-items: center; width: 350px; border: 1px solid rgba(255,255,255,0.1); }
.search-container input { background: transparent; border: none; color: #fff; outline: none; width: 100%; padding-left: 10px; }
#main-viewport { height: 100vh; transition: transform 0.8s cubic-bezier(0.6, 0, 0.3, 1); }
.song-page { height: 100vh; display: flex; align-items: center; padding: 0 8%; }
.song-info-side { flex: 0 0 450px; display: flex; flex-direction: column; align-items: flex-start; }
.cover-art { width: 400px; height: 400px; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); margin-bottom: 25px; transition: 0.3s; }
.title-meta h1 { font-size: 32px; margin-bottom: 5px; width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.title-meta p { font-size: 18px; color: rgba(255,255,255,0.6); margin-bottom: 25px; }
.controls-panel { width: 400px; background: var(--glass-bg); backdrop-filter: blur(20px); border-radius: 16px; padding: 20px; border: 1px solid rgba(255,255,255,0.1); }
.progress-container { margin-bottom: 15px; }
input[type="range"] { -webkit-appearance: none; width: 100%; background: rgba(255,255,255,0.2); height: 4px; border-radius: 2px; outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; background: #fff; border-radius: 50%; cursor: pointer; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
.time-info { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 5px; }
.buttons-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.btn { cursor: pointer; opacity: 0.8; transition: 0.2s; padding: 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.btn:hover { opacity: 1; background: var(--glass-active); }
.btn.active { color: var(--apple-red); }
.btn-play { background: #fff; color: #000; width: 45px; height: 45px; }
.btn-play:hover { transform: scale(1.1); background: #fff; }
.volume-row { display: flex; align-items: center; gap: 10px; opacity: 0.6; }
.volume-row:hover { opacity: 1; }
.lyric-side { flex: 1; height: 80vh; margin-left: 50px; pointer-events: none; }
iframe { width: 100%; height: 100%; border: none; background: transparent; }
#search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 200; display: none; padding: 100px 50px; overflow-y: auto; backdrop-filter: blur(30px); }
.back-btn { position: absolute; top: 30px; left: 50px; cursor: pointer; font-size: 20px; color: var(--apple-red); }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px; margin-top: 40px; }
.song-card { cursor: pointer; transition: 0.3s; }
.song-card img { width: 100%; border-radius: 10px; margin-bottom: 10px; }
.loading-tip { position: fixed; bottom: 20px; right: 20px; font-size: 12px; color: #555; }
#searchBtn { margin-left: 10px; padding: 5px; background: transparent; }
#searchBtn svg { opacity: 0.7; }
#searchBtn:hover svg { opacity: 1; color: var(--apple-red); }
.search-container { width: 380px; justify-content: space-between; }
#toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.toast-item {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(15px);
    color: white;
    padding: 12px 25px;
    border-radius: 15px;
    font-size: 15px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    animation: toast-in 0.4s cubic-bezier(0.2, 1, 0.2, 1), 
               toast-out 0.4s cubic-bezier(0.2, 1, 0.2, 1) 2.5s forwards;
    white-space: nowrap;
}
@keyframes toast-in {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {to { opacity: 0; transform: translateY(-20px) scale(0.9); }}
.song-info-side {
    flex: 0 0 450px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    border-radius: 24px;
    transition: background-color 1.2s ease, color 0.8s ease;
}
.loading-tip {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: color 0.8s ease;
    z-index: 100;
}