.action-icon, .action-icon-active {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.action-icon-active {
    display: none;
}
.action-btn.active .action-icon {
    display: none;
}
.action-btn.active .action-icon-active {
    display: block;
}
/* 全屏模式样式 - 只放大video-page */
.video-page.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: #000 !important;
    display: flex !important;
    flex-direction: column !important;
}
.video-page.fullscreen-mode .main-content {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
}
.video-page.fullscreen-mode .video-container {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
}
.video-page.fullscreen-mode .video-wrapper {
    width: auto !important;
    height: calc(100vh - 60px) !important;
    max-width: 100% !important;
}
.video-page.fullscreen-mode video {
    width: auto !important;
    height: 100% !important;
    max-width: 100% !important;
}
.video-page.fullscreen-mode .controls-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(0,0,0,0.8) !important;
}
.video-page.fullscreen-mode .sidebar {
    display: none !important;
}

/* 选集侧边框遮罩层 */
.episodes-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.episodes-mask.active {
    display: block;
    opacity: 1;
}

/* 选集侧边框 */
.episodes-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: #1a1a1a;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.episodes-sidebar.active {
    transform: translateX(0);
}

/* 侧边框头部 */
.episodes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #333;
    background: #222;
    flex-shrink: 0;
}

.episodes-header h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.episodes-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.episodes-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 短剧信息区域 */
.episodes-info {
    padding: 16px 20px;
    border-bottom: 1px solid #333;
    background: #222;
    flex-shrink: 0;
}

.episodes-info-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.episodes-info-desc {
    color: #999;
    font-size: 13px;
    line-height: 1.5;
    max-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 剧集列表 - 网格布局 */
.episodes-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    align-content: start;
}

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

.episodes-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.episodes-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.episodes-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 剧集项 - 正方形按钮 */
.episode-item {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #2a2a2a;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.25s ease;
    overflow: hidden;
}

.episode-item:hover {
    background: #333;
    border-color: rgba(255, 255, 255, 0.15);
}

.episode-item.active {
    background: linear-gradient(87deg, #00FFB7 6%, #4CB4FF 97%);
    border-color: transparent;
}

/* 剧集编号 */
.episode-item-num {
    color: #ccc;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

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

/* 剧集名称（小字） */
.episode-item-name {
    color: #999;
    font-size: 10px;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90%;
    pointer-events: none;
}

.episode-item.active .episode-item-name {
    color: rgba(255, 255, 255, 0.8);
}

/* VIP/付费标签 */
.episode-item-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 600;
    pointer-events: none;
}

.episode-item-badge.vip {
    background: #FFD93D;
    color: #333;
}

.episode-item.active .episode-item-badge.vip {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* 空状态 */
.episodes-empty {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-size: 14px;
    grid-column: 1 / -1;
}

/* 全屏模式隐藏侧边框 */
.video-page.fullscreen-mode .episodes-sidebar,
.video-page.fullscreen-mode .episodes-mask {
    display: none !important;
}
