@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "优设标题黑", 'Lato', sans-serif;
    -webkit-user-select: none;
    user-select: none;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #77bbdd 0%, #3388bb 100%);
}

/* View Switcher */
.view-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 999;
}

.view-toggle-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 25px;
    /* float: right; */
    right:10%;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.view-toggle-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.view-toggle-btn i {
    font-size: 20px;
    color: #667eea;
}

.view-toggle-btn span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Mini Player Styles */
.mini-player-wrapper {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mini-player-wrapper.active {
    display: flex;
}

.music-container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 20px 0 rgba(8, 182, 212, 0.822);
    display: flex;
    padding: 20px 30px;
    position: relative;
    margin: 70px 0;
    z-index: 10;
}

.img-container {
    position: relative;
    width: 110px;
}

.img-container::after {
    content: "";
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 15px;
    height: 15px;
    transform: translate(-50%, 50%);
}

.img-container img {
    border-radius: 50%;
    height: 110px;
    width: inherit;
    object-fit: cover;
    position: absolute;
    bottom: 0;
    left: 0;
    animation: rotate 3s linear infinite;
    animation-play-state: paused;
}

.music-container.play .img-container img {
    animation-play-state: running;
}

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

.navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.action-btn {
    border: 0;
    background-color: #fff;
    color: #0decfc;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    margin: 0 20px;
}

.action-btn:focus {
    outline: 0;
}

.action-btn.action-btn-big {
    color: #0cdae9;
    font-size: 30px;
}

.music-info {
    position: absolute;
    top: 0;
    left: 20px;
    width: calc(100% - 40px);
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 15px 15px 0 0;
    padding: 10px 10px 10px 150px;
    opacity: 0;
    transform: translateY(0%);
    transition: transform 0.3s ease-in, opacity 0.3s ease-in;
    z-index: 0;
}

.music-info h4 {
    margin: 0;
}

.music-container.play .music-info {
    opacity: 1;
    transform: translateY(-100%);
}

.progress-container {
    background-color: #fff;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
    height: 4px;
    width: 100%;
}

.progress {
    background-color: #0decfc;
    border-radius: 5px;
    height: 100%;
    width: 0%;
    transition: width 0.1s linear;
}

/* Large Player Styles */
.large-player-wrapper {
    display: none;
    justify-content: center;
    align-items: center;
}

.large-player-wrapper.active {
    display: flex;
}

.shell {
    z-index: 99;
    width: 330px;
    height: 580px;
    border-radius: 15px;
    box-shadow: 0 10px 30px #00000085;
    border-top: 1px solid rgba(255, 255, 255, .9);
    border-left: 1px solid rgba(255, 255, 255, .9);
    background: linear-gradient(to right bottom,
            rgba(255, 255, 255, .6),
            rgba(255, 255, 255, .3),
            rgba(255, 255, 255, .2));
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.shell.shift-left {
    transform: translateX(125px);
}

.shell.shift-right {
    transform: translateX(-125px);
}

/* Navigation Bar */
.nav-bar {
    position: absolute;
    top: -60px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-btn {
    padding: 10px 15px;
    background: rgba(110, 124, 245, 0.1);
    border: none;
    border-radius: 8px;
    color: rgb(40, 45, 100);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn:hover {
    background: rgba(110, 124, 245, 0.2);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #77bbdd 0%, #3388bb 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

.nav-btn i {
    font-size: 16px;
}

.cover {
    width: 280px;
    height: 270px;
    overflow: hidden;
    position: absolute;
    top: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 30px #7d70ecb7;
}

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

.shell input[type=range] {
    -webkit-appearance: none !important;
    margin: 0px;
    padding: 0px;
    background: rgb(255, 255, 255);
    height: 5px;
    width: 150px;
    outline: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 5px;
}

.shell input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    background: #ff3677;
    height: 5px;
    width: 5px;
    border-radius: 50%;
    box-shadow: -100vw 0 0 100vw rgb(160, 200, 250);
}

.shell input[type=range]::-moz-range-thumb {
    background: #ff3677;
    height: 8px;
    width: 8px;
    border-radius: 100%;
}

.shell input[type=range]::-ms-thumb {
    -webkit-appearance: none !important;
    background: #ff3677;
    height: 8px;
    width: 8px;
    border-radius: 100%;
}

.info {
    position: absolute;
    top: 305px;
    text-align: center;
}

.info .title {
    font-size: 35px;
    color: rgb(40, 45, 100);
}

.info .singer {
    font-size: 20px;
    color: #3447f5;
    margin-top: 5px;
}

.copyright-btn {
    /* display: inline-flex !important; */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgb(40, 45, 100);
    font-size: 24px;
    /* margin: 0 15px; */
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    background: none;
}

.copyright-btn:hover {
    color: #ff3677;
    transform: scale(1.1);
}

.copyright-btn i {
    font-size: 24px;
}

.btn-box {
    position: absolute;
    top: 400px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-box i {
    font-size: 24px;
    color: rgb(40, 45, 100);
    margin: 0 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-box i:hover {
    color: #ff3677;
    transform: scale(1.1);
}

.btn-box i.active {
    color: #ff3677;
}

.volume-box {
    display: none;
    position: absolute;
    top: 370px;
    z-index: 1;
    padding: 0 20px;
}

.volume-box .volume-down {
    position: absolute;
    left: -15px;
    cursor: pointer;
    color: rgb(40, 45, 100);
}

.volume-box .volume-up {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgb(40, 45, 100);
}

.volume-box input[type=range] {
    height: 5px;
    width: 150px;
    margin: 0 0 15px 0;
}

.volume-box.active {
    display: block;
}

.music-box {
    position: absolute;
    top: 445px;
}

.music-box input[type=range] {
    height: 5px;
    width: 230px;
    margin: 0 0 10px 0;
}

.music-box input[type=range]::-webkit-slider-thumb {
    height: 5px;
    width: 7px;
}

.music-box .current-time {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #252525;
}

.music-box .duration {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: rgb(40, 45, 100);
}

.music-box .play,
.music-box .pause {
    position: absolute;
    left: 50%;
    top: 55px;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background-color: rgb(160, 200, 250);
    cursor: pointer;
    transition: all 0.4s;
}

.music-box .play:hover,
.music-box .pause:hover {
    background-color: rgb(140, 180, 230);
    transform: translateX(-50%) scale(1.05);
}

.music-box .play i,
.music-box .pause i {
    font-size: 36px;
    color: rgb(40, 45, 100);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-48%, -50%);
}

.music-box .pause i {
    font-size: 32px;
    transform: translate(-50%, -50%);
}

.music-box .prev-btn,
.music-box .next-btn {
    position: absolute;
    left: 50%;
    top: 55px;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background-color: rgb(160, 200, 250);
    cursor: pointer;
    transition: all 0.4s;
}

.music-box .prev-btn {
    left: calc(50% - 80px);
}

.music-box .next-btn {
    left: calc(50% + 80px);
}

.music-box .prev-btn:hover,
.music-box .next-btn:hover {
    background-color: rgb(140, 180, 230);
    transform: translateX(-50%) scale(1.05);
}

.music-box .prev-btn i,
.music-box .next-btn i {
    font-size: 36px;
    color: rgb(40, 45, 100);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-48%, -50%);
}

/* Playlist Panel */
.playlist-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    display: none;
    overflow: hidden;
}

.playlist-panel.active {
    display: block;
}

.playlist-items {
    padding: 10px;
    height: 100%;
    overflow-y: auto;
}

.playlist-item {
    padding: 12px;
    margin: 5px 0;
    background: rgba(110, 124, 245, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-item:hover {
    background: rgba(110, 124, 245, 0.2);
    transform: translateX(5px);
}

.playlist-item.active {
    background: rgba(110, 124, 245, 0.3);
}

.playlist-item .item-title {
    font-weight: 600;
    color: rgb(40, 45, 100);
    font-size: 14px;
}

.playlist-item .item-artist {
    color: #6e7cf5;
    font-size: 12px;
    margin-top: 4px;
}

/* Lyrics Panel */
.lyrics-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    display: none;
    overflow: hidden;
}

.lyrics-panel.active {
    display: block;
}

.lyrics-content {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.lyrics-content .no-lyrics {
    text-align: center;
    color: #999;
    margin-top: 50px;
}

.lyrics-line {
    padding: 8px 0;
    transition: all 0.3s ease;
    color: #666;
}

.lyrics-line.active {
    color: #ff3677;
    font-weight: 600;
    transform: scale(1.05);
}

/* Player Content Wrapper */
.player-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.player-content.active {
    display: flex;
    flex-direction: column;
}

/* Scrollbar Styles */
.playlist-items::-webkit-scrollbar,
.lyrics-content::-webkit-scrollbar {
    width: 6px;
}

.playlist-items::-webkit-scrollbar-track,
.lyrics-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.playlist-items::-webkit-scrollbar-thumb,
.lyrics-content::-webkit-scrollbar-thumb {
    background: rgba(110, 124, 245, 0.5);
    border-radius: 10px;
}

.playlist-items::-webkit-scrollbar-thumb:hover,
.lyrics-content::-webkit-scrollbar-thumb:hover {
    background: rgba(110, 124, 245, 0.7);
}
