body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a1a;
    overflow: hidden;
}

.container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.photo-album {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotate 20s linear infinite;
    transform: rotateX(-25deg) rotateY(-25deg);
    z-index: 1;
}

.photo-item {
    position: absolute;
    width: 200px;
    height: 200px;
    transform-origin: center;
    transition: all 3s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: visible;
    opacity: 0.9;
    will-change: transform, opacity;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.front { transform: translateZ(120px); }
.back { transform: translateZ(-120px) rotateY(180deg); }
.right { transform: translateX(120px) rotateY(90deg); }
.left { transform: translateX(-120px) rotateY(-90deg); }
.top { transform: translateY(-120px) rotateX(90deg); }
.bottom { transform: translateY(120px) rotateX(-90deg); }

.photo-item.explode {
    opacity: 0.6;
    transition: all 4s ease-out;
}

.front.explode { transform: translateZ(200px); }
.back.explode { transform: translateZ(-200px) rotateY(180deg); }
.right.explode { transform: translateX(200px) rotateY(90deg); }
.left.explode { transform: translateX(-200px) rotateY(-90deg); }
.top.explode { transform: translateY(-200px) rotateX(90deg); }
.bottom.explode { transform: translateY(200px) rotateX(-90deg); }

.danmaku-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.danmaku {
    position: absolute;
    white-space: nowrap;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    right: -100%;
    animation: danmaku-move linear forwards;
    opacity: 0;
}

@keyframes danmaku-move {
    0% { right: -100%; opacity: 0; }
    5% { right: 0; opacity: 0.8; }
    95% { right: calc(100% - 100px); opacity: 0.8; }
    100% { right: 100%; opacity: 0; }
}

.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.music-control button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

@keyframes rotate {
    0% { transform: rotateX(-25deg) rotateY(0deg); }
    100% { transform: rotateX(-25deg) rotateY(360deg); }
} 