/* ==========================================================================
   YOUTUBE CAPTION & SPOKEN CONTENT INTELLIGENCE CONSOLE (CSS)
   GuinRank V7 - Professional Dark / Light Adaptive Theme
   Strict Standard: 100% Dynamic Theme Variables (var(--primary-color))
   ========================================================================== */

:root {
    --primary-light: color-mix(in srgb, var(--primary-color) 12%, transparent);
    --primary-border-light: color-mix(in srgb, var(--primary-color) 25%, transparent);
    --primary-glow: color-mix(in srgb, var(--primary-color) 30%, transparent);
}

/* Base Container */
.caption-intelligence-console {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    color: var(--text-main);
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.caption-intelligence-console.is-wide-mode {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: clamp(12px, 2vw, 36px) !important;
    padding-right: clamp(12px, 2vw, 36px) !important;
}

.caption-intelligence-console.is-wide-mode .results-dashboard,
.caption-intelligence-console.is-wide-mode .audit-hub-container,
.caption-intelligence-console.is-wide-mode .table-card,
.caption-intelligence-console.is-wide-mode .table-responsive,
.caption-intelligence-console.is-wide-mode .charts-grid,
.caption-intelligence-console.is-wide-mode .console-features,
.caption-intelligence-console.is-wide-mode .unified-search-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   1. HERO HEADER SECTION
   ========================================================================== */
.console-hero-header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 36px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: var(--primary-light);
    border: 1px solid var(--primary-border-light);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.brand-gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 70%, #38bdf8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Feature Belt */
.features-belt {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.belt-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.belt-item i {
    width: 15px;
    height: 15px;
    color: var(--primary-color);
}

/* Section III.E.2 Compliance Pill */
.compliance-pill-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.compliance-pill-wrapper .cmp-icon i {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

.cmp-action-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.cmp-action-btn:hover {
    filter: brightness(1.2);
}

/* ==========================================================================
   2. COMMAND HUB SEARCH BAR
   ========================================================================== */
.command-hub-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 36px;
    position: relative;
    z-index: 50;
}

.search-command-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-segment {
    position: relative;
}

/* Dropdown Segments */
.dropdown-segment {
    flex: 1 1 240px;
}

.segment-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bg-body);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.segment-trigger:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-border-light);
}

.channel-avatar-tiny {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.segment-label-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.segment-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.segment-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chevron-icon i,
.segment-icon i {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

/* Glass Menus */
.glass-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 280px;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-lg), 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    z-index: 100;
    overflow: hidden;
    animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
    padding: 12px 18px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: var(--primary-light);
}

.dropdown-item.is-selected {
    background: var(--primary-light);
    font-weight: 700;
}

.item-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.check-icon i {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.dropdown-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-body);
}

.add-channel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* Video URL Segment */
.video-url-segment {
    flex: 2 1 300px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-body);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    transition: border-color 0.2s ease;
}

.video-url-segment:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-border-light);
}

.segment-input-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.segment-text-input {
    background: none;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    width: 100%;
}

.clear-input-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 50%;
}

.clear-input-btn:hover {
    color: var(--text-main);
}

/* Submit Segment */
.submit-segment {
    flex: 0 0 auto;
}

.search-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 16px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--primary-glow);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.search-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.search-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-cost-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   3. BENTO 6 FEATURES CLUSTER (.console-features)
   ========================================================================== */
.console-features {
    margin: 40px auto;
}

.bento-features-cluster {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary-border-light);
}

.bc-wide-top {
    grid-column: span 3;
}

.bc-tall {
    grid-column: span 1;
    grid-row: span 2;
}

.bc-wide-mid {
    grid-column: span 2;
}

/* Dashed Ring Wrapper */
.dashed-ring-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1.5px dashed var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--primary-light);
    flex-shrink: 0;
}

.bc-icon-wrapper i {
    width: 26px;
    height: 26px;
    color: var(--primary-color);
}

.bc-content {
    position: relative;
    z-index: 2;
}

.bc-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.bc-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.bento-decor-icon {
    position: absolute;
    bottom: -15px;
    left: -15px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

[dir="rtl"] .bento-decor-icon {
    left: auto;
    right: -15px;
}

.bento-decor-icon i {
    width: 140px;
    height: 140px;
    color: var(--primary-color);
}

/* Animations */
.anim-spin { animation: slowSpin 25s linear infinite; }
.anim-pulse { animation: slowPulse 4s ease-in-out infinite; }
.anim-float { animation: slowFloat 6s ease-in-out infinite; }
.anim-glow { animation: slowGlow 3s ease-in-out infinite alternate; }
.anim-tilt { animation: slowTilt 5s ease-in-out infinite; }
.anim-bounce { animation: slowBounce 4s ease-in-out infinite; }

@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes slowPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes slowFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes slowGlow { 0% { opacity: 0.04; } 100% { opacity: 0.12; } }
@keyframes slowTilt { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(8deg); } }
@keyframes slowBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ==========================================================================
   4. PROGRESS BANNER
   ========================================================================== */
.fetching-progress-banner {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin: 30px auto;
    box-shadow: var(--shadow-sm);
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}

.fetching-spinner i {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: var(--bg-body);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #38bdf8);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* ==========================================================================
   5. RESULTS STUDIO CONTAINER
   ========================================================================== */
.results-studio-container {
    animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Studio Header Card */
.studio-header-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.studio-channel-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sch-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.sch-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.sch-title {
    font-size: 20px;
    font-weight: 900;
    margin: 0;
    color: var(--text-main);
}

.accessibility-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 800;
}

.pill-good {
    background: color-mix(in srgb, #10b981 15%, transparent);
    color: #10b981;
    border: 1px solid color-mix(in srgb, #10b981 30%, transparent);
}

.pill-fair {
    background: color-mix(in srgb, #f59e0b 15%, transparent);
    color: #f59e0b;
    border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent);
}

.pill-poor {
    background: color-mix(in srgb, #ef4444 15%, transparent);
    color: #ef4444;
    border: 1px solid color-mix(in srgb, #ef4444 30%, transparent);
}

.sch-stats-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sch-stat-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.sch-stat-tag i {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

/* Studio Actions Toolbar */
.studio-actions-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.toolbar-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.toolbar-btn i {
    width: 16px;
    height: 16px;
}

.export-glass-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 60;
    padding: 6px;
}

[dir="rtl"] .export-glass-menu {
    right: auto;
    left: 0;
}

.eg-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.eg-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.eg-item i {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   6. KPI QUAD GRID
   ========================================================================== */
.kpi-quad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.kpi-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.kc-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
}

.kc-icon i {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.kc-body {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.kc-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.kc-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
}

.badge-coverage {
    background: var(--primary-light);
    color: var(--primary-color);
}

.badge-alignment {
    background: color-mix(in srgb, #38bdf8 15%, transparent);
    color: #38bdf8;
}

.badge-reach {
    background: color-mix(in srgb, #a855f7 15%, transparent);
    color: #a855f7;
}

.kc-footer {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   7. CHARTS GRID
   ========================================================================== */
.analytics-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.chart-card-header {
    margin-bottom: 20px;
}

.cch-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cch-icon i {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
}

.cch-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--text-main);
}

.cch-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.apex-chart-container {
    min-height: 280px;
}

/* Multilingual Opportunities Banner */
.multilingual-opp-banner {
    background: linear-gradient(135deg, var(--card-bg), color-mix(in srgb, var(--primary-color) 8%, var(--card-bg)));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 22px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.mob-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.mob-icon i {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.mob-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--text-main);
}

.mob-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.mob-badges-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mob-lang-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 12px;
    background: var(--bg-body);
    border: 1.5px solid var(--border-color);
    font-size: 13px;
    font-weight: 700;
}

.mob-lang-tag .lang-code {
    color: var(--primary-color);
    font-weight: 900;
}

.mob-lang-tag .lang-lift {
    color: #10b981;
    font-size: 12px;
}

/* ==========================================================================
   8. AUDITED VIDEOS TABLE
   ========================================================================== */
.audited-videos-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.avc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.avc-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avc-icon i {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
}

.avc-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 4px;
    color: var(--text-main);
}

.avc-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Filter Pills */
.avc-filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 8px 16px;
    border-radius: 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-pill:hover {
    color: var(--text-main);
    border-color: var(--primary-color);
}

.filter-pill.is-active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pill-alert.is-active {
    background: #ef4444;
    border-color: #ef4444;
}

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

.avc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.avc-table th {
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1.5px solid var(--border-color);
    text-align: left;
}

[dir="rtl"] .avc-table th {
    text-align: right;
}

.avc-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.avc-table tr:hover td {
    background: var(--primary-light);
}

/* Video Cell */
.t-vid-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 380px;
}

.t-vid-thumb {
    width: 78px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.t-vid-meta {
    flex: 1;
    min-width: 0;
}

.t-vid-link {
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin-bottom: 4px;
}

.t-vid-link:hover {
    color: var(--primary-color);
}

.t-vid-subline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.status-badge i {
    width: 13px;
    height: 13px;
}

.badge-manual {
    background: color-mix(in srgb, #10b981 15%, transparent);
    color: #10b981;
}

.badge-auto {
    background: color-mix(in srgb, #38bdf8 15%, transparent);
    color: #38bdf8;
}

.badge-none {
    background: color-mix(in srgb, #ef4444 15%, transparent);
    color: #ef4444;
}

.lang-count-tag {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Alignment Meter */
.alignment-meter-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.alignment-bar-bg {
    flex: 1;
    min-width: 80px;
    height: 6px;
    background: var(--bg-body);
    border-radius: 9999px;
    overflow: hidden;
}

.alignment-bar-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 9999px;
}

.alignment-value {
    font-weight: 800;
    font-size: 12px;
}

.hook-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
}

.hook-tag i {
    width: 12px;
    height: 12px;
}

.hook-pass { color: #10b981; }
.hook-warn { color: #f59e0b; }

/* Keywords Badges */
.keywords-badges-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.spk-keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
}

.spk-keyword-tag i {
    width: 11px;
    height: 11px;
    color: var(--primary-color);
}

.missing-keywords-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 11px;
}

.missing-kw-label {
    color: #ef4444;
    font-weight: 700;
}

.missing-kw-tag {
    background: color-mix(in srgb, #ef4444 12%, transparent);
    color: #ef4444;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* Action Button */
.action-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--primary-light);
    border: 1px solid var(--primary-border-light);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

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

.action-btn-primary i {
    width: 14px;
    height: 14px;
}

/* Compliance Footer Box */
.compliance-footer-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    margin-top: 24px;
}

.cfb-icon i {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.cfb-text {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   9. STRICT ZERO-SCROLL TRAP MODALS
   ========================================================================== */
html.modal-open, body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}

.custom-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 20px !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    animation: fadeInModal 0.2s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-modal-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.modal-card {
    position: relative;
    z-index: 2;
    background: var(--card-bg) !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary-border-light) !important;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

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

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header-icon i {
    width: 22px;
    height: 22px;
    color: var(--primary-color);
}

.modal-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
}

.modal-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 0;
    max-width: 440px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    color: var(--text-main);
    background: var(--bg-body);
}

.modal-close-btn i {
    width: 18px;
    height: 18px;
}

.modal-body {
    padding: 24px;
    overflow-y: auto !important;
    max-height: calc(85vh - 135px);
    flex: 1;
}

.modal-guide-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--primary-light);
    border: 1px solid var(--primary-border-light);
    margin-bottom: 20px;
}

.mgb-icon i {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.mgb-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.45;
}

.srt-editor-box {
    margin-bottom: 20px;
}

.seb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.seb-label, .teb-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
}

.seb-badge {
    font-size: 11px;
    font-weight: 700;
    background: var(--bg-body);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.seb-textarea {
    width: 100%;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    font-family: monospace;
    font-size: 13px;
    color: var(--text-main);
    resize: vertical;
    outline: none;
    line-height: 1.5;
}

.seb-textarea:focus {
    border-color: var(--primary-color);
}

.transcript-excerpt-box {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
}

.teb-content {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 6px;
    white-space: pre-line;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.outline-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.outline-btn:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}

.secondary-btn {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.secondary-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.primary-btn {
    background: var(--primary-color);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.primary-btn:hover {
    filter: brightness(1.1);
}

/* Compliance Statement Box */
.compliance-statement-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cmp-p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

.cmp-p.highlight {
    color: var(--primary-color);
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--primary-light);
}

/* ==========================================================================
   10. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .bento-features-cluster {
        grid-template-columns: repeat(2, 1fr);
    }
    .bc-wide-top, .bc-tall, .bc-wide-mid {
        grid-column: span 2;
        grid-row: auto;
    }
    .kpi-quad-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .analytics-charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .bento-features-cluster {
        grid-template-columns: 1fr;
    }
    .bc-wide-top, .bc-tall, .bc-wide-mid {
        grid-column: span 1;
    }
    .kpi-quad-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 28px;
    }
    .search-command-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

