.zibll-super-embed-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.zibll-super-embed-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zibll-super-embed-modal .modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 500px;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.zibll-super-embed-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.zibll-super-embed-modal .modal-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.zibll-super-embed-modal .close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.zibll-super-embed-modal .form-group {
    margin-bottom: 15px;
}

.zibll-super-embed-modal label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.zibll-super-embed-modal input[type="text"],
.zibll-super-embed-modal input[type="number"],
.zibll-super-embed-modal textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

.zibll-super-embed-modal textarea {
    min-height: 100px;
    resize: vertical;
}

.zibll-super-embed-modal .button-group {
    margin-top: 20px;
    text-align: right;
}

.zibll-super-embed-modal .button {
    margin-left: 10px;
}

.zibll-super-embed-modal .tab-content {
    margin-top: 20px;
}

.zibll-super-embed-modal .tab-panel {
    display: none;
}

.zibll-super-embed-modal .tab-panel.active {
    display: block;
}



.zibll-series-embed {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.zibll-series-content {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    width: 100%;
}

.zibll-series-item {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.zibll-series-item.active {
    display: block;
}

.zibll-series-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.zibll-series-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
}

.zibll-series-tab {
    padding: 12px 20px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    justify-content: center;
}

.zibll-series-tab:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

.zibll-series-tab.active {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8e53 100%);
    border-color: transparent;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

.zibll-series-tab::before {
    content: attr(data-index);
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.zibll-series-tab.active::before {
    background: rgba(255,255,255,0.2);
}

.zibll-series-tab.active::after {
    content: '📊';
    font-size: 14px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.zibll-super-embed {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.zibll-super-embed-content {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    width: 100%;
}

.zibll-super-embed-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.zibll-video-player {
    margin: 20px 0;
}

/* 剧集嵌入模块样式 */
.zibll-series-module {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
}

.zibll-series-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
    word-wrap: break-word;
}

.zibll-series-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    display: flex;
    align-items: center;
}

.zibll-series-icon {
    color: #4CAF50;
    margin-right: 8px;
    font-size: 18px;
}

.zibll-series-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
}

/* 剧集嵌入样式 */
.series-item {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.series-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.series-item-index {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    color: #d63638;
    font-weight: 600;
    margin-right: 10px;
    font-size: 14px;
    flex-shrink: 0;
}

.series-title {
    flex: 1;
    margin-right: 8px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
    height: 30px;
    min-width: 0;
}

.remove-series-btn {
    background: none;
    border: 1px solid #ddd;
    color: #d63638;
    cursor: pointer;
    padding: 0 8px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 3px;
    min-width: 40px;
}

.series-url {
    padding: 6px 8px 6px 30px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 14px;
    margin-left: 0;
    width: 100%;
    height: 30px;
    min-width: 0;
    word-break: break-all;
}

#series-items {
    width: 100%;
    box-sizing: border-box;
}

.series-url:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

#add-series-btn {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

#add-series-btn:hover {
    background: #45a049;
}

/* 标签按钮样式 */
.tab-buttons {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0;
}

.tab-button {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.tab-button.active {
    background: #1E88E5;
    border-color: #1E88E5;
    color: white;
    font-weight: 600;
}

/* 预览功能样式 */
.zibll-preview-area {
    margin-top: 10px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

#embed-preview-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

/* 页面扩展元框样式 */
#zibll_super_embed_page_extension {
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

#zibll_super_embed_page_extension .postbox-header {
    border-bottom: 1px solid #e5e5e5;
    background: #f9f9f9;
}

#zibll_super_embed_page_extension h2.hndle {
    padding: 8px 12px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    cursor: default;
    user-select: none;
}

.zibll-page-extension {
    padding: 12px;
}

.zibll-page-extension p {
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.zibll-extension-section {
    margin-bottom: 15px;
}

.zibll-extension-section:last-child {
    margin-bottom: 0;
}

.zibll-extension-section h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #646970;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f1;
    margin: 0 0 10px 0;
}

.zibll-extension-section label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    color: #1d2327;
}

.zibll-extension-section label:hover {
    color: #2271b1;
}

.zibll-extension-section label input[type="radio"] {
    margin-right: 8px;
    vertical-align: middle;
}

.zibll-extension-section label span {
    vertical-align: middle;
}

