/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
    color: #333;
}

/* 页头样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    padding: 10px 0;
}

/* 页头统计区域 */
.header-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.header-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 5px 10px;
}

.header-stat-item.product-selector {
    min-width: 120px;
}

.header-stat-value {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.header-stat-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    opacity: 0.9;
    text-align: center;
    color: white;
}

.header-stat-icon {
    font-size: 14px;
}

/* 产品线选择器样式 */
.product-line-select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
}

.logo-icon {
    font-size: 28px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-size: 14px;
    opacity: 0.9;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


/* 区块样式 */
.section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.section-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-content {
    padding: 0;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
}

.table td {
    padding: 16px;
    border-bottom: 1px solid #f8f9fa;
    font-size: 14px;
}

.table tr:hover {
    background-color: #f8f9fa;
}

.table td:nth-child(3) {
    max-width: 200px;
    word-wrap: break-word;
    font-size: 13px;
}

.table td {
    font-size: 13px;
    padding: 12px 8px;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.online {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.offline {
    background-color: #f8d7da;
    color: #721c24;
}

.status-badge.streaming {
    background-color: #cce5ff;
    color: #004085;
}

.status-active {
    color: #28a745;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(40, 167, 69, 0.1);
    font-size: 12px;
}

.status-inactive {
    color: #dc3545;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(220, 53, 69, 0.1);
    font-size: 12px;
}

/* 刷新按钮 */
.refresh-btn {
    background: #667eea;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.refresh-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.refresh-btn.loading {
    opacity: 0.7;
}

.refresh-icon {
    transition: transform 0.5s ease;
}

.refresh-btn.loading .refresh-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 标签页样式 */
.tab-navigation {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    gap: 8px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 表单样式 */
.form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-input,
.form-select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.checkbox-item:hover {
    background: #e9ecef;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    min-width: auto;
}

.table .btn {
    margin-right: 5px;
    margin-bottom: 5px;
}

.table .btn:last-child {
    margin-right: 0;
}

/* 空状态 */
.empty-state {
    padding: 40px;
    text-align: center;
    color: #7f8c8d;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.loading-text {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* 错误提示 */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
}

/* 视频播放器浮层 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.video-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.video-wrapper {
    position: relative;
    flex: 1;
    flex-basis: 0; /* 让flex-shrink正常工作 */
    min-height: 200px; /* 减小最小高度 */
    max-height: calc(90vh - 150px); /* 限制最大高度，留出空间给header和controls */
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* 视频区域内部隐藏溢出 */
}

.video-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* 防止被收缩 */
}

.video-title {
    font-size: 16px;
    font-weight: 600;
}

.video-header-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.close-video-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-video-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.video-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.reconnect-btn {
    background: #dc3545;
    color: white;
    margin-top: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reconnect-btn:hover {
    background: #c82333;
}

#videoElement {
    width: 100%;
    height: 100%;
    max-height: calc(90vh - 120px);
    background: #000;
    object-fit: contain;
    display: block;
}

/* 诊断信息浮层 - 位于视频画面左下角 */
.video-diagnosis-overlay {
    position: absolute;
    bottom: 80px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 12px 16px;
    max-width: 400px;
    z-index: 100;
    pointer-events: none;
}

.diagnosis-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.diagnosis-item {
    display: flex;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.diagnosis-label {
    color: rgba(255, 255, 255, 0.7);
    min-width: 50px;
    flex-shrink: 0;
}

.diagnosis-value {
    color: #ff4444;
    font-weight: 600;
    word-break: break-word;
}

.video-controls {
    background: white;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0; /* 防止被收缩 */
    min-height: 60px; /* 确保最小高度 */
}

.video-status {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 500;
}

.video-status.connecting {
    background: #fff3cd;
    color: #856404;
}

.video-status.connected {
    background: #d4edda;
    color: #155724;
}

.video-status.error {
    background: #f8d7da;
    color: #721c24;
}

/* 视频质量等级样式 */
.quality-good {
    color: #28a745;
    font-weight: 600;
}

.quality-fair {
    color: #ffc107;
    font-weight: 600;
}

.quality-poor {
    color: #dc3545;
    font-weight: 600;
}

.video-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

/* 只在connecting状态显示spinner */
.video-status:not(.connecting) .video-loading-spinner {
    display: none;
}

/* 视频加载遮罩 */
.video-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 0 0 12px 12px;
    transition: opacity 0.3s ease;
}

.video-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner-large {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

/* 产品线分组样式 */
.product-group {
    margin-bottom: 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.product-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-name {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.product-count {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.product-devices,
.product-viewers {
    padding: 8px 0;
}

.table-wrapper {
    overflow-x: auto;
}

/* 产品线统计样式 */
.product-line-stats {
    margin-bottom: 30px;
}


.product-line-grid {
    display: grid;
    gap: 20px;
}

.product-line-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.product-line-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-line-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.product-line-title {
    min-width: 220px;
    flex-shrink: 0;
}

.product-line-name {
    font-size: 16px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    display: block;
    white-space: nowrap;
    line-height: 1.4;
}


/* 行内指标样式 */
.product-line-metrics-inline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex: 1;
    flex-wrap: wrap;
}

.metric-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
}

.metric-inline .metric-label {
    opacity: 0.9;
    font-size: 14px;
}

.metric-inline .metric-value {
    font-weight: 600;
    font-size: 16px;
    min-width: 30px;
    text-align: right;
}



.no-devices {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

/* 产品线统计卡片中的状态徽章 */
.product-line-card .status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.product-line-card .status-badge.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.product-line-card .status-badge.inactive {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .header-stats {
        gap: 15px;
    }

    .header-stat-item {
        min-width: 70px;
    }

    .header-stat-value {
        font-size: 20px;
    }

    .header-stat-label {
        font-size: 10px;
    }

    .header-stat-icon {
        font-size: 12px;
    }

    .product-line-metrics-inline {
        gap: 15px;
    }

    .metric-inline {
        font-size: 13px;
    }

    .metric-inline .metric-value {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header-content {
        padding: 0 10px;
        height: auto;
        min-height: 80px;
    }

    .header-stats {
        gap: 10px;
        order: 3;
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
    }

    .header-stat-item {
        min-width: 60px;
        padding: 3px 6px;
    }

    .header-stat-icon {
        font-size: 12px;
    }

    .header-stat-value {
        font-size: 18px;
    }

    .header-stat-label {
        font-size: 9px;
    }

    .product-line-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .product-line-title {
        min-width: auto;
        width: 100%;
    }

    .product-line-metrics-inline {
        width: 100%;
        justify-content: flex-start;
        gap: 15px;
        flex-wrap: wrap;
    }

    .metric-inline {
        font-size: 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .video-container {
        width: 95%;
        margin: 10px;
    }

    .video-controls {
        padding: 10px 15px;
    }

    .close-video-btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    .tab-navigation {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
}

/* ===================== 产品线下拉选择器样式 ===================== */

.product-line-select-large {
    background: transparent !important;
    border: none !important;
    color: white !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    min-width: 220px !important;
    width: 220px !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    height: auto !important;
    line-height: normal !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.product-line-select-large:hover,
.product-line-select-large:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 12px 18px !important;
    border-radius: 6px !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
}

.product-line-select-large option {
    background: #667eea !important;
    color: white !important;
    padding: 12px !important;
    font-size: 16px !important;
}

/* ===================== 分页控件样式 ===================== */

.pagination-container {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-controls .btn {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination-controls .btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #667eea;
}

.pagination-controls .btn:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #eee;
}

.pagination-pages {
    color: #666;
    font-size: 13px;
    margin: 0 10px;
}

/* ===================== 刷新按钮样式 ===================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.device-count,
.viewer-count {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.section-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.refresh-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.refresh-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.refresh-btn:active {
    transform: translateY(1px);
}

/* ===================== 响应式优化 ===================== */

@media (max-width: 768px) {
    .product-line-select-large {
        width: 100%;
        max-width: 300px;
    }

    .pagination-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .pagination-controls {
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .section-controls {
        justify-content: center;
    }
}

/* ===================== 播放时长和静音按钮样式 ===================== */

/* 按钮图标样式 - 只显示图标，鼠标悬停显示文字 */
.icon-btn {
    min-width: 32px;
    height: 32px;
    padding: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 视频状态区域改为flex布局，支持内联显示 */
.video-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 500;
    flex-wrap: wrap;
}

.video-status .status-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-status .status-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
}

.quality-separator {
    color: #adb5bd;
}

/* 状态文字 */
.video-status .status-text {
    font-size: 14px;
}

/* 播放时长内联显示 */
.playback-duration-inline {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    font-family: 'Courier New', monospace;
    min-width: 50px;
    text-align: center;
    padding-left: 10px;
    border-left: 1px solid #ddd;
    margin-left: 5px;
}

/* 倒计时警告样式 */
.playback-duration-inline.warning {
    color: #ffc107;
    animation: pulse 1s infinite;
}

.playback-duration-inline.danger {
    color: #dc3545;
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}