* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'pmzd', sans-serif;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

/* 自定义字体 */
@font-face {
    font-family: 'pmzd';
    src: url(http://src.mf.103648.xyz/font/PangMenZhengDaoBiaoTiTi-1.ttf);
}

/* 播放器容器 */
.player-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* 视频播放区域 */
video {
    width: 100%;
    max-height: 100%;
    object-fit: contain; /* 关键属性：保证视频完整显示 */
}

/* 悬浮按钮 */
.toggle-button,
.playlist-toggle-button {
    position: fixed;
    right: 200px;
    bottom: 200px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

/* 横屏切换按钮（居中右侧） */
.playlist-toggle-button {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* 竖屏布局 */
.vertical-layout {
    display: flex;
    flex-direction: column;
}

.vertical-player {
    flex: 1; /* 占 1/3 高度 */
    position: relative;
    max-height: 100%; /* 防止溢出 */
}

.vertical-playlist {
    flex: 2; /* 占 2/3 高度 */
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    overflow-y: auto;
    position: relative;
    z-index: 1000;
}

.vertical-playlist li {
    font-size: 18px;
    margin: 10px 0;
    cursor: pointer;
    color: white;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s;
    pointer-events: auto;
}

.vertical-playlist li:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 横屏布局 */
.horizontal-layout {
    display: flex;
}

.horizontal-player {
    flex: 1; /* 占 60% 宽度 */
    position: relative;
}

.playlist-container {
    flex: 0 0 40%; /* 占 40% 宽度 */
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: none;
    z-index: 999;
}

.playlist-container.active {
    display: block;
}

.playlist {
    padding: 20px;
}

.playlist li {
    font-size: 18px;
    margin: 10px 0;
    cursor: pointer;
    color: white;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.playlist li:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
}

.overlay.active {
    display: block;
}
