body {
    background-color: #1a1a1a;
    color: #f0e6d2;
    font-family: 'KaiTi', 'SimSun', serif;
    background-image: url('../assets/background.jpg'); /* 假设一个背景图 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* overflow: auto !important; */ /* 移除，以实现非滚动布局 */
}

.container {
    /* max-width: 1200px; */
    /* margin: 20px auto; */
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.6);
    /* border-radius: 10px; */ /* 全屏时不需要圆角 */
    box-shadow: 0 0 15px rgba(255, 223, 186, 0.2);
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
    color: #ffd700;
    font-size: 2.5em;
    margin-bottom: 20px;
    flex-shrink: 0; /* 防止标题被压缩 */
}

.main-content {
    display: flex;
    gap: 20px;
    flex-grow: 1; /* 占据剩余所有空间 */
    min-height: 0; /* 关键：防止 flex 子项溢出 */
}

.video-player-container {
    flex-grow: 1;
    position: relative; /* 恢复相对定位以容纳播放器 */
    /* 移除旧的宽高比 hack */
    background-color: #000;
}

#video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #a88a53;
    object-fit: contain; /* 保持视频比例，避免裁剪 */
}

.video-playlist-container {
    flex-basis: 300px;
    flex-shrink: 0;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #a88a53;
    /* max-height: 600px; */ /* 移除固定最大高度，使其自适应 */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #a88a53;
    padding-bottom: 10px;
    margin-bottom: 10px;
    flex-shrink: 0; /* 防止头部被压缩 */
}

.playlist-header h2 {
    color: #ffd700;
    margin: 0;
}

.taiyi-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ffd700;
}

.video-playlist {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto; /* 让列表本身可以滚动 */
    flex-grow: 1; /* 占据播放列表容器的剩余空间 */
}

.video-playlist li {
    padding: 10px 15px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-left: 5px solid transparent;
}

.video-playlist li:hover {
    background-color: #a88a53;
    color: #000;
}

.video-playlist li.active {
    background-color: #ffd700;
    color: #1a1a1a;
    font-weight: bold;
    border-left: 5px solid #a88a53;
}

.actions-container {
    /* 不再需要居中样式，因为按钮将固定定位 */
}

.back-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    background-color: #a88a53;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.back-button:hover {
    background-color: #c0a06c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
} 