/* ── Base ── */

:root {
    --font-family: "Inter", system-ui, -apple-system, sans-serif;
    --pico-font-family: var(--font-family);
    --pico-font-size: 15px;
}

body {
    font-family: var(--font-family);
    background: #f8f9fa;
}

/* ── Nav ── */

nav.container {
    padding-top: 1rem;
    padding-bottom: 0;
    margin-bottom: 0;
}

.brand {
    color: inherit;
    text-decoration: none;
    font-size: 1.25rem;
}

.muted {
    color: var(--pico-muted-color);
}

/* ── Filter bar (pill style) ── */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.5rem 0.4rem 0.75rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 2rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s;
    height: 2.5rem;
}

.filter-pill:hover,
.filter-pill:focus-within {
    border-color: var(--pico-primary);
}

.filter-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--pico-primary);
}

.filter-pill select {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    appearance: auto;
    color: inherit;
    min-width: 0;
    max-width: 180px;
}

.filter-pill select:focus {
    outline: none;
    box-shadow: none;
}


/* Tom Select inside pills */
.filter-pill .ts-wrapper {
    min-width: 120px;
    max-width: 200px;
    font-size: 0.875rem;
}

.filter-pill .ts-wrapper .ts-control {
    border: none;
    background: transparent;
    padding: 0 0.25rem;
    min-height: auto;
    box-shadow: none;
    cursor: pointer;
}

.filter-pill .ts-wrapper .ts-control input {
    font-size: 0.875rem;
}

.filter-pill .ts-wrapper .ts-dropdown {
    font-size: 0.875rem;
    border-radius: 0.5rem;
    margin-top: 0.25rem;
}

/* Date and number inputs inside filter pills */
.filter-pill .date-input {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    color: inherit;
    width: 8.5rem;
}

.filter-pill .date-input:focus {
    outline: none;
    box-shadow: none;
}

.filter-pill .date-separator {
    font-size: 0.8rem;
    color: var(--pico-muted-color);
    padding: 0 0.15rem;
}

.filter-pill .findings-input {
    border: none;
    background: transparent;
    width: 2.5rem;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    font-family: inherit;
}

.filter-pill .findings-input:focus {
    outline: none;
    box-shadow: none;
}

.filter-pill .findings-label {
    font-size: 0.8rem;
    color: var(--pico-muted-color);
}

/* ── Tabs ── */

.tab-bar {
    display: flex;
    border-bottom: 1px solid var(--pico-muted-border-color);
    margin-bottom: 1rem;
}

.tab {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.tab input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tab span {
    display: block;
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pico-muted-color);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.tab span:hover {
    color: var(--pico-color);
}

.tab input[type="radio"]:checked + span {
    color: var(--pico-primary);
    border-bottom-color: var(--pico-primary);
}

/* ── HTMX loading ── */

.htmx-indicator {
    display: none;
    text-align: center;
    padding: 1rem;
    color: var(--pico-muted-color);
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: block;
}

.htmx-request #results {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* ── Results count ── */

.result-count {
    font-size: 0.8rem;
    color: var(--pico-muted-color);
    margin-bottom: 0.5rem;
}

/* ── Table ── */

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--pico-muted-border-color);
}

.video-table {
    margin-bottom: 0;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.video-table thead th {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pico-muted-color);
    border-bottom: 2px solid var(--pico-muted-border-color);
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.video-table tbody td {
    padding: 0.5rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

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

/* Thumbnail */
.thumbnail-cell {
    padding: 0.5rem 0 0.5rem 1rem;
    width: 120px;
    min-width: 80px;
}

.thumbnail-cell img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Video info (title + channel stacked) */
.video-info {
    padding-left: 0;
}

.video-title {
    display: block;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-title:hover {
    color: var(--pico-primary);
}

.video-channel {
    display: block;
    font-size: 0.75rem;
    color: var(--pico-muted-color);
}

/* Numeric columns */
.views-cell {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.date-cell {
    white-space: nowrap;
}

/* Sparkline column */
.sparkline-header {
    text-align: right;
}

.sparkline-cell {
    padding: 0.25rem 0.75rem;
    width: 140px;
    min-width: 100px;
}

.sparkline-cell canvas {
    display: block;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--pico-muted-color);
}

/* ── Search bar ── */

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 2rem;
    background: #fff;
    margin-bottom: 0.75rem;
    transition: border-color 0.15s;
}

.search-bar:focus-within {
    border-color: var(--pico-primary);
}

.search-bar input[type="search"] {
    border: none;
    background: transparent;
    padding: 0.25rem 0;
    margin: 0;
    font-size: 1rem;
    font-family: inherit;
    flex: 1;
    outline: none;
}

.search-bar input[type="search"]:focus {
    box-shadow: none;
}

/* ── Track button ── */

.track-btn {
    flex-shrink: 0;
    padding: 0.35rem 1rem;
    border: 1px solid var(--pico-primary);
    border-radius: 2rem;
    background: var(--pico-primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
    margin: 0;
    line-height: 1.4;
}

.track-btn:hover {
    opacity: 0.85;
}

.track-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Tracked section ── */

.tracked-section {
    margin-bottom: 1.5rem;
}

.tracked-section h4 {
    margin-bottom: 0.75rem;
}

/* Related query pills */
.related-queries-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.related-query-pill {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 2rem;
    background: #fff;
    font-size: 0.8rem;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.related-query-pill:hover {
    border-color: var(--pico-primary);
    color: var(--pico-primary);
}

/* Momentum direction arrows */
.momentum-direction {
    font-size: 0.875rem;
}

.arrow-up {
    color: #22c55e;
}

.arrow-down {
    color: #ef4444;
}

.arrow-flat {
    color: #6c757d;
}

/* Creator thumbnails */
.creator-thumb {
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* HTMX loading for tracked results */
.htmx-request #tracked-results {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* ── Explore chart ── */

.explore-chart-wrap {
    background: #fff;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    height: 340px;
}

/* ── Compare button ── */

.compare-btn {
    flex-shrink: 0;
    padding: 0.35rem 1rem;
    border: 1px solid var(--pico-primary);
    border-radius: 2rem;
    background: transparent;
    color: var(--pico-primary);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    margin: 0;
    line-height: 1.4;
}

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

.compare-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Compare chart ── */

.compare-chart-wrap {
    background: #fff;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    height: 400px;
}

.compare-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.compare-legend-pill {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 2rem;
    background: #fff;
    font-size: 0.8rem;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.compare-legend-pill:hover {
    border-color: var(--pico-primary);
    color: var(--pico-primary);
}

.compare-legend-original {
    border-width: 2px;
    border-color: var(--pico-primary);
    font-weight: 600;
}

/* ── Tab separator ── */

.tab-separator {
    flex: 1;
}

/* ── HTMX loading for explore ── */

.htmx-request #explore-results {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* ── Brief success banner ── */

.brief-success {
    padding: 0.75rem 1rem;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* ── Brief ── */

.brief {
    max-width: 900px;
}

.brief-header {
    margin-bottom: 1.5rem;
}

.brief-header h3 {
    margin-bottom: 0.25rem;
}

.brief-section {
    background: #fff;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.change-up {
    color: #22c55e;
}

.change-down {
    color: #ef4444;
}

/* Theme cards */
.brief-theme-card {
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.brief-theme-card:last-child {
    margin-bottom: 0;
}

.brief-theme-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.brief-theme-keyword {
    font-weight: 600;
    font-size: 1rem;
}

.brief-theme-narrative {
    font-size: 0.875rem;
    color: var(--pico-muted-color);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.brief-theme-card .table-wrap {
    margin-top: 0.5rem;
}

/* Format tab panels */
.format-tab-panel {
    margin-top: 1rem;
}

/* Horizontal video scroll */
.brief-video-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.brief-video-card {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
    color: inherit;
}

.brief-video-card:hover .brief-video-card-title {
    color: var(--pico-primary);
}

.brief-video-card img {
    width: 100%;
    border-radius: 6px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.brief-video-card-title {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.15s;
}

.brief-video-card-channel {
    font-size: 0.7rem;
    color: var(--pico-muted-color);
}

.brief-video-card-views {
    font-size: 0.7rem;
    color: var(--pico-muted-color);
    font-variant-numeric: tabular-nums;
}

/* Opportunities */
.brief-opportunities-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.brief-opportunity {
    margin-bottom: 0.75rem;
}

.brief-opportunity:last-child {
    margin-bottom: 0;
}

.brief-opportunity-reasoning {
    font-size: 0.875rem;
    color: var(--pico-muted-color);
    line-height: 1.6;
}

.brief-opportunity-reasoning p {
    margin: 0.25rem 0;
}

.brief-opportunity-reasoning ul {
    margin: 0.25rem 0;
    padding-left: 1.25rem;
}

.brief-opportunity-reasoning a {
    color: var(--pico-primary);
}

.brief-format-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 2rem;
    background: #e8f4fd;
    color: var(--pico-primary);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Audience Behaviour */
.brief-audience {
    border-left: 4px solid var(--pico-primary);
}

.brief-audience-body p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.brief-audience-body p:last-child {
    margin-bottom: 0;
}

.brief-audience-body ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style: disc;
}

.brief-audience-body li {
    margin-bottom: 0.35rem;
    line-height: 1.55;
    font-size: 0.9rem;
}

.brief-audience-body li:last-child {
    margin-bottom: 0;
}

/* Insight filter bar */
.insight-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.insight-filter {
    padding: 0.4rem 1rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 2rem;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--pico-muted-color);
    cursor: pointer;
    transition: all 0.15s;
    margin: 0;
}

.insight-filter:hover {
    border-color: var(--pico-primary);
    color: var(--pico-primary);
}

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

/* Insight category tag (shared by teaser + detail) */
.insight-category-tag {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 2rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.insight-tag-rising_topics { background: #dcfce7; color: #166534; }
.insight-tag-trending_formats { background: #dbeafe; color: #1e40af; }
.insight-tag-creator_signals { background: #f3e8ff; color: #6b21a8; }
.insight-tag-audience_shifts { background: #fef3c7; color: #92400e; }
.insight-tag-repeated_patterns { background: #fee2e2; color: #991b1b; }

/* Summary strip — at-a-glance category counts */
.insight-summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding: 0.6rem 0.85rem;
    margin-bottom: 0.75rem;
    background: #fff;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    font-size: 0.8rem;
}

.insight-summary-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    padding: 0.15rem 0.55rem;
    border-radius: 2rem;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.insight-summary-item strong {
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Newsroom grid */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    transition: opacity 0.2s ease;
}

/* Teaser card */
.insight-teaser {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid var(--pico-muted-border-color);
    border-left: 4px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 1rem 1.15rem;
    text-align: left;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    margin: 0;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.insight-teaser:hover,
.insight-teaser:focus-visible {
    border-color: var(--pico-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    outline: none;
}

.insight-teaser[data-category="rising_topics"]    { border-left-color: #22c55e; }
.insight-teaser[data-category="trending_formats"] { border-left-color: #3b82f6; }
.insight-teaser[data-category="creator_signals"]  { border-left-color: #a855f7; }
.insight-teaser[data-category="audience_shifts"]  { border-left-color: #f59e0b; }
.insight-teaser[data-category="repeated_patterns"]{ border-left-color: #ef4444; }

.insight-teaser .insight-signal {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight-teaser-context {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--pico-muted-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight-teaser-context p { margin: 0; }

.insight-teaser-footer {
    margin-top: auto;
    padding-top: 0.25rem;
    font-size: 0.72rem;
    color: var(--pico-muted-color);
    font-weight: 500;
}

.insight-teaser template { display: none; }

.insight-empty {
    grid-column: 1 / -1;
    padding: 2rem 0;
    text-align: center;
    color: var(--pico-muted-color);
    font-size: 0.875rem;
}

/* Dim left side when drawer is open */
body.insight-drawer-open .insight-grid,
body.insight-drawer-open .insight-summary-strip,
body.insight-drawer-open .insight-filter-bar,
body.insight-drawer-open .brief-audience {
    opacity: 0.35;
    pointer-events: none;
}

/* Scrim */
.insight-scrim {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.25);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.insight-scrim.open { opacity: 1; }

/* Drawer */
.insight-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(560px, 100vw);
    background: #fff;
    border-left: 1px solid var(--pico-muted-border-color);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.insight-drawer.open { transform: translateX(0); }

.insight-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
    flex-shrink: 0;
}

.insight-drawer-back {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.8rem;
    color: var(--pico-primary);
    cursor: pointer;
}

.insight-drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--pico-muted-color);
    cursor: pointer;
    padding: 0 0.25rem;
}

.insight-drawer-close:hover { color: inherit; }

.insight-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.25rem 1.5rem 2rem;
    -webkit-overflow-scrolling: touch;
}

.insight-detail-signal {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.75rem 0;
    line-height: 1.3;
}

/* Context — main editorial body (Axios-style scannable prose) */
.insight-detail-context {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--pico-color);
}

.insight-detail-context p {
    margin: 0 0 0.85rem 0;
}

.insight-detail-context p:last-child {
    margin-bottom: 0;
}

.insight-detail-context strong {
    font-weight: 600;
    color: #0f172a;
}

.insight-detail-context a {
    color: var(--pico-primary);
}

.insight-detail-context ul {
    margin: 0.5rem 0 0.85rem 0;
    padding-left: 1.25rem;
}

.insight-detail-context li {
    margin-bottom: 0.35rem;
}

/* Implication — labeled callout, hairline-separated from context */
.insight-detail-implication {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pico-muted-border-color);
}

.insight-detail-implication-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pico-muted-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.insight-detail-implication-body {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--pico-color);
}

.insight-detail-implication-body p {
    margin: 0 0 0.5rem 0;
}

.insight-detail-implication-body p:last-child {
    margin-bottom: 0;
}

.insight-detail-implication-body strong {
    font-weight: 600;
    color: #0f172a;
}

.insight-detail-implication-body a {
    color: var(--pico-primary);
}

.insight-detail-evidence-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pico-muted-color);
    margin: 1.5rem 0 0.5rem;
}

.insight-detail-evidence {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.insight-detail-evidence .brief-video-card { flex: none; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .insight-grid { grid-template-columns: 1fr; }
    .insight-drawer { width: 100vw; }
    .insight-detail-evidence { grid-template-columns: 1fr; }
}

/* Methodology */
.brief-methodology {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.brief-methodology h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pico-muted-color);
}

.brief-methodology ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
    font-size: 0.8rem;
    color: var(--pico-muted-color);
}

.brief-methodology li {
    margin-bottom: 0.25rem;
}

/* ── Mobile ── */

@media (max-width: 768px) {
    :root {
        --pico-font-size: 14px;
    }

    .filter-bar {
        gap: 0.4rem;
    }

    .filter-pill select {
        max-width: 140px;
    }

    .video-table thead th,
    .video-table tbody td {
        padding: 0.4rem 0.5rem;
    }

    .thumbnail-cell {
        width: 80px;
        min-width: 60px;
        padding: 0.4rem 0 0.4rem 0.5rem;
    }

    .sparkline-cell {
        width: 100px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-pill {
        width: 100%;
    }

    .filter-pill select {
        max-width: none;
        flex: 1;
    }
}
