/* ================================================================
   Church Video Pipeline - Admin Dashboard Theme
   ================================================================ */

:root {
    --sidebar-w: 260px;
    --sidebar-bg: #1e293b;
    --sidebar-border: #334155;
    --sidebar-text: #94a3b8;
    --sidebar-text-bright: #f1f5f9;
    --sidebar-hover: #334155;
    --sidebar-active: rgba(59, 130, 246, 0.15);
    --sidebar-active-text: #60a5fa;

    --bg: #f1f5f9;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --text: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-soft: rgba(59, 130, 246, 0.1);
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-soft: rgba(239, 68, 68, 0.1);
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.1);

    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Dark mode */
html.dark {
    --sidebar-bg: #0f172a;
    --sidebar-border: #1e293b;
    --sidebar-hover: #1e293b;

    --bg: #0f172a;
    --surface: #1e293b;
    --border: #334155;
    --border-light: #1e293b;

    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --primary-soft: rgba(59, 130, 246, 0.2);
    --danger-soft: rgba(239, 68, 68, 0.15);
    --success-soft: rgba(16, 185, 129, 0.15);
    --warning-soft: rgba(245, 158, 11, 0.15);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}
html.dark .guest-layout { background: var(--bg); }
html.dark .form-input, html.dark .form-select, html.dark .form-textarea {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
html.dark .log-terminal { background: #0a0e17; }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* ================================================================
   Layout: Sidebar + Content
   ================================================================ */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    z-index: 40;
    overflow-y: auto;
    transition: transform 0.2s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--sidebar-border);
    text-decoration: none;
    color: var(--sidebar-text-bright);
}

.sidebar-brand__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.sidebar-brand__text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sidebar-text-bright);
}

.sidebar-brand__sub {
    font-size: 0.7rem;
    color: var(--sidebar-text);
    margin-top: 0.1rem;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0.5rem;
}

.sidebar-section {
    margin-bottom: 0.25rem;
}

.sidebar-section__label {
    padding: 0.5rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sidebar-text);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 2px;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-bright);
}

.sidebar-link--active {
    background: var(--sidebar-active);
    color: var(--sidebar-active-text);
}

.sidebar-link svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-link--active svg {
    opacity: 1;
}

.sidebar-user {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.sidebar-user__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #475569;
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.sidebar-user__info {
    flex: 1;
    min-width: 0;
}

.sidebar-user__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sidebar-text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user__role {
    font-size: 0.7rem;
    color: var(--sidebar-text);
    text-transform: capitalize;
}

/* Content area */
.content-area {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-width: 0;
}

.content-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 30;
}

.content-header__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-header__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-body {
    padding: 1.5rem;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    color: var(--text-secondary);
}

.sidebar-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 35;
}

/* Guest layout (login page) */
.guest-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg);
}

/* ================================================================
   Components
   ================================================================ */

/* Card */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-header h2,
.card-header h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

.card-body--flush {
    padding: 0;
}

/* Stat cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.stat-card__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

.stat-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0.25rem 0 0;
}

.stat-card__detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.25;
    font-family: inherit;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn--primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

.btn--secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.btn--secondary:hover {
    background: var(--bg);
    border-color: #cbd5e1;
    color: var(--text);
}

.btn--danger {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}
.btn--danger:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}
.btn--ghost:hover {
    background: var(--bg);
    color: var(--text);
}

.btn--sm {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
}

.btn--lg {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn--block {
    width: 100%;
}

.btn svg {
    width: 1rem;
    height: 1rem;
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge--uploaded { background: var(--warning-soft); color: #92400e; }
.badge--queued { background: rgba(100, 116, 139, 0.1); color: #475569; }
.badge--processing { background: var(--primary-soft); color: #1d4ed8; }
.badge--ready, .badge--success { background: var(--success-soft); color: #047857; }
.badge--failed, .badge--error { background: var(--danger-soft); color: #b91c1c; }
.badge--neutral { background: var(--bg); color: var(--text-secondary); }
.badge--info { background: var(--primary-soft); color: var(--primary); }

/* Tables */
.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.table th {
    padding: 0.625rem 1rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(248, 250, 252, 0.8);
}

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

/* Permission matrix */
.permission-matrix__header {
    align-items: flex-start;
}

.permission-matrix__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.permission-matrix {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.permission-matrix__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 1));
}

.permission-matrix__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.permission-category {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.permission-category__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.875rem;
    border-bottom: 1px solid var(--border-light);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 1));
}

.permission-category__title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.permission-category__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.permission-matrix__table-wrap {
    overflow-x: auto;
}

.permission-matrix__table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8125rem;
}

.permission-matrix__table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.75rem 0.875rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    text-align: center;
    white-space: nowrap;
}

.permission-matrix__permission-head,
.permission-matrix__permission-cell {
    position: sticky;
    left: 0;
    z-index: 1;
    text-align: left;
    min-width: 18rem;
}

.permission-matrix__permission-head {
    z-index: 3;
    background: #f8fafc !important;
}

.permission-matrix__table tbody th,
.permission-matrix__table tbody td {
    padding: 0.8rem 0.875rem;
    border-bottom: 1px solid var(--border-light);
}

.permission-matrix__table tbody tr:last-child th,
.permission-matrix__table tbody tr:last-child td {
    border-bottom: none;
}

.permission-matrix__table tbody tr:hover td,
.permission-matrix__table tbody tr:hover th {
    background: rgba(248, 250, 252, 0.9);
}

.permission-matrix__permission-cell {
    background: var(--surface);
}

.permission-matrix__permission-name {
    display: block;
    font-weight: 600;
    color: var(--text);
}

.permission-matrix__permission-key {
    display: inline-block;
    margin-top: 0.2rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.permission-matrix__role-head {
    min-width: 6.5rem;
}

.permission-matrix__role-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.75rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 9999px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.permission-matrix__status-cell {
    text-align: center;
    background: var(--surface);
}

.permission-matrix__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.permission-matrix__status--granted {
    background: var(--success-soft);
    border-color: rgba(16, 185, 129, 0.2);
    color: #047857;
}

.permission-matrix__status--denied {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text-muted);
}

/* Filter chips */
.filter-bar {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3125rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}

.filter-chip:hover {
    border-color: #cbd5e1;
    color: var(--text);
}

.filter-chip--active {
    background: var(--primary-soft);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--primary);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
}

.form-hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 0.8125rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

input[type="text"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    background: var(--surface) !important;
    color: var(--text) !important;
    font-size: 0.8125rem;
    font-family: inherit;
    box-shadow: none !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-soft) !important;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
}

/* Detail grid (key-value) */
.detail-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, 1fr);
}

.detail-item {
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.detail-item dt,
.detail-item__label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin: 0;
}

.detail-item dd,
.detail-item__value {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
}

/* Page header */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.page-header__subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0;
}

.page-header__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text);
}

.breadcrumb__sep {
    color: var(--text-muted);
}

/* Dropzone */
.dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--surface);
}

.dropzone:hover,
.dropzone.is-dragging {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.dropzone__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.dropzone__icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.dropzone__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.dropzone__hint {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0.375rem 0 0;
}

/* Progress bar */
.progress {
    height: 0.5rem;
    background: var(--bg);
    border-radius: 9999px;
    overflow: hidden;
}

.progress__bar {
    height: 100%;
    background: var(--primary);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.progress--lg {
    height: 0.625rem;
}

/* Flash messages */
.flash-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.flash {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid;
}

.flash--success {
    background: var(--success-soft);
    border-color: rgba(16, 185, 129, 0.2);
    color: #047857;
}

.flash--error {
    background: var(--danger-soft);
    border-color: rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}

.flash--info {
    background: var(--primary-soft);
    border-color: rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

/* Video player */
.video-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border);
}

.video-container video {
    display: block;
    width: 100%;
}

/* Watch page */
.watch-page {
    display: grid;
    gap: 0.9rem;
}

.watch-page__breadcrumb {
    margin-bottom: 0;
}

.watch-hero {
    border-color: var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.watch-hero__content {
    display: grid;
    gap: 0.65rem;
    padding: 0.95rem 1.1rem;
}

.watch-hero__eyebrow {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.watch-hero__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.watch-hero__title {
    margin: 0;
    font-size: clamp(1.1rem, 1.65vw, 1.45rem);
    line-height: 1.1;
    word-break: break-word;
}

.watch-hero__subtitle {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.watch-hero__badges {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.watch-hero__job {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 0.7rem;
    font-weight: 600;
}

.watch-hero__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.watch-hero__actions .btn,
.watch-meta-actions .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.76rem;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr);
    gap: 0.8rem;
    align-items: start;
}

.watch-player {
    overflow: hidden;
}

.watch-player__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.watch-player__title {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
}

.watch-player__subtitle {
    margin: 0.3rem 0 0;
    color: var(--text-secondary);
    font-size: 0.76rem;
}

.watch-player__hint {
    display: inline-flex;
    align-items: center;
    height: 1.5rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.watch-player__body {
    padding: 0.75rem;
    background: var(--bg);
}

.watch-video-container {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: none;
}

.watch-video-container video {
    background: #000;
    aspect-ratio: 16 / 9;
    min-height: 240px;
}

.watch-video-container--compact video {
    min-height: 150px;
}

.watch-compare {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.watch-compare__header {
    margin-bottom: 0.6rem;
}

.watch-compare__title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
}

.watch-compare__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.watch-compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.watch-compare-item {
    display: grid;
    gap: 0.35rem;
}

.watch-compare-item__label {
    margin: 0;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.watch-compare__missing {
    margin: 0.25rem 0 0;
    font-size: 0.74rem;
}

.watch-meta {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.watch-meta-card {
    padding: 0.85rem;
}

.watch-meta-card__title {
    margin: 0 0 0.6rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-secondary);
}

.watch-meta-list {
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.watch-meta-list__row {
    display: grid;
    grid-template-columns: 6.75rem minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}

.watch-meta-list__row dt {
    margin: 0;
    font-size: 0.64rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.watch-meta-list__row dd {
    margin: 0;
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 500;
    word-break: break-word;
}

.watch-meta-actions {
    display: grid;
    gap: 0.5rem;
}

html.dark .watch-hero {
    border-color: var(--border);
    background: var(--surface);
}

html.dark .watch-hero__eyebrow {
    color: var(--text-secondary);
}

html.dark .watch-hero__job {
    border-color: var(--border);
    background: var(--bg);
}

html.dark .watch-player__header {
    background: var(--surface);
}

html.dark .watch-player__body {
    background: var(--bg);
}

html.dark .watch-video-container {
    border-color: var(--border);
    box-shadow: none;
}

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

@media (max-width: 640px) {
    .watch-hero__content {
        padding: 0.85rem;
    }

    .watch-hero__actions .btn {
        width: 100%;
    }

    .watch-player__header {
        padding: 0.75rem 0.9rem;
    }

    .watch-player__body {
        padding: 0.6rem;
    }

    .watch-player__hint {
        display: none;
    }

    .watch-video-container video {
        min-height: 175px;
    }

    .watch-compare-grid {
        grid-template-columns: 1fr;
    }

    .watch-meta-list__row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

/* Log terminal */
.log-terminal {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    color: #e2e8f0;
}

.log-terminal__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #1e293b;
}

.terminal-dots {
    display: inline-flex;
    gap: 0.3rem;
}

.terminal-dots span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #f87171; }
.terminal-dots span:nth-child(2) { background: #fbbf24; }
.terminal-dots span:nth-child(3) { background: #34d399; }

.log-terminal__title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}

.log-terminal pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.75;
    color: #cbd5e1;
    max-height: 70vh;
    overflow-y: auto;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
}

.modal {
    width: 100%;
    max-width: 28rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

.modal--lg {
    max-width: 64rem;
}

.modal__header {
    margin-bottom: 1rem;
}

.modal__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background: var(--bg);
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.empty-state__icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.empty-state__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.375rem;
}

.empty-state__text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

/* Role tiles for admin forms */
.role-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.role-tile {
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.role-tile:hover {
    border-color: #cbd5e1;
}

input[type="radio"]:checked + .role-tile {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.role-tile__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.role-tile__desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

/* Permission tile */
.perm-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg);
}

.perm-tile label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Two-column layout */
.layout-2col {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 360px;
    align-items: start;
}

/* Auth layout */
.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.auth-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto 1.5rem;
}

.auth-card__title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.auth-card__subtitle {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
}

/* Color picker for role form */
.color-picker {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-option {
    display: block;
    cursor: pointer;
}

.color-option__swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.15s, transform 0.15s;
}

.color-option__swatch:hover {
    transform: scale(1.1);
}

input[type="radio"]:checked + .color-option__swatch {
    border-color: var(--text);
    transform: scale(1.1);
}

.color-option__inner {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
}

/* Beamer preview modal */
.beamer-preview {
    max-width: 76rem;
    padding: 0;
    overflow: hidden;
}

.beamer-preview__topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94));
}

.beamer-preview__title-block {
    min-width: 0;
    flex: 1;
}

.beamer-preview__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2563eb;
}

.beamer-preview__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.beamer-preview__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.beamer-preview__body {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.95fr);
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 1));
}

.beamer-preview__stage {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.beamer-preview__stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.beamer-preview__stage-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.beamer-preview__screen {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 1.5rem;
    padding: 1rem;
    background:
        radial-gradient(circle at top, rgba(251, 191, 36, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 32%),
        linear-gradient(135deg, #020617 0%, #111827 48%, #0f172a 100%);
    border: 1px solid rgba(30, 41, 59, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 28px 48px rgba(15, 23, 42, 0.24);
}

.beamer-preview__screen-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    height: 100%;
    padding: 2.5rem 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(15, 23, 42, 0.1));
    text-align: center;
}

.beamer-preview__screen-chip {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.5);
    color: rgba(226, 232, 240, 0.88);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.beamer-preview__screen-main,
.beamer-preview__screen-subtitle,
.beamer-preview__text-card-body {
    white-space: pre-line;
    word-break: break-word;
}

.beamer-preview__screen-main {
    max-width: 34rem;
    font-size: clamp(1.5rem, 2.1vw, 2.8rem);
    line-height: 1.22;
    font-weight: 700;
    color: #f8fafc;
    text-shadow: 0 10px 28px rgba(15, 23, 42, 0.45);
}

.beamer-preview__screen-subtitle {
    max-width: 32rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    font-size: clamp(0.95rem, 1.25vw, 1.35rem);
    line-height: 1.45;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.84);
}

.beamer-preview__screen-main.is-empty,
.beamer-preview__text-card-body.is-empty {
    color: var(--text-secondary);
    font-style: italic;
    text-shadow: none;
}

.beamer-preview__panel {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.beamer-preview__text-card {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface), rgba(248, 250, 252, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.beamer-preview__text-card-label {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.beamer-preview__text-card-body {
    min-height: 5rem;
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--text);
}

.beamer-preview__hint {
    margin: 0;
    padding: 0 0.25rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.beamer-preview__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
}

@media (max-width: 960px) {
    .beamer-preview__topbar,
    .beamer-preview__body {
        padding: 1rem;
    }

    .beamer-preview__body {
        grid-template-columns: 1fr;
    }

    .beamer-preview__screen-inner {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .beamer-preview__topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .beamer-preview__stage-head,
    .beamer-preview__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .beamer-preview__screen {
        border-radius: 1rem;
        padding: 0.75rem;
    }

    .beamer-preview__screen-inner {
        padding: 1.5rem 1rem;
    }
}

/* ================================================================
   Utility classes
   ================================================================ */
.text-mono { font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace; }
.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-secondary); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1024px) {
    .layout-2col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: flex;
    }

    .sidebar-overlay.is-active {
        display: block;
    }

    .content-area {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .content-body {
        padding: 1rem;
    }

    .page-header__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .permission-matrix__header {
        flex-direction: column;
    }

    .permission-category__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .permission-matrix__permission-head,
    .permission-matrix__permission-cell {
        min-width: 14rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .permission-matrix__legend {
        flex-direction: column;
        align-items: flex-start;
    }

    .permission-matrix__role-head {
        min-width: 5.25rem;
    }
}

/* ----------------------------------------------------------------
   Video Editor - Multi-Clip Composer
   ---------------------------------------------------------------- */

.editor-shell {
    display: grid;
    gap: 1.5rem;
}

.editor-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 32%),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 45%, #f7fafc 100%);
}

.editor-hero__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.5rem 0;
}

.editor-hero__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0369a1;
}

.editor-hero__title {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2.25rem);
    line-height: 1.1;
}

.editor-hero__subtitle {
    margin: 0.4rem 0 0;
    color: var(--text-secondary);
}

.editor-hero__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.editor-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.75fr);
    gap: 1rem;
    padding: 1.5rem;
}

.editor-stage__player {
    display: grid;
    gap: 1rem;
}

.video-container--editor {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.editor-stage__meta {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.editor-stat {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: var(--shadow-sm);
}

.editor-stat__label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.editor-stat__value {
    display: block;
    font-size: 1.125rem;
    line-height: 1.2;
}

.editor-shortcuts {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-lg);
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: var(--shadow);
}

.editor-shortcuts__title {
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
}

.editor-shortcuts__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    font-size: 0.85rem;
}

.editor-shortcuts__item kbd {
    min-width: 2.1rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-family: 'Courier New', monospace;
    text-align: center;
}

.editor-transport {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.editor-transport__cluster,
.editor-transport__time {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.editor-transport__sep {
    color: var(--text-muted);
}

.editor-readout {
    display: inline-flex;
    align-items: center;
    min-width: 4rem;
    justify-content: center;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.95fr);
    gap: 1.5rem;
}

.editor-composer__header,
.editor-clips__header {
    align-items: flex-start;
}

.editor-composer__sub {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.editor-composer__body {
    display: grid;
    gap: 1.25rem;
}

.editor-notice {
    padding: 0.8rem 0.95rem;
    border-radius: var(--radius);
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
    font-weight: 500;
}

.editor-notice[data-tone="error"] {
    border-color: rgba(239, 68, 68, 0.24);
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

.editor-timeline {
    position: relative;
    height: 8.5rem;
    border-radius: calc(var(--radius-xl) + 0.25rem);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.82)),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.05) 0,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px,
            transparent 8%
        );
}

.editor-timeline__filmstrip {
    position: absolute;
    inset: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84px, 1fr);
    gap: 2px;
    padding: 0.45rem;
    z-index: 0;
}

.editor-timeline__filmstrip-status {
    position: absolute;
    right: 0.75rem;
    bottom: 0.65rem;
    z-index: 5;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.editor-timeline__thumb {
    min-width: 0;
    border: 0;
    border-radius: calc(var(--radius) + 0.1rem);
    background-color: rgba(15, 23, 42, 0.22);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.62;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.editor-timeline__thumb:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.editor-timeline__kept,
.editor-timeline__removed {
    position: absolute;
    inset: 0;
}

.editor-timeline__selection {
    position: absolute;
    top: 0.7rem;
    bottom: 0.7rem;
    border-radius: calc(var(--radius-lg) + 0.2rem);
    background: rgba(250, 204, 21, 0.22);
    border: 2px solid rgba(250, 204, 21, 0.84);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2) inset;
    pointer-events: none;
    z-index: 3;
}

.editor-timeline__playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #f97316 0%, #ef4444 100%);
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.42);
    pointer-events: none;
    z-index: 4;
}

.editor-timeline__block {
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    border: 0;
    border-radius: var(--radius-lg);
    padding: 0;
    cursor: pointer;
}

.editor-timeline__block--kept {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(14, 116, 144, 0.9));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        0 8px 18px rgba(14, 116, 144, 0.18);
    z-index: 2;
}

.editor-timeline__block--removed {
    top: 1.5rem;
    bottom: 1.5rem;
    background: repeating-linear-gradient(
        135deg,
        rgba(239, 68, 68, 0.34) 0,
        rgba(239, 68, 68, 0.34) 10px,
        rgba(239, 68, 68, 0.14) 10px,
        rgba(239, 68, 68, 0.14) 20px
    );
    z-index: 1;
}

.editor-timeline__labels {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

.editor-selection {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.editor-selection__inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.editor-slider {
    display: grid;
    gap: 0.65rem;
}

.editor-slider__label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.editor-selection__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.editor-actionbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.editor-actionbar__form {
    display: flex;
}

.editor-clip-list {
    display: grid;
    gap: 0.85rem;
}

.editor-clip {
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--shadow-sm);
}

.editor-clip__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.editor-clip__title {
    font-size: 0.98rem;
    font-weight: 700;
}

.editor-clip__times {
    margin-top: 0.2rem;
    color: var(--text-secondary);
}

.editor-clip__length {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.editor-clip__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.editor-empty {
    padding: 1.1rem;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
    color: var(--text-secondary);
    text-align: center;
    background: var(--bg);
}

.trim-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, rgba(14, 116, 144, 0.15), rgba(59, 130, 246, 0.3));
    border-radius: 999px;
    outline: none;
}

.trim-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0ea5e9;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3);
}

.trim-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0ea5e9;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3);
}

.time-display {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text);
    min-width: 4.2rem;
    text-align: center;
    background: var(--bg);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

@media (max-width: 1100px) {
    .editor-stage,
    .editor-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .editor-hero__head,
    .editor-selection__inputs,
    .editor-actionbar {
        grid-template-columns: 1fr;
    }

    .editor-hero__head,
    .editor-stage__meta,
    .editor-transport,
    .editor-clip__meta {
        display: grid;
    }

    .editor-transport__time,
    .editor-transport__cluster {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* ----------------------------------------------------------------
   Studio Editor - Timeline First
   ---------------------------------------------------------------- */

.studio-editor {
    display: grid;
    gap: 1.5rem;
}

.studio-editor__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.studio-editor__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0f766e;
}

.studio-editor__title {
    margin: 0;
    font-size: clamp(1.7rem, 2vw, 2.35rem);
    line-height: 1.05;
}

.studio-editor__subtitle {
    margin: 0.45rem 0 0;
    color: var(--text-secondary);
}

.studio-editor__header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.studio-editor__workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.78fr);
    gap: 1.25rem;
}

.studio-editor__player {
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 30%),
        linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.studio-editor__player-shell {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.studio-editor__video-wrap {
    overflow: hidden;
    border-radius: calc(var(--radius-xl) + 0.15rem);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #020617;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
}

.studio-editor__video-wrap video {
    display: block;
    width: 100%;
}

.studio-editor__transport {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.88);
}

.studio-editor__transport-actions,
.studio-editor__transport-time {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.studio-editor__time-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: #f8fafc;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.studio-editor__transport-sep {
    color: var(--text-muted);
}

.studio-editor__inspector {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.studio-editor__panel {
    padding: 1rem;
}

.studio-editor__panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.studio-editor__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.studio-editor__stat {
    padding: 0.9rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.studio-editor__stat-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.studio-editor__stat-value {
    display: block;
    font-size: 1.1rem;
}

.studio-editor__clip-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.studio-editor__selected-meta {
    display: grid;
    gap: 0.75rem;
}

.studio-editor__selected-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.studio-editor__selected-row span {
    color: var(--text-secondary);
}

.studio-editor__selected-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.studio-editor__tips {
    background: linear-gradient(180deg, #0f172a, #111827);
    color: #e2e8f0;
}

.studio-editor__tips .studio-editor__panel-head {
    color: #93c5fd;
}

.studio-editor__tip {
    padding: 0.75rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 0.9rem;
}

.studio-editor__tip:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.studio-editor__tip kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.8rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    font-family: 'Courier New', monospace;
}

.studio-editor__timeline-card {
    overflow: hidden;
}

.studio-editor__timeline-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1rem 0;
    flex-wrap: wrap;
}

.studio-editor__timeline-title {
    margin: 0;
    font-size: 1rem;
}

.studio-editor__timeline-subtitle {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
}

.studio-editor__timeline-toolbar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.studio-editor__zoom {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.studio-editor__zoom label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.studio-editor__zoom input[type="range"] {
    width: 110px;
}

.studio-editor__timeline-body {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.studio-editor__notice {
    padding: 0.85rem 0.95rem;
    border-radius: var(--radius);
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
    font-weight: 500;
}

.studio-editor__notice[data-tone="error"] {
    border-color: rgba(239, 68, 68, 0.22);
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

.studio-editor__mini-overview {
    position: relative;
    height: 1.25rem;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(90deg, #dbeafe, #cffafe);
    border: 1px solid rgba(148, 163, 184, 0.24);
    cursor: pointer;
}

.studio-editor__mini-removed,
.studio-editor__mini-kept {
    position: absolute;
    inset: 0;
}

.studio-editor__mini-segment {
    position: absolute;
    top: 0.12rem;
    bottom: 0.12rem;
    border: 0;
    border-radius: 999px;
    padding: 0;
}

.studio-editor__mini-segment--removed {
    background: repeating-linear-gradient(
        135deg,
        rgba(239, 68, 68, 0.28) 0,
        rgba(239, 68, 68, 0.28) 8px,
        rgba(239, 68, 68, 0.12) 8px,
        rgba(239, 68, 68, 0.12) 16px
    );
}

.studio-editor__mini-segment--kept {
    background: linear-gradient(135deg, #14b8a6, #0ea5e9);
    cursor: pointer;
}

.studio-editor__mini-segment--kept.is-selected {
    background: linear-gradient(135deg, #f97316, #fb7185);
}

.studio-editor__mini-window {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    border: 2px solid rgba(15, 23, 42, 0.42);
    pointer-events: none;
}

.studio-editor__mini-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ef4444;
    pointer-events: none;
}

.studio-editor__timeline-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.25rem;
}

.studio-editor__timeline-width {
    min-width: 100%;
}

.studio-editor__ruler {
    position: relative;
    height: 2rem;
    margin-bottom: 0.45rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.studio-editor__ruler-tick {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(148, 163, 184, 0.35);
}

.studio-editor__ruler-label {
    position: absolute;
    top: 0.32rem;
    left: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

.studio-editor__track {
    position: relative;
    height: 14rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.88)),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.05) 0,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px,
            transparent 80px
        );
    border: 1px solid rgba(30, 41, 59, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.studio-editor__filmstrip,
.studio-editor__removed-overlay,
.studio-editor__clips-lane {
    position: absolute;
    inset: 0;
}

.studio-editor__filmstrip-status {
    position: absolute;
    right: 0.85rem;
    top: 0.85rem;
    z-index: 7;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: rgba(226, 232, 240, 0.96);
    font-size: 0.72rem;
    font-weight: 700;
    pointer-events: none;
}

.studio-editor__thumb {
    position: absolute;
    top: 0;
    bottom: 0;
    border: 0;
    padding: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.5;
    cursor: pointer;
}

.studio-editor__removed-block {
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    border-radius: 1rem;
    background: repeating-linear-gradient(
        135deg,
        rgba(239, 68, 68, 0.22) 0,
        rgba(239, 68, 68, 0.22) 14px,
        rgba(239, 68, 68, 0.1) 14px,
        rgba(239, 68, 68, 0.1) 28px
    );
}

.studio-editor__clip {
    position: absolute;
    top: 2.35rem;
    height: 9rem;
    border: 0;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(20, 184, 166, 0.96), rgba(14, 165, 233, 0.95));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 18px 30px rgba(14, 165, 233, 0.18);
    color: white;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}

.studio-editor__clip.is-selected {
    background: linear-gradient(145deg, rgba(249, 115, 22, 0.96), rgba(244, 63, 94, 0.95));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        0 18px 34px rgba(244, 63, 94, 0.22);
}

.studio-editor__clip-name {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-editor__clip-range {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    opacity: 0.92;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-editor__clip-handle {
    position: absolute;
    top: 0.55rem;
    bottom: 0.55rem;
    width: 0.8rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
    cursor: ew-resize;
}

.studio-editor__clip-handle--start {
    left: 0.35rem;
}

.studio-editor__clip-handle--end {
    right: 0.35rem;
}

.studio-editor__selection {
    position: absolute;
    top: 1.6rem;
    bottom: 0.9rem;
    border-radius: 1rem;
    background: rgba(250, 204, 21, 0.18);
    border: 2px solid rgba(250, 204, 21, 0.95);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.16) inset;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    cursor: grab;
}

.studio-editor__selection-pill {
    margin: 0.45rem auto 0;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.74);
    color: #f8fafc;
    font-size: 0.74rem;
    font-weight: 700;
    pointer-events: none;
}

.studio-editor__selection-handle {
    position: absolute;
    top: 0.45rem;
    bottom: 0.45rem;
    width: 0.9rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #facc15;
    cursor: ew-resize;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.18);
}

.studio-editor__selection-handle--start {
    left: -0.45rem;
}

.studio-editor__selection-handle--end {
    right: -0.45rem;
}

.studio-editor__playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #f97316, #ef4444);
    z-index: 6;
    pointer-events: none;
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.38);
}

.studio-editor__playhead-knob {
    position: absolute;
    top: 0.4rem;
    left: 50%;
    width: 1rem;
    height: 1rem;
    transform: translateX(-50%);
    border: 0;
    border-radius: 999px;
    background: #f97316;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
    cursor: ew-resize;
    pointer-events: auto;
}

.studio-editor__selection-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.studio-editor__field {
    display: grid;
    gap: 0.65rem;
}

.studio-editor__field > span:first-child {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.studio-editor__footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.studio-editor__footer-form {
    display: flex;
}

@media (max-width: 1180px) {
    .studio-editor__workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .studio-editor__timeline-toolbar,
    .studio-editor__transport,
    .studio-editor__footer,
    .studio-editor__selection-panel {
        grid-template-columns: 1fr;
    }

    .studio-editor__transport {
        display: grid;
    }

    .studio-editor__transport-time,
    .studio-editor__transport-actions {
        justify-content: flex-start;
    }

    .studio-editor__stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .studio-editor__header,
    .studio-editor__timeline-head {
        display: grid;
    }

    .studio-editor__stats,
    .studio-editor__selection-panel,
    .studio-editor__footer {
        grid-template-columns: 1fr;
    }

    .studio-editor__clip {
        padding-right: 1.8rem;
    }
}

/* ================================================================
   Video Choice Page
   ================================================================ */
.video-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-choice-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.video-choice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.video-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-lg);
    background: var(--primary-soft);
    color: var(--primary);
}

.video-choice-icon--beta {
    background: rgba(168, 85, 247, 0.1);
    color: #8b5cf6;
}

.dark .video-choice-icon--beta {
    background: rgba(168, 85, 247, 0.15);
}
