/* ===== Transcript Pro v3.1 - Premium Design ===== */

:root {
    --primary: #FF5722;
    --primary-light: #FF7A50;
    --primary-dark: #E64A19;
    --secondary: #7C3AED;
    --accent-blue: #3B82F6;
    --accent-cyan: #0EA5E9;
    --accent-green: #10B981;
    --accent-purple: #8B5CF6;
    
    --bg-base: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
    --text-muted: #CBD5E1;
    
    --border-light: #E2E8F0;
    --border-default: #CBD5E1;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 50%, #FFF7ED 100%);
    min-height: 100vh;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* ===== Topbar ===== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, #EC4899 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.logo-mark svg {
    width: 20px;
    height: 20px;
    color: white;
    stroke-width: 2;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--primary);
}

.btn-nav {
    height: 40px;
    padding: 0 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
    transition: all 0.2s ease;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

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

/* ===== Main Container - 전체 화면 사용 ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 32px 60px;
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 40px 0 50px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(255, 87, 34, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-pill-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 50%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

/* ===== Tabs ===== */
.tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.tabs {
    display: inline-flex;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 4px;
    box-shadow: var(--shadow-sm);
}

.tab {
    position: relative;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.tab svg {
    width: 16px;
    height: 16px;
}

.tab:hover { color: var(--text-secondary); }

.tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
}

.tab-count {
    padding: 2px 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.tab.active .tab-count {
    background: rgba(255,255,255,0.2);
}

.tab-indicator { display: none; }

/* ===== Tab Content ===== */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== Card ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

/* ===== Input ===== */
.input-wrap {
    position: relative;
    margin-bottom: 24px;
}

.input-field {
    width: 100%;
    height: 56px;
    padding: 0 20px 0 52px;
    background: var(--bg-base);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.input-field::placeholder { color: var(--text-tertiary); }
.input-field:hover { border-color: var(--border-default); }
.input-field:focus { border-color: var(--primary); background: white; }

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.input-icon svg { width: 20px; height: 20px; }
.input-field:focus ~ .input-icon { color: var(--primary); }

/* ===== Controls ===== */
.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.controls-left { display: flex; align-items: center; gap: 12px; }

.toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-base);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle:hover { border-color: var(--border-default); }
.toggle.on { background: rgba(255, 87, 34, 0.1); border-color: var(--primary); }

.toggle-track {
    width: 36px;
    height: 20px;
    background: var(--text-muted);
    border-radius: 10px;
    position: relative;
    transition: all 0.2s ease;
}

.toggle.on .toggle-track { background: var(--primary); }

.toggle-thumb {
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.toggle.on .toggle-thumb { left: 18px; }

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.select-wrap { position: relative; }

.select-field {
    height: 44px;
    padding: 0 36px 0 14px;
    background: var(--bg-base);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-secondary);
    cursor: pointer;
    outline: none;
    appearance: none;
    transition: all 0.2s ease;
}

.select-field:hover { border-color: var(--border-default); }

.select-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-tertiary);
}

.select-chevron svg { width: 16px; height: 16px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn svg { flex-shrink: 0; }

.btn-primary {
    height: 52px;
    padding: 0 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: var(--radius-md);
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(255, 87, 34, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: var(--text-muted); box-shadow: none; cursor: not-allowed; }
.btn-primary svg { width: 18px; height: 18px; }

.btn-secondary {
    height: 40px;
    padding: 0 16px;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-secondary.success { border-color: var(--accent-green); color: var(--accent-green); }
.btn-secondary svg { width: 16px; height: 16px; }

.btn-pro {
    height: 40px;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--secondary) 100%);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-pro:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4); }
.btn-pro svg { width: 16px; height: 16px; }

.badge-pro {
    padding: 3px 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.btn-save {
    height: 40px;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-cyan) 100%);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-save:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4); }
.btn-save svg { width: 16px; height: 16px; }

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* ===== Panels ===== */
.panel {
    margin-top: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: none;
    box-shadow: var(--shadow-sm);
}

.panel.show { display: block; }

.panel-head {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-base);
}

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

.panel-body { padding: 12px; }

.sub-item {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.sub-item:hover { background: var(--bg-base); }

.sub-item-left { display: flex; align-items: center; gap: 14px; }

.sub-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sub-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.sub-info span { font-size: 12px; color: var(--text-tertiary); }

.sub-arrow { color: var(--primary); opacity: 0; transition: all 0.2s ease; }
.sub-arrow svg { width: 16px; height: 16px; }
.sub-item:hover .sub-arrow { opacity: 1; }

.loading { text-align: center; padding: 48px 20px; }

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

/* ===== Result Panel ===== */
.result {
    margin-top: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: none;
    box-shadow: var(--shadow-lg);
}

.result.show { display: block; }

.result-head {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--bg-base);
}

.result-info { flex: 1; min-width: 250px; }
.result-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.result-meta { display: flex; flex-wrap: wrap; gap: 8px; }

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

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

.transcript-box { padding: 24px; max-height: 450px; overflow-y: auto; }

.transcript-box pre {
    margin: 0;
    font-family: 'SF Mono', 'JetBrains Mono', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.9;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

/* ===== PRO Panel ===== */
.pro-panel {
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 2px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: none;
}

.pro-panel.show { display: block; }

.pro-panel-head {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pro-panel-head-left { display: flex; align-items: center; gap: 12px; }

.pro-icon-wrap {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--secondary) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.pro-icon-wrap svg { width: 18px; height: 18px; }

.pro-panel-head-text h3 { font-size: 14px; font-weight: 700; }
.pro-panel-head-text span { font-size: 12px; color: var(--text-tertiary); }

.badge-pro-lg {
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--secondary) 100%);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.pro-panel-body { padding: 24px; max-height: 450px; overflow-y: auto; }

.summary-md { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }
.summary-md h2 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 20px 0 12px; }
.summary-md h3 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin: 16px 0 10px; }
.summary-md ul { margin: 10px 0; padding-left: 20px; }
.summary-md li { margin: 6px 0; }
.summary-md p { margin: 8px 0; }

.pro-placeholder { text-align: center; padding: 48px 20px; }

.pro-placeholder-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent-purple);
}

.pro-placeholder-icon svg { width: 24px; height: 24px; }
.pro-placeholder h4 { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.pro-placeholder p { font-size: 13px; color: var(--text-tertiary); max-width: 260px; margin: 0 auto; }

/* ===== CTA ===== */
.cta {
    margin-top: 20px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(255, 87, 34, 0.05) 100%);
    border: 2px dashed rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-xl);
    text-align: center;
    display: none;
}

.cta.show { display: block; }

.cta h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta p { color: var(--text-secondary); margin-bottom: 20px; font-size: 14px; }

.cta-features { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }

.cta-feature { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    font-size: 13px; 
    font-weight: 600; 
    color: var(--text-secondary); 
}

.cta-feature svg { width: 18px; height: 18px; color: var(--accent-green); }

/* ===== Error ===== */
.error {
    margin-top: 20px;
    padding: 16px 20px;
    background: #FEF2F2;
    border: 2px solid #FECACA;
    border-radius: var(--radius-md);
    color: #DC2626;
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.error.show { display: flex; align-items: center; gap: 10px; }
.error svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== Archive Tab ===== */
.archive-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 20px; }

.stats { display: flex; gap: 16px; }

.stat {
    padding: 20px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-val {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; font-weight: 600; }

.search-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.search-row { display: flex; gap: 12px; }

.search-input {
    flex: 1;
    height: 52px;
    padding: 0 20px;
    background: var(--bg-base);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.search-input::placeholder { color: var(--text-tertiary); }
.search-input:focus { border-color: var(--accent-cyan); background: white; }

.search-btn {
    height: 52px;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-cyan) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.search-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4); }
.search-btn svg { width: 18px; height: 18px; }

.search-hint { margin-top: 12px; font-size: 12px; color: var(--text-tertiary); }

.search-hint code {
    background: rgba(14, 165, 233, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', monospace;
    font-size: 11px;
    color: var(--accent-cyan);
    font-weight: 600;
}

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

.archive-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.archive-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-cyan);
}

.archive-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.archive-card-title { font-size: 16px; font-weight: 700; line-height: 1.4; }
.archive-card-date { font-size: 12px; color: var(--text-tertiary); font-weight: 600; }

.archive-card-summary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.tag {
    padding: 4px 10px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.archive-empty {
    text-align: center;
    padding: 64px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--border-light);
}

.archive-empty-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent-cyan);
}

.archive-empty-icon svg { width: 28px; height: 28px; }
.archive-empty h3 { font-size: 18px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.archive-empty p { font-size: 14px; color: var(--text-tertiary); }

/* ===== Modal ===== */
.modal-wrap {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-wrap.show { display: flex; }

.modal {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.modal-head {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--bg-base);
}

.modal-title { font-size: 18px; font-weight: 700; line-height: 1.4; }
.modal-meta { font-size: 12px; color: var(--text-tertiary); margin-top: 6px; font-weight: 600; }

.modal-close {
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
}

.modal-close:hover { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
.modal-close svg { width: 16px; height: 16px; }

.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-section { margin-bottom: 24px; }

.modal-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.modal-transcript {
    background: var(--bg-base);
    border-radius: var(--radius-md);
    padding: 20px;
    font-family: 'SF Mono', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* ===== Footer ===== */
.footer { margin-top: 60px; text-align: center; font-size: 13px; color: var(--text-tertiary); font-weight: 500; }
.footer a { color: var(--primary); text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .topbar { padding: 0 16px; }
    .container { padding: 80px 16px 40px; }
    .card { padding: 20px; }
    .controls { flex-direction: column; align-items: stretch; }
    .controls-left { flex-wrap: wrap; justify-content: center; }
    .btn-primary { width: 100%; }
    .result-head { flex-direction: column; }
    .result-actions { width: 100%; }
    .stats { flex-wrap: wrap; width: 100%; }
    .stat { flex: 1; min-width: 140px; }
    .search-row { flex-direction: column; }
    .tabs { width: 100%; }
    .tab { flex: 1; justify-content: center; }
    .hero h1 { font-size: 28px; }
}