/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
    min-height: 100vh;
    color: #333;
}

.player-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 顶部搜索栏 */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ff7e5f;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    align-self: flex-start;
}

.wolf-icon {
    font-size: 2.5em;
    color: #5d4037;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.player-title {
    font-size: 2.5em;
    color: #ff7e5f;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.search-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.search-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.music-source {
    padding: 10px 15px;
    border: 2px solid #ff7e5f;
    border-radius: 25px;
    background-color: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
}

.search-input {
    flex: 1;
    padding: 16px 25px;
    border: 2px solid #ff7e5f;
    border-radius: 25px;
    font-size: 18px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #feb47b;
    box-shadow: 0 0 10px rgba(254, 180, 123, 0.3);
}

/* q弹图标效果 */
.icon-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background-color: #4a90e2;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.3s ease,
                box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.icon-btn:hover {
    background-color: #5c9ce6;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 16px rgba(74, 144, 226, 0.3);
}

.icon-btn:active {
    transform: translateY(2px) scale(0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 对播放控制按钮添加额外的q弹效果 */
.control-btn {
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.3s ease,
                box-shadow 0.3s ease;
}

.control-btn:hover {
    transform: translateY(-5px) scale(1.12);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.35);
}

.control-btn:active {
    transform: translateY(2px) scale(0.88);
}

.search-btn {
    padding: 16px 30px;
    font-size: 22px;
}

.quality-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.quality {
    padding: 8px 12px;
    border: 2px solid #ff7e5f;
    border-radius: 15px;
    background-color: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
}

/* 主体内容区 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* 左侧音乐信息区 */
.left-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 230, 200, 0.9) 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 专辑封面与狼耳装饰 */
.album-section {
    text-align: center;
    margin-bottom: 30px;
}

.album-cover {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.furry-decoration {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 80px;
}

/* 狼耳装饰 */
.wolf-ear {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 80px solid #5d4037;
    position: relative;
}

.wolf-ear::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -15px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 40px solid #ff7e5f;
}

.wolf-ear.left {
    transform: rotate(-20deg);
}

.wolf-ear.right {
    transform: rotate(20deg);
}

/* 弹幕样式 */
.danmaku-container {
    width: 100%;
    height: 40px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    margin: 15px 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wolf-image {
    text-align: center;
    font-size: 3em;
    margin: 15px 0;
    color: #5d4037;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.danmaku-item {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 16px;
    font-weight: bold;
    color: #ff7e5f;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    animation: danmaku-scroll 15s linear;
}

@keyframes danmaku-scroll {
    from {
        left: 100%;
    }
    to {
        left: -100%;
    }
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* 惊喜按钮样式 */
.surprise-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 230, 200, 0.9) 100%);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.surprise-btn {
    padding: 18px 40px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    background-color: #ff7e5f;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(255, 126, 95, 0.3);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.surprise-btn:hover {
    background-color: #ff6a4a;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 126, 95, 0.4);
}

.surprise-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 4px 8px rgba(255, 126, 95, 0.3);
}



.song-info {
    color: #333;
}

#song-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #ff7e5f;
}

#song-artist, #song-album {
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #555;
}

/* 播放控制 */
.playback-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.control-btn {
    padding: 15px 25px;
    font-size: 20px;
    border-radius: 50%;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a90e2;
}

.control-btn:hover {
    background-color: #5c9ce6;
}

.play-btn {
    background-color: #4a90e2;
    font-size: 28px;
    min-width: 70px;
    height: 70px;
}

.play-btn:hover {
    background-color: #5c9ce6;
}

/* 进度条 */
.progress-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

#current-time, #total-time {
    font-size: 14px;
    color: #555;
    min-width: 45px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background-color: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4a90e2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-bar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

/* 歌词列表 */
.lyrics-container {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.lyrics-container h3 {
    color: #ff7e5f;
    margin-bottom: 15px;
    text-align: center;
}

.lyrics-list {
    text-align: center;
    line-height: 1.8;
}

.lyrics-list p {
    margin: 5px 0;
    color: #555;
    transition: all 0.3s ease;
}

.lyrics-list p.active {
    color: #ff7e5f;
    font-weight: bold;
    font-size: 1.1em;
    transform: scale(1.05);
}

/* 右侧播放列表区 */
.right-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 230, 200, 0.9) 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}



/* 播放列表控制 */
.playlist-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.playlist-controls h3 {
    color: #ff7e5f;
    font-size: 1.5em;
}

.playlist-actions {
    display: flex;
    gap: 10px;
}

.playlist-btn {
    padding: 8px 15px;
    font-size: 18px;
    border-radius: 20px;
    background-color: #4a90e2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.3s ease,
                box-shadow 0.3s ease;
}

.playlist-btn:hover {
    background-color: #5c9ce6;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 12px rgba(74, 144, 226, 0.3);
}

.playlist-btn:active {
    transform: translateY(1px) scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 播放列表 */
.playlist {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 15px;
    overflow-y: auto;
    max-height: 400px;
}

.empty-playlist {
    text-align: center;
    color: #999;
    padding: 50px 0;
}

.playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: white;
    border-radius: 10px;
    border-left: 4px solid #ff7e5f;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-item-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: #ff7e5f;
}

.playlist-item:hover {
    background-color: #5c9ce6;
    transform: translateX(5px);
}

.playlist-item.active {
    background-color: #4a90e2;
    color: white;
}

.playlist-item-info {
    flex: 1;
}

.playlist-item-title {
    font-weight: bold;
    margin-bottom: 3px;
}

.playlist-item-artist {
    font-size: 0.9em;
    color: #666;
}

.playlist-item.active .playlist-item-artist {
    color: rgba(255, 255, 255, 0.9);
}

.playlist-item-btn {
    padding: 8px 12px;
    font-size: 18px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-left: 5px;
}

/* 搜索结果弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff7e5f;
}

.modal-header h3 {
    color: #ff7e5f;
    font-size: 1.5em;
}

.close-modal-btn {
    padding: 8px 15px;
    border-radius: 50%;
    font-size: 18px;
    background-color: #4a90e2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.3s ease,
                box-shadow 0.3s ease;
}

.close-modal-btn:hover {
    background-color: #5c9ce6;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(74, 144, 226, 0.3);
}

.close-modal-btn:active {
    transform: scale(0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #ff7e5f;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.search-result-artist, .search-result-album {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 3px;
}

.search-result-actions {
    display: flex;
    gap: 10px;
}

/* 法律声明 */
.footer {
    text-align: center;
    padding: 20px;
    border-top: 2px solid #ff7e5f;
    color: #555;
    font-size: 14px;
}

.disclaimer {
    margin-bottom: 10px;
    line-height: 1.5;
}

.provider {
    color: #ff7e5f;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .player-container {
        padding: 15px;
        border-radius: 15px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-input-group {
        flex-direction: column;
        width: 100%;
    }
    
    .music-source, .search-input, .search-btn {
        width: 100%;
    }
    
    .header-left {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        align-self: center;
    }
    
    .wolf-icon {
        font-size: 2em;
    }
    
    .player-title {
        font-size: 2em;
    }
    
    .search-input {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .playback-controls {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .control-btn {
        padding: 12px 20px;
        font-size: 20px;
        min-width: 50px;
        height: 50px;
    }
    
    .play-btn {
        min-width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .playlist-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .playlist-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .playlist-btn {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .album-cover {
        width: 200px;
        height: 200px;
    }
    
    .wolf-ear {
        border-left: 25px solid transparent;
        border-right: 25px solid transparent;
        border-bottom: 60px solid #5d4037;
    }
    
    .wolf-ear::after {
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-bottom: 30px solid #ff7e5f;
    }
    
    #song-title {
        font-size: 1.5em;
    }
    
    .lyrics-container {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .search-btn {
        padding: 12px 25px;
        font-size: 20px;
    }
    
    .control-btn {
        padding: 10px 16px;
        font-size: 18px;
        min-width: 45px;
        height: 45px;
    }
    
    .play-btn {
        min-width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .album-cover {
        width: 180px;
        height: 180px;
    }
    
    .wolf-icon {
        font-size: 1.8em;
    }
    
    .player-title {
        font-size: 1.8em;
    }
    
    /* 惊喜按钮移动端样式 */
    .surprise-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .surprise-btn {
        padding: 14px 30px;
        font-size: 20px;
    }
}