@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg: #060608;
    --surface: #0e0e12;
    --surface-2: #151519;
    --surface-3: #1c1c22;
    --primary: #66fcf1;
    --primary-dim: #45a29e;
    --primary-glow: rgba(102, 252, 241, 0.25);
    --accent: #ff3366;
    --accent-glow: rgba(255, 51, 102, 0.3);
    --text: #e8e8ed;
    --text-dim: #7a7a88;
    --text-muted: #55555f;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --radius: 10px;
    --radius-sm: 6px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== SHARED NAVIGATION ========== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 56px;
    background: rgba(6, 6, 8, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 500;
}

.top-bar .brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.top-bar .brand span { color: var(--primary); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(102, 252, 241, 0.08);
}

.nav-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Mobile Bottom Nav */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 6, 8, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.mobile-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    transition: color 0.2s;
}

.mobile-nav-link svg {
    width: 20px;
    height: 20px;
}

.mobile-nav-link.active {
    color: var(--primary);
}

.kbd-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    background: var(--surface-2);
    border: 1px solid var(--border-hover);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-dim);
    line-height: 1;
}

/* ========== MAIN LAYOUT ========== */
.vod-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0;
    height: calc(100vh - 56px);
    overflow: hidden;
}

/* ========== PLAYER COLUMN ========== */
.player-col {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-3) transparent;
}

.video-stage {
    position: relative;
    width: 100%;
    background: #000;
    flex-shrink: 0;
}

.video-stage video {
    width: 100%;
    display: block;
    cursor: pointer;
    background: #000;
}

/* ========== CONTROLS ========== */
.player-controls {
    background: var(--surface);
    padding: 12px 20px 10px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

/* Timeline */
.timeline-wrapper {
    position: relative;
    width: 100%;
    height: 10px;
    background: var(--surface-3);
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 2px;
    overflow: visible;
    transition: height 0.15s var(--ease);
}

.timeline-wrapper:hover { height: 14px; }

.timeline-progress {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dim), var(--primary));
    border-radius: 5px;
    width: 0%;
    pointer-events: none;
    transition: none;
}

.timeline-progress::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: transform 0.15s var(--ease-bounce);
}

.timeline-wrapper:hover .timeline-progress::after {
    transform: translateY(-50%) scale(1);
}

.timeline-track {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Scrub Preview */
.scrub-preview {
    position: absolute;
    bottom: 20px;
    left: 0;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 50;
}

.scrub-preview-frame {
    background: #000;
    border: 1px solid var(--primary);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9);
}

.scrub-preview-frame canvas {
    display: block;
    background: var(--surface);
}

.scrub-preview-time {
    background: var(--surface-2);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-top: 6px;
    border: 1px solid var(--border-hover);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

/* Chapter Track */
.chapter-track {
    position: relative;
    width: 100%;
    height: 28px;
    pointer-events: none;
}

.chapter-bracket {
    position: absolute;
    top: 0;
    height: 6px;
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 2px solid rgba(102, 252, 241, 0.2);
    border-left: 1px solid rgba(102, 252, 241, 0.15);
    border-right: 1px solid rgba(102, 252, 241, 0.15);
    border-radius: 0 0 3px 3px;
    box-sizing: border-box;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.chapter-bracket:hover {
    background: rgba(102, 252, 241, 0.04);
    border-bottom-color: var(--primary);
    border-left-color: rgba(102, 252, 241, 0.4);
    border-right-color: rgba(102, 252, 241, 0.4);
}

.chapter-label {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: color 0.2s;
    user-select: none;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chapter-bracket:hover .chapter-label { color: var(--text); }

.chapter-icon {
    height: 16px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* Controls Bar */
.controls-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
}

.ctrl-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ctrl-btn:hover { color: var(--primary); }

.ctrl-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.time-display {
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.spacer { flex-grow: 1; }

.volume-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 80px;
    cursor: pointer;
    accent-color: var(--primary);
    height: 3px;
}

/* ========== TIMELINE MARKERS ========== */
.marker {
    position: absolute;
    top: 50%;
    width: 3px;
    height: 16px;
    background: var(--accent);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 6px var(--accent-glow);
    transition: transform 0.15s var(--ease-bounce);
    z-index: 10;
    pointer-events: auto;
}
.marker:hover {
    transform: translate(-50%, -50%) scaleY(1.6);
    background: #fff;
    z-index: 60;
}

.marker-block {
    position: absolute;
    top: 50%;
    height: 10px;
    background: rgba(102, 252, 241, 0.3);
    border: 1px solid rgba(102, 252, 241, 0.6);
    border-radius: 3px;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 5;
    pointer-events: auto;
    min-width: 6px;
    transition: background 0.2s;
}
.marker-block:hover {
    background: rgba(102, 252, 241, 0.7);
    z-index: 60;
}

.marker-tooltip {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-2);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-hover);
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.marker:hover .marker-tooltip,
.marker-block:hover .marker-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.tt-game {
    color: var(--primary);
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tt-title {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 3px;
}

/* ========== CLIP EDITOR PANEL ========== */
.editor-panel {
    background: var(--surface);
    border-top: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
}

.editor-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    cursor: pointer;
    user-select: none;
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.2s, background 0.2s;
    border-bottom: 1px solid var(--border);
}

.editor-toggle:hover {
    color: var(--primary);
    background: rgba(102, 252, 241, 0.02);
}

.editor-toggle .chevron {
    transition: transform 0.3s var(--ease);
    font-size: 0.7rem;
}

.editor-toggle.open .chevron {
    transform: rotate(180deg);
}

.editor-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.editor-body.open {
    max-height: 400px;
}

.editor-inner {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Subscrubber */
.subscrubber-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sub-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sub-track {
    position: relative;
    width: 100%;
    height: 28px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    cursor: crosshair;
    overflow: hidden;
    border: 1px solid var(--border);
}

/* Editor Toolbar */
.editor-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.editor-inputs {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.dark-input {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    outline: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.dark-input:focus {
    border-color: var(--primary-dim);
    background: var(--bg);
    box-shadow: 0 0 0 2px rgba(102, 252, 241, 0.08);
}

.dark-input::placeholder { color: var(--text-muted); }

.marker-group {
    display: flex;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
}

.mark-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 9px 16px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mark-btn:first-child { border-right: 1px solid var(--border); }

.mark-btn:hover { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.mark-btn.in:hover { color: var(--primary); }
.mark-btn.out:hover { color: var(--accent); }

.audio-toggles {
    display: flex;
    gap: 2px;
    background: var(--surface-2);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.audio-toggles label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.audio-toggles input[type="checkbox"] { display: none; }

.audio-toggles label::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--surface-3);
    transition: all 0.2s;
}

.audio-toggles input:checked + label {
    color: var(--text);
    background: rgba(102, 252, 241, 0.05);
}

.audio-toggles input:checked + label::before {
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary);
}

.render-btn {
    background: var(--primary);
    color: var(--bg);
    border: none;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.15s var(--ease);
    text-transform: uppercase;
    flex-shrink: 0;
}

.render-btn:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-1px);
}

.render-btn:active { transform: translateY(0) scale(0.97); }

.vod-status-msg {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--primary);
    min-height: 14px;
    text-align: right;
}

/* ========== SIDEBAR ========== */
.sidebar-col {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-left: 1px solid var(--border);
    overflow: hidden;
}

/* Tabs */
.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-tab {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    user-select: none;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.sidebar-tab:hover { color: var(--text-dim); background: rgba(255, 255, 255, 0.02); }

.sidebar-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(102, 252, 241, 0.02);
}

.sidebar-tab + .sidebar-tab { border-left: 1px solid var(--border); }

/* Tab Panels */
.tab-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}
.tab-panel.active { display: flex; }

/* VOD List */
.vod-list-panel {
    overflow-y: auto;
    padding: 12px;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-3) transparent;
}

.vod-card {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    transition: all 0.2s var(--ease);
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.015);
}

.vod-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
    border-left-color: var(--primary-dim);
}

.vod-card.active {
    background: rgba(102, 252, 241, 0.04);
    border-color: rgba(102, 252, 241, 0.15);
    border-left-color: var(--primary);
    box-shadow: inset 6px 0 16px rgba(102, 252, 241, 0.03);
}

.vod-title {
    color: var(--text);
    font-weight: 600;
    font-size: 0.82rem;
    word-break: break-all;
    line-height: 1.3;
}

.vod-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.vod-badges {
    margin-top: 8px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(102, 252, 241, 0.06);
    color: var(--primary-dim);
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-transcript {
    background: rgba(168, 130, 255, 0.1);
    color: #a882ff;
}

/* ---- Game playtime bar ---- */
.game-bar {
    display: flex;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
    gap: 1px;
}
.game-segment {
    height: 100%;
    border-radius: 1px;
    transition: filter 0.15s;
    cursor: default;
}
.game-segment:hover { filter: brightness(1.4); }

.game-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.game-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    background: rgba(255,255,255,0.04);
    color: var(--text-dim);
    border: 1px solid rgba(255,255,255,0.07);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}
.game-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========== TRANSCRIPT TAB ========== */
.transcript-search-bar {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap .dark-input {
    padding-left: 34px;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.search-results {
    display: none;
    overflow-y: auto;
    flex: 1;
    padding: 8px 12px;
}

.search-results.has-results { display: block; }

.search-result-item {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border);
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item:hover { background: rgba(102, 252, 241, 0.04); }

.search-result-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 700;
}

.search-result-text {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 3px;
    line-height: 1.4;
}

.search-result-text mark {
    background: rgba(102, 252, 241, 0.15);
    color: var(--primary);
    border-radius: 2px;
    padding: 0 2px;
}

/* Transcript Body */
.transcript-view {
    overflow-y: auto;
    flex: 1;
    padding: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-3) transparent;
}

.transcript-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
    gap: 8px;
    padding: 40px 20px;
}

.transcript-line {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.5;
}

.transcript-line:hover { background: rgba(255, 255, 255, 0.03); }

.transcript-line.active {
    background: rgba(102, 252, 241, 0.05);
}

.transcript-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--primary-dim);
    font-weight: 700;
    flex-shrink: 0;
    padding-top: 2px;
    min-width: 55px;
}

.transcript-text {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.transcript-line.active .transcript-text { color: var(--text); }

/* ========== TRANSCRIPT MODAL ========== */
.transcript-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
}

.transcript-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.transcript-modal-content {
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-hover);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.transcript-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.transcript-modal-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
}

.transcript-modal-header h3 span { color: var(--primary); }

.transcript-modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.transcript-modal-close:hover { color: var(--accent); }

.transcript-modal-body {
    overflow-y: auto;
    padding: 20px 24px;
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.7;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-3) transparent;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dim); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .mobile-nav { display: block; }

    .vod-layout {
        grid-template-columns: 1fr;
        height: auto;
        padding-bottom: 64px;
    }

    .sidebar-col {
        border-left: none;
        border-top: 1px solid var(--border);
        max-height: 50vh;
    }

    .player-col { overflow-y: visible; }

    .editor-toolbar { flex-direction: column; align-items: stretch; }
    .editor-inputs { flex-direction: column; }
}

@media (max-width: 600px) {
    .top-bar { padding: 0 1rem; height: 48px; }
    .player-controls { padding: 10px 14px 8px; }
    .editor-inner { padding: 12px 14px 16px; }
    .controls-bar { gap: 8px; }
    .volume-slider { width: 50px; }
    .time-display { font-size: 0.7rem; }
    .marker-group { width: 100%; }
    .mark-btn { flex: 1; justify-content: center; }
}

/* --- TOAST NOTIFICATIONS --- */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.hk-toast {
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hk-toast.visible { transform: translateX(0); }
.hk-toast.leaving { opacity: 0; transform: translateX(20px); }

.hk-toast.error { border-left: 4px solid #ff3366; }
.hk-toast.success { border-left: 4px solid #66fcf1; }
.hk-toast.info { border-left: 4px solid #9494a0; }

.hk-toast a {
    color: #66fcf1;
    text-decoration: none;
    font-weight: 800;
    margin-left: 8px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.hk-toast a:hover { border-color: #66fcf1; }