/* 底部导航栏样式 */
.glass-tab-bar {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 90%;
    max-width: 400px;
    padding: 6px 10px;
    border-radius: 30px;
    background: var(--nav-bg, rgba(28, 28, 36, 0.85));
    backdrop-filter: saturate(5) blur(20px);
    -webkit-backdrop-filter: saturate(5) blur(20px);
    box-shadow: 0 -4px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
    z-index: 1000;
    min-height: 40px;
}
.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    font-size: 12px;
    flex: 1;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 4px 0;
}
.tab-item i {
    font-size: 24px;
    margin-bottom: 2px;
    transition: transform 0.2s;
}
.tab-item.active,
.tab-item:hover {
    color: var(--active-color, #1dd1a1);
    transform: translateY(-2px);
}
.tab-item.active i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--active-color, #1dd1a1));
}
.tab-item.active::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: var(--active-color, #1dd1a1);
    border-radius: 50%;
    margin-top: 2px;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.6; transform: scale(1); }
}

/* 浮动搜索框 */
.floating-search-wrapper {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) scale(0.95) translateY(10px);
    width: 90%;
    max-width: 400px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}
.floating-search-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1) translateY(0);
    pointer-events: auto;
}
.floating-search-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    position: relative;
}
.close-search-btn {
    position: absolute;
    top: -35px;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.close-search-btn:hover {
    background: var(--active-color, #1dd1a1);
    transform: rotate(90deg);
}
.search-input .line-form {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    padding: 5px 15px;
    align-items: center;
}
.search-input-text {
    flex: 1;
}
.search-input-text input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 8px 0;
    outline: none;
}
.abs-right button {
    background: var(--active-color, #1dd1a1);
    border: none;
    border-radius: 30px;
    padding: 6px 15px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.search-keywords {
    margin-top: 15px;
}
.search_keywords {
    display: inline-block;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin: 0 5px 8px 0;
    text-decoration: none;
    color: #666;
}

/* 迷你音乐播放器 */
.mini-music-player {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 90%;
    max-width: 400px;
    background: rgba(28, 28, 36, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 998;
    display: flex;
    align-items: center;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    gap: 12px;
}
.mini-music-player.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.mmc-cover-box {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.mmc-cover-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mmc-center-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.mmc-dynamic-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--lyric-color, #ffffff);   /* 使用变量，默认白色 */
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}
.mmc-sub-text {
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mmc-progress-area {
    margin-top: 8px;
    height: 3px;
    background: rgba(128, 128, 128, 0.3);
    border-radius: 2px;
    cursor: pointer;
}
.mmc-progress-bar {
    height: 100%;
    background: var(--active-color, #1dd1a1);
    width: 0%;
    border-radius: 2px;
}
.mmc-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}
.mmc-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mmc-btn.main-play {
    background: var(--active-color, #1dd1a1);
    width: 40px;
    height: 40px;
}
.mmc-close {
    position: absolute;
    top: -30px;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.icon-svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
@media (max-width: 768px) {
    .glass-tab-bar { width: 95%; }
    .mini-music-player { padding: 10px; }
    .mmc-dynamic-text { font-size: 13px; }
}

/* 浅色模式适配（不覆盖歌词颜色，由用户设置变量决定） */
body:not(.dark-theme) .glass-tab-bar {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.05);
}
body:not(.dark-theme) .tab-item { color: #555; }
body:not(.dark-theme) .tab-item.active,
body:not(.dark-theme) .tab-item:hover { color: var(--active-color, #1dd1a1); }
body:not(.dark-theme) .mini-music-player {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}
body:not(.dark-theme) .mmc-sub-text { color: #666; }
body:not(.dark-theme) .mmc-progress-area { background: rgba(0, 0, 0, 0.1); }
body:not(.dark-theme) .floating-search-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}
body:not(.dark-theme) .search_keywords {
    background: rgba(0, 0, 0, 0.05);
    color: #555;
}
body:not(.dark-theme) .close-search-btn,
body:not(.dark-theme) .mmc-close {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}