* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

/* ==================== 登录页样式 ==================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    color: #333;
    margin-bottom: 8px;
    font-size: 28px;
}

.login-box .subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: #667eea;
}

.btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-secondary {
    background: #6c757d;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* ==================== 顶部导航（旧样式，兼容摄像头页） ==================== */
.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar .user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar .username {
    color: #555;
    font-size: 14px;
}

.navbar .role-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    background: #e3f2fd;
    color: #1976d2;
}

.navbar .role-badge.admin {
    background: #fce4ec;
    color: #c2185b;
}

.navbar .logout-btn {
    padding: 6px 16px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.navbar .logout-btn:hover {
    background: #eee;
}

.navbar .nav-links {
    display: flex;
    gap: 20px;
}

.navbar .nav-links a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    background: #f0f2f5;
    color: #667eea;
}

/* ==================== 主内容区（旧样式，兼容摄像头页） ==================== */
.main-content {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* ==================== 摄像头页面 ==================== */
.camera-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-wrapper video {
    width: 100%;
    display: block;
    transform: scaleX(-1); /* 镜像翻转 */
}

.recording-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
}

.recording-indicator .dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

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

.timer {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-family: monospace;
    z-index: 10;
}

.controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.control-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.control-btn-start {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.control-btn-stop {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.control-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.control-btn-switch {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.camera-select {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    background: white;
    color: #2d3748;
    outline: none;
    transition: border-color 0.2s;
    max-width: 180px;
}

.camera-select:hover:not(:disabled) {
    border-color: #667eea;
}

.camera-select:focus:not(:disabled) {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.camera-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm {
    padding: 8px 16px !important;
    font-size: 13px !important;
}

.status-bar {
    background: white;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-item .label {
    font-size: 12px;
    color: #999;
}

.status-item .value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.status-item .value.online {
    color: #4caf50;
}

.status-item .value.offline {
    color: #9e9e9e;
}

.status-item .value.warning {
    color: #ff9800;
}

/* ==================== 后台管理 - 左侧布局 ==================== */
.admin-body {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

/* 侧边栏 */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar-logo {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo .logo-icon {
    font-size: 28px;
}

.sidebar-logo .logo-text {
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-menu {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.menu-section {
    margin-bottom: 24px;
}

.menu-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    padding: 0 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    margin-bottom: 2px;
    cursor: pointer;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: white;
    border-left: 3px solid #667eea;
    padding-left: 9px;
}

.menu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.menu-label {
    flex: 1;
}

/* 侧边栏底部 */
.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    margin-bottom: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.user-role.admin {
    color: #f0abfc;
}

.logout-btn-sidebar {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.logout-btn-sidebar:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.2);
}

/* 主内容区 */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.top-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.header-left .page-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: pulse 2s infinite;
}

.content-area {
    flex: 1;
    padding: 24px 28px;
    overflow-y: auto;
    background: #f3f4f6;
}

.page-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== 监控中心布局 ==================== */
.monitor-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}

@media (max-width: 1200px) {
    .monitor-layout {
        grid-template-columns: 1fr;
    }
}

/* 面板头部 */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.text-muted {
    font-size: 13px;
    color: #9ca3af;
    font-weight: normal;
}

.panel-actions {
    display: flex;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* 实时监控面板 */
.monitor-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.selector-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 150px;
}

.selector-group label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.selector-group select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.selector-group select:focus {
    border-color: #667eea;
}

.live-video-container {
    position: relative;
    background: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.no-signal {
    text-align: center;
    color: #6b7280;
}

.no-signal .icon {
    font-size: 56px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-signal p {
    font-size: 14px;
}

.no-signal .sub-text {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.panel-title .live-badge {
    font-size: 11px;
    background: #ff4757;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    animation: pulse 1.5s infinite;
    margin-left: 4px;
}

.live-footer {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.update-time {
    font-size: 12px;
    color: #9ca3af;
}

/* 在线用户面板 */
.online-users-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.online-user-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.online-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.online-user-item:hover {
    background: #f0f0ff;
    transform: translateX(2px);
}

.online-user-item .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.online-user-item .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.online-user-item .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.online-user-item .status-dot.offline {
    background: #ccc;
    box-shadow: none;
}

.empty-state.small {
    padding: 24px 12px;
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
}

.empty-state.small p {
    font-size: 13px;
}

/* ==================== 视频列表 ==================== */
.video-list {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.video-card {
    background: #f9fafb;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
    border: 2px solid transparent;
}

.video-card.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.video-card .card-body {
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.video-card .thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #1f2937;
    overflow: hidden;
}

.video-card .thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card .duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-family: monospace;
}

.video-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.video-card:hover .play-icon {
    opacity: 1;
}

.video-card .info {
    padding: 10px 12px;
}

.video-card .title {
    font-size: 13px;
    color: #374151;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.video-card .meta {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    justify-content: space-between;
}

/* 批量操作栏 */
.batch-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 14px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 250px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: white;
    cursor: pointer;
    min-width: 120px;
}

.filter-group select:focus {
    border-color: #667eea;
}

.batch-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    white-space: nowrap;
}

.select-all-label input[type="checkbox"],
.card-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #667eea;
}

.selected-count {
    font-size: 13px;
    color: #667eea;
    font-weight: 500;
    white-space: nowrap;
}

/* 视频卡片复选框 */
.card-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    padding: 4px;
}

.card-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.pagination button {
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    color: #374151;
}

.pagination button:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
    background: #f0f4ff;
}

.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 14px;
}

/* ==================== 加载 ==================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #9ca3af;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== 视频播放器弹窗 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.modal-header h3 {
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
}

.modal-close, .close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #9ca3af;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover, .close-btn:hover {
    color: #374151;
    background: #f3f4f6;
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow: auto;
}

.player-container video {
    width: 100%;
    border-radius: 8px;
    background: #000;
}

.playback-controls {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.frame-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.frame-control label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.frame-buttons {
    display: flex;
    gap: 6px;
}

.frame-btn {
    padding: 6px 14px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
    color: #374151;
}

.frame-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f0f4ff;
}

.frame-btn:active {
    background: #e0e7ff;
    transform: scale(0.97);
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.speed-control label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.speed-buttons {
    display: flex;
    gap: 6px;
}

.speed-btn {
    padding: 6px 14px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    color: #374151;
}

.speed-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.speed-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.time-info {
    margin-left: auto;
    font-family: monospace;
    font-size: 14px;
    color: #6b7280;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.video-meta-bar {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-info {
    font-size: 13px;
    color: #6b7280;
}

/* ==================== 账号管理页面 ==================== */
.user-management {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.add-user-card,
.user-table-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.add-user-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.add-user-form input,
.add-user-form select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    flex: 1;
    min-width: 150px;
}

.add-user-form input:focus,
.add-user-form select:focus {
    border-color: #667eea;
}

.table-container {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.data-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.text-center {
    text-align: center !important;
}

.role-admin {
    color: #f59e0b;
    font-weight: 600;
}

.role-user {
    color: #6b7280;
}

.table-btn {
    padding: 5px 12px;
    font-size: 12px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 4px;
    transition: all 0.2s;
    color: #374151;
}

.table-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.table-btn-danger {
    border-color: #fecaca;
    color: #ef4444;
}

.table-btn-danger:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

/* ==================== 系统设置页面 ==================== */
.settings-page {
    max-width: 800px;
}

.settings-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.settings-group {
    margin-bottom: 0;
}

.settings-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.settings-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.settings-label {
    flex: 1;
}

.label-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.label-desc {
    font-size: 13px;
    color: #9ca3af;
}

.settings-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-control select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: white;
    cursor: pointer;
    min-width: 150px;
    transition: border-color 0.2s;
}

.settings-control select:focus {
    border-color: #667eea;
}

/* ==================== 旧版后台布局兼容（可删除旧版后移除） ==================== */
.admin-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}

@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
}

.online-users {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* 设置面板（旧版兼容） */
.settings-panel {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.settings-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-row label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.settings-row select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.settings-tip {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .sidebar {
        width: 64px;
    }

    .sidebar-logo .logo-text,
    .menu-label,
    .menu-section-title,
    .user-details,
    .logout-btn-sidebar span:last-child {
        display: none;
    }

    .sidebar-logo {
        justify-content: center;
        padding: 20px 12px;
    }

    .menu-item {
        justify-content: center;
        padding: 12px;
    }

    .menu-item.active {
        padding-left: 9px;
    }

    .user-card {
        justify-content: center;
    }

    .logout-btn-sidebar {
        justify-content: center;
        padding: 10px;
    }

    .content-area {
        padding: 16px;
    }

    .monitor-layout {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* ==================== 扑克识别应用 ==================== */
.poker-app {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 直播区域布局 */
.live-section {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}

@media (max-width: 1200px) {
    .live-section {
        grid-template-columns: 1fr;
    }
}

/* 右侧面板堆叠 */
.live-right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.live-main-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.live-footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shortcut-hint {
    font-size: 12px;
    color: #9ca3af;
}

kbd {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-family: monospace;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-shadow: 0 1px 0 #e5e7eb;
    color: #374151;
}

/* 侧边设置面板 */
.settings-side-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: fit-content;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-control input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.setting-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.setting-value {
    min-width: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    background: #f0f4ff;
    padding: 4px 8px;
    border-radius: 6px;
}

.setting-item select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.setting-item select:focus {
    border-color: #667eea;
}

.setting-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.setting-actions .control-btn {
    width: 100%;
    justify-content: center;
}

.stats-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-item .stat-label {
    font-size: 12px;
    color: #9ca3af;
}

.stat-item .stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #667eea;
}

/* 在线用户面板 */
.online-users-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.online-user-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.online-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.online-user-item:hover {
    background: #f0f0ff;
    transform: translateX(2px);
}

.online-user-item .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.online-user-item .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.online-user-item .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* 截图网格 */
.screenshot-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.screenshot-grid {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.screenshot-cell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.screenshot-cell:hover {
    border-color: #667eea;
    transform: scale(1.02);
    z-index: 1;
}

.screenshot-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-cell .cell-index {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    pointer-events: none;
}

.screenshot-cell .cell-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.screenshot-cell:hover .cell-remove {
    opacity: 1;
}

.screenshot-cell.empty-cell {
    background: repeating-linear-gradient(
        45deg,
        #f3f4f6,
        #f3f4f6 6px,
        #e5e7eb 6px,
        #e5e7eb 12px
    );
    cursor: default;
    border: 1px dashed #d1d5db;
}

.screenshot-cell.empty-cell:hover {
    transform: none;
    border-color: #d1d5db;
}

/* 截图闪光效果 */
@keyframes flash {
    0% { opacity: 0; }
    50% { opacity: 0.8; }
    100% { opacity: 0; }
}

.capture-flash {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.capture-flash.active {
    animation: flash 0.2s ease-out;
}

/* 截图弹窗 */
#screenshotModalImage {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.screenshot-modal-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    justify-content: center;
}

.correct-panel {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.correct-select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background: white;
    cursor: pointer;
}

/* 扑克牌识别结果区域 */
.poker-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.poker-results {
    margin-top: 12px;
}

.poker-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.poker-empty .icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.poker-empty p {
    font-size: 14px;
}

.poker-empty .sub-text {
    font-size: 12px;
    color: #d1d5db;
    margin-top: 4px;
}

/* 扑克牌按花色分组 */
.poker-suit-group {
    margin-bottom: 20px;
}

.poker-suit-group:last-child {
    margin-bottom: 0;
}

.poker-suit-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.poker-suit-title.red {
    color: #dc2626;
    border-bottom-color: #fecaca;
}

.poker-suit-title .suit-icon {
    font-size: 20px;
}

.poker-suit-title .suit-count {
    font-size: 12px;
    font-weight: normal;
    color: #9ca3af;
    margin-left: auto;
}

/* 扑克牌按列排列 */
.poker-cards {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 6px;
}

@media (max-width: 1400px) {
    .poker-cards {
        grid-template-columns: repeat(10, 1fr);
    }
}

@media (max-width: 1024px) {
    .poker-cards {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (max-width: 768px) {
    .poker-cards {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 单张扑克牌 */
.poker-card {
    position: relative;
    aspect-ratio: 2.5 / 3.5;
    background: white;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    cursor: pointer;
    user-select: none;
}

.poker-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.poker-card.red {
    color: #dc2626;
}

.poker-card.black {
    color: #1f2937;
}

.poker-card .card-rank {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.poker-card .card-suit {
    font-size: 22px;
    margin-top: 4px;
}

.poker-card .card-corner-tl,
.poker-card .card-corner-br {
    position: absolute;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
}

.poker-card .card-corner-tl {
    top: 4px;
    left: 4px;
    text-align: center;
}

.poker-card .card-corner-br {
    bottom: 4px;
    right: 4px;
    text-align: center;
    transform: rotate(180deg);
}

.poker-card .card-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    background: #667eea;
    color: white;
    font-size: 11px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.poker-card.empty-slot {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    color: #d1d5db;
    cursor: default;
}

.poker-card.empty-slot:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.poker-card.recognized {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* 扑克牌统计 */
.poker-stats {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-row .stat-label {
    font-size: 13px;
    color: #6b7280;
}

.stat-row .stat-val {
    font-size: 18px;
    font-weight: 700;
    color: #374151;
}

.stat-row .stat-val.red {
    color: #dc2626;
}

/* 识别中动画 */
.recognizing {
    position: relative;
}

.recognizing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.recognizing::before {
    content: '🤖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    z-index: 1;
    animation: bounce 0.6s infinite alternate;
}

@keyframes bounce {
    from { transform: translate(-50%, -60%); }
    to { transform: translate(-50%, -40%); }
}

/* 响应式 */
@media (max-width: 768px) {
    .live-section {
        grid-template-columns: 1fr;
    }

    .stats-box {
        grid-template-columns: 1fr 1fr;
    }

    .poker-stats {
        gap: 12px;
    }
}

/* ==================== 新版扑克识别布局 ==================== */
.poker-app-body {
    height: 100vh;
}

.poker-app-body .main-wrapper {
    overflow: hidden;
}

.poker-app-body .content-area {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 顶部工具栏 */
.top-toolbar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 10px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-group label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.toolbar-group select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.toolbar-group select:focus {
    border-color: #667eea;
}

.toolbar-group input.toolbar-input {
    width: 52px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background: white;
    transition: border-color 0.2s;
}

.toolbar-group input.toolbar-input:focus {
    border-color: #667eea;
}

.toolbar-group input[type="number"] {
    width: 52px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background: white;
    transition: border-color 0.2s;
}

.toolbar-group input[type="number"]:focus {
    border-color: #667eea;
}

.toolbar-group .toolbar-x {
    font-size: 12px;
    color: #9ca3af;
}

.toolbar-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    color: #374151;
}

.toolbar-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f0f4ff;
}

.toolbar-btn.danger {
    border-color: #fecaca;
    color: #ef4444;
}

.toolbar-btn.danger:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

/* 主体区域 */
.main-content-area {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
    background: #f8fafc;
}

/* 左右面板分隔条（可拖动调整宽度比例） */
.panel-splitter {
    width: 6px;
    flex-shrink: 0;
    cursor: col-resize;
    background: #e5e7eb;
    transition: background 0.2s;
}

.panel-splitter:hover,
.panel-splitter.dragging {
    background: #667eea;
}

/* 上下分隔条（直播画面与识别结果之间） */
.v-splitter {
    height: 6px;
    flex-shrink: 0;
    cursor: row-resize;
    background: #e5e7eb;
    transition: background 0.2s;
}

.v-splitter:hover,
.v-splitter.dragging {
    background: #667eea;
}

@media (max-width: 1200px) {
    .main-content-area {
        flex-direction: column;
        overflow-y: auto;
    }
    .panel-splitter {
        display: none;
    }
    .right-panel {
        width: auto !important;
        max-height: none;
    }
}

/* 左侧截图网格 */
.left-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
    overflow: hidden;
    min-height: 0;
    border-right: 1px solid #e5e7eb;
    background: #f8fafc;
}

.screenshot-grid-container {
    flex: 1;
    overflow: hidden;
    padding: 12px;
    min-height: 0;
}

.screenshot-grid {
    display: grid;
    gap: 4px;
    width: 100%;
    height: 100%;
    margin: 0;
}

.grid-footer {
    flex-shrink: 0;
    padding: 8px 16px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
}

/* 截图格子样式 */
.screenshot-grid .screenshot-cell {
    position: relative;
    aspect-ratio: auto;
    min-height: 0;
    min-width: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.15s;
}

.screenshot-grid .screenshot-cell:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.screenshot-grid .screenshot-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-grid .screenshot-cell .cell-index {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    pointer-events: none;
}

.screenshot-grid .screenshot-cell .cell-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s;
}

.screenshot-grid .screenshot-cell:hover .cell-remove {
    opacity: 1;
}

.screenshot-grid .screenshot-cell .cell-frame-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(102, 126, 234, 0.85);
    color: white;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 2;
}

.screenshot-grid .screenshot-cell .frame-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #10b981;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 3;
    font-weight: 600;
}

.screenshot-grid .screenshot-cell {
    overflow: hidden;
}

.screenshot-grid .screenshot-cell img {
    transition: opacity 0.08s;
}

.screenshot-grid .screenshot-cell:hover .cell-remove {
    opacity: 1;
}

.screenshot-grid .screenshot-cell.empty-cell {
    background: white;
    border: 1px dashed #e5e7eb;
    cursor: default;
}

.screenshot-grid .screenshot-cell.empty-cell:hover {
    box-shadow: none;
    border-color: #e5e7eb;
}

/* 网格空状态 */
.grid-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.grid-empty-state .icon {
    font-size: 56px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.grid-empty-state p {
    font-size: 14px;
    margin: 4px 0;
}

/* 右侧面板 */
.right-panel {
    display: flex;
    flex-direction: column;
    width: 380px;
    flex-shrink: 0;
    min-width: 280px;
    max-width: 70%;
    overflow: hidden;
    min-height: 0;
    background: white;
}

/* 直播面板 */
.live-panel {
    flex-shrink: 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: relative;
}

.live-panel-header {
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    border-bottom: 1px solid #e5e7eb;
}

.live-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.camera-settings-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #6b7280;
}

.camera-settings-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.camera-settings-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.remote-record-btn {
    height: 28px;
    padding: 0 10px;
    border: 1px solid #ef4444;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #ef4444;
    font-weight: 500;
    white-space: nowrap;
}

.remote-record-btn:hover {
    background: #fef2f2;
}

.remote-record-btn.recording {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.remote-record-btn.reflection-btn {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.remote-record-btn.reflection-btn:hover {
    background: #f0f9ff;
}

.remote-record-btn.reflection-btn.on {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: white;
}

/* 镜面倒影（水面倒影特效） */
.live-reflection {
    position: relative;
    height: 56px;
    overflow: hidden;
    background: #1a1a2e;
    flex-shrink: 0;
}

.live-reflection video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleY(-1);
    filter: blur(3px);
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

/* 摄像头控制面板 */
.camera-settings-panel {
    position: fixed;
    top: 80px;
    right: 16px;
    width: 320px;
    min-width: 240px;
    max-width: 640px;
    min-height: 200px;
    max-height: calc(100vh - 100px);
    background: white;
    z-index: 990;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    resize: both;
    overflow: hidden;
    animation: cspSlideIn 0.25s ease;
}

@keyframes cspSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 前端（用户端）设置面板 */
.front-settings-panel {
    margin-top: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.front-settings-panel .csp-body {
    max-height: 320px;
}

.csp-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.csp-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.csp-close {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #6b7280;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csp-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* 后台摄像头设置面板可拖动 */
.camera-settings-panel .csp-header {
    cursor: move;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.csp-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.csp-drag-handle {
    font-size: 14px;
    color: #9ca3af;
    cursor: move;
    letter-spacing: 2px;
}

.csp-body {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.csp-row {
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.csp-label {
    margin-bottom: 6px;
}

.csp-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.csp-desc {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.csp-control {
    margin-top: 6px;
}

.csp-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.csp-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
}

.csp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.csp-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.csp-val {
    min-width: 42px;
    text-align: right;
    font-size: 13px;
    color: #3b82f6;
    font-weight: 500;
}

.csp-btn-group {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.csp-btn {
    padding: 5px 12px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s;
}

.csp-btn:hover {
    border-color: #9ca3af;
    color: #374151;
}

.csp-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.csp-btn.csp-btn-green.active {
    background: #10b981;
    border-color: #10b981;
}

.csp-toggle {
    min-width: 80px;
}

.csp-toggle.active {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.csp-rotation-group .csp-btn {
    padding: 5px 8px;
    font-size: 11px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: pulse 1.5s infinite;
}

.live-user-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    background: white;
    cursor: pointer;
}

.live-video-box {
    position: relative;
    background: #1a1a2e;
    height: 240px;
    min-width: 160px;
    max-width: 100%;
    min-height: 120px;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    resize: both;
}

.live-video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-video-box .no-signal {
    text-align: center;
    color: #6b7280;
    position: static;
    display: block;
    background: none;
}

.live-video-box .no-signal .icon {
    font-size: 36px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.live-video-box .no-signal p {
    font-size: 13px;
    margin: 0;
}

.live-panel-footer {
    padding: 6px 12px;
    background: #fafafa;
    border-top: 1px solid #e5e7eb;
}

.live-stats-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    padding: 5px 12px;
    background: #0f172a;
    border-top: 1px solid #1e293b;
    font-size: 11px;
    color: #94a3b8;
}

.live-stats-bar .live-stat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.live-stats-bar .live-stat b {
    color: #22d3ee;
    font-weight: 600;
}

.update-text {
    font-size: 11px;
    color: #9ca3af;
}

/* 扑克牌面板（红色边框区域） */
.poker-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #ef4444;
    margin: 8px;
    border-radius: 6px;
    background: white;
}

.poker-panel-header {
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fef2f2;
    border-bottom: 1px solid #fecaca;
    flex-shrink: 0;
}

.poker-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.model-status {
    font-size: 11px;
    color: #f59e0b;
    font-weight: 500;
    padding: 2px 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    transition: all 0.3s;
}

.poker-title {
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
}

.poker-count {
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
}

.poker-results-area {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.poker-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    text-align: center;
}

.poker-empty p {
    font-size: 13px;
    margin: 2px 0;
}

.poker-empty .sub {
    font-size: 11px;
    color: #e5e7eb;
}

/* 扑克牌按花色分组 */
.poker-suit-group {
    margin-bottom: 4px;
}

.poker-suit-title {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.poker-suit-title.red {
    color: #dc2626;
}

.poker-suit-title .suit-count {
    margin-left: auto;
    font-weight: normal;
    color: #9ca3af;
    font-size: 10px;
}

/* 扑克牌竖排文字列表（第X列：花色点数...） */
.poker-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.poker-col-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 8px;
    background: white;
    border: 1px solid #fecaca;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
}

.poker-col-line .col-label {
    flex-shrink: 0;
    font-weight: 600;
    color: #dc2626;
    min-width: 48px;
}

.poker-col-line .col-cards {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.poker-col-line .col-cards .card-chip {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 8px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
}

.poker-col-line .col-cards .card-chip.red {
    color: #dc2626;
}

.poker-col-line .col-cards .card-chip.black {
    color: #1f2937;
    border-color: #d1d5db;
    background: #f9fafb;
}

.poker-col-line .col-empty {
    color: #d1d5db;
    font-size: 12px;
}

/* 扑克牌统计栏 */
.poker-stats-bar {
    flex-shrink: 0;
    padding: 6px 12px;
    background: #fef2f2;
    border-top: 1px solid #fecaca;
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
    flex-wrap: wrap;
    justify-content: center;
}

.poker-stats-bar .red {
    color: #dc2626;
}

.poker-stats-bar b {
    color: #1f2937;
    font-weight: 700;
}

.poker-stats-bar .red b {
    color: #dc2626;
}

/* 闪光效果 */
.capture-flash {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.capture-flash.active {
    animation: flash 0.2s ease-out;
}

@keyframes flash {
    0% { opacity: 0; }
    50% { opacity: 0.7; }
    100% { opacity: 0; }
}

/* OCR 识别设置弹窗 */
.ocr-settings-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ocr-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ocr-label {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.ocr-input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.ocr-input:focus {
    border-color: #11998e;
    box-shadow: 0 0 0 3px rgba(17, 153, 142, 0.15);
}

.ocr-hint {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.5;
}

.ocr-hint a {
    color: #11998e;
    text-decoration: none;
}

.ocr-hint a:hover {
    text-decoration: underline;
}

.ocr-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ocr-toggle-text {
    font-size: 13px;
    color: #374151;
}

/* 开关样式 */
.ocr-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.ocr-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ocr-switch-slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 24px;
    transition: background 0.2s;
}

.ocr-switch-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.ocr-switch input:checked + .ocr-switch-slider {
    background: #11998e;
}

.ocr-switch input:checked + .ocr-switch-slider::before {
    transform: translateX(20px);
}

.ocr-actions {
    display: flex;
    gap: 10px;
}

.ocr-actions .control-btn {
    padding: 10px 20px;
    font-size: 14px;
}

.ocr-status {
    font-size: 13px;
    margin: 0;
    min-height: 18px;
}

/* 截图单元格网格图覆盖层 */
.screenshot-cell .cell-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background-image:
        linear-gradient(to right, rgba(255, 80, 80, 0.55) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 80, 80, 0.55) 1px, transparent 1px);
    background-repeat: no-repeat;
    background-position: 0 0;
}

/* 快捷键提示浮层 */
.shortcut-help {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shortcut-help-inner {
    background: white;
    border-radius: 12px;
    padding: 24px;
    min-width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.shortcut-help-inner h4 {
    margin: 0 0 16px;
    font-size: 16px;
    color: #1f2937;
}

.shortcut-help-inner ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.shortcut-help-inner li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #374151;
}

.shortcut-help-inner kbd {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    font-family: monospace;
    color: #111827;
}

/* 默认密码提示条 */
.pwd-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    background: #f59e0b;
    color: white;
    padding: 8px 16px;
    text-align: center;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pwd-warning button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

/* 在线用户面板 */
.online-users-panel {
    position: fixed;
    top: 60px;
    left: 250px;
    width: 280px;
    max-height: 70vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.oup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.oup-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.oup-close {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #6b7280;
}

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

.oup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.15s;
}

.oup-item:hover {
    background: #f3f4f6;
}

.oup-user {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.oup-user .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.oup-name {
    font-size: 13px;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oup-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.oup-btn {
    padding: 4px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    color: #374151;
    transition: all 0.15s;
}

.oup-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f0f4ff;
}

/* ==================== 深色模式 ==================== */
body.dark-theme {
    background: #0f172a;
    color: #e2e8f0;
}

body.dark-theme .top-toolbar {
    background: #1e293b;
    border-bottom-color: #334155;
}

body.dark-theme .toolbar-group label {
    color: #94a3b8;
}

body.dark-theme .toolbar-group select,
body.dark-theme .toolbar-group input.toolbar-input,
body.dark-theme .toolbar-group input[type="number"] {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-theme .toolbar-btn {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark-theme .main-content-area {
    background: #0f172a;
}

body.dark-theme .left-panel {
    background: #0f172a;
    border-right-color: #334155;
}

body.dark-theme .right-panel {
    background: #1e293b;
}

body.dark-theme .grid-footer {
    background: #1e293b;
    border-top-color: #334155;
    color: #94a3b8;
}

body.dark-theme .screenshot-grid .screenshot-cell,
body.dark-theme .screenshot-grid .screenshot-cell.empty-cell {
    background: #1e293b;
    border-color: #334155;
}

body.dark-theme .live-panel {
    border-bottom-color: #334155;
}

body.dark-theme .live-panel-header {
    background: #1e293b;
    border-bottom-color: #334155;
}

body.dark-theme .live-panel-footer {
    background: #1e293b;
    border-top-color: #334155;
}

body.dark-theme .poker-panel {
    background: #1e293b;
    border-color: #7f1d1d;
}

body.dark-theme .poker-panel-header {
    background: #2d1a1a;
    border-bottom-color: #7f1d1d;
}

body.dark-theme .poker-results-area {
    color: #e2e8f0;
}

body.dark-theme .poker-empty,
body.dark-theme .poker-empty p {
    color: #94a3b8;
}

body.dark-theme .camera-settings-panel {
    background: #1e293b;
    border-color: #334155;
}

body.dark-theme .modal-content {
    background: #1e293b;
    color: #e2e8f0;
}

body.dark-theme .modal-header {
    border-bottom-color: #334155;
}

body.dark-theme .screenshot-modal-info,
body.dark-theme .screenshot-modal-info #screenshotModalMeta {
    color: #cbd5e1;
}
