* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #0f0f10;
    color: #e6e6e6;
    overflow-x: hidden;
}
.main-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #0f0f10;
}
.video-area {
    width: 100%;
    height: 56.25vw; /* 16:9 高度 */
    max-height: 60vh;
    position: relative;
    background-color: #0f0f10;
}
.anti-scam-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: rgba(255, 0, 0, 0.88);
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
}
.player-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: none;
}
.dplayer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
}
.dplayer-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background-color: #000;
}
.control-area {
    width: 100%;
    background-color: #131314;
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    border-top: 1px solid #1f2022;
}
.desktop-only { display: none; }
.mobile-only { display: flex; }
.video-meta {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid #1f2022;
    border-radius: 8px;
    background: #141416;
    margin: 10px 12px 0 12px;
}
.video-meta__poster {
    width: 72px;
    height: 96px;
    background-size: cover;
    background-position: center;
    background-color: #0f0f10;
    border-radius: 6px;
}
.video-meta__info { flex: 1; min-width: 0; }
.video-meta__title {
    font-weight: 600;
    color: #e6e6e6;
    margin-bottom: 6px;
}
.video-meta__row { color: #cfcfcf; font-size: 13px; margin-top: 4px; }
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #cfcfcf;
    font-size: 14px;
    display: none;
}
.loading::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #2a2b2e;
    border-top: 2px solid #8a8b8f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.episode-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.episode-group-title {
    color: #cfcfcf;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
}
.episode-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}
.episode-btn {
    background-color: #1a1b1d;
    color: #dcdcdc;
    border: 1px solid #26282b;
    padding: 6px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color .15s ease, border-color .15s ease;
}
.episode-btn:hover {
    background-color: #202225;
    border-color: #2d2f33;
}
.episode-btn.active {
    background-color: #2a2b2e;
    color: #ffffff;
    border-color: #3a3c40;
}
.line-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.line-select-dropdown {
    padding: 6px 10px;
    background-color: #151618;
    color: #e6e6e6;
    border: 1px solid #232427;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: border-color .15s ease, background-color .15s ease;
}
.quality-selector {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
}
.quality-btn {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
}
.dplayer {
    position: relative;
    background: #000;
    user-select: none;
    -webkit-user-select: none;
}
.dplayer-video {
    width: 100%;
    height: 100%;
    outline: none;
}
.dplayer-controller {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 8px;
}
.dplayer-menu {
    background: rgba(43, 43, 43, 0.95);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
    position: absolute;
    display: none;
    z-index: 100;
}

