* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #fafafa;
    overflow: hidden;
    height: 100vh;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.player {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* 左侧区域 */
.left-section {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px;
    background: #ffffff;
}

/* 歌曲信息 */
.song-info {
    margin-bottom: 40px;
    width: 100%;
    max-width: 400px;
    text-align: left;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.song-title {
    font-size: 36px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.2;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

.song-artist {
    font-size: 18px;
    color: #8e8e93;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

/* 专辑封面 - 圆形 */
.album-cover {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 进度条 */
.progress-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    align-self: center;
}

.time-current,
.time-total {
    font-size: 14px;
    color: #8e8e93;
    min-width: 42px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: #1a1a1a;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #1a1a1a;
    border-radius: 50%;
    left: 0%;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.progress-bar:hover .progress-thumb {
    opacity: 1;
}

/* 控制按钮 */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    align-self: center;
}

.btn-control,
.btn-play {
    border: none;
    background: none;
    color: #1a1a1a;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

.btn-control:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

.btn-control:active,
.btn-play:active {
    transform: scale(0.95);
}

.btn-play {
    width: 64px;
    height: 64px;
    background: #1a1a1a;
    color: #ffffff;
}

.btn-play:hover {
    background: #2a2a2a;
    transform: scale(1.05);
}

.hidden {
    display: none !important;
}

/* 右侧歌词区域 */
.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 80px 100px;
    background: #fafafa;
    overflow: hidden;
}

/* 歌词 */
.lyrics {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
}

/* 隐藏滚动条 */
.lyrics::-webkit-scrollbar {
    display: none;
}

.lyrics {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.lyric-line {
    font-size: 24px;
    line-height: 2;
    color: #c7c7cc;
    transition: all 0.3s ease;
    padding: 8px 0;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

@media (hover: hover) {
    .lyric-line:hover {
        color: #6e6e73;
        font-size: 26px;
    }
}

.lyric-line.active {
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
}

/* 移动端底部控制栏 - 默认隐藏 */
.mobile-bottom-bar {
    display: none;
}

/* 响应式 - 移动端 */
@media (max-width: 768px) {
    .player {
        flex-direction: column;
        padding-bottom: 140px;
    }

    /* 左侧区域变为顶部信息+专辑图 */
    .left-section {
        flex: 0 0 auto;
        align-items: center;
        padding: 30px 24px 20px;
        background: #ffffff;
    }

    .song-info {
        margin-bottom: 24px;
        text-align: left;
        align-self: flex-start;
    }

    .song-title {
        font-size: 28px;
    }

    .song-artist {
        font-size: 15px;
    }

    .album-cover {
        display: none;
    }

    .progress-container,
    .controls {
        display: none;
    }

    /* 右侧变为歌词区域 */
    .right-section {
        flex: 1;
        padding: 24px;
        background: #ffffff;
        overflow-y: auto;
    }

    .lyrics {
        padding: 0;
    }

    .lyric-line {
        font-size: 18px;
        line-height: 2;
        text-align: center;
    }

    .lyric-line.active {
        font-size: 22px;
    }

    /* 显示移动端底部控制栏 */
    .mobile-bottom-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e5e5e5;
        padding: 16px 20px 32px;
        z-index: 100;
    }

    /* 进度条 */
    .mobile-progress-container {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
    }

    .mobile-time-current,
    .mobile-time-total {
        font-size: 13px;
        color: #8e8e93;
        min-width: 40px;
        text-align: center;
    }

    .mobile-progress-bar {
        flex: 1;
        height: 3px;
        background: #e5e5e5;
        border-radius: 2px;
        position: relative;
        cursor: pointer;
    }

    .mobile-progress-fill {
        height: 100%;
        background: #1a1a1a;
        border-radius: 2px;
        width: 0%;
        transition: width 0.1s linear;
    }

    /* 控制按钮 */
    .mobile-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 24px;
    }

    /* 移动端专辑缩略图 */
    .mobile-album-thumb {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        overflow: hidden;
        position: absolute;
        left: 20px;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -webkit-touch-callout: none;
    }

    .mobile-album-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -webkit-drag: none;
        -webkit-touch-callout: none;
        pointer-events: none;
    }

    .mobile-btn-control,
    .mobile-btn-play {
        border: none;
        background: none;
        color: #1a1a1a;
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -webkit-touch-callout: none;
    }

    .mobile-btn-control:active,
    .mobile-btn-play:active {
        transform: scale(0.9);
    }

    .mobile-btn-play {
        width: 56px;
        height: 56px;
        background: #1a1a1a;
        color: #ffffff;
    }
}

@media (max-width: 480px) {
    .left-section {
        padding: 24px 20px 16px;
    }

    .song-info {
        margin-bottom: 20px;
    }

    .song-title {
        font-size: 24px;
    }

    .song-artist {
        font-size: 14px;
    }

    .album-cover {
        max-width: 200px;
    }

    .right-section {
        padding: 20px;
    }

    .lyric-line {
        font-size: 16px;
    }

    .lyric-line.active {
        font-size: 20px;
    }

    .mobile-controls {
        gap: 20px;
    }

    .mobile-btn-play {
        width: 52px;
        height: 52px;
    }
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
    }

    .left-section {
        background: #2a2a2a;
    }

    .right-section {
        background: #1a1a1a;
    }

    .song-title {
        color: #ffffff;
    }

    .song-artist {
        color: #8e8e93;
    }

    .lyric-line {
        color: #6e6e73;
    }

    .lyric-line:hover {
        color: #9e9e9e;
    }

    .lyric-line.active {
        color: #ffffff;
    }

    .progress-bar {
        background: #3a3a3a;
    }

    .progress-fill,
    .progress-thumb {
        background: #ffffff;
    }

    .btn-control {
        color: #ffffff;
    }

    .btn-control:hover {
        background: #3a3a3a;
    }

    .btn-play {
        background: #ffffff;
        color: #1a1a1a;
    }

    .btn-play:hover {
        background: #e5e5e5;
    }

    .lyrics::-webkit-scrollbar-thumb {
        background: #3a3a3a;
    }

    .lyrics::-webkit-scrollbar-thumb:hover {
        background: #4a4a4a;
    }
}
