/* ========== ArtPlayer 播放器样式 ========== */

html {
    overflow: hidden;
    height: 100%;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    background-image: url('/wgart/img/beijing.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.fullscreen-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #000;
    z-index: 9999;
    overflow: hidden;
}

/* 短剧模式下，竖屏视频容器按照视频原始比例居中贴合可视区域。 */
#fullscreen-player-container.short-drama-portrait {
    top: 50%;
    left: 50%;
    width: var(--short-drama-width);
    height: var(--short-drama-height);
    transform: translate(-50%, -50%);
}

.artplayer {
    position: relative;
    width: 100%;
    height: 100%;
}

.error-container {
    text-align: center;
    color: #fff;
}

.error-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ff6b6b;
}

.error-message {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.error-message:last-of-type {
    margin-bottom: 30px;
}

.example-link {
    background-color: #4CAF50;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.example-link:hover {
    background-color: #45a049;
}

@media (max-width: 768px) {
    body {
        justify-content: flex-start;
        height: 100%;
        min-height: 100vh;
    }

    .error-title {
        font-size: 20px;
    }

    .error-message {
        font-size: 16px;
    }

    .example-link {
        font-size: 14px;
        padding: 10px 20px;
    }

    .fullscreen-player {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        overscroll-behavior: contain;
    }
}

#fullscreen-player-container {
    width: 100%;
    height: 100%;
}

.artplayer {
    touch-action: manipulation;
}

.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 107, 107, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 2147483647 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    max-width: 80%;
    word-wrap: break-word;
}

.toast.show {
    opacity: 1;
}

.toast.success {
    background-color: #4CAF50;
}

.toast.success .toast-icon:before {
    content: '✓';
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px !important;
    line-height: 18px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    width: 18px !important;
    height: 18px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    margin-right: 6px !important;
    flex-shrink: 0 !important;
    align-self: center !important;
}

/* 毛玻璃提示框样式 */
.toast.glass {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.toast.glass.success {
    background: rgba(76, 175, 80, 0.2) !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
}

/* 毛玻璃选集激活样式 */
.episode-item.active.glass {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    transform: none !important;
}

/* ========== 弹幕功能新UI设计 ========== */

.artplayer-plugin-danmuku {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 4px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    height: 100% !important;
}

.artplayer-plugin-danmuku::before {
    content: '' !important;
    display: block !important;
    width: 1px !important;
    height: 18px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    margin-right: 6px !important;
    flex-shrink: 0 !important;
    align-self: center !important;
}

.artplayer-plugin-danmuku .apd-emitter {
    --danmaku-input-bg: #252525;
    --danmaku-placeholder-color: rgba(255, 255, 255, 0.5);
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    background: transparent !important;
    flex-shrink: 0 !important;
    width: auto !important;
}

.artplayer-plugin-danmuku .apd-toggle {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    margin-left: 14px !important;
}

.artplayer-plugin-danmuku .apd-config {
    width: 28px !important;
    height: 28px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    margin-left: 14px !important;
}

.artplayer-plugin-danmuku .apd-config:hover {
    background: transparent !important;
    transform: scale(1.05) !important;
}

.artplayer-plugin-danmuku .apd-style {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    margin-left: 14px !important;
}

.artplayer-plugin-danmuku .apd-style img {
    width: 20px !important;
    height: 20px !important;
}

.artplayer-plugin-danmuku .apd-input {
    width: 80px !important;
    max-width: 80px !important;
    height: 32px !important;
    background: var(--danmaku-input-bg) !important;
    border: none !important;
    border-radius: 16px 0 0 16px !important;
    padding: 0 8px !important;
    color: #fff !important;
    font-size: 12px !important;
    outline: none !important;
    transition: all 0.3s ease, border-radius 0.25s ease !important;
    flex-shrink: 0 !important;
}

.artplayer-plugin-danmuku .apd-input::placeholder {
    color: var(--danmaku-placeholder-color) !important;
    font-size: 11px !important;
}

.artplayer-plugin-danmuku .apd-input:focus {
    width: 140px !important;
    max-width: 140px !important;
    background: var(--danmaku-input-bg) !important;
}

html:not(.danmaku-input-zoom-disabled) .artplayer-plugin-danmuku .apd-input:not(:placeholder-shown) {
    width: 140px !important;
    max-width: 140px !important;
}

html:not(.danmaku-input-zoom-disabled) .artplayer-plugin-danmuku .apd-input:placeholder-shown:not(:focus) {
    border-radius: 16px !important;
}

.artplayer-plugin-danmuku .apd-send {
    position: relative !important;
    height: 32px !important;
    width: 48px !important;
    padding: 0 8px !important;
    background: var(--danmaku-input-bg) !important;
    border: none !important;
    border-radius: 0 16px 16px 0 !important;
    color: var(--danmaku-placeholder-color) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: color 0.25s ease !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

html:not(.danmaku-input-zoom-disabled) .artplayer-plugin-danmuku .apd-input:placeholder-shown:not(:focus) + .apd-send {
    width: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.artplayer-plugin-danmuku .apd-send::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-50%);
}

.artplayer-plugin-danmuku .apd-input:not(:placeholder-shown) + .apd-send {
    color: #fff !important;
}

.artplayer-plugin-danmuku .apd-send:hover,
.artplayer-plugin-danmuku .apd-input:not(:placeholder-shown) + .apd-send:hover {
    color: #00a1d6 !important;
}

.artplayer-plugin-danmuku .apd-send.apd-lock,
.artplayer-plugin-danmuku .apd-send.apd-lock:hover,
.artplayer-plugin-danmuku .apd-input:not(:placeholder-shown) + .apd-send.apd-lock,
.artplayer-plugin-danmuku .apd-input:not(:placeholder-shown) + .apd-send.apd-lock:hover {
    cursor: not-allowed !important;
    color: var(--danmaku-placeholder-color) !important;
    background: var(--danmaku-input-bg) !important;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .artplayer-plugin-danmuku {
        padding: 0 2px !important;
        border-radius: 0 !important;
    }

    .artplayer-plugin-danmuku .apd-toggle,
    .artplayer-plugin-danmuku .apd-config,
    .artplayer-plugin-danmuku .apd-style {
        width: 24px !important;
        height: 24px !important;
        margin-left: 10px !important;
    }

    .artplayer-plugin-danmuku .apd-toggle svg,
    .artplayer-plugin-danmuku .apd-toggle img,
    .artplayer-plugin-danmuku .apd-config svg,
    .artplayer-plugin-danmuku .apd-config img {
        width: 18px !important;
        height: 18px !important;
    }

    .artplayer-plugin-danmuku .apd-style img {
        width: 16px !important;
        height: 16px !important;
    }

    .artplayer-plugin-danmuku .apd-input {
        width: 60px !important;
        max-width: 60px !important;
        height: 24px !important;
        font-size: 11px !important;
        padding: 0 6px !important;
        background: var(--danmaku-input-bg) !important;
        border-radius: 12px 0 0 12px !important;
    }

    .artplayer-plugin-danmuku .apd-input:focus {
        width: 90px !important;
        max-width: 90px !important;
        background: var(--danmaku-input-bg) !important;
    }

    html:not(.danmaku-input-zoom-disabled) .artplayer-plugin-danmuku .apd-input:not(:placeholder-shown) {
        width: 90px !important;
        max-width: 90px !important;
    }

    html:not(.danmaku-input-zoom-disabled) .artplayer-plugin-danmuku .apd-input:placeholder-shown:not(:focus) {
        border-radius: 12px !important;
    }

    .artplayer-plugin-danmuku .apd-send {
        height: 24px !important;
        width: 42px !important;
        padding: 0 6px !important;
        font-size: 11px !important;
        border-radius: 0 12px 12px 0 !important;
    }

    .artplayer-plugin-danmuku .apd-send::before {
        height: 14px;
    }

    .art-video-player:not(.art-fullscreen) .artplayer-plugin-danmuku,
    .art-video-player:not(.art-fullscreen) + .artplayer-plugin-danmuku {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: transparent !important;
    }

    .art-video-player:not(.art-fullscreen) .artplayer-plugin-danmuku .apd-config-panel,
    .art-video-player:not(.art-fullscreen) + .artplayer-plugin-danmuku .apd-config-panel {
        width: 250px !important;
        padding: 6px !important;
    }

    .art-video-player:not(.art-fullscreen) .artplayer-plugin-danmuku .apd-config-panel-inner,
    .art-video-player:not(.art-fullscreen) + .artplayer-plugin-danmuku .apd-config-panel-inner {
        font-size: 12px !important;
        padding: 8px !important;
    }

    .art-video-player:not(.art-fullscreen) .artplayer-plugin-danmuku .apd-style-panel,
    .art-video-player:not(.art-fullscreen) + .artplayer-plugin-danmuku .apd-style-panel {
        width: 180px !important;
        padding: 6px !important;
    }

    .art-video-player:not(.art-fullscreen) .artplayer-plugin-danmuku .apd-style-panel-inner,
    .art-video-player:not(.art-fullscreen) + .artplayer-plugin-danmuku .apd-style-panel-inner {
        font-size: 12px !important;
        padding: 8px !important;
    }

    .art-video-player:not(.art-fullscreen) .art-danmuku > div {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .artplayer-plugin-danmuku .apd-input {
        width: 50px !important;
        max-width: 50px !important;
    }

    .artplayer-plugin-danmuku .apd-input:focus {
        width: 80px !important;
        max-width: 80px !important;
    }

    html:not(.danmaku-input-zoom-disabled) .artplayer-plugin-danmuku .apd-input:not(:placeholder-shown) {
        width: 80px !important;
        max-width: 80px !important;
    }
}

/* ========== 弹幕列表面板样式 ========== */
.danmaku-list-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 33.33%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    display: none;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    transform: translateX(100%);
}

.danmaku-list-panel.visible {
    display: flex;
    transform: translateX(0);
}

.danmaku-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.danmaku-list-close {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.danmaku-list-close:hover {
    color: #ff4757;
}

.danmaku-list-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.danmaku-list-content::-webkit-scrollbar {
    width: 4px;
}

.danmaku-list-content::-webkit-scrollbar-track {
    background: transparent;
}

.danmaku-list-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.danmaku-list-empty {
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 30px 0;
    font-size: 13px;
}

.danmaku-list-item {
    display: flex;
    align-items: center;
    padding: 0 14px;
    height: 36px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

.danmaku-list-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.danmaku-list-time {
    flex-shrink: 0;
    width: 42px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-family: monospace;
}

.danmaku-list-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    padding: 0 8px;
}

.danmaku-list-date {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 10px;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 弹幕列表切换按钮 */
.danmaku-list-toggle {
    position: relative;
    cursor: pointer;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

.danmaku-list-toggle:hover,
.danmaku-list-toggle.active {
    opacity: 1;
    color: #4CAF50;
}

.danmaku-list-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    background: #ff4757;
    color: #fff;
    font-size: 9px;
    min-width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    border-radius: 8px;
    padding: 0 2px;
    font-weight: bold;
}

/* ========== 移动端弹幕列表适配 ========== */
@media (max-width: 768px) {
    .danmaku-list-panel {
        width: 60%;
        right: 0;
    }

    .danmaku-list-header {
        padding: 10px 12px;
        font-size: 13px;
    }

    .danmaku-list-item {
        padding: 0 12px;
        height: 36px;
    }

    .danmaku-list-time {
        width: 38px;
        font-size: 10px;
    }

    .danmaku-list-text {
        font-size: 12px;
    }

    .danmaku-list-date {
        font-size: 9px;
        max-width: 65px;
    }
}

.artplayer-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.artplayer-controls-center {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 1 !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .artplayer-controls-center {
        gap: 5px !important;
        max-width: 200px !important;
    }
}

.ad-container {
    position: absolute;
    z-index: 2147483646;
    pointer-events: none;
}

.marquee-ad {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2147483646;
    background: transparent;
    color: #fff;
    padding: 0;
    overflow: visible;
    pointer-events: none;
    text-align: center;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    line-height: 1;
}

.welcome-ad {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2147483646;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 30px 50px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    pointer-events: none;
}

.pause-ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483645;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.pause-ad-overlay > * {
    pointer-events: auto;
}

.artplayer-fullscreen .marquee-ad {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2147483646;
    background: transparent;
    color: #fff;
    padding: 0;
    overflow: visible;
    pointer-events: none;
    text-align: center;
}

.artplayer-fullscreen .marquee-content {
    display: inline-block;
    white-space: nowrap;
    line-height: 1;
}

.artplayer-fullscreen .welcome-ad {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2147483646;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 30px 50px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    pointer-events: none;
}

.artplayer-fullscreen .pause-ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483645;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.artplayer-fullscreen .pause-ad-overlay > * {
    pointer-events: auto;
}

.pause-ad-text {
    color: #fff;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.pause-ad-image {
    max-width: 80%;
    max-height: 60%;
    cursor: pointer;
    border-radius: 10px;
}

.pause-ad-overlay > .pause-ad-close {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
    transition: all 0.3s ease;
}

.pause-ad-overlay > .pause-ad-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.pause-ad-image-container,
.startup-ad-image-container {
    position: relative;
    display: inline-block;
    max-width: 80%;
    max-height: 60%;
}

.pause-ad-image-container .pause-ad-close,
.startup-ad-image-container .pause-ad-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pause-ad-image-container .pause-ad-close:hover,
.startup-ad-image-container .pause-ad-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* 选集面板样式 */
.episode-panel {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
    display: none;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.episode-panel.right {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    left: auto;
    bottom: auto;
    width: fit-content;
    max-width: 300px;
    max-height: 400px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.episode-panel.left {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    right: auto;
    bottom: auto;
    width: fit-content;
    max-width: 300px;
    max-height: 400px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.episode-panel:not(.auto-adaptive) .episode-item {
    padding: 6px 10px;
    font-size: 13px;
}

.episode-panel.auto-adaptive.right {
    max-height: none;
    height: auto;
    top: 0;
    bottom: 0;
    transform: none;
    right: 10px;
    width: fit-content;
    max-width: 300px;
}

.episode-panel.auto-adaptive.left {
    max-height: none;
    height: auto;
    top: 0;
    bottom: 0;
    transform: none;
    left: 10px;
    width: fit-content;
    max-width: 300px;
}

.episode-panel.auto-adaptive .episode-list {
    max-height: none;
    flex: 1;
}

@media screen and (max-width: 768px) {
    .episode-panel.right,
    .episode-panel.left {
        width: fit-content;
        max-width: 280px;
    }

    .episode-panel.auto-adaptive.right,
    .episode-panel.auto-adaptive.left {
        width: fit-content;
        max-width: 300px;
        right: 5px;
        left: auto;
        top: 0;
        bottom: 0;
        transform: none;
    }

    .episode-panel.has-number-items.right,
    .episode-panel.has-number-items.left,
    .episode-panel.has-compact-items.right,
    .episode-panel.has-compact-items.left {
        width: fit-content;
        max-width: 50vw;
    }

    .episode-panel.has-number-items.auto-adaptive.right,
    .episode-panel.has-number-items.auto-adaptive.left,
    .episode-panel.has-compact-items.auto-adaptive.right,
    .episode-panel.has-compact-items.auto-adaptive.left {
        width: fit-content;
        max-width: 50vw;
    }

    .episode-panel.auto-adaptive.left {
        left: 5px;
        right: auto;
    }

    .art-video-player:not(.art-fullscreen) .art-loading::before {
        width: var(--wgart-loading-mobile-size, 120px) !important;
        height: var(--wgart-loading-mobile-size, 120px) !important;
        flex: 0 0 auto !important;
        max-width: 60vw !important;
        max-height: 60vw !important;
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    .player-status-bar {
        font-size: 11px !important;
    }

    .player-status-bar > div {
        padding: 3px 6px !important;
    }
}

.player-status-bar {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s;
    flex-direction: row-reverse;
}

.player-status-bar > div {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    white-space: nowrap;
}

.player-status-bar svg {
    flex-shrink: 0;
}

@media screen and (max-width: 480px) {
    .episode-panel.right,
    .episode-panel.left {
        width: fit-content;
        max-width: 280px;
    }

    .episode-panel.auto-adaptive.right,
    .episode-panel.auto-adaptive.left {
        width: fit-content;
        max-width: 300px;
    }

    .episode-panel.has-number-items.right,
    .episode-panel.has-number-items.left,
    .episode-panel.has-compact-items.right,
    .episode-panel.has-compact-items.left {
        width: fit-content;
        max-width: 50vw;
    }

    .episode-panel.has-number-items.auto-adaptive.right,
    .episode-panel.has-number-items.auto-adaptive.left,
    .episode-panel.has-compact-items.auto-adaptive.right,
    .episode-panel.has-compact-items.auto-adaptive.left {
        width: fit-content;
        max-width: 50vw;
    }
}

@media screen and (max-width: 900px) and (orientation: landscape) {
    .episode-panel.right,
    .episode-panel.left {
        width: fit-content;
        max-width: 300px;
    }

    .episode-panel.auto-adaptive.right,
    .episode-panel.auto-adaptive.left {
        width: fit-content;
        max-width: 320px;
    }

    .episode-panel.has-number-items.right,
    .episode-panel.has-number-items.left,
    .episode-panel.has-compact-items.right,
    .episode-panel.has-compact-items.left {
        width: fit-content;
        max-width: 33.33vw;
    }

    .episode-panel.has-number-items.auto-adaptive.right,
    .episode-panel.has-number-items.auto-adaptive.left,
    .episode-panel.has-compact-items.auto-adaptive.right,
    .episode-panel.has-compact-items.auto-adaptive.left {
        width: fit-content;
        max-width: 33.33vw;
    }

    .episode-item {
        padding: 4px 8px;
        font-size: 12px;
    }
}

.episode-panel.bottom {
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    height: auto;
    max-height: 200px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-right: none;
    border-bottom: none;
    flex-direction: row;
}

.episode-panel.bottom .episode-panel-header {
    width: 80px;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.episode-panel.bottom .episode-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    overflow-y: auto;
    max-height: 200px;
}

.episode-panel.bottom .episode-item {
    flex: 1 1 auto;
    min-width: 80px;
    max-width: 150px;
}

.episode-panel.bottom .episode-item.compact {
    flex: 1 1 auto;
    min-width: 60px;
    max-width: 100px;
}

.episode-panel.bottom .episode-item.number {
    flex: 1 1 auto;
    min-width: 70px;
    max-width: 120px;
}

.episode-panel-header {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: auto;
    line-height: 1.2;
}

.episode-panel-title {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
}

.episode-panel-close {
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    line-height: 1;
}

.episode-panel-close:hover {
    opacity: 1;
}

.episode-list {
    overflow-y: auto;
    padding: 6px 8px;
}

.episode-list::-webkit-scrollbar {
    width: 6px;
}

.episode-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.episode-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.episode-item {
    padding: 8px 12px;
    margin-bottom: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    width: fit-content;
}

.episode-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.episode-item.active {
    background: #ff6b6b;
    color: #fff;
}

.episode-item.loading {
    position: relative;
    pointer-events: none;
}

.episode-item.loading::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: episode-loading 0.8s linear infinite;
}

@keyframes episode-loading {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.episode-item.compact {
    padding: 6px 8px;
    font-size: 12px;
    display: inline-block;
    margin: 2px;
    text-align: center;
    min-width: 45px;
    max-width: none;
    width: auto;
}

.episode-list.compact-episode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    max-height: 100%;
    overflow-y: auto;
    align-content: flex-start;
}

.episode-list.compact-episode-list .episode-item.compact {
    flex: 1 1 calc(20% - 4px);
    box-sizing: border-box;
    height: auto;
    min-width: 40px;
}

.episode-item.card {
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.episode-item.number {
    padding: 8px 12px;
    font-size: 14px;
    display: inline-block;
    margin: 3px;
    text-align: center;
    min-width: 55px;
    max-width: none;
    width: auto;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.episode-list.number-episode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    max-height: 100%;
    overflow-y: auto;
    align-content: flex-start;
}

.episode-list.number-episode-list .episode-item.number {
    flex: 1 1 calc(20% - 6px);
    box-sizing: border-box;
    height: auto;
    min-width: 50px;
}

.episode-item.number:hover {
    background: rgba(255, 255, 255, 0.3);
}

.episode-item.number.active {
    background: #ff6b6b;
    color: #fff;
}

.episode-toggle-btn {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 99;
    font-size: 14px;
    transition: all 0.3s;
    border-radius: 4px;
}

.episode-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.art-video-player .episode-toggle-btn.right {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    z-index: 100;
    transition: opacity 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-sizing: border-box;
}

.art-video-player .episode-toggle-btn.left {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    z-index: 100;
    transition: opacity 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-sizing: border-box;
}

.art-video-player .episode-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.art-control-btn.episode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 10px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}

.art-control-btn.episode-btn:hover {
    color: #ff6b6b;
}

.art-video-player .art-controls .art-control {
    position: relative;
    overflow: visible;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.art-video-player .art-controls .art-control .art-icon {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 0 transparent);
}

/* ==================== 皮肤2菜单图标样式 ==================== */
.art-video-player.skin2-menu .art-control-setting .art-icon,
.art-video-player.skin2-menu .art-control-screenshot .art-icon,
.art-video-player.skin2-menu .art-control-pip .art-icon,
.art-video-player.skin2-menu .art-control-quality .art-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.art-video-player.skin2-menu .art-control-setting .art-icon svg,
.art-video-player.skin2-menu .art-control-screenshot .art-icon svg,
.art-video-player.skin2-menu .art-control-pip .art-icon svg,
.art-video-player.skin2-menu .art-control-quality .art-icon svg {
    display: none !important;
}

.art-video-player.skin2-menu .art-control-setting .art-icon::before {
    content: '' !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    background-image: url('img/caidan2/shezhi.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.art-video-player.skin2-menu .art-control-screenshot .art-icon::before {
    content: '' !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    background-image: url('img/caidan2/xiangji.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.art-video-player.skin2-menu .art-control-pip .art-icon::before {
    content: '' !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    background-image: url('img/caidan2/huazhonghua.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.art-video-player.skin2-menu .art-control-quality .art-icon::before {
    content: '' !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    background-image: url('img/caidan2/HD.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

@media (hover: hover) and (pointer: fine) {
    .art-video-player .art-controls .art-control::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
        z-index: -1;
    }

    .art-video-player .art-controls .art-control:hover::before {
        width: 44px;
        height: 44px;
    }

    .art-video-player .art-controls .art-control:hover .art-icon {
        transform: scale(1.15);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }

    .art-video-player .art-controls .art-control:hover {
        opacity: 1;
    }

    .art-video-player .art-controls .art-control:hover .art-icon svg {
        transition: fill 0.25s ease;
    }

    .art-video-player .art-controls .art-control.art-control-play:hover .art-icon {
        transform: scale(1.5);
    }

    .art-video-player .art-controls .art-control.art-control-volume:hover .art-icon {
        animation: volumePulse 0.6s ease infinite alternate;
    }

    .art-video-player .art-controls .art-control.art-control-setting:hover .art-icon {
        transform: scale(1.15) rotate(25deg);
    }

    .art-video-player .art-controls .art-control.art-control-fullscreen:hover .art-icon {
        transform: scale(1.5);
    }

    .art-video-player .art-controls .art-control.episode-btn:hover {
        background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
        border-radius: 4px;
    }
}

@keyframes volumePulse {
    0% { transform: scale(1.15); }
    100% { transform: scale(1.35); }
}

.art-video-player .art-controls .art-control:focus-visible {
    outline: 2px solid rgba(255, 107, 107, 0.6);
    outline-offset: 2px;
    border-radius: 4px;
}

.art-video-player .art-controls .art-control:active .art-icon {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* 自动下集倒计时样式 */
.auto-next-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.auto-next-text {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
}

.auto-next-countdown {
    color: #ff6b6b;
    font-size: 48px;
    font-weight: bold;
}

.auto-next-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.auto-next-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.auto-next-btn.play {
    background: #ff6b6b;
    color: #fff;
}

.auto-next-btn.play:hover {
    background: #ff5252;
}

.auto-next-btn.cancel {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.auto-next-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 毛玻璃自动下集倒计时样式 */
.auto-next-overlay.glass .auto-next-countdown {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    padding: 10px 36px;
    border-radius: 12px;
    font-size: 40px;
}

.auto-next-overlay.glass .auto-next-btn.play {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.auto-next-overlay.glass .auto-next-btn.play:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 地区限制动画 */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@media (max-width: 480px) {
    #region-restriction-container > div {
        padding: 16px !important;
        border-radius: 14px !important;
        max-width: 88vw !important;
    }

    #region-restriction-container h2 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    #region-restriction-container p {
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }
}

@media (max-width: 360px) {
    #region-restriction-container > div {
        padding: 12px !important;
        border-radius: 12px !important;
    }

    #region-restriction-container h2 {
        font-size: 14px !important;
    }

    #region-restriction-container p {
        font-size: 10px !important;
    }
}
