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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* 背景动画 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    top: 50%;
    right: -100px;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* 玻璃态效果 */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* 登录页面 */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
}

.login-card {
    padding: 50px 40px;
    animation: slideUp 0.6s ease-out;
}

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

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-icon svg,
.logo-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-group label:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.form-group label svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.form-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.error-message {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: var(--danger);
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.btn-primary {
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

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

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.login-footer {
    margin-top: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.login-footer code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
}

/* 主应用布局 */
.app-container {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 4px;  /* 减少外边距，使布局更紧凑 */
    box-sizing: border-box;
}

/* 侧边栏 */
.sidebar {
    width: 280px;
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-header .logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.sidebar-header .logo-icon svg,
.sidebar-header .logo-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.sidebar-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.nav-menu {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 16px;
    font-weight: 500;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), transparent);
    color: var(--text-primary);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.btn-logout {
    width: 100%;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: var(--danger);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

.btn-logout svg {
    width: 18px;
    height: 18px;
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 20px;  /* 减少内边距，使布局更紧凑 */
    display: flex;
    flex-direction: column;
    gap: 20px;  /* 减少元素间距 */
    min-height: 0;
    max-height: 100vh;
    overflow: hidden;
}

.page-header {
    padding: 16px 20px;  /* 减少页头内边距 */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warning);
    animation: pulse-dot 2s infinite;
}

.status-dot.connected {
    background: var(--success);
}

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

.page-content {
    flex: 1;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page {
    display: none;
    animation: fadeIn 0.4s ease-out;
    flex: 1;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.page.active {
    display: flex;
    flex-direction: column;
}

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

/* 实时观看页面 */
#livePage.active {
    display: flex;
    flex-direction: column;
    gap: 12px;  /* 减少间距，让视频区域更大 */
    flex: 1;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;  /* 防止页面滚动 */
    margin: -8px;  /* 负边距，突破父容器的padding限制，让视频更宽 */
    padding: 8px;  /* 内部保持一点间距 */
}

.video-container {
    flex-shrink: 0;
    padding: 0;
    overflow: hidden;
    /* 移除固定宽高比，让容器自适应视频的实际宽高比 */
    width: 100%;  /* 确保宽度100% */
    min-height: 60vh;  /* 增加最小高度，让视频更大 */
    flex: 2;  /* 增加flex值，让视频占据更多空间 */
    max-height: 90vh;  /* 增大视频容器高度，适应竖屏视频 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--bg-dark);
    overflow: hidden;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    gap: 16px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.video-placeholder[style*="display: none"] {
    display: none !important;
}

.video-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
}

.video-placeholder p {
    font-size: 16px;
}

.video-player video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;  /* 保持完整显示，不裁剪 */
    object-position: center;  /* 居中显示 */
    display: block !important;
    visibility: visible !important;
    position: relative;
    z-index: 1;
    background: #000;
    /* 确保视频完整显示，不被裁剪 */
    max-width: 100%;
    max-height: 100%;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 播放按钮覆盖层（用于处理浏览器自动播放限制） */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.play-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.6);
}

.play-button:active {
    transform: scale(0.98);
}

.play-button svg {
    width: 64px;
    height: 64px;
}

.play-button span {
    margin-top: 8px;
}

.streams-panel {
    flex: 0 0 auto;  /* 不自动伸缩，根据内容确定大小 */
    min-height: 200px;  /* 减少最小高度，为视频留出更多空间 */
    max-height: 30vh;  /* 限制最大高度，避免占用太多空间 */
    padding: 16px;  /* 减少内边距 */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.streams-panel h3 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.streams-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;  /* 禁用横向滚动 */
    min-height: 0;
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE 和 Edge */
}

.streams-list::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

.stream-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 0;  /* 防止内容溢出 */
    width: 100%;
    box-sizing: border-box;
}

.stream-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
    border-color: var(--primary);
}

.stream-item.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), transparent);
    border-color: var(--primary);
}

.stream-item.orphaned {
    opacity: 0.7;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.stream-item.inactive {
    opacity: 0.85;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.stream-info {
    flex: 1;
    min-width: 0;  /* 允许flex子元素收缩 */
    overflow: hidden;  /* 防止内容溢出 */
}

.stream-name {
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.protocol-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;  /* 防止标签被压缩 */
}

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

.protocol-badge.srt {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stream-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stream-meta-line {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stream-params {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.8;
    padding: 2px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stream-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.stream-status {
    padding: 6px 12px;
    background: var(--success);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.stream-status.inactive {
    background: var(--warning);
    color: white;
}

.stream-status.orphaned {
    background: rgba(239, 68, 68, 0.3);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.btn-srs-player {
    padding: 8px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-srs-player:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: var(--primary);
    transform: scale(1.05);
}

.btn-srs-player svg {
    width: 16px;
    height: 16px;
}

.btn-delete-stream {
    padding: 8px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: var(--danger);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-delete-stream:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: var(--danger);
    transform: scale(1.05);
}

.btn-delete-stream svg {
    width: 16px;
    height: 16px;
}

.empty-state, .loading-state {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* 历史视频页面 */
.recordings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.recording-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recording-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.recording-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.format-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(99, 102, 241, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.format-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(99, 102, 241, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.recording-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0.1;
}

.recording-thumbnail svg {
    width: 60px;
    height: 60px;
    color: var(--text-secondary);
    z-index: 1;
}

.recording-info {
    padding: 16px;
}

.recording-name {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recording-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.recording-actions {
    padding: 12px 16px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-row {
    display: flex;
    gap: 8px;
}


.btn-play {
    flex: 1;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-play svg {
    width: 16px;
    height: 16px;
}

.btn-download {
    flex: 1;
    padding: 10px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 8px;
    color: var(--success);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: var(--success);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-download svg {
    width: 16px;
    height: 16px;
}

.btn-transcode {
    flex: 1;
    padding: 10px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.5);
    border-radius: 8px;
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-transcode:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-transcode svg {
    width: 16px;
    height: 16px;
}

.btn-transcode.transcoding {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-transcode .spinner {
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

.btn-convert {
    flex: 1;
    padding: 10px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-convert:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-convert svg {
    width: 16px;
    height: 16px;
}

.btn-convert.converting {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-convert .spinner {
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

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

/* 转换加载模态框 */
.convert-loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.convert-loading-modal.show {
    opacity: 1;
}

.convert-loading-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    min-width: 320px;
    max-width: 500px;
    width: auto;
    height: auto;
    box-shadow: var(--shadow);
    animation: slideUp 0.3s ease;
    position: relative;
    overflow: visible;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.convert-animation-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 2;
}

.convert-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(15px);
    animation: orbFloat 4s ease-in-out infinite;
    pointer-events: none;
}

.convert-orb.orb-1 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    top: 10px;
    left: 10px;
    animation-delay: 0s;
}

.convert-orb.orb-2 {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    animation-delay: 1.3s;
}

.convert-orb.orb-3 {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2.6s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(8px, -8px) scale(1.15);
        opacity: 0.7;
    }
    66% {
        transform: translate(-8px, 8px) scale(0.9);
        opacity: 0.6;
    }
}

.convert-spinner {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    color: var(--primary);
}

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

.convert-spinner svg {
    width: 100%;
    height: 100%;
    animation: spin 1s linear infinite;
}

.convert-progress {
    margin: 16px 0;
}

.convert-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.convert-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 3px;
    width: 30%;
    background-size: 200% 100%;
    animation: progressFlow 2s linear infinite;
    max-width: 100%;
}

@keyframes progressFlow {
    0% {
        background-position: 0% 50%;
        width: 0%;
    }
    50% {
        background-position: 100% 50%;
        width: 70%;
    }
    100% {
        background-position: 200% 50%;
        width: 100%;
    }
}

.convert-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.btn-cancel-convert {
    padding: 10px 24px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 8px;
    color: var(--danger);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-cancel-convert:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: var(--danger);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-cancel-convert svg {
    width: 16px;
    height: 16px;
}

.convert-loading-text {
    color: var(--text-primary);
}

.convert-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.convert-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.convert-filename {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
    word-break: break-all;
    margin-top: 8px;
}

/* 转换成功/错误/取消提示 */
.convert-success-toast,
.convert-error-toast,
.convert-cancel-toast,
.convert-info-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    z-index: 10001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    min-width: 280px;
}

.convert-success-toast.show,
.convert-error-toast.show,
.convert-cancel-toast.show,
.convert-info-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.convert-success-toast {
    border-left: 3px solid var(--success);
}

.convert-success-toast .toast-icon svg,
.convert-error-toast .toast-icon svg,
.convert-cancel-toast .toast-icon svg,
.convert-info-toast .toast-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.success-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.error-icon {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.cancel-icon {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
}

.info-icon {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.convert-error-toast {
    border-left: 3px solid var(--danger);
}

.convert-cancel-toast {
    border-left: 3px solid var(--text-secondary);
}

.convert-info-toast {
    border-left: 3px solid var(--primary);
}

.convert-success-toast span,
.convert-error-toast span,
.convert-cancel-toast span,
.convert-info-toast span {
    font-size: 14px;
    color: var(--text-primary);
    flex: 1;
}

/* 转码加载提示 */
.transcode-loading-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    z-index: 10001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    min-width: 320px;
}

.transcode-loading-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.transcode-loading-toast {
    border-left: 3px solid #667eea;
}

.transcode-loading-toast .toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transcode-loading-toast .toast-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.transcode-loading-toast .toast-message {
    font-size: 12px;
    color: var(--text-secondary);
}

.transcode-loading-toast .loading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.2);
    flex-shrink: 0;
}

.transcode-loading-toast .loading-icon .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-delete {
    flex: 1;
    padding: 10px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 8px;
    color: var(--danger);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: var(--danger);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-delete svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}


/* 服务状态页面 */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.status-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.status-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-icon.server {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.status-icon.service {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
}

.status-icon.uptime {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
}

.status-icon.streams {
    background: linear-gradient(135deg, var(--success), var(--primary));
    color: white;
}

.status-icon svg {
    width: 30px;
    height: 30px;
}

.status-info h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.status-info p {
    font-size: 20px;
    font-weight: 700;
}

.streams-detail {
    padding: 24px;
}

.streams-detail h3 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.streams-detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stream-detail-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stream-detail-item > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stream-detail-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.stream-detail-value {
    font-size: 14px;
    font-weight: 600;
}

/* 视频播放器模态框 */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.video-modal-content {
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.video-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.btn-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.btn-close svg {
    width: 20px;
    height: 20px;
}

.video-modal-body {
    flex: 1;
    min-height: 0;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recording-video-player {
    width: 100%;
    aspect-ratio: 16/9;
    max-height: calc(90vh - 120px);
    background: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.recording-video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 自定义视频控制条 */
.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* 实时播放器：hover时显示控制条 */
.video-player:hover .custom-video-controls,
.video-player:focus-within .custom-video-controls {
    opacity: 1;
    pointer-events: auto;
}

/* 视频回放播放器：hover时显示控制条，并且鼠标在控制条上时也保持显示 */
.recording-video-player:hover .custom-video-controls,
.recording-video-player:focus-within .custom-video-controls,
.recording-video-player .custom-video-controls:hover {
    opacity: 1;
    pointer-events: auto;
}

.custom-controls-bar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-btn-play-pause,
.custom-btn-fullscreen,
.custom-btn-volume {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    flex-shrink: 0;
}

.custom-btn-play-pause:hover,
.custom-btn-fullscreen:hover,
.custom-btn-volume:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.custom-btn-play-pause svg,
.custom-btn-fullscreen svg,
.custom-btn-volume svg {
    width: 20px;
    height: 20px;
}

.custom-time-display {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
    font-variant-numeric: tabular-nums;
}

.time-separator {
    opacity: 0.7;
}

.custom-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.custom-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-progress::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.custom-progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.custom-progress::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.custom-progress::-moz-range-track {
    background: rgba(255, 255, 255, 0.3);
    height: 6px;
    border-radius: 3px;
}

/* 音量控制 */
.custom-volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.custom-volume {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.custom-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-volume::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.custom-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.custom-volume::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.custom-volume::-moz-range-track {
    background: rgba(255, 255, 255, 0.3);
    height: 4px;
    border-radius: 2px;
}

/* 播放速度控制 */
.custom-speed-control {
    display: flex;
    align-items: center;
}

.custom-speed-select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 70px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.custom-speed-select:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.custom-speed-select:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.custom-speed-select option {
    background: var(--bg-dark);
    color: white;
    padding: 8px;
}

/* 实时流控制条样式 */
.live-indicator {
    color: #ff4444;
    font-weight: 600;
    animation: pulse 2s infinite;
}

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

.custom-progress-live {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin: 0 12px;
}

.recording-video-player {
    position: relative;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 80px;
        padding: 20px 10px;
    }
    
    .sidebar-header h2,
    .nav-item span,
    .btn-logout span {
        display: none;
    }
    
    .sidebar-header {
        justify-content: center;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .recordings-grid {
        grid-template-columns: 1fr;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .video-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .video-modal-body {
        padding: 12px;
    }
    
    .recording-video-player {
        max-height: calc(100vh - 100px);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 删除确认对话框 */
.delete-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.delete-confirm-modal.show {
    opacity: 1;
}

.delete-confirm-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    min-width: 400px;
    max-width: 500px;
    box-shadow: var(--shadow);
    animation: slideUp 0.3s ease;
    position: relative;
}

.delete-confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
}

.delete-confirm-icon svg {
    width: 32px;
    height: 32px;
}

.delete-confirm-text {
    margin-bottom: 24px;
}

.delete-confirm-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.delete-confirm-message {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
    word-break: break-all;
}

.delete-confirm-warning {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.delete-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-confirm-delete {
    padding: 12px 32px;
    background: var(--danger);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-confirm-delete:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-cancel-delete {
    padding: 12px 32px;
    background: rgba(148, 163, 184, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-cancel-delete:hover {
    background: rgba(148, 163, 184, 0.3);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

/* streams-list 的滚动条已在上面隐藏 */

/* 录制控制区域 */
.recording-controls {
    padding: 20px;
    margin-bottom: 16px;
}

.recording-controls-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.recording-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recording-status-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.recording-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-secondary);
    transition: all 0.3s ease;
}

.recording-indicator.recording {
    background: var(--danger);
    animation: pulse-recording 1.5s infinite;
}

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

.recording-buttons {
    display: flex;
    gap: 12px;
}

.btn-record {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.btn-record svg {
    width: 18px;
    height: 18px;
}

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

.btn-record-start {
    background: var(--success);
}

.btn-record-start:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-record-stop {
    background: var(--danger);
}

.btn-record-stop:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

