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

:root {
    --box-width: 60vw;
    --box-height: 20px;
    --box-depth: 60vw;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#app {
    width: 100%;
    height: 100%;
}

.container {
    perspective: 1500px;
    width: 100%;
    height: 100%;
}

.music-list {
    padding: 50px 0;
    overflow-y: auto;
    height: 100%;
    transform-style: preserve-3d;
}

.music-item {
    width: var(--box-width);
    height: var(--box-height);
    margin: 60px auto;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: height 0.6s ease;
}

.music-item.active {
    height: var(--box-depth);
    margin: 240px auto -60px;
    transform-origin: center center;
}

.box-wrap {
    animation: rotateY 10s linear infinite;
    transform-origin: center center;
    transform-style: preserve-3d;
}

.box {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(var(--rotate-x, -20deg)) rotateY(30deg);
    transition: transform 0.6s;
    animation: rotateY 20s linear infinite;
    animation-delay: var(--animation-delay, 0s);
}

@keyframes rotateY {
    from {
        transform: rotateX(var(--rotate-x, -20deg)) rotateY(0deg);
    }

    to {
        transform: rotateX(var(--rotate-x, -20deg)) rotateY(360deg);
    }
}

.music-item:hover .box {
    transform: rotateX(-25deg) rotateY(35deg) translateZ(20px);
}

.face {
    position: absolute;
    background-size: cover;
    background-position: center;
    backface-visibility: visible;
}

.face.front {
    width: var(--box-width);
    height: var(--box-height);
    transform: translateZ(calc(var(--box-depth) / 2));
}

.face.back {
    width: var(--box-width);
    height: var(--box-height);
    transform: rotateY(180deg) translateZ(calc(var(--box-depth) / 2));
}

.face.top {
    width: var(--box-width);
    height: var(--box-depth);
    transform: rotateX(90deg) translateZ(calc(var(--box-depth) / 2));
}

.face.bottom {
    width: var(--box-width);
    height: var(--box-depth);
    transform: translate(0, calc(var(--box-depth) / -2 + var(--box-height))) rotateX(270deg) rotateZ(180deg);
}

.face.left {
    width: var(--box-depth);
    height: var(--box-height);
    transform: rotateY(-90deg) translateZ(calc(var(--box-width) / 2));
}

.face.right {
    width: var(--box-depth);
    height: var(--box-height);
    transform: rotateY(90deg) translateZ(calc(var(--box-width) / 2));
}

.music-info {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.music-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.music-artist {
    font-size: 14px;
    opacity: 0.8;
}

.music-item.active .box {
    transform: rotateX(-100deg) rotateY(0deg) rotateZ(45deg);
    animation: none;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
}

.loading-text {
    color: white;
    font-size: 24px;
}

.show-more-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    right: -50px;
    top: 50%;
    margin-top: -108px;
    transform: translateY(-50%) scale(0.8);
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 12px;
    z-index: 100;
    transform-style: flat;
    color: #fff;
    backdrop-filter: blur(10px);
}

.show-more-btn:hover {
    background: white;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    border: none;
    background: #333;
    color: white;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

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

.modal-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-desc {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.modal-text {
    line-height: 1.6;
    color: #333;
}

.credit {
    position: fixed;
    bottom: 6px;
    left: 6px;
    transform: scale(0.8);
    transform-origin: left bottom;
    color: #fff;
    font-size: 12px;
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    border-radius: 4px;
}