* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: linear-gradient(145deg, #121212 0%, #1e1e1e 100%);
    color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 160px; /* 给固定底部播放器预留空间 */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 16px;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    background: linear-gradient(120deg, #ffffff, #b0b0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.source-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.source-label {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 400;
}

.source-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #ccc;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    -webkit-tap-highlight-color: transparent;
}

.chip:hover {
    background: #3a3a3a;
    border-color: #555;
    color: #fff;
}

.chip.active {
    background: #5e5e5e;
    border-color: #888;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.search-box-wrapper {
    display: flex;
    width: 100%;
    background: #2a2a2a;
    border-radius: 60px;
    border: 1px solid #3f3f3f;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.search-box-wrapper:focus-within {
    box-shadow: 0 0 0 2px #6a6a6a;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    color: white;
    outline: none;
    min-width: 0;
}

.search-input::placeholder {
    color: #666;
}

.search-btn {
    background: #3e3e3e;
    border: none;
    width: 60px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #555;
}

.song-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

@media (min-width: 640px) {
    .song-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .song-list {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 24px;
    }
    .logo {
        font-size: 2rem;
    }
    .search-input {
        padding: 16px 24px;
        font-size: 1.1rem;
    }
}

.list-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #666;
    font-size: 1rem;
    background: rgba(255,255,255,0.02);
    border-radius: 40px;
    border: 1px dashed #333;
}

.song-card {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 12px;
    border: 1px solid #2d2d2d;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.15s, border-color 0.15s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
    -webkit-tap-highlight-color: transparent;
}

.song-card:hover {
    transform: translateY(-4px);
    border-color: #5a5a5a;
    background: #2a2a2a;
}

.card-cover {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 18px;
    object-fit: cover;
    background: #333;
    box-shadow: 0 6px 12px rgba(0,0,0,0.6);
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f0f0f0;
}

.card-artist {
    font-size: 0.8rem;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.card-source {
    background: #333;
    padding: 4px 8px;
    border-radius: 30px;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #ccc;
    border: 1px solid #494949;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-duration {
    color: #888;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 2px;
}

.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid #2d2d2d;
    padding: 8px 12px 12px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.8);
    z-index: 100;
}

.player-progress-container {
    width: 100%;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: #3a3a3a;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #b88aff;
    margin-top: -5px;
}

.progress-bar::-webkit-slider-runnable-track {
    height: 4px;
    background: linear-gradient(to right, #ff8a8a, #b88aff, #8affc2);
    border-radius: 4px;
}

.player-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.player-cover-small {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.player-cover-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    min-width: 120px;
    flex: 2 1 auto;
}

.song-title {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.75rem;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: #ddd;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ctrl-btn:hover {
    color: white;
    background: #333;
}

.play-pause {
    background: #5e5e5e;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.play-pause:hover {
    background: #777;
}

.player-extra {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.extra-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    padding: 6px;
    border-radius: 30px;
}

.extra-btn:hover {
    color: white;
    background: #3a3a3a;
}

.mini-lyrics {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 4px 0;
    border-top: 1px solid #2d2d2d;
    margin-top: 6px;
}

.fullscreen-player {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.98);
    backdrop-filter: blur(30px);
    z-index: 200;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.fullscreen-content {
    max-width: 600px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.close-fullscreen {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
}

.fullscreen-album {
    text-align: center;
    margin-bottom: 20px;
}

.fullscreen-album img {
    width: 180px;
    height: 180px;
    border-radius: 30px;
    object-fit: cover;
    margin: 0 auto;
    box-shadow: 0 20px 30px rgba(0,0,0,0.8);
    border: 2px solid #3a3a3a;
}

@media (min-width: 640px) {
    .fullscreen-album img {
        width: 240px;
        height: 240px;
    }
}

.fullscreen-lyrics-container {
    flex: 1;
    overflow-y: auto;
    margin: 20px 0;
    padding: 16px;
    border-radius: 30px;
    background: rgba(30,30,30,0.5);
    color: #ccc;
    max-height: 40vh;
}

.fullscreen-lyrics-scroll p {
    margin: 8px 0;
    font-size: 1rem;
    transition: 0.2s;
    color: #aaa;
    line-height: 1.5;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.fullscreen-lyrics-scroll p.active-lyric {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.fullscreen-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.fullscreen-download {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.fs-download {
    background: #2a2a2a;
    border: 1px solid #4a4a4a;
    color: #ddd;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fs-download:hover {
    background: #3e3e3e;
    color: white;
}

.fs-playback {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.fs-ctrl {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-ctrl:hover {
    background: #333;
}

.fs-play {
    background: #5e5e5e;
    width: 60px;
    height: 60px;
    font-size: 2.2rem;
}

@media (max-width: 480px) {
    .player-main {
        gap: 6px;
    }
    .player-info {
        min-width: 100px;
    }
    .player-extra {
        gap: 4px;
    }
    .extra-btn {
        font-size: 0.9rem;
        padding: 4px;
    }
    .fullscreen-download {
        gap: 8px;
    }
    .fs-download {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.ctrl-btn i, .extra-btn i, .fs-ctrl i, .fs-download i {
    font-size: 1.2em;
    vertical-align: middle;
}

.play-pause i {
    font-size: 1.4rem;
}

.source-label i {
    margin-right: 4px;
    color: #b88aff;
}

.fs-download i {
    margin-right: 4px;
}

.card-source i {
    margin-right: 2px;
    font-size: 0.8em;
}

.card-source[data-source="netease"] i { color: #d43c33; }
.card-source[data-source="qq"] i { color: #2d9af0; }
.card-source[data-source="kugou"] i { color: #0cf; }
.card-source[data-source="kuwo"] i { color: #ff7f00; }

.list-placeholder i {
    font-size: 2rem;
    color: #444;
    margin-bottom: 10px;
    display: block;
}

#debug-toggle i {
    font-size: 1.4rem;
    line-height: 44px;
}

.fullscreen-btn i {
    font-size: 1.1rem;
}

.chip i {
    margin-right: 4px;
}

/* 页面底部信息：版权/备案（与底部播放器不冲突） */
.site-footer {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 16px 16px 24px;
    text-align: left;
}

.footer-line {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    color: #888;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left;
}

.footer-sep {
    color: #555;
}

.site-footer a {
    color: #b88aff;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

@media (max-width: 480px) {
    .site-footer {
        padding: 12px 12px 30px;
    }

    .footer-line {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}