/* =====================================================================
   streaming-theme.css
   Dedicated design system for the streaming homepage theme.

   - ADDITIVE only: does not remove or edit streaming.css / header.css.
   - Establishes the dark palette (your exact values) and routes it through
     the same --sv-* custom properties the existing components already use,
     so every component recolours automatically.
   - Palette is asserted with higher specificity than streaming.css's own
     `.streaming-home` block (and header.css's `[data-theme="streaming"]`),
     so it wins regardless of stylesheet load order.
   - Bootstrap-compatible: plain CSS, no !important, BS z-index/grid friendly.

   Palette:
     body    #07080c      card    #11141c
     border  rgba(255,255,255,.08)
     text    #ffffff      muted   #b8bcc8
     accent  #ffc400 (primary) / #ff7a00 (secondary)
   ===================================================================== */

/* ---------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------- */
html[data-theme="streaming"] {
    /* Canonical streaming tokens */
    --sv-stream-bg: #07080c;
    --sv-stream-bg-2: #0d0f15;
    --sv-stream-card: #11141c;
    --sv-stream-elevated: #161a24;
    --sv-stream-border: rgba(255, 255, 255, .08);
    --sv-stream-border-strong: rgba(255, 255, 255, .16);
    --sv-stream-text: #ffffff;
    --sv-stream-muted: #b8bcc8;
    --sv-stream-accent: #ffc400;
    --sv-stream-accent-2: #ff7a00;
    --sv-stream-accent-ink: #1a1306;
    --sv-stream-radius: 14px;
    --sv-stream-radius-sm: 10px;
    --sv-stream-gap: 16px;
    --sv-stream-shadow: 0 16px 34px rgba(0, 0, 0, .5);

    /* Map onto the variables the existing components consume */
    --sv-bg: var(--sv-stream-bg);
    --sv-bg-2: var(--sv-stream-bg-2);
    --sv-surface: var(--sv-stream-card);
    --sv-surface-2: var(--sv-stream-elevated);
    --sv-elevated: var(--sv-stream-elevated);
    --sv-border: var(--sv-stream-border);
    --sv-text: var(--sv-stream-text);
    --sv-muted: var(--sv-stream-muted);
    --sv-accent: var(--sv-stream-accent);
    --sv-accent-2: var(--sv-stream-accent-2);
    --sv-accent-ink: var(--sv-stream-accent-ink);
    --sv-radius: var(--sv-stream-radius);
    --sv-gap: var(--sv-stream-gap);
}

/* LIGHT MODE (toggle): override only the streaming tokens. The --sv-* mapping
   above references var(--sv-stream-*), so every component recolours to light
   automatically. Specificity (0,2,1) beats the dark default (0,1,1). */
html[data-theme="streaming"][data-bs-theme="light"] {
    --sv-stream-bg: #f4f5f7;
    --sv-stream-bg-2: #ffffff;
    --sv-stream-card: #ffffff;
    --sv-stream-elevated: #eceef2;
    --sv-stream-border: rgba(0, 0, 0, .10);
    --sv-stream-border-strong: rgba(0, 0, 0, .18);
    --sv-stream-text: #14171f;
    --sv-stream-muted: #5b6170;
    --sv-stream-accent: #d97706;      /* deeper amber: legible on light surfaces */
    --sv-stream-accent-2: #ff7a00;
    --sv-stream-accent-ink: #ffffff;  /* white ink reads on the deeper amber */
    --sv-stream-shadow: 0 16px 34px rgba(0, 0, 0, .12);
}

/* Re-assert on the homepage container so it beats streaming.css's
   own `.streaming-home { --sv-*: ... }` block (specificity 0,2,1 > 0,1,0). */
html[data-theme="streaming"] .streaming-home {
    --sv-bg: var(--sv-stream-bg);
    --sv-bg-2: var(--sv-stream-bg-2);
    --sv-surface: var(--sv-stream-card);
    --sv-surface-2: var(--sv-stream-elevated);
    --sv-elevated: var(--sv-stream-elevated);
    --sv-border: var(--sv-stream-border);
    --sv-text: var(--sv-stream-text);
    --sv-muted: var(--sv-stream-muted);
    --sv-accent: var(--sv-stream-accent);
    --sv-radius: var(--sv-stream-radius);
    --sv-gap: var(--sv-stream-gap);
}

/* ---------------------------------------------------------------
   2. SURFACE BASE
   --------------------------------------------------------------- */
html[data-theme="streaming"] body.body-index-page,
html[data-theme="streaming"] .sv-surface-base {
    background: var(--sv-stream-bg);
    color: var(--sv-stream-text);
}

[data-theme="streaming"] .sv-muted { color: var(--sv-stream-muted); }
[data-theme="streaming"] .sv-accent-text { color: var(--sv-stream-accent); }

/* ---------------------------------------------------------------
   3. STICKY HEADER
   --------------------------------------------------------------- */
[data-theme="streaming"] .sv-sticky-header {
    position: sticky;
    top: 0;
    z-index: 1030;                 /* Bootstrap sticky range */
    background: var(--sv-stream-bg);
    border-bottom: 1px solid var(--sv-stream-border);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

[data-theme="streaming"] .sv-sticky-header.is-scrolled {
    background: rgba(7, 8, 12, .92);
}

/* Offset for in-page scroll targets (e.g. Articles' category-chip shortcuts) so the
   sticky header doesn't cover the section title when scrolled/jumped to */
[data-theme="streaming"] .sv-rail {
    scroll-margin-top: 80px;
}

/* ---------------------------------------------------------------
   4. HERO
   The old split grid (.sv-hero-grid / black left column) has been
   removed. The hero is now a centered media-banner carousel styled
   in streaming.css (.sv-hero-slider / .sv-hero-banner).
   --------------------------------------------------------------- */

/* ---------------------------------------------------------------
   5. HORIZONTAL RAILS
   --------------------------------------------------------------- */
[data-theme="streaming"] .sv-rail-row {
    margin-top: 34px;
}

[data-theme="streaming"] .sv-rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

[data-theme="streaming"] .sv-rail-heading {
    margin: 0;
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    font-weight: 800;
    color: var(--sv-stream-text);
    padding-inline-start: 14px;
    position: relative;
}

[data-theme="streaming"] .sv-rail-heading::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 1.05em;
    border-radius: 4px;
    background: var(--sv-stream-accent);
}

[data-theme="streaming"] .sv-rail-scroller {
    display: flex;
    gap: var(--sv-stream-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 2px 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

[data-theme="streaming"] .sv-rail-scroller::-webkit-scrollbar {
    display: none;
}

[data-theme="streaming"] .sv-rail-scroller > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* Round nav buttons for the rails */
[data-theme="streaming"] .sv-rail-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--sv-stream-border);
    background: var(--sv-stream-elevated);
    color: var(--sv-stream-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, opacity .15s ease;
}

[data-theme="streaming"] .sv-rail-btn:hover {
    background: var(--sv-stream-accent);
    color: var(--sv-stream-accent-ink);
}

[data-theme="streaming"] .sv-rail-btn:disabled {
    opacity: .35;
    cursor: default;
}

/* ---------------------------------------------------------------
   6. VIDEO CARDS
   --------------------------------------------------------------- */
[data-theme="streaming"] .sv-video-card {
    width: 244px;
    background: var(--sv-stream-card);
    border: 1px solid var(--sv-stream-border);
    border-radius: var(--sv-stream-radius);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

[data-theme="streaming"] .sv-video-card:hover {
    transform: translateY(-4px);
    border-color: var(--sv-stream-border-strong);
    box-shadow: var(--sv-stream-shadow);
}

[data-theme="streaming"] .sv-video-card .sv-poster,
[data-theme="streaming"] .sv-poster-16x9 {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--sv-stream-elevated);
    text-decoration: none;
}

[data-theme="streaming"] .sv-poster-16x9 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

[data-theme="streaming"] .sv-video-card:hover .sv-poster-16x9 img,
[data-theme="streaming"] .sv-zoom-hover:hover img {
    transform: scale(1.08);
}

[data-theme="streaming"] .sv-poster-16x9::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 8, 12, 0) 50%, rgba(7, 8, 12, .82) 100%);
    opacity: .8;
    transition: opacity .2s ease;
}

[data-theme="streaming"] .sv-video-card:hover .sv-poster-16x9::after {
    opacity: 1;
}

[data-theme="streaming"] .sv-video-card .sv-card-body {
    padding: 12px 13px 14px;
    background: var(--sv-stream-card);
}

[data-theme="streaming"] .sv-video-card .sv-card-title {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--sv-stream-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="streaming"] .sv-video-card .sv-card-title a {
    color: inherit;
    text-decoration: none;
}

[data-theme="streaming"] .sv-video-card .sv-card-title a:hover {
    color: var(--sv-stream-accent);
}

@media (min-width: 1400px) { [data-theme="streaming"] .sv-video-card { width: 262px; } }
@media (max-width: 991.98px) { [data-theme="streaming"] .sv-video-card { width: 220px; } }
@media (max-width: 575.98px) { [data-theme="streaming"] .sv-video-card { width: 66vw; max-width: 280px; } }

/* ---------------------------------------------------------------
   7. CHANNEL TILES
   --------------------------------------------------------------- */
[data-theme="streaming"] .sv-channel-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 6px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

[data-theme="streaming"] .sv-channel-strip::-webkit-scrollbar { display: none; }

[data-theme="streaming"] .sv-channel-tile {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--sv-stream-elevated);
    border: 1px solid var(--sv-stream-border);
    color: var(--sv-stream-text);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

[data-theme="streaming"] .sv-channel-tile:hover {
    background: var(--sv-stream-card);
    border-color: var(--sv-stream-accent);
    transform: translateY(-2px);
}

[data-theme="streaming"] .sv-channel-tile .sv-channel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sv-ch, var(--sv-stream-accent));
}

/* Poster-style channel tile (logo/thumb) */
[data-theme="streaming"] .sv-channel-poster {
    flex: 0 0 auto;
    width: 150px;
    aspect-ratio: 16 / 10;
    border-radius: var(--sv-stream-radius-sm);
    overflow: hidden;
    background: var(--sv-stream-card);
    border: 1px solid var(--sv-stream-border);
    display: grid;
    place-items: center;
    transition: border-color .15s ease, transform .15s ease;
}

[data-theme="streaming"] .sv-channel-poster:hover {
    border-color: var(--sv-stream-accent);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------------
   8. PLAY BUTTONS
   --------------------------------------------------------------- */
[data-theme="streaming"] .sv-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.9);
    z-index: 2;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(7, 8, 12, .55);
    border: 2px solid rgba(255, 255, 255, .85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, background .2s ease, border-color .2s ease;
}

[data-theme="streaming"] .sv-play-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    margin-inline-start: 3px;
}

[data-theme="streaming"] .sv-poster-16x9:hover .sv-play-btn,
[data-theme="streaming"] .sv-video-card:hover .sv-play-btn,
[data-theme="streaming"] .sv-hero-tile:hover .sv-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

[data-theme="streaming"] .sv-play-btn:hover,
[data-theme="streaming"] .sv-poster-16x9:hover .sv-play-btn {
    background: var(--sv-stream-accent);
    border-color: var(--sv-stream-accent);
}

[data-theme="streaming"] .sv-play-btn:hover svg {
    fill: var(--sv-stream-accent-ink);
}

/* Solid accent variant */
[data-theme="streaming"] .sv-play-btn-solid {
    background: var(--sv-stream-accent);
    border-color: var(--sv-stream-accent);
    opacity: 1;
}

[data-theme="streaming"] .sv-play-btn-solid svg { fill: var(--sv-stream-accent-ink); }

/* ---------------------------------------------------------------
   9. BADGES
   --------------------------------------------------------------- */
[data-theme="streaming"] .sv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: rgba(7, 8, 12, .82);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* Category pill */
[data-theme="streaming"] .sv-badge-category {
    text-transform: uppercase;
    letter-spacing: .4px;
    border-radius: 999px;
    color: #fff;
    background: var(--sv-cat, var(--sv-stream-accent));
}

/* Accent badge */
[data-theme="streaming"] .sv-badge-accent {
    color: var(--sv-stream-accent-ink);
    background: linear-gradient(90deg, var(--sv-stream-accent), var(--sv-stream-accent-2));
}

/* LIVE badge */
[data-theme="streaming"] .sv-badge-live {
    background: #e50914;
    color: #fff;
    letter-spacing: .6px;
    text-transform: uppercase;
}

[data-theme="streaming"] .sv-badge-live .sv-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: sv-pulse 1.4s infinite;
}

/* Duration / time badge */
[data-theme="streaming"] .sv-badge-time {
    font-variant-numeric: tabular-nums;
}

/* Badge placement helpers (over a poster) */
[data-theme="streaming"] .sv-badge-tl { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 3; }
[data-theme="streaming"] .sv-badge-tr { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; }
[data-theme="streaming"] .sv-badge-bl { position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 3; }
[data-theme="streaming"] .sv-badge-br { position: absolute; bottom: 10px; inset-inline-end: 10px; z-index: 3; }

@keyframes sv-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}

/* ---------------------------------------------------------------
   10. MOBILE BOTTOM NAV  (new component)
   Example markup (hidden on >= lg):
     <nav class="sv-bottom-nav d-lg-none">
       <ul class="sv-bottom-nav-list">
         <li><a class="sv-bottom-nav-item active" href="#">
              <span class="sv-bottom-nav-icon">...svg...</span>
              <span class="sv-bottom-nav-label">Home</span></a></li>
         ...
       </ul>
     </nav>
   Add class `has-sv-bottom-nav` to <body> to reserve space.
   --------------------------------------------------------------- */
[data-theme="streaming"] .sv-bottom-nav {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1030;
    background: var(--sv-bg-2);
    border-top: 1px solid var(--sv-stream-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding-bottom: env(safe-area-inset-bottom);
}

[data-theme="streaming"] .sv-bottom-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
}

[data-theme="streaming"] .sv-bottom-nav-list > li {
    flex: 1 1 0;
    min-width: 0;
}

[data-theme="streaming"] .sv-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 4px;
    color: var(--sv-stream-muted);
    text-decoration: none;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1;
    transition: color .15s ease;
}

[data-theme="streaming"] .sv-bottom-nav-item:hover,
[data-theme="streaming"] .sv-bottom-nav-item:focus {
    color: var(--sv-stream-text);
}

[data-theme="streaming"] .sv-bottom-nav-item.active {
    color: var(--sv-stream-accent);
}

[data-theme="streaming"] .sv-bottom-nav-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
}

[data-theme="streaming"] .sv-bottom-nav-icon svg {
    width: 100%;
    height: 100%;
}

[data-theme="streaming"] .sv-bottom-nav-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Reserve space so the fixed bar never covers page content (mobile only) */
@media (max-width: 991.98px) {
    [data-theme="streaming"] body.has-sv-bottom-nav {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
}

/* The bar is a mobile pattern; keep it out of large screens by default */
@media (min-width: 992px) {
    [data-theme="streaming"] .sv-bottom-nav:not(.sv-bottom-nav-persistent) {
        display: none;
    }
}

/* ---------------------------------------------------------------
   11. SMALL UTILITIES
   --------------------------------------------------------------- */
[data-theme="streaming"] .sv-rounded { border-radius: var(--sv-stream-radius); }
[data-theme="streaming"] .sv-rounded-sm { border-radius: var(--sv-stream-radius-sm); }
[data-theme="streaming"] .sv-bordered { border: 1px solid var(--sv-stream-border); }
[data-theme="streaming"] .sv-card-surface { background: var(--sv-stream-card); }
[data-theme="streaming"] .sv-elevated-surface { background: var(--sv-stream-elevated); }

/* =====================================================================
   12. SITE-WIDE COMPONENTS (moved from streaming.css, which only loads
   on the homepage - these need to render on every page: My Activity,
   Publish, Alert Us, the bottom-nav Publish button, colored badges, etc.)
   ===================================================================== */

/* ---------- Content-type color system (site-wide) ----------
   One consistent color per content type, used across badges, cards,
   icons, and the Publish flow. Override these to retheme everywhere at once. */
[data-theme="streaming"] {
    --sv-type-article: #8b5cf6;   /* purple */
    --sv-type-ad: #22c55e;        /* green */
    --sv-type-forum: #3b82f6;     /* blue */
    --sv-type-event: #f97316;     /* orange */
    --sv-type-alert: #ef4444;     /* red */
    --sv-type-rewards: #eab308;   /* gold */
    --sv-type-eco: #10b981;       /* emerald */
    --sv-status-live: #22c55e;
    --sv-status-pending: #eab308;
    --sv-status-draft: #94a3b8;
    --sv-status-scheduled: #3b82f6;
    --sv-status-rejected: #ef4444;
}

/* ---------- Bottom nav: elevated centered "Publish" button ---------- */
[data-theme="streaming"] .sv-bottom-nav-item-primary {
    position: relative;
    color: var(--sv-accent, #ffb800) !important;
}

[data-theme="streaming"] .sv-bottom-nav-item-primary .sv-bottom-nav-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sv-accent, #ffb800), var(--sv-accent-2, #ff7a00));
    color: #101012;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

[data-theme="streaming"] .sv-bottom-nav-item-primary .sv-bottom-nav-icon svg {
    width: 22px;
    height: 22px;
}

/* ---------- My Activity page: dark-theme-aware, mobile-safe ---------- */
[data-theme="streaming"] .activity-row {
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08)) !important;
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .activity-row h3 {
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .activity-row .text-muted {
    color: var(--sv-stream-muted, rgba(245,245,247,.6)) !important;
}

[data-theme="streaming"] .activity-row img {
    background: var(--sv-elevated, #24242f);
}

[data-theme="streaming"] .activity-status-filters .btn-outline-secondary {
    background: var(--sv-surface, #16161d);
    border-color: var(--sv-border, rgba(255,255,255,.08));
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .activity-status-filters .btn-outline-secondary:hover {
    background: var(--sv-elevated, #24242f);
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .activity-row .btn-outline-secondary {
    background: transparent;
    border-color: var(--sv-border, rgba(255,255,255,.08));
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .activity-row .dropdown-menu {
    background: var(--sv-elevated, #24242f);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    z-index: 1050;
    min-width: 10rem;
    max-width: calc(100vw - 2rem);
}

[data-theme="streaming"] .activity-row .dropdown-item {
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .activity-row .dropdown-item:hover,
[data-theme="streaming"] .activity-row .dropdown-item:focus {
    background: var(--sv-surface, #16161d);
    color: var(--sv-accent, #ffb800);
}

[data-theme="streaming"] .badge-soft-secondary {
    background: var(--sv-elevated, #24242f);
    color: var(--sv-text, #f5f5f7);
}

/* Status filter chips: horizontal scroll on mobile instead of wrapping/overflowing */
@media (max-width: 575px) {
    .activity-status-filters {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .activity-status-filters .btn {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .activity-row {
        padding: .65rem !important;
        gap: .65rem !important;
    }

    .activity-row img {
        width: 56px !important;
        height: 56px !important;
    }

    .activity-row h3 {
        font-size: .9rem;
    }

    .activity-row .small {
        font-size: .7rem;
        row-gap: 2px;
    }

    .activity-row {
        flex-wrap: nowrap;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .activity-row .dropdown {
        margin-inline-start: auto;
    }

    .activity-row .dropdown > .btn {
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .activity-row .dropdown > .btn svg {
        width: 15px;
        height: 15px;
    }
}

/* Never let the activity list force horizontal scroll on the page */
#myActivityList {
    max-width: 100%;
    overflow-x: hidden;
}

/* ---------- Publish modal ---------- */
[data-theme="streaming"] .publish-modal-content {
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    color: var(--sv-text, #f5f5f7);
    overflow: hidden;
}

[data-theme="streaming"] .publish-modal-content .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
    z-index: 2;
}

/* Banner header: subtle gradient using the platform accent, per client's "gradients on key blocks" request */
[data-theme="streaming"] .publish-modal-banner {
    background: linear-gradient(120deg, color-mix(in srgb, var(--sv-accent, #ffb800) 22%, var(--sv-surface, #16161d)), var(--sv-surface, #16161d) 70%);
    border-bottom: 1px solid var(--sv-border, rgba(255,255,255,.08));
    padding: 1.5rem;
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .publish-modal-banner p {
    color: var(--sv-stream-muted, rgba(245,245,247,.65));
}

/* Vertical "assistant-style" publish list: one row per intent, plus a visually separated Alert-the-Newsroom row */
[data-theme="streaming"] .publish-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

[data-theme="streaming"] .publish-list-alert-wrap {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--sv-border, rgba(255,255,255,.14));
}

[data-theme="streaming"] .publish-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: color-mix(in srgb, var(--option-color) 6%, var(--sv-surface, #16161d));
    border: 1px solid color-mix(in srgb, var(--option-color) 20%, var(--sv-border, rgba(255,255,255,.08)));
    border-radius: var(--sv-radius, 14px);
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: var(--sv-text, #f5f5f7);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

[data-theme="streaming"] .publish-list-item:hover,
[data-theme="streaming"] .publish-list-item:focus {
    transform: translateX(4px);
    border-color: var(--option-color);
    box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--option-color) 50%, transparent);
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .publish-list-item-alert {
    background: color-mix(in srgb, var(--option-color) 10%, var(--sv-surface, #16161d));
    border-color: color-mix(in srgb, var(--option-color) 35%, var(--sv-border, rgba(255,255,255,.08)));
}

[data-theme="streaming"] .publish-list-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--option-color) 22%, var(--sv-elevated, #24242f));
    color: var(--option-color);
}

[data-theme="streaming"] .publish-list-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

[data-theme="streaming"] .publish-list-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

[data-theme="streaming"] .publish-list-title {
    font-weight: 700;
    font-size: .98rem;
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .publish-list-badge {
    flex-shrink: 0;
    font-size: .68rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--sv-type-forum, #3b82f6) 22%, transparent);
    color: var(--sv-type-forum, #3b82f6);
    white-space: nowrap;
}

[data-theme="streaming"] .publish-list-desc {
    font-size: .84rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.6));
    line-height: 1.35;
}

[data-theme="streaming"] .publish-list-chevron {
    flex-shrink: 0;
    color: var(--option-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Publish bottom sheet (modal): compact iOS-style action sheet, not a full page ---------- */
[data-theme="streaming"] .publish-sheet-content {
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    color: var(--sv-text, #f5f5f7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

[data-theme="streaming"] .publish-sheet-close {
    position: absolute;
    top: .8rem;
    right: .8rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--sv-elevated, #24242f);
    color: var(--sv-text, #f5f5f7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .15s ease;
}

[data-theme="streaming"] .publish-sheet-close:hover {
    background: color-mix(in srgb, var(--sv-text, #f5f5f7) 14%, var(--sv-elevated, #24242f));
}

[data-theme="streaming"] .publish-sheet-handle {
    display: none;
}

[data-theme="streaming"] .publish-sheet-header {
    padding: .6rem 2.75rem 1rem 1.5rem;
    text-align: center;
}

[data-theme="streaming"] .publish-sheet-body {
    overflow-y: auto;
    padding: .25rem 1.15rem 1.25rem;
    flex: 1 1 auto;
}

[data-theme="streaming"] .publish-sheet-list {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

[data-theme="streaming"] .publish-sheet-list-alert {
    margin-top: .5rem;
    padding-top: .9rem;
    border-top: 1px solid var(--sv-border, rgba(255,255,255,.06));
}

[data-theme="streaming"] .publish-sheet-row {
    display: flex;
    align-items: center;
    gap: .5rem;
}

[data-theme="streaming"] .publish-sheet-row-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: .55rem .3rem;
    text-decoration: none;
    color: var(--sv-text, #f5f5f7);
    transition: background .15s ease;
    border-radius: var(--sv-radius-sm, 10px);
}

[data-theme="streaming"] .publish-sheet-row-link:hover,
[data-theme="streaming"] .publish-sheet-row-link:focus {
    background: color-mix(in srgb, var(--option-color) 8%, transparent);
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .publish-sheet-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--option-color) 18%, var(--sv-elevated, #24242f));
    color: var(--option-color);
}

[data-theme="streaming"] .publish-sheet-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .05rem;
}

[data-theme="streaming"] .publish-sheet-title {
    font-weight: 700;
    font-size: .94rem;
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .publish-sheet-short {
    font-size: .78rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.6));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="streaming"] .publish-sheet-info-btn {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--sv-stream-muted, rgba(245,245,247,.4));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color .15s ease, background .15s ease;
}

[data-theme="streaming"] .publish-sheet-info-btn:hover,
[data-theme="streaming"] .publish-sheet-info-btn[aria-expanded="true"] {
    color: var(--option-color);
    background: color-mix(in srgb, var(--option-color) 16%, transparent);
}

[data-theme="streaming"] .publish-sheet-chevron-link {
    flex-shrink: 0;
    display: inline-flex;
}

[data-theme="streaming"] .publish-sheet-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--option-color) 16%, transparent);
    color: var(--option-color);
}

/* Alert the Newsroom: intentionally stronger red so it reads as distinct from the public-post options */
[data-theme="streaming"] .publish-sheet-row-alert .publish-sheet-icon {
    background: color-mix(in srgb, var(--option-color) 30%, var(--sv-elevated, #24242f));
}

[data-theme="streaming"] .publish-sheet-row-alert .publish-sheet-title {
    color: var(--option-color);
}

[data-theme="streaming"] .publish-sheet-row-alert .publish-sheet-chevron {
    background: color-mix(in srgb, var(--option-color) 26%, transparent);
}

/* Dark-theme popover for the ⓘ full explanation (small floating bubble, never resizes the row) */
[data-theme="streaming"] .popover {
    --bs-popover-bg: var(--sv-surface, #16161d);
    --bs-popover-border-color: var(--sv-border, rgba(255,255,255,.12));
    max-width: 240px;
}

[data-theme="streaming"] .popover-body {
    color: var(--sv-text, #f5f5f7);
    font-size: .82rem;
    line-height: 1.4;
}

[data-theme="streaming"] .popover .popover-arrow::before {
    border-top-color: var(--sv-border, rgba(255,255,255,.12));
}

[data-theme="streaming"] .popover .popover-arrow::after {
    border-top-color: var(--sv-surface, #16161d);
}

[data-theme="streaming"] .bs-popover-top > .popover-arrow::before,
[data-theme="streaming"] .bs-popover-auto[data-popper-placement^="top"] > .popover-arrow::before {
    border-top-color: var(--sv-border, rgba(255,255,255,.12));
}

[data-theme="streaming"] .bs-popover-top > .popover-arrow::after,
[data-theme="streaming"] .bs-popover-auto[data-popper-placement^="top"] > .popover-arrow::after {
    border-top-color: var(--sv-surface, #16161d);
}

/* Bottom-sheet placement/animation: compact (max 70vh), page visible behind, mobile only */
@media (max-width: 991.98px) {
    #publishModal .publish-sheet-dialog {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        min-height: 100%;
        max-width: 100%;
        margin: 0;
    }

    #publishModal .publish-sheet-content {
        width: 100%;
        max-height: 72vh;
        border-radius: 20px 20px 0 0;
    }

    #publishModal.modal.fade .publish-sheet-dialog {
        transition: transform .3s ease-out;
        transform: translateY(100%);
    }

    #publishModal.modal.show .publish-sheet-dialog {
        transform: translateY(0);
    }

    [data-theme="streaming"] .publish-sheet-handle {
        display: flex;
        justify-content: center;
        padding: .7rem 0 .6rem;
        touch-action: none;
    }

    [data-theme="streaming"] .publish-sheet-handle span {
        width: 40px;
        height: 4px;
        border-radius: 999px;
        background: var(--sv-border, rgba(255,255,255,.28));
    }
}

/* ---------- Account page (replaces the old hamburger-menu profile drawer) ---------- */
[data-theme="streaming"] .account-profile-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: var(--sv-radius, 14px);
    padding: 1.5rem;
    max-width: 640px;
    margin: 0 auto 2rem;
}

[data-theme="streaming"] .account-profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

[data-theme="streaming"] .account-profile-info {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

[data-theme="streaming"] .account-profile-name {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
}

[data-theme="streaming"] .account-profile-role {
    font-size: .84rem;
    color: var(--sv-stream-accent, #ffc400);
    font-weight: 600;
}

[data-theme="streaming"] .account-profile-since {
    font-size: .8rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.55));
}

[data-theme="streaming"] .account-menu-section {
    max-width: 640px;
    margin: 0 auto 1.75rem;
}

[data-theme="streaming"] .account-section-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--sv-stream-muted, rgba(245,245,247,.5));
    margin-bottom: .6rem;
    padding-inline-start: .25rem;
}

[data-theme="streaming"] .account-menu-list {
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: var(--sv-radius, 14px);
    overflow: hidden;
}

[data-theme="streaming"] .account-menu-item {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .95rem 1.1rem;
    text-decoration: none;
    color: var(--sv-text, #f5f5f7);
    border-bottom: 1px solid var(--sv-border, rgba(255,255,255,.06));
    transition: background .15s ease;
}

[data-theme="streaming"] .account-menu-list > *:last-child {
    border-bottom: none;
}

[data-theme="streaming"] a.account-menu-item:hover {
    background: color-mix(in srgb, var(--sv-stream-accent, #ffc400) 6%, transparent);
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .account-menu-item.is-disabled {
    opacity: .55;
}

[data-theme="streaming"] .account-menu-item-danger {
    color: var(--sv-type-alert, #ef4444);
}

[data-theme="streaming"] .account-menu-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--sv-elevated, #24242f);
    color: var(--sv-stream-muted, rgba(245,245,247,.75));
}

[data-theme="streaming"] .account-menu-item-danger .account-menu-icon {
    color: var(--sv-type-alert, #ef4444);
}

[data-theme="streaming"] .account-menu-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

[data-theme="streaming"] .account-menu-label {
    font-weight: 600;
    font-size: .95rem;
}

[data-theme="streaming"] .account-menu-sub {
    font-size: .78rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.5));
}

[data-theme="streaming"] .account-menu-chevron {
    flex-shrink: 0;
    color: var(--sv-stream-muted, rgba(245,245,247,.4));
    display: inline-flex;
}

[data-theme="streaming"] .account-menu-badge {
    flex-shrink: 0;
    font-size: .7rem;
    font-weight: 700;
    background: var(--sv-elevated, #24242f);
    color: var(--sv-stream-muted, rgba(245,245,247,.6));
    padding: .25rem .6rem;
    border-radius: 999px;
}

[data-theme="streaming"] .account-menu-item-static {
    flex-wrap: wrap;
}

[data-theme="streaming"] .account-lang-chips {
    display: flex;
    gap: .4rem;
    margin-top: .3rem;
}

[data-theme="streaming"] .account-lang-chip {
    font-size: .78rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: var(--sv-elevated, #24242f);
    color: var(--sv-stream-muted, rgba(245,245,247,.7));
    text-decoration: none;
}

[data-theme="streaming"] .account-lang-chip.active {
    background: var(--sv-stream-accent, #ffc400);
    color: var(--sv-stream-accent-ink, #1a1306);
    font-weight: 700;
}

/* ---------- Search page ---------- */
[data-theme="streaming"] .search-recent {
    max-width: 640px;
    margin: 0 auto;
}

[data-theme="streaming"] .search-recent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}

[data-theme="streaming"] .search-recent-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

[data-theme="streaming"] .search-recent-clear {
    background: none;
    border: none;
    color: var(--sv-stream-accent, #ffc400);
    font-size: .84rem;
    font-weight: 600;
    padding: 0;
}

[data-theme="streaming"] .search-recent-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

[data-theme="streaming"] .search-recent-chip {
    background: var(--sv-elevated, #24242f);
    border: 1px solid var(--sv-border, rgba(255,255,255,.1));
    color: var(--sv-text, #f5f5f7);
    border-radius: 999px;
    padding: .45rem 1rem;
    font-size: .86rem;
    text-decoration: none;
}

[data-theme="streaming"] .search-recent-chip:hover {
    border-color: var(--sv-stream-accent, #ffc400);
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .search-group {
    margin-bottom: 2rem;
}

[data-theme="streaming"] .search-group-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    padding-inline-start: 14px;
    position: relative;
}

[data-theme="streaming"] .search-group-title::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 1.05em;
    border-radius: 4px;
    background: var(--sv-stream-accent, #ffc400);
}

[data-theme="streaming"] .search-empty-state {
    text-align: center;
    color: var(--sv-stream-muted, rgba(245,245,247,.6));
    padding: 2rem 0;
}

/* ---------- Favorites: horizontal scrollable filter pills (Vinted/Oumiz style) ---------- */
[data-theme="streaming"] .favorites-filter-scroller {
    display: flex;
    gap: .6rem;
    overflow-x: auto;
    padding-bottom: .3rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

[data-theme="streaming"] .favorites-filter-scroller::-webkit-scrollbar {
    display: none;
}

[data-theme="streaming"] .favorites-filter-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--sv-elevated, #24242f);
    border: 1px solid var(--sv-border, rgba(255,255,255,.1));
    color: var(--sv-text, #f5f5f7);
    border-radius: 999px;
    padding: .5rem 1rem;
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

[data-theme="streaming"] .favorites-filter-pill.active {
    background: var(--sv-stream-accent, #ffc400);
    border-color: var(--sv-stream-accent, #ffc400);
    color: var(--sv-stream-accent-ink, #1a1306);
}

[data-theme="streaming"] .favorites-filter-count {
    font-size: .76rem;
    opacity: .75;
}

/* ---------- Categories page (replaces the old hamburger menu as primary content nav) ---------- */
[data-theme="streaming"] .category-page-header {
    text-align: center;
    max-width: 480px;
    margin: 0 auto 1.75rem;
}

[data-theme="streaming"] .category-page-title {
    font-weight: 800;
    margin-bottom: .4rem;
}

[data-theme="streaming"] .category-page-subtitle {
    color: var(--sv-stream-muted, rgba(245,245,247,.65));
}

[data-theme="streaming"] .category-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

@media (max-width: 420px) {
    [data-theme="streaming"] .category-grid-2col {
        grid-template-columns: 1fr;
    }
}

[data-theme="streaming"] .category-tile-wrap {
    position: relative;
}

[data-theme="streaming"] .category-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
    background: color-mix(in srgb, var(--category-color) 9%, var(--sv-surface, #16161d));
    border: 1px solid color-mix(in srgb, var(--category-color) 26%, var(--sv-border, rgba(255,255,255,.08)));
    border-radius: 18px;
    padding: 1.1rem;
    text-decoration: none;
    color: var(--sv-text, #f5f5f7);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    height: 100%;
}

[data-theme="streaming"] .category-tile:hover,
[data-theme="streaming"] .category-tile:focus {
    transform: translateY(-3px);
    border-color: var(--category-color);
    box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--category-color) 50%, transparent);
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .category-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--category-color) 24%, var(--sv-elevated, #24242f));
    color: var(--category-color);
    margin-bottom: .75rem;
}

[data-theme="streaming"] .category-tile-title {
    font-weight: 700;
    font-size: 1rem;
    padding-inline-end: 1.5rem;
}

[data-theme="streaming"] .category-tile-info-btn {
    position: absolute;
    top: .65rem;
    right: .65rem;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: color-mix(in srgb, var(--category-color) 70%, var(--sv-stream-muted, rgba(245,245,247,.5)));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

[data-theme="streaming"] .category-tile-info-btn:hover {
    background: color-mix(in srgb, var(--category-color) 18%, transparent);
}

/* Category info bottom sheet: same slide-up treatment as the Publish sheet, mobile only */
[data-theme="streaming"] .category-info-content {
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    color: var(--sv-text, #f5f5f7);
    padding: 1.5rem;
    position: relative;
}

[data-theme="streaming"] .category-info-close {
    position: absolute;
    top: .8rem;
    right: .8rem;
    filter: invert(1) grayscale(1) brightness(2);
}

[data-theme="streaming"] .category-info-title {
    font-weight: 800;
    margin-bottom: .6rem;
    padding-inline-end: 2rem;
}

[data-theme="streaming"] .category-info-desc {
    color: var(--sv-stream-muted, rgba(245,245,247,.7));
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    #categoryInfoModal .modal-dialog {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        min-height: 100%;
        max-width: 100%;
        margin: 0;
    }

    #categoryInfoModal .category-info-content {
        width: 100%;
        border-radius: 20px 20px 0 0;
        padding-top: 1.75rem;
    }

    #categoryInfoModal.modal.fade .modal-dialog {
        transition: transform .3s ease-out;
        transform: translateY(100%);
    }

    #categoryInfoModal.modal.show .modal-dialog {
        transform: translateY(0);
    }
}

[data-theme="streaming"] .category-page-footer-link {
    text-align: center;
    margin-top: 2rem;
}

[data-theme="streaming"] .category-page-footer-link a {
    color: var(--sv-stream-muted, rgba(245,245,247,.6));
    font-size: .88rem;
    text-decoration: underline;
}

/* ---------- Classified Ads: price/location/contact bar on the single-post page ---------- */
[data-theme="streaming"] .classified-ad-details-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    background: color-mix(in srgb, var(--sv-type-ad, #19bc9c) 8%, var(--sv-surface, #16161d));
    border: 1px solid color-mix(in srgb, var(--sv-type-ad, #19bc9c) 25%, var(--sv-border, rgba(255,255,255,.08)));
    border-radius: var(--sv-radius, 14px);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

[data-theme="streaming"] .classified-ad-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--sv-type-ad, #19bc9c);
}

[data-theme="streaming"] .classified-ad-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .88rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.7));
}

/* ---------- Community Blog: card badge + author identity ---------- */
[data-theme="streaming"] .sv-chip-community {
    background: color-mix(in srgb, var(--sv-type-article, #8b5cf6) 85%, black);
    color: #fff;
}

[data-theme="streaming"] .sv-card-author {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .4rem;
    text-decoration: none;
}

[data-theme="streaming"] .sv-card-author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

[data-theme="streaming"] .sv-card-author-name {
    font-size: .78rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.65));
}

.badge-community-blog {
    background-color: var(--sv-type-article, #8b5cf6) !important;
}

.post-meta-author {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
}

.post-meta-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* ---------- Shared multi-step create wizard (Community Blog, Discussions, Events, Classified Ads) ----------
   Each wizard sets --wizard-accent inline on .wizard to pick its own module color. */
[data-theme="streaming"] .wizard {
    max-width: 720px;
    margin: 0 auto;
}

[data-theme="streaming"] .wizard-steps {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

[data-theme="streaming"] .wizard-step {
    display: flex;
    align-items: center;
    gap: .5rem;
    opacity: .45;
    transition: opacity .15s ease;
}

[data-theme="streaming"] .wizard-step.is-active,
[data-theme="streaming"] .wizard-step.is-done {
    opacity: 1;
}

[data-theme="streaming"] .wizard-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--sv-elevated, #24242f);
    border: 1px solid var(--sv-border, rgba(255,255,255,.12));
    color: var(--sv-text, #f5f5f7);
    font-size: .8rem;
    font-weight: 700;
}

[data-theme="streaming"] .wizard-step.is-active .wizard-step-num {
    background: var(--wizard-accent, #8b5cf6);
    border-color: var(--wizard-accent, #8b5cf6);
    color: #fff;
}

[data-theme="streaming"] .wizard-step.is-done .wizard-step-num {
    background: color-mix(in srgb, var(--wizard-accent, #8b5cf6) 30%, var(--sv-elevated, #24242f));
    border-color: var(--wizard-accent, #8b5cf6);
}

[data-theme="streaming"] .wizard-step-label {
    font-size: .84rem;
    font-weight: 600;
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .wizard-panel {
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: var(--sv-radius, 14px);
    padding: 1.5rem;
}

[data-theme="streaming"] .wizard-panel-intro {
    color: var(--sv-stream-muted, rgba(245,245,247,.65));
    margin-bottom: 1.25rem;
}

[data-theme="streaming"] .wizard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--sv-border, rgba(255,255,255,.08));
}

[data-theme="streaming"] .wizard-btn-primary {
    background: var(--wizard-accent, #8b5cf6);
    border-color: var(--wizard-accent, #8b5cf6);
    color: #fff;
}

[data-theme="streaming"] .wizard-btn-primary:hover {
    background: color-mix(in srgb, var(--wizard-accent, #8b5cf6) 85%, black);
    border-color: color-mix(in srgb, var(--wizard-accent, #8b5cf6) 85%, black);
    color: #fff;
}

[data-theme="streaming"] .wizard-cover-picker {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: var(--sv-radius, 14px);
    background: var(--sv-elevated, #24242f);
    border: 1px dashed var(--sv-border, rgba(255,255,255,.18));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="streaming"] .wizard-cover-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-theme="streaming"] .wizard-cover-placeholder {
    color: var(--sv-stream-muted, rgba(245,245,247,.35));
}

[data-theme="streaming"] .wizard-cover-change-btn {
    position: absolute;
    bottom: .75rem;
    right: .75rem;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.15));
    color: var(--sv-text, #f5f5f7);
    border-radius: 999px;
    padding: .4rem .9rem;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
}

[data-theme="streaming"] .wizard-upload-status {
    font-size: .78rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.5));
    min-height: 1.1em;
    margin-top: .35rem;
}

[data-theme="streaming"] #blogContent {
    display: none;
}

[data-theme="streaming"] .tox-tinymce {
    border-radius: var(--sv-radius-sm, 10px) !important;
    border-color: var(--sv-border, rgba(255,255,255,.12)) !important;
}

[data-theme="streaming"] .wizard-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

[data-theme="streaming"] .wizard-gallery-items {
    display: contents;
}

[data-theme="streaming"] .wizard-gallery-item {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: var(--sv-radius-sm, 10px);
    overflow: hidden;
}

[data-theme="streaming"] .wizard-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-theme="streaming"] .wizard-gallery-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: .9rem;
    line-height: 1;
    cursor: pointer;
}

[data-theme="streaming"] .wizard-gallery-add-btn {
    width: 84px;
    height: 84px;
    border-radius: var(--sv-radius-sm, 10px);
    border: 1px dashed var(--sv-border, rgba(255,255,255,.2));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.5));
    font-size: .68rem;
    cursor: pointer;
    margin: 0;
    text-align: center;
}

[data-theme="streaming"] .wizard-preview-cover {
    width: 100%;
    border-radius: var(--sv-radius, 14px);
    margin-bottom: 1rem;
    max-height: 320px;
    object-fit: cover;
}

[data-theme="streaming"] .wizard-preview-badge {
    display: inline-block;
    background: var(--wizard-accent, #8b5cf6);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .65rem;
    border-radius: 999px;
    margin-bottom: .6rem;
}

[data-theme="streaming"] .wizard-preview-title {
    font-weight: 800;
    margin-bottom: 1rem;
}

[data-theme="streaming"] .wizard-preview-content {
    color: var(--sv-text, #f5f5f7);
    line-height: 1.7;
    white-space: pre-wrap;
}

[data-theme="streaming"] .wizard-preview-content img {
    max-width: 100%;
    border-radius: var(--sv-radius-sm, 10px);
}

[data-theme="streaming"] .wizard-preview-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1rem;
}

[data-theme="streaming"] .wizard-preview-gallery img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: var(--sv-radius-sm, 10px);
}

[data-theme="streaming"] .wizard-select {
    width: 100%;
}

@media (max-width: 575.98px) {
    [data-theme="streaming"] .wizard-step-label {
        display: none;
    }
}

/* ---------- My Activity: overview stats widget ---------- */
[data-theme="streaming"] .activity-overview-title {
    color: var(--sv-stream-muted, rgba(245,245,247,.6));
    letter-spacing: .04em;
}

[data-theme="streaming"] .activity-stat {
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: var(--sv-radius-sm, 10px);
    padding: .85rem 1rem;
    text-align: center;
}

[data-theme="streaming"] .activity-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sv-text, #f5f5f7);
    line-height: 1.2;
}

[data-theme="streaming"] .activity-stat-label {
    font-size: .75rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.6));
}

/* Pagination: match dark theme */
[data-theme="streaming"] .pagination .page-link {
    background: var(--sv-surface, #16161d);
    border-color: var(--sv-border, rgba(255,255,255,.08));
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .pagination .page-item.active .page-link {
    background: var(--sv-accent, #ffb800);
    border-color: var(--sv-accent, #ffb800);
    color: #101012;
}

/* ---------- Colored status + content-type badges (My Activity and beyond) ---------- */
[data-theme="streaming"] .status-badge-live { background: color-mix(in srgb, var(--sv-status-live) 25%, transparent); color: var(--sv-status-live); }
[data-theme="streaming"] .status-badge-pending { background: color-mix(in srgb, var(--sv-status-pending) 25%, transparent); color: var(--sv-status-pending); }
[data-theme="streaming"] .status-badge-draft { background: color-mix(in srgb, var(--sv-status-draft) 25%, transparent); color: var(--sv-status-draft); }
[data-theme="streaming"] .status-badge-scheduled { background: color-mix(in srgb, var(--sv-status-scheduled) 25%, transparent); color: var(--sv-status-scheduled); }
[data-theme="streaming"] .status-badge-rejected { background: color-mix(in srgb, var(--sv-status-rejected) 25%, transparent); color: var(--sv-status-rejected); }

[data-theme="streaming"] .type-badge-article { background: color-mix(in srgb, var(--sv-type-article) 20%, transparent); color: var(--sv-type-article); }
[data-theme="streaming"] .type-badge-ad { background: color-mix(in srgb, var(--sv-type-ad) 20%, transparent); color: var(--sv-type-ad); }
[data-theme="streaming"] .type-badge-forum { background: color-mix(in srgb, var(--sv-type-forum) 20%, transparent); color: var(--sv-type-forum); }
[data-theme="streaming"] .type-badge-event { background: color-mix(in srgb, var(--sv-type-event) 20%, transparent); color: var(--sv-type-event); }
[data-theme="streaming"] .type-badge-alert { background: color-mix(in srgb, var(--sv-type-alert) 20%, transparent); color: var(--sv-type-alert); }

/* ---------- Alert Us page ---------- */
[data-theme="streaming"] .alert-us-banner {
    background: linear-gradient(120deg, color-mix(in srgb, var(--sv-type-alert) 22%, var(--sv-surface, #16161d)), var(--sv-surface, #16161d) 75%);
    border: 1px solid color-mix(in srgb, var(--sv-type-alert) 30%, var(--sv-border, rgba(255,255,255,.08)));
    color: var(--sv-text, #f5f5f7);
    padding: 1.5rem;
}

[data-theme="streaming"] .alert-us-banner p {
    color: var(--sv-stream-muted, rgba(245,245,247,.7));
}

[data-theme="streaming"] .alert-us-form .form-control {
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .alert-us-form .form-control:focus {
    background: var(--sv-surface, #16161d);
    border-color: var(--sv-type-alert);
    color: var(--sv-text, #f5f5f7);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--sv-type-alert) 25%, transparent);
}

[data-theme="streaming"] .alert-us-form .form-label {
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .alert-us-submit-btn {
    background: var(--sv-type-alert);
    color: #fff;
    font-weight: 700;
    border: none;
    padding: .75rem;
}

[data-theme="streaming"] .alert-us-submit-btn:hover {
    background: color-mix(in srgb, var(--sv-type-alert) 85%, black);
    color: #fff;
}

[data-theme="streaming"] .custom-offcanvas .text-alert-us {
    color: var(--sv-type-alert) !important;
    font-weight: 700;
}

/* Force a reliable header icon sequence: menu -> logo -> Alert Us -> search.
   Groups [menu, logo] tight on the left and [Alert Us, search] tight on the
   right, with a single flexible gap between the two groups (margin-inline-start:
   auto on the Alert Us button consumes the free space, instead of space-between
   spreading it evenly across all 4 items). */
.mobile-nav-wrapper .mobile-header [data-bs-target="#mobileMenu"] { order: 1; }
.mobile-nav-wrapper .mobile-header .header-logo { order: 2; flex-shrink: 1; min-width: 0; margin-inline-end: .5rem; }
.mobile-nav-wrapper .mobile-header .header-alert-us-btn { order: 3; margin-inline-start: auto; }
/* .header-btn (search) previously targeted a #searchToggleBtn id that doesn't exist in this
   theme's markup, so it never got its intended order and fell back to the default (0) -
   rendering before the logo instead of after Alert Us. Targeting the real classes fixes it
   and gives the new Explore button (added alongside search) the next slot. */
.mobile-nav-wrapper .mobile-header .header-btn { order: 4; margin-inline-start: .25rem; }
.mobile-nav-wrapper .mobile-header .header-explore-btn { order: 5; }

[data-theme="streaming"] .mobile-header .header-alert-us-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    flex-shrink: 0;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--sv-type-alert, #ef4444) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--sv-type-alert, #ef4444) 45%, transparent);
    color: var(--sv-type-alert, #ef4444);
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

[data-theme="streaming"] .mobile-header .header-alert-us-btn:hover,
[data-theme="streaming"] .mobile-header .header-alert-us-btn:focus {
    background: color-mix(in srgb, var(--sv-type-alert, #ef4444) 28%, transparent);
    color: var(--sv-type-alert, #ef4444);
}

[data-theme="streaming"] .mobile-header .header-alert-us-btn svg {
    flex-shrink: 0;
}

/* ---------- Generic soft badge variants (badge-soft-success already existed) ---------- */
.badge-soft-danger {
    background: color-mix(in srgb, var(--sv-type-alert, #ef4444) 16%, transparent);
    color: var(--sv-type-alert, #ef4444);
    font-weight: 700;
}

/* ---------- Bottom nav: unread badge on the Messages icon ---------- */
[data-theme="streaming"] .sv-bottom-nav-icon {
    position: relative;
}

[data-theme="streaming"] .sv-bottom-nav-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--sv-type-alert, #ef4444);
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--sv-bg, #07080c);
}

/* ---------- Messages / Notifications hub ---------- */
[data-theme="streaming"] .messages-tabs {
    display: flex;
    gap: .5rem;
    border-bottom: 1px solid var(--sv-border, rgba(255,255,255,.08));
}

[data-theme="streaming"] .messages-tab {
    position: relative;
    padding: .65rem .25rem;
    margin-inline-end: 1.5rem;
    color: var(--sv-muted, #9a9ea8);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

[data-theme="streaming"] .messages-tab.active {
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .messages-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--sv-accent, #ffb800);
    border-radius: 2px;
}

[data-theme="streaming"] .messages-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--sv-type-alert, #ef4444);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
}

[data-theme="streaming"] .conversation-list,
[data-theme="streaming"] .notification-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

[data-theme="streaming"] .conversation-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    border-radius: var(--sv-stream-radius-sm, 10px);
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    text-decoration: none;
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .conversation-row.unread {
    border-color: color-mix(in srgb, var(--sv-accent, #ffb800) 45%, transparent);
}

[data-theme="streaming"] .conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

[data-theme="streaming"] .conversation-body {
    flex: 1;
    min-width: 0;
}

[data-theme="streaming"] .conversation-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
}

[data-theme="streaming"] .conversation-username {
    font-weight: 700;
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .conversation-time {
    font-size: .72rem;
    color: var(--sv-muted, #9a9ea8);
    flex-shrink: 0;
}

[data-theme="streaming"] .conversation-context {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: 3px;
    font-size: .74rem;
    color: var(--sv-muted, #9a9ea8);
    overflow: hidden;
}

[data-theme="streaming"] .conversation-context-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-theme="streaming"] .conversation-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: 2px;
}

[data-theme="streaming"] .conversation-preview {
    font-size: .85rem;
    color: var(--sv-muted, #9a9ea8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-theme="streaming"] .conversation-row.unread .conversation-preview {
    color: var(--sv-text, #f5f5f7);
    font-weight: 600;
}

[data-theme="streaming"] .conversation-unread-dot {
    flex-shrink: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--sv-accent, #ffb800);
    color: var(--sv-accent-ink, #1a1306);
    font-size: .68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-theme="streaming"] .notification-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem;
    border-radius: var(--sv-stream-radius-sm, 10px);
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    text-decoration: none;
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .notification-row.unread {
    border-color: color-mix(in srgb, var(--sv-accent, #ffb800) 45%, transparent);
    background: color-mix(in srgb, var(--sv-accent, #ffb800) 6%, var(--sv-surface, #16161d));
}

[data-theme="streaming"] .notification-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--notif-color, var(--sv-accent, #ffb800)) 16%, transparent);
    color: var(--notif-color, var(--sv-accent, #ffb800));
}

[data-theme="streaming"] .notification-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

[data-theme="streaming"] .notification-title {
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.35;
}

[data-theme="streaming"] .notification-text {
    font-size: .84rem;
    line-height: 1.4;
    color: var(--sv-muted, #9a9ea8);
}

[data-theme="streaming"] .notification-row.unread .notification-text {
    font-weight: 700;
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .notification-sub {
    font-size: .8rem;
    color: var(--sv-muted, #9a9ea8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-theme="streaming"] .notification-time {
    font-size: .72rem;
    color: var(--sv-muted, #9a9ea8);
}

[data-theme="streaming"] .notification-thumb {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

/* ---------- Conversation thread ---------- */
[data-theme="streaming"] .thread-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--sv-border, rgba(255,255,255,.08));
}

[data-theme="streaming"] .thread-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--sv-text, #f5f5f7);
    background: var(--sv-surface, #16161d);
    flex-shrink: 0;
}

[data-theme="streaming"] .thread-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

[data-theme="streaming"] .thread-username {
    font-weight: 700;
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .thread-context-banner {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: -.5rem 0 1rem;
    padding: .6rem .85rem;
    border-radius: var(--sv-stream-radius-sm, 10px);
    background: color-mix(in srgb, var(--context-color) 10%, var(--sv-surface, #16161d));
    border: 1px solid color-mix(in srgb, var(--context-color) 30%, var(--sv-border, rgba(255,255,255,.08)));
    text-decoration: none;
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .thread-context-badge {
    flex-shrink: 0;
    font-size: .64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--context-color);
    background: color-mix(in srgb, var(--context-color) 18%, transparent);
    padding: .2rem .55rem;
    border-radius: 999px;
}

[data-theme="streaming"] .thread-context-title {
    font-size: .84rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-theme="streaming"] .thread-messages {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-height: 60vh;
    overflow-y: auto;
    padding: .25rem .25rem 1rem;
}

[data-theme="streaming"] .thread-bubble-row {
    display: flex;
    justify-content: flex-start;
}

[data-theme="streaming"] .thread-bubble-row.is-mine {
    justify-content: flex-end;
}

[data-theme="streaming"] .thread-bubble {
    max-width: 78%;
    padding: .55rem .8rem;
    border-radius: 14px;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    color: var(--sv-text, #f5f5f7);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

[data-theme="streaming"] .thread-bubble-row.is-mine .thread-bubble {
    background: var(--sv-accent, #ffb800);
    color: var(--sv-accent-ink, #1a1306);
    border-color: transparent;
}

[data-theme="streaming"] .thread-bubble-text {
    font-size: .9rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

[data-theme="streaming"] .thread-bubble-time {
    font-size: .65rem;
    opacity: .7;
    align-self: flex-end;
}

[data-theme="streaming"] .thread-send-form {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    gap: .5rem;
    padding: .75rem 0;
    background: var(--sv-bg, #07080c);
}

[data-theme="streaming"] .thread-input {
    flex: 1;
    resize: none;
    max-height: 120px;
    border-radius: 18px;
    padding: .6rem 1rem;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .thread-input:focus {
    outline: none;
    border-color: var(--sv-accent, #ffb800);
}

[data-theme="streaming"] .thread-send-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--sv-accent, #ffb800);
    color: var(--sv-accent-ink, #1a1306);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-theme="streaming"] .thread-send-btn:disabled {
    opacity: .6;
}

/* =====================================================================
   13. CLASSIFIED ADS MARKETPLACE (listing page)
   ===================================================================== */

[data-theme="streaming"] .ad-listing-header {
    margin-bottom: 1.25rem;
}

/* ---------- Search row: search bar + Filters button side by side ---------- */
[data-theme="streaming"] .ad-search-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.25rem;
}

[data-theme="streaming"] .ad-search-form {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .6rem;
    background: var(--sv-elevated, #24242f);
    border: 1px solid var(--sv-border, rgba(255,255,255,.1));
    border-radius: 999px;
    padding: .7rem 1.1rem;
}

[data-theme="streaming"] .ad-search-icon {
    flex-shrink: 0;
    color: var(--sv-stream-muted, rgba(245,245,247,.6));
}

[data-theme="streaming"] .ad-search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--sv-text, #f5f5f7);
    font-size: 1rem;
}

[data-theme="streaming"] .ad-search-input:focus {
    outline: none;
}

[data-theme="streaming"] .ad-search-submit {
    flex-shrink: 0;
    border: none;
    background: var(--sv-type-ad, #19bc9c);
    color: #06231c;
    font-weight: 700;
    font-size: .86rem;
    padding: .5rem 1.1rem;
    border-radius: 999px;
}

[data-theme="streaming"] .ad-filters-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--sv-elevated, #24242f);
    border: 1px solid var(--sv-border, rgba(255,255,255,.1));
    color: var(--sv-text, #f5f5f7);
    border-radius: 999px;
    padding: .55rem 1rem;
    font-size: .84rem;
    font-weight: 600;
}

[data-theme="streaming"] .ad-filters-btn.active {
    background: color-mix(in srgb, var(--sv-type-ad, #19bc9c) 18%, var(--sv-elevated, #24242f));
    border-color: var(--sv-type-ad, #19bc9c);
    color: var(--sv-type-ad, #19bc9c);
}

/* ---------- Category chips: circular colored icon, KTU-Notes-style ---------- */
[data-theme="streaming"] .ad-cat-chip-scroller {
    display: flex;
    gap: 1.1rem;
    overflow-x: auto;
    padding: .2rem .1rem 1rem;
    margin-bottom: .25rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

[data-theme="streaming"] .ad-cat-chip-scroller::-webkit-scrollbar {
    display: none;
}

[data-theme="streaming"] .ad-cat-chip {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    width: 64px;
    text-decoration: none;
}

[data-theme="streaming"] .ad-cat-chip-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--chip-color) 16%, var(--sv-elevated, #24242f));
    color: var(--chip-color);
    border: 2px solid transparent;
    transition: border-color .15s ease, transform .15s ease;
}

[data-theme="streaming"] .ad-cat-chip.active .ad-cat-chip-icon {
    border-color: var(--chip-color);
    transform: translateY(-2px);
}

[data-theme="streaming"] .ad-cat-chip-label {
    font-size: .72rem;
    font-weight: 600;
    text-align: center;
    color: var(--sv-text, #f5f5f7);
    line-height: 1.2;
}

[data-theme="streaming"] .ad-cat-chip-count {
    font-size: .64rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.5));
}

/* ---------- Promo banner: static single message, no rotation. Trimmed to a slim strip
   (was a tall gradient card with inert decorative dots) per client feedback that it took
   up space without adding value. ---------- */
[data-theme="streaming"] .ad-promo-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--sv-type-ad, #19bc9c) 30%, var(--sv-surface, #16161d)), var(--sv-surface, #16161d));
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: var(--sv-radius, 14px);
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    overflow: hidden;
}

[data-theme="streaming"] .ad-promo-banner-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: .15rem;
}

[data-theme="streaming"] .ad-promo-banner-subtitle {
    font-size: .8rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.7));
    margin-bottom: 0;
}

[data-theme="streaming"] .ad-promo-banner-cta {
    display: inline-block;
    flex-shrink: 0;
    background: var(--sv-text, #f5f5f7);
    color: var(--sv-stream-bg, #07080c);
    font-weight: 700;
    font-size: .84rem;
    padding: .55rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
}

/* ---------- Featured Ads rail: widened so featured listings still stand out visually
   against the now-larger regular grid cards below ---------- */
[data-theme="streaming"] .ad-featured-rail {
    margin-bottom: 2rem;
}

[data-theme="streaming"] .ad-featured-scroller {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .3rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

[data-theme="streaming"] .ad-featured-scroller::-webkit-scrollbar {
    display: none;
}

[data-theme="streaming"] .ad-featured-item {
    flex: 0 0 220px;
}

/* ---------- Grid: fewer, bigger columns for a more marketplace-like feel (client
   feedback: cards were too small). Still denser than one column per the earlier explicit
   "show more ads" direction — a middle ground between the two requests. ---------- */
[data-theme="streaming"] .ad-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

@media (min-width: 576px) {
    [data-theme="streaming"] .ad-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 992px) {
    [data-theme="streaming"] .ad-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---------- Ad card: price is the dominant element ---------- */
[data-theme="streaming"] .ad-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: var(--sv-radius, 14px);
    overflow: hidden;
    height: 100%;
}

[data-theme="streaming"] .ad-card-photo {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--sv-elevated, #24242f);
}

[data-theme="streaming"] .ad-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-theme="streaming"] .ad-card-photo-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sv-stream-muted, rgba(245,245,247,.35));
}

[data-theme="streaming"] .ad-card-favorite {
    position: absolute;
    top: .4rem;
    right: .4rem;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(10,10,14,.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

[data-theme="streaming"] .ad-card-favorite svg {
    width: 13px;
    height: 13px;
}

[data-theme="streaming"] .ad-card-premium-badge {
    position: absolute;
    top: .4rem;
    left: .4rem;
    background: var(--sv-stream-accent, #ffc400);
    color: var(--sv-stream-accent-ink, #1a1306);
    font-size: .6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: .18rem .45rem;
    border-radius: 999px;
}

[data-theme="streaming"] .ad-card-favorite.is-active {
    color: var(--sv-accent-2, #ff5a5f);
}

[data-theme="streaming"] .ad-card-body {
    padding: .85rem .9rem 1rem;
}

[data-theme="streaming"] .ad-card-price {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--sv-type-ad, #19bc9c);
    text-decoration: none;
    margin-bottom: .25rem;
}

[data-theme="streaming"] .ad-card-title {
    font-size: .92rem;
    font-weight: 600;
    margin: 0 0 .45rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="streaming"] .ad-card-title a {
    color: var(--sv-text, #f5f5f7);
    text-decoration: none;
}

[data-theme="streaming"] .ad-card-meta {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

[data-theme="streaming"] .ad-card-meta-item {
    display: block;
    font-size: .74rem;
    line-height: 1.35;
    color: var(--sv-stream-muted, rgba(245,245,247,.6));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="streaming"] .ad-card-meta-views {
    color: var(--sv-stream-muted, rgba(245,245,247,.45));
}

/* ---------- Filters bottom sheet ---------- */
[data-theme="streaming"] .ad-filters-offcanvas.offcanvas {
    background: var(--sv-surface, #16161d);
    color: var(--sv-text, #f5f5f7);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    max-height: 85vh;
}

[data-theme="streaming"] .ad-filters-offcanvas .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
}

[data-theme="streaming"] .ad-filter-group {
    margin-bottom: 1.25rem;
}

[data-theme="streaming"] .ad-filter-label {
    display: block;
    font-weight: 700;
    font-size: .86rem;
    margin-bottom: .5rem;
}

[data-theme="streaming"] .ad-filter-range {
    display: flex;
    align-items: center;
    gap: .6rem;
}

[data-theme="streaming"] .ad-filter-range-sep {
    color: var(--sv-stream-muted, rgba(245,245,247,.5));
}

[data-theme="streaming"] .ad-filters-offcanvas .form-control,
[data-theme="streaming"] .ad-filters-offcanvas .form-select {
    background: var(--sv-elevated, #24242f);
    border: 1px solid var(--sv-border, rgba(255,255,255,.1));
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .ad-filters-offcanvas .form-control:focus,
[data-theme="streaming"] .ad-filters-offcanvas .form-select:focus {
    background: var(--sv-elevated, #24242f);
    border-color: var(--sv-type-ad, #19bc9c);
    color: var(--sv-text, #f5f5f7);
    box-shadow: none;
}

[data-theme="streaming"] .ad-filter-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1.5rem;
}

[data-theme="streaming"] .ad-filter-reset-btn,
[data-theme="streaming"] .ad-filter-apply-btn {
    flex: 1;
    text-align: center;
    border-radius: 999px;
    padding: .65rem 1rem;
    font-weight: 700;
    font-size: .9rem;
}

[data-theme="streaming"] .ad-filter-reset-btn {
    background: var(--sv-elevated, #24242f);
    border: 1px solid var(--sv-border, rgba(255,255,255,.1));
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .ad-filter-apply-btn {
    background: var(--sv-type-ad, #19bc9c);
    border: none;
    color: #06231c;
}

/* =====================================================================
   14. CLASSIFIED ADS MARKETPLACE (single-ad detail page)
   ===================================================================== */

/* ---------- Price block ---------- */
[data-theme="streaming"] .ad-detail-price-block {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

[data-theme="streaming"] .ad-detail-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sv-type-ad, #19bc9c);
}

[data-theme="streaming"] .ad-detail-negotiable-badge {
    background: color-mix(in srgb, var(--sv-type-ad, #19bc9c) 16%, var(--sv-elevated, #24242f));
    color: var(--sv-type-ad, #19bc9c);
    font-size: .78rem;
    font-weight: 700;
    padding: .3rem .7rem;
    border-radius: 999px;
}

/* ---------- Gallery ---------- */
[data-theme="streaming"] .ad-gallery {
    margin-bottom: 1.25rem;
}

[data-theme="streaming"] .ad-gallery-main {
    position: relative;
    display: block;
    border-radius: var(--sv-radius, 14px);
    overflow: hidden;
    background: var(--sv-elevated, #24242f);
    aspect-ratio: 4 / 3;
}

[data-theme="streaming"] .ad-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-theme="streaming"] .ad-gallery-count {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: rgba(10,10,14,.65);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: .25rem .6rem;
    border-radius: 999px;
}

[data-theme="streaming"] .ad-gallery-expand {
    position: absolute;
    bottom: .75rem;
    right: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(10,10,14,.65);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: .35rem .7rem;
    border-radius: 999px;
}

[data-theme="streaming"] .ad-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    margin-top: .5rem;
}

[data-theme="streaming"] .ad-gallery-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: var(--sv-elevated, #24242f);
}

[data-theme="streaming"] .ad-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-theme="streaming"] .ad-gallery-thumb-overflow {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,10,14,.6);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

/* ---------- Meta line: published · views · ID ---------- */
[data-theme="streaming"] .ad-detail-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .9rem;
    font-size: .82rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.65));
    margin-bottom: 1.25rem;
}

/* ---------- Info grid ---------- */
[data-theme="streaming"] .ad-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: var(--sv-radius, 14px);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
}

[data-theme="streaming"] .ad-detail-info-item {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

[data-theme="streaming"] .ad-detail-info-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--sv-stream-muted, rgba(245,245,247,.55));
}

[data-theme="streaming"] .ad-detail-info-value {
    font-size: .92rem;
    font-weight: 600;
    color: var(--sv-text, #f5f5f7);
    text-decoration: none;
}

[data-theme="streaming"] .ad-detail-info-link {
    font-size: .78rem;
    font-weight: 600;
    color: var(--sv-type-ad, #19bc9c);
    text-decoration: none;
}

/* ---------- Action bar: Call / SMS / Message ---------- */
[data-theme="streaming"] .ad-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

[data-theme="streaming"] .ad-detail-action-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
    flex: 1;
    justify-content: center;
}

[data-theme="streaming"] .ad-detail-action-outline {
    background: transparent;
    border: 1px solid var(--sv-type-ad, #19bc9c);
    color: var(--sv-type-ad, #19bc9c);
}

[data-theme="streaming"] .ad-detail-action-fill {
    background: var(--sv-text, #f5f5f7);
    border: none;
    color: var(--sv-stream-bg, #07080c);
}

[data-theme="streaming"] .ad-detail-action-contact {
    font-size: .88rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.7));
}

/* =====================================================================
   15. MY ACTIVITY DASHBOARD
   ===================================================================== */

[data-theme="streaming"] .ma-create-new-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--sv-stream-accent, #ffc400);
    color: var(--sv-stream-accent-ink, #1a1306);
    font-weight: 700;
    font-size: .86rem;
    padding: .55rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    flex-shrink: 0;
}

[data-theme="streaming"] .ma-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

@media (min-width: 768px) {
    [data-theme="streaming"] .ma-stats-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

[data-theme="streaming"] .ma-stat-card {
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: var(--sv-radius, 14px);
    padding: .9rem .75rem;
    text-align: center;
}

[data-theme="streaming"] .ma-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .ma-stat-label {
    font-size: .7rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.6));
    text-transform: uppercase;
    letter-spacing: .02em;
}

[data-theme="streaming"] .ma-stat-views .ma-stat-value { color: var(--sv-type-forum, #3b82f6); }
[data-theme="streaming"] .ma-stat-reactions .ma-stat-value { color: var(--sv-accent-2, #ff5a5f); }
[data-theme="streaming"] .ma-stat-comments .ma-stat-value { color: var(--sv-type-article, #8b5cf6); }
[data-theme="streaming"] .ma-stat-drafts .ma-stat-value { color: var(--sv-stream-muted, rgba(245,245,247,.7)); }
[data-theme="streaming"] .ma-stat-pending .ma-stat-value { color: var(--sv-type-event, #ff7a00); }

[data-theme="streaming"] .ma-toolbar {
    display: flex;
    gap: .6rem;
}

[data-theme="streaming"] .ma-search-form {
    flex: 1;
    display: flex;
    align-items: center;
    gap: .6rem;
    background: var(--sv-elevated, #24242f);
    border: 1px solid var(--sv-border, rgba(255,255,255,.1));
    border-radius: 999px;
    padding: .65rem 1.1rem;
}

[data-theme="streaming"] .ma-search-icon {
    flex-shrink: 0;
    color: var(--sv-stream-muted, rgba(245,245,247,.6));
}

[data-theme="streaming"] .ma-search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--sv-text, #f5f5f7);
    font-size: .92rem;
}

[data-theme="streaming"] .ma-search-input:focus {
    outline: none;
}

[data-theme="streaming"] .ma-format-scroller {
    display: flex;
    gap: .6rem;
    overflow-x: auto;
    padding-bottom: .3rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

[data-theme="streaming"] .ma-format-scroller::-webkit-scrollbar {
    display: none;
}

[data-theme="streaming"] .ma-format-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--sv-elevated, #24242f);
    border: 1px solid var(--sv-border, rgba(255,255,255,.1));
    color: var(--sv-text, #f5f5f7);
    border-radius: 999px;
    padding: .5rem 1rem .5rem .6rem;
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

[data-theme="streaming"] .ma-format-chip-icon {
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--chip-color, var(--sv-stream-accent, #ffc400)) 22%, var(--sv-surface, #16161d));
    color: var(--chip-color, var(--sv-stream-accent, #ffc400));
}

[data-theme="streaming"] .ma-format-chip-icon svg {
    width: 15px;
    height: 15px;
}

[data-theme="streaming"] .ma-format-chip.active {
    background: color-mix(in srgb, var(--chip-color, var(--sv-stream-accent, #ffc400)) 18%, var(--sv-elevated, #24242f));
    border-color: var(--chip-color, var(--sv-stream-accent, #ffc400));
}

[data-theme="streaming"] .ma-format-chip.is-disabled {
    opacity: .5;
}

[data-theme="streaming"] .ma-format-chip-soon {
    font-size: .64rem;
    font-weight: 700;
    background: var(--sv-surface, #16161d);
    padding: .1rem .4rem;
    border-radius: 999px;
}

[data-theme="streaming"] .ma-status-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: transparent;
    border: 1px solid var(--sv-border, rgba(255,255,255,.12));
    color: var(--sv-stream-muted, rgba(245,245,247,.75));
    border-radius: 999px;
    padding: .4rem .85rem;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
}

[data-theme="streaming"] .ma-status-chip.active {
    background: var(--sv-text, #f5f5f7);
    border-color: var(--sv-text, #f5f5f7);
    color: var(--sv-stream-bg, #07080c);
}

[data-theme="streaming"] .ma-status-chip-count {
    font-size: .7rem;
    opacity: .7;
}

[data-theme="streaming"] .ma-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

[data-theme="streaming"] .ma-row {
    display: flex;
    gap: .9rem;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: var(--sv-radius, 14px);
    padding: .9rem;
}

[data-theme="streaming"] .ma-row-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

[data-theme="streaming"] .ma-row-body {
    flex: 1;
    min-width: 0;
}

[data-theme="streaming"] .ma-row-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .35rem;
}

[data-theme="streaming"] .ma-row-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

[data-theme="streaming"] .ma-badge {
    font-size: .68rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: 999px;
}

[data-theme="streaming"] .ma-status-badge-live { background: color-mix(in srgb, var(--sv-status-live, #22c55e) 20%, transparent); color: var(--sv-status-live, #22c55e); }
[data-theme="streaming"] .ma-status-badge-draft { background: color-mix(in srgb, var(--sv-status-draft, #94a3b8) 20%, transparent); color: var(--sv-status-draft, #94a3b8); }
[data-theme="streaming"] .ma-status-badge-pending { background: color-mix(in srgb, var(--sv-status-pending, #eab308) 20%, transparent); color: var(--sv-status-pending, #eab308); }
[data-theme="streaming"] .ma-status-badge-scheduled { background: color-mix(in srgb, var(--sv-status-scheduled, #3b82f6) 20%, transparent); color: var(--sv-status-scheduled, #3b82f6); }

[data-theme="streaming"] .ma-badge-format {
    background: var(--sv-elevated, #24242f);
    color: var(--sv-stream-muted, rgba(245,245,247,.7));
}

[data-theme="streaming"] .ma-badge-sold {
    background: var(--sv-text, #f5f5f7);
    color: var(--sv-stream-bg, #07080c);
}

[data-theme="streaming"] .ma-row-menu-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--sv-border, rgba(255,255,255,.12));
    background: transparent;
    color: var(--sv-text, #f5f5f7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-theme="streaming"] .ma-row-title {
    font-size: .92rem;
    font-weight: 700;
    margin: 0 0 .2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="streaming"] .ma-row-price {
    font-size: .9rem;
    font-weight: 800;
    color: var(--sv-type-ad, #19bc9c);
    margin-bottom: .2rem;
}

[data-theme="streaming"] .ma-row-date {
    font-size: .78rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.55));
    margin-bottom: .5rem;
}

[data-theme="streaming"] .ma-row-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1rem;
    font-size: .76rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.65));
}

/* =====================================================================
   16. ACCOUNT PAGE ADDITIONS
   ===================================================================== */

[data-theme="streaming"] .account-profile-card {
    flex-wrap: wrap;
}

[data-theme="streaming"] .account-edit-profile-btn {
    margin-inline-start: auto;
    background: var(--sv-elevated, #24242f);
    border: 1px solid var(--sv-border, rgba(255,255,255,.1));
    color: var(--sv-text, #f5f5f7);
    font-weight: 600;
    font-size: .82rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    flex-shrink: 0;
}

[data-theme="streaming"] .account-stats-row {
    display: flex;
    max-width: 640px;
    margin: 0 auto 1.5rem;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: var(--sv-radius, 14px);
    overflow: hidden;
}

[data-theme="streaming"] .account-stat {
    flex: 1;
    text-align: center;
    padding: .9rem .5rem;
    text-decoration: none;
    border-inline-end: 1px solid var(--sv-border, rgba(255,255,255,.08));
}

[data-theme="streaming"] .account-stat:last-child {
    border-inline-end: none;
}

[data-theme="streaming"] .account-stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .account-stat-label {
    font-size: .72rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.6));
}

[data-theme="streaming"] .account-section-title-plain {
    max-width: 640px;
    margin: 0 auto .6rem;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--sv-stream-muted, rgba(245,245,247,.5));
    padding-inline-start: .25rem;
}

[data-theme="streaming"] .account-quick-access {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .6rem;
    max-width: 640px;
    margin: 0 auto;
}

[data-theme="streaming"] .account-quick-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: var(--sv-radius, 14px);
    padding: .9rem .4rem;
    text-decoration: none;
    color: var(--sv-text, #f5f5f7);
    font-size: .72rem;
    font-weight: 600;
    text-align: center;
}

[data-theme="streaming"] .account-quick-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--sv-stream-accent, #ffc400) 18%, var(--sv-elevated, #24242f));
    color: var(--sv-stream-accent, #ffc400);
}

[data-theme="streaming"] .account-quick-tile-badge {
    position: absolute;
    top: .4rem;
    right: .4rem;
    background: var(--sv-type-alert, #ef4444);
    color: #fff;
    font-size: .64rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .3rem;
}

[data-theme="streaming"] .account-content-summary {
    display: flex;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: var(--sv-radius, 14px);
    overflow: hidden;
}

[data-theme="streaming"] .account-content-summary-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .1rem;
    padding: .9rem .5rem;
    text-decoration: none;
    border-inline-end: 1px solid var(--sv-border, rgba(255,255,255,.08));
}

[data-theme="streaming"] .account-content-summary-item:last-child {
    border-inline-end: none;
}

[data-theme="streaming"] .account-content-summary-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .account-content-summary-label {
    font-size: .72rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.6));
}

/* =====================================================================
   17. DISCUSSION FORUMS
   ===================================================================== */

[data-theme="streaming"] .forums-stats-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.65));
}

[data-theme="streaming"] .forums-stats-inline strong {
    color: var(--sv-text, #f5f5f7);
    font-weight: 800;
}

[data-theme="streaming"] .forums-stats-dot {
    color: var(--sv-stream-muted, rgba(245,245,247,.35));
    font-size: .7rem;
}

/* ---------- Category carousel: swipeable icon cards with two stat lines, own markup/CSS
   (not the .ad-cat-chip* classes shared by Classified Ads/Events) so Forums keeps its own
   identity. Client reference: dealabs.com/discussions. ---------- */
[data-theme="streaming"] .forum-cat-carousel {
    position: relative;
}

[data-theme="streaming"] .forum-cat-swiper {
    padding-bottom: 1.75rem;
}

[data-theme="streaming"] .forum-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .4rem;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: var(--sv-radius, 14px);
    padding: 1rem .6rem;
    text-decoration: none;
    height: 100%;
}

[data-theme="streaming"] .forum-cat-card.active {
    border-color: var(--card-color, var(--sv-type-forum, #3b82f6));
    background: color-mix(in srgb, var(--card-color, var(--sv-type-forum, #3b82f6)) 12%, var(--sv-surface, #16161d));
}

[data-theme="streaming"] .forum-cat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--card-color, var(--sv-type-forum, #3b82f6)) 16%, var(--sv-elevated, #24242f));
    color: var(--card-color, var(--sv-type-forum, #3b82f6));
}

[data-theme="streaming"] .forum-cat-card-label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--sv-text, #f5f5f7);
    line-height: 1.25;
}

[data-theme="streaming"] .forum-cat-card-stats {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    font-size: .66rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.55));
}

[data-theme="streaming"] .forum-cat-swiper .swiper-pagination-bullet {
    background: var(--sv-stream-muted, rgba(245,245,247,.3));
    opacity: 1;
}

[data-theme="streaming"] .forum-cat-swiper .swiper-pagination-bullet-active {
    background: var(--sv-type-forum, #3b82f6);
}

[data-theme="streaming"] .forums-tab-row {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    padding-bottom: .3rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

[data-theme="streaming"] .forums-tab-row::-webkit-scrollbar {
    display: none;
}

[data-theme="streaming"] .forums-tab {
    flex-shrink: 0;
    background: var(--sv-elevated, #24242f);
    border: 1px solid var(--sv-border, rgba(255,255,255,.1));
    color: var(--sv-stream-muted, rgba(245,245,247,.75));
    border-radius: 999px;
    padding: .45rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

[data-theme="streaming"] .forums-tab.active {
    background: var(--sv-type-forum, #3b82f6);
    border-color: var(--sv-type-forum, #3b82f6);
    color: #fff;
}

[data-theme="streaming"] .forums-topic-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

[data-theme="streaming"] .forum-topic-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-left: 3px solid var(--cat-color, var(--sv-type-forum, #3b82f6));
    border-radius: var(--sv-radius, 14px);
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .forum-topic-row.is-pinned {
    border-color: color-mix(in srgb, var(--sv-stream-accent, #ffc400) 40%, var(--sv-border, rgba(255,255,255,.08)));
    background: color-mix(in srgb, var(--sv-stream-accent, #ffc400) 5%, var(--sv-surface, #16161d));
}

[data-theme="streaming"] .forum-topic-pin {
    flex-shrink: 0;
    color: var(--sv-stream-accent, #ffc400);
    display: inline-flex;
}

[data-theme="streaming"] .forum-topic-main {
    flex: 1;
    min-width: 0;
}

[data-theme="streaming"] .forum-topic-top {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .25rem;
}

[data-theme="streaming"] .forum-topic-category {
    font-size: .68rem;
    font-weight: 700;
    color: var(--cat-color, var(--sv-type-forum, #3b82f6));
    background: color-mix(in srgb, var(--cat-color, var(--sv-type-forum, #3b82f6)) 16%, transparent);
    padding: .15rem .55rem;
    border-radius: 999px;
}

[data-theme="streaming"] .forum-topic-unanswered {
    font-size: .68rem;
    font-weight: 700;
    color: var(--sv-type-event, #ff7a00);
}

[data-theme="streaming"] .forum-topic-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="streaming"] .forum-topic-excerpt {
    font-size: .82rem;
    line-height: 1.45;
    color: var(--sv-stream-muted, rgba(245,245,247,.65));
    margin: 0 0 .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="streaming"] .forum-topic-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    font-size: .76rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.6));
}

[data-theme="streaming"] .forum-topic-author {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

[data-theme="streaming"] .forum-topic-author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

[data-theme="streaming"] .forum-topic-stats {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .35rem;
    font-size: .74rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.65));
    text-align: right;
}

[data-theme="streaming"] .forum-topic-stat {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

[data-theme="streaming"] .forum-topic-stats strong {
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .forum-topic-activity {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.5));
}

[data-theme="streaming"] .forum-topic-activity-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    [data-theme="streaming"] .forum-topic-row {
        flex-wrap: wrap;
        padding: 1rem;
    }

    [data-theme="streaming"] .forum-topic-stats {
        flex-direction: row;
        align-items: center;
        width: 100%;
        margin-left: calc(26px + .75rem);
        padding-top: .35rem;
        border-top: 1px solid var(--sv-border, rgba(255,255,255,.06));
    }
}

/* =====================================================================
   18. EVENTS
   ===================================================================== */

/* ---------- Hero Card: static sponsored placeholder ---------- */
[data-theme="streaming"] .events-hero-card {
    position: relative;
    background: linear-gradient(135deg, color-mix(in srgb, var(--sv-type-event, #ff7a00) 35%, var(--sv-surface, #16161d)), var(--sv-surface, #16161d));
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.75rem;
    overflow: hidden;
}

[data-theme="streaming"] .events-hero-badge {
    display: inline-block;
    background: rgba(10,10,14,.5);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .25rem .6rem;
    border-radius: 999px;
    margin-bottom: .75rem;
}

[data-theme="streaming"] .events-hero-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: .35rem;
    max-width: 26ch;
}

[data-theme="streaming"] .events-hero-subtitle {
    font-size: .86rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.75));
    margin-bottom: 1.1rem;
    max-width: 30ch;
}

[data-theme="streaming"] .events-hero-cta {
    display: inline-block;
    background: var(--sv-text, #f5f5f7);
    color: var(--sv-stream-bg, #07080c);
    font-weight: 700;
    font-size: .84rem;
    padding: .6rem 1.3rem;
    border-radius: 999px;
    text-decoration: none;
}

/* ---------- Event grid + cards ---------- */
[data-theme="streaming"] .events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    [data-theme="streaming"] .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    [data-theme="streaming"] .events-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

[data-theme="streaming"] .events-native-slot {
    grid-column: 1 / -1;
}

[data-theme="streaming"] .event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: var(--sv-radius, 14px);
    overflow: hidden;
    height: 100%;
}

[data-theme="streaming"] .event-card-photo {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--sv-elevated, #24242f);
}

[data-theme="streaming"] .event-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-theme="streaming"] .event-card-photo-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sv-stream-muted, rgba(245,245,247,.35));
}

[data-theme="streaming"] .event-card-date-badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    background: #fff;
    color: #1a1306;
    border-radius: 10px;
    padding: .3rem .1rem;
    width: 42px;
    text-align: center;
    line-height: 1.1;
}

[data-theme="streaming"] .event-card-date-day {
    display: block;
    font-size: 1rem;
    font-weight: 800;
}

[data-theme="streaming"] .event-card-date-month {
    display: block;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sv-type-event, #ff7a00);
}

[data-theme="streaming"] .event-card-body {
    padding: .75rem .9rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

[data-theme="streaming"] .event-card-category {
    display: inline-block;
    align-self: flex-start;
    font-size: .66rem;
    font-weight: 700;
    color: var(--cat-color, var(--sv-type-event, #ff7a00));
    background: color-mix(in srgb, var(--cat-color, var(--sv-type-event, #ff7a00)) 16%, transparent);
    padding: .18rem .5rem;
    border-radius: 999px;
    margin-bottom: .4rem;
}

[data-theme="streaming"] .event-card-title {
    font-size: .88rem;
    font-weight: 700;
    margin: 0 0 .35rem;
    line-height: 1.35;
}

[data-theme="streaming"] .event-card-title a {
    color: var(--sv-text, #f5f5f7);
    text-decoration: none;
}

[data-theme="streaming"] .event-card-meta-item {
    font-size: .76rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.65));
    margin-bottom: .15rem;
}

[data-theme="streaming"] .event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: .6rem;
}

[data-theme="streaming"] .event-card-attendees {
    font-size: .74rem;
    font-weight: 600;
    color: var(--sv-stream-muted, rgba(245,245,247,.7));
}

[data-theme="streaming"] .event-card-share {
    background: transparent;
    border: 1px solid var(--sv-border, rgba(255,255,255,.12));
    color: var(--sv-stream-muted, rgba(245,245,247,.75));
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================================
   19. CATEGORIES HUB — richer format cards, Latest Updates, Quick Access
   ===================================================================== */

[data-theme="streaming"] .cat-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    [data-theme="streaming"] .cat-hub-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

[data-theme="streaming"] .cat-hub-card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: 18px;
    padding: 1.25rem 1rem;
    text-decoration: none;
    color: var(--sv-text, #f5f5f7);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

[data-theme="streaming"] .cat-hub-card:hover,
[data-theme="streaming"] .cat-hub-card:focus {
    transform: translateY(-3px);
    border-color: var(--tile-color);
    box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--tile-color) 50%, transparent);
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .cat-hub-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--tile-color) 20%, var(--sv-elevated, #24242f));
    color: var(--tile-color);
}

[data-theme="streaming"] .cat-hub-card-icon svg {
    width: 26px;
    height: 26px;
}

[data-theme="streaming"] .cat-hub-card-label {
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.25;
}

[data-theme="streaming"] .cat-hub-card-desc {
    font-size: .78rem;
    line-height: 1.4;
    color: var(--sv-stream-muted, rgba(245,245,247,.6));
    flex-grow: 1;
}

[data-theme="streaming"] .cat-hub-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .25rem;
}

[data-theme="streaming"] .cat-hub-card-count {
    font-size: .72rem;
    font-weight: 700;
    color: var(--sv-stream-muted, rgba(245,245,247,.55));
}

[data-theme="streaming"] .cat-hub-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--tile-color);
    color: #fff;
    flex-shrink: 0;
}

[data-theme="streaming"] .cat-hub-card-arrow svg {
    width: 16px;
    height: 16px;
}

/* ---------- Section heading shared by Latest Updates / Quick Access ---------- */
[data-theme="streaming"] .cat-hub-section {
    margin-bottom: 2rem;
}

[data-theme="streaming"] .cat-hub-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .85rem;
}

[data-theme="streaming"] .cat-hub-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}

[data-theme="streaming"] .cat-hub-viewall {
    font-size: .8rem;
    font-weight: 700;
    color: var(--sv-stream-accent, #ffc400);
    text-decoration: none;
}

/* ---------- Quick Access ---------- */
[data-theme="streaming"] .cat-hub-quick-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

@media (min-width: 576px) {
    [data-theme="streaming"] .cat-hub-quick-row {
        grid-template-columns: repeat(5, 1fr);
    }
}

[data-theme="streaming"] .cat-hub-quick-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: 14px;
    padding: 1rem .5rem;
    text-decoration: none;
    color: var(--sv-text, #f5f5f7);
    text-align: center;
}

[data-theme="streaming"] .cat-hub-quick-icon {
    position: relative;
    display: inline-flex;
    color: var(--sv-stream-muted, rgba(245,245,247,.75));
}

[data-theme="streaming"] .cat-hub-quick-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--sv-accent-2, #ff5a5f);
    color: #fff;
    font-size: .58rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-theme="streaming"] .cat-hub-quick-label {
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.2;
}

/* =====================================================================
   20. ARTICLES — Featured Story hero + per-category carousels
   ===================================================================== */

[data-theme="streaming"] .featured-story-card {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    background: var(--sv-elevated, #24242f);
    aspect-ratio: 16 / 9;
    text-decoration: none;
    color: #fff;
}

@media (min-width: 768px) {
    [data-theme="streaming"] .featured-story-card {
        aspect-ratio: 21 / 9;
    }
}

[data-theme="streaming"] .featured-story-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-theme="streaming"] .featured-story-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.05) 100%);
}

[data-theme="streaming"] .featured-story-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--sv-stream-accent, #ffc400);
    color: var(--sv-stream-accent-ink, #1a1306);
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: .25rem .6rem;
    border-radius: 999px;
    margin-bottom: .6rem;
}

[data-theme="streaming"] .featured-story-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .4rem;
    max-width: 44ch;
}

@media (min-width: 768px) {
    [data-theme="streaming"] .featured-story-title {
        font-size: 1.9rem;
    }
}

[data-theme="streaming"] .featured-story-summary {
    font-size: .88rem;
    color: rgba(255,255,255,.85);
    margin-bottom: .6rem;
    max-width: 60ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="streaming"] .featured-story-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .78rem;
    color: rgba(255,255,255,.7);
}

[data-theme="streaming"] .featured-story-author {
    font-weight: 700;
    color: #fff;
}

/* =====================================================================
   21. COMMUNITY BLOG — simple, editorial resident-storytelling feed
   (Google News/MSN-style reverse-chronological feed — no sections, no
   carousels, deliberately distinct from Articles/Events' treatment)
   ===================================================================== */

[data-theme="streaming"] .community-welcome-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: color-mix(in srgb, var(--sv-type-article, #8b5cf6) 10%, var(--sv-surface, #16161d));
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
}

[data-theme="streaming"] .community-welcome-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: .25rem;
}

[data-theme="streaming"] .community-welcome-subtitle {
    font-size: .88rem;
    font-style: italic;
    color: var(--sv-stream-muted, rgba(245,245,247,.7));
    margin: 0 0 .35rem;
}

[data-theme="streaming"] .community-welcome-intro {
    font-size: .84rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.6));
    max-width: 46ch;
    margin: 0;
}

[data-theme="streaming"] .community-welcome-cta {
    display: inline-block;
    flex-shrink: 0;
    background: var(--sv-type-article, #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: .86rem;
    padding: .65rem 1.3rem;
    border-radius: 999px;
    text-decoration: none;
}

/* ---------- Category pills: own identity, not Forum's carousel or Ads' circular chips ---------- */
[data-theme="streaming"] .cb-cat-pill-scroller {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .3rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

[data-theme="streaming"] .cb-cat-pill-scroller::-webkit-scrollbar {
    display: none;
}

[data-theme="streaming"] .cb-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.1));
    border-radius: 999px;
    padding: .5rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--sv-stream-muted, rgba(245,245,247,.75));
    text-decoration: none;
    white-space: nowrap;
}

[data-theme="streaming"] .cb-cat-pill.active {
    background: var(--sv-text, #f5f5f7);
    border-color: var(--sv-text, #f5f5f7);
    color: var(--sv-stream-bg, #07080c);
}

[data-theme="streaming"] .cb-cat-pill-icon {
    display: inline-flex;
    color: var(--pill-color, var(--sv-type-article, #8b5cf6));
}

[data-theme="streaming"] .cb-cat-pill.active .cb-cat-pill-icon {
    color: inherit;
}

[data-theme="streaming"] .cb-cat-pill-icon svg {
    width: 15px;
    height: 15px;
}

/* ---------- Feed ---------- */
[data-theme="streaming"] .cb-feed {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

[data-theme="streaming"] .cb-feed-card {
    position: relative;
    display: flex;
    gap: 1rem;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: 16px;
    padding: .9rem;
}

[data-theme="streaming"] .cb-feed-card-image {
    flex: 0 0 140px;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--sv-elevated, #24242f);
}

[data-theme="streaming"] .cb-feed-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-theme="streaming"] .cb-feed-card-image-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sv-stream-muted, rgba(245,245,247,.35));
}

[data-theme="streaming"] .cb-feed-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

[data-theme="streaming"] .cb-feed-card-badge {
    align-self: flex-start;
    font-size: .64rem;
    font-weight: 700;
    color: var(--badge-color, var(--sv-type-article, #8b5cf6));
    background: color-mix(in srgb, var(--badge-color, var(--sv-type-article, #8b5cf6)) 16%, transparent);
    padding: .15rem .55rem;
    border-radius: 999px;
    margin-bottom: .35rem;
}

[data-theme="streaming"] .cb-feed-card-title {
    font-size: .96rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 .3rem;
}

[data-theme="streaming"] .cb-feed-card-title a {
    color: var(--sv-text, #f5f5f7);
    text-decoration: none;
}

[data-theme="streaming"] .cb-feed-card-excerpt {
    font-size: .8rem;
    line-height: 1.45;
    color: var(--sv-stream-muted, rgba(245,245,247,.65));
    margin: 0 0 .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="streaming"] .cb-feed-card-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem;
    font-size: .72rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.55));
}

[data-theme="streaming"] .cb-feed-card-author {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.75));
    font-weight: 600;
}

[data-theme="streaming"] .cb-feed-card-author-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

[data-theme="streaming"] .cb-feed-card-stat {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

[data-theme="streaming"] .cb-feed-card .ad-card-favorite {
    position: absolute;
    top: .7rem;
    right: .7rem;
}

@media (max-width: 480px) {
    [data-theme="streaming"] .cb-feed-card-image {
        flex-basis: 96px;
    }

    [data-theme="streaming"] .cb-feed-card-excerpt {
        display: none;
    }
}

[data-theme="streaming"] .cb-native-slot {
    margin: .25rem 0;
}

/* =====================================================================
   22. BUSINESS DIRECTORY — Google Business/TripAdvisor/Airbnb-style
   ===================================================================== */

[data-theme="streaming"] .biz-page-subtitle {
    font-size: .86rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.65));
    margin: 0;
}

/* ---------- Cards (own identity — not reusing Events' .event-card) ---------- */
[data-theme="streaming"] .biz-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: var(--sv-radius, 14px);
    overflow: hidden;
    height: 100%;
}

[data-theme="streaming"] .biz-card-photo {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--sv-elevated, #24242f);
}

[data-theme="streaming"] .biz-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-theme="streaming"] .biz-card-photo-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sv-stream-muted, rgba(245,245,247,.35));
}

[data-theme="streaming"] .biz-card-sponsored-badge {
    position: absolute;
    top: .6rem;
    left: .6rem;
    background: var(--sv-stream-accent, #ffc400);
    color: var(--sv-stream-accent-ink, #1a1306);
    font-size: .6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: .18rem .5rem;
    border-radius: 999px;
}

[data-theme="streaming"] .biz-card-logo {
    position: absolute;
    left: .7rem;
    bottom: -18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--sv-surface, #16161d);
    background: var(--sv-elevated, #24242f);
}

[data-theme="streaming"] .biz-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-theme="streaming"] .biz-card-body {
    padding: 1.5rem .9rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

[data-theme="streaming"] .biz-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
}

[data-theme="streaming"] .biz-card-title {
    font-size: .88rem;
    font-weight: 700;
    margin: 0 0 .35rem;
    line-height: 1.35;
}

[data-theme="streaming"] .biz-card-title a {
    color: var(--sv-text, #f5f5f7);
    text-decoration: none;
}

[data-theme="streaming"] .biz-card-status {
    flex-shrink: 0;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: .18rem .5rem;
    border-radius: 999px;
    white-space: nowrap;
}

[data-theme="streaming"] .biz-card-status.is-open {
    color: var(--sv-status-live, #22c55e);
    background: color-mix(in srgb, var(--sv-status-live, #22c55e) 16%, transparent);
}

[data-theme="streaming"] .biz-card-status.is-closed {
    color: var(--sv-type-alert, #ef4444);
    background: color-mix(in srgb, var(--sv-type-alert, #ef4444) 14%, transparent);
}

[data-theme="streaming"] .biz-card-category {
    display: inline-block;
    align-self: flex-start;
    font-size: .66rem;
    font-weight: 700;
    color: var(--cat-color, #ec4899);
    background: color-mix(in srgb, var(--cat-color, #ec4899) 16%, transparent);
    padding: .18rem .5rem;
    border-radius: 999px;
    margin-bottom: .4rem;
}

[data-theme="streaming"] .biz-card-meta-item {
    font-size: .76rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.65));
    margin-bottom: .15rem;
}

/* ---------- Featured Businesses rail ---------- */
[data-theme="streaming"] .biz-featured-rail {
    margin-bottom: 2rem;
}

[data-theme="streaming"] .biz-featured-scroller {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .3rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

[data-theme="streaming"] .biz-featured-scroller::-webkit-scrollbar {
    display: none;
}

[data-theme="streaming"] .biz-featured-item {
    flex: 0 0 220px;
}

/* ---------- Filters offcanvas additions (category radio list; base offcanvas/group/label/
   actions styling reused as-is from .ad-filters-offcanvas / .ad-filter-*) ---------- */
[data-theme="streaming"] .biz-filter-radio-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    max-height: 260px;
    overflow-y: auto;
}

[data-theme="streaming"] .biz-filter-radio {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .86rem;
    color: var(--sv-text, #f5f5f7);
}

/* ---------- Business profile page ---------- */
[data-theme="streaming"] .biz-profile-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: .5rem 0 1rem;
}

[data-theme="streaming"] .biz-profile-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--sv-surface, #16161d);
    background: var(--sv-elevated, #24242f);
    flex-shrink: 0;
}

[data-theme="streaming"] .biz-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-theme="streaming"] .biz-profile-status {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: .25rem .65rem;
    border-radius: 999px;
}

[data-theme="streaming"] .biz-profile-status.is-open {
    color: var(--sv-status-live, #22c55e);
    background: color-mix(in srgb, var(--sv-status-live, #22c55e) 16%, transparent);
}

[data-theme="streaming"] .biz-profile-status.is-closed {
    color: var(--sv-type-alert, #ef4444);
    background: color-mix(in srgb, var(--sv-type-alert, #ef4444) 14%, transparent);
}

[data-theme="streaming"] .biz-detail-section-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 1.75rem 0 .85rem;
}

[data-theme="streaming"] .biz-hours-list {
    display: flex;
    flex-direction: column;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: 14px;
    overflow: hidden;
}

[data-theme="streaming"] .biz-hours-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 1rem;
    font-size: .84rem;
    border-bottom: 1px solid var(--sv-border, rgba(255,255,255,.06));
}

[data-theme="streaming"] .biz-hours-list-row:last-child {
    border-bottom: none;
}

[data-theme="streaming"] .biz-hours-list-row.is-today {
    background: color-mix(in srgb, var(--sv-stream-accent, #ffc400) 6%, transparent);
    font-weight: 700;
}

[data-theme="streaming"] .biz-hours-list-day {
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .biz-hours-list-time {
    color: var(--sv-stream-muted, rgba(245,245,247,.65));
}

[data-theme="streaming"] .biz-hours-list-row.is-today .biz-hours-list-time {
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .biz-discover-more-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

@media (max-width: 576px) {
    [data-theme="streaming"] .biz-discover-more-row {
        grid-template-columns: 1fr;
    }
}

[data-theme="streaming"] .biz-discover-more-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: var(--sv-surface, #16161d);
    border: 1px solid var(--sv-border, rgba(255,255,255,.08));
    border-radius: 12px;
    padding: .85rem 1rem;
    text-decoration: none;
    color: var(--sv-text, #f5f5f7);
}

[data-theme="streaming"] .biz-discover-more-icon {
    display: inline-flex;
    color: #ec4899;
    flex-shrink: 0;
}

[data-theme="streaming"] .biz-discover-more-label {
    flex: 1;
    font-size: .84rem;
    font-weight: 600;
}

[data-theme="streaming"] .biz-discover-more-count {
    font-size: .74rem;
    font-weight: 700;
    color: var(--sv-stream-muted, rgba(245,245,247,.55));
}

/* ---------- Wizard: logo upload + structured hours (create.php) ---------- */
[data-theme="streaming"] .wizard-logo-upload {
    display: flex;
    align-items: center;
}

[data-theme="streaming"] .wizard-logo-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1.5px dashed var(--sv-border, rgba(255,255,255,.2));
    color: var(--sv-stream-muted, rgba(245,245,247,.55));
    cursor: pointer;
}

[data-theme="streaming"] .wizard-logo-preview {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: visible;
}

[data-theme="streaming"] .wizard-logo-preview img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

[data-theme="streaming"] .wizard-logo-remove {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: var(--sv-stream-bg, #07080c);
    color: var(--sv-text, #f5f5f7);
    line-height: 1;
    font-size: 1rem;
}

[data-theme="streaming"] .wizard-hours-table {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

[data-theme="streaming"] .wizard-hours-row {
    display: grid;
    grid-template-columns: 90px 1fr auto 1fr;
    align-items: center;
    gap: .5rem;
}

[data-theme="streaming"] .wizard-hours-day {
    font-size: .82rem;
    font-weight: 600;
}

[data-theme="streaming"] .wizard-hours-closed-toggle {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .74rem;
    color: var(--sv-stream-muted, rgba(245,245,247,.65));
    white-space: nowrap;
}

[data-theme="streaming"] .wizard-hours-time {
    min-width: 0;
}

[data-theme="streaming"] .wizard-hours-sep {
    color: var(--sv-stream-muted, rgba(245,245,247,.4));
}

@media (max-width: 480px) {
    [data-theme="streaming"] .wizard-hours-row {
        grid-template-columns: 1fr;
        gap: .3rem;
        padding-bottom: .5rem;
        border-bottom: 1px solid var(--sv-border, rgba(255,255,255,.06));
    }
}

/* =====================================================================
   SEARCH & EXPLORE PAGES — LIGHT THEME (client-supplied exact mockup)
   Everything else on the site stays dark; these two pages are forced to
   the app's existing light-mode token set (see the LIGHT MODE block near
   the top of this file) regardless of the visitor's own dark/light
   toggle, because every component here (.mobile-header, .sv-bottom-nav,
   .cat-hub-*, .ad-card-favorite, rails, etc.) is already built on the
   --sv-* custom properties - overriding the tokens on body re-colours
   the whole page automatically, no per-component overrides needed.
   --ld-primary is a NEW indigo token used only for the elements the
   mockup shows in that exact colour (search button, "View all" links,
   sort control) - the amber/orange --sv-accent is left alone so the
   bottom-nav active state / Publish FAB keep matching the mock's orange.
   ===================================================================== */
html[data-theme="streaming"] body.body-search-page,
html[data-theme="streaming"] body.body-explore-page {
    --sv-stream-bg: #f4f5f7;
    --sv-stream-bg-2: #ffffff;
    --sv-stream-card: #ffffff;
    --sv-stream-elevated: #eceef2;
    --sv-stream-border: rgba(20, 23, 31, .10);
    --sv-stream-border-strong: rgba(20, 23, 31, .18);
    --sv-stream-text: #14171f;
    --sv-stream-muted: #5b6170;
    --sv-stream-accent: #d97706;
    --sv-stream-accent-2: #ff7a00;
    --sv-stream-accent-ink: #ffffff;
    --sv-stream-shadow: 0 10px 28px rgba(20, 23, 31, .08);
    --ld-primary: #6366f1;
    --ld-primary-ink: #ffffff;
    background: var(--sv-stream-bg);
    color: var(--sv-stream-text);
}

html[data-theme="streaming"] body.body-search-page .search-page,
html[data-theme="streaming"] body.body-explore-page .category-page {
    background: var(--sv-stream-bg);
    color: var(--sv-stream-text);
}

/* "View all" / back links use the new indigo instead of the site's amber accent here */
html[data-theme="streaming"] body.body-explore-page .cat-hub-viewall,
html[data-theme="streaming"] body.body-search-page .ld-group-viewall,
html[data-theme="streaming"] body.body-search-page .ld-back-link:hover {
    color: var(--ld-primary);
}

/* ---------- Page head (Search / Explore titles) ---------- */
html[data-theme="streaming"] .ld-page-head {
    text-align: center;
    max-width: 480px;
    margin: 0 auto 1.25rem;
}

html[data-theme="streaming"] .ld-page-title {
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: .3rem;
}

html[data-theme="streaming"] .ld-page-subtitle {
    color: var(--sv-stream-muted);
    margin-bottom: 0;
}

/* ---------- Search bar ---------- */
html[data-theme="streaming"] .ld-search-form {
    display: flex;
    gap: .6rem;
    margin-bottom: 1.5rem;
}

html[data-theme="streaming"] .ld-search-input-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

html[data-theme="streaming"] .ld-search-icon {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sv-stream-muted);
    pointer-events: none;
}

html[data-theme="streaming"] .ld-search-input {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--sv-stream-border);
    background: var(--sv-stream-card);
    color: var(--sv-stream-text);
    padding-inline-start: 42px;
    padding-inline-end: 36px;
    font-size: .92rem;
}

html[data-theme="streaming"] .ld-search-input::placeholder {
    color: var(--sv-stream-muted);
}

html[data-theme="streaming"] .ld-search-input:focus {
    outline: none;
    border-color: var(--ld-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ld-primary) 18%, transparent);
}

html[data-theme="streaming"] .ld-search-clear {
    position: absolute;
    inset-inline-end: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: none;
    background: var(--sv-stream-elevated);
    color: var(--sv-stream-muted);
    border-radius: 50%;
    line-height: 1;
    font-size: 1rem;
    cursor: pointer;
}

html[data-theme="streaming"] .ld-search-submit {
    flex-shrink: 0;
    padding: 0 1.4rem;
    height: 46px;
    border-radius: 12px;
    border: none;
    background: var(--ld-primary);
    color: var(--ld-primary-ink);
    font-weight: 700;
    font-size: .92rem;
}

/* ---------- Explore page's own search bar: full-width, submit button hidden
   (Enter still submits) to match the mockup's plain single-field bar ---------- */
html[data-theme="streaming"] .ad-search-form-explore .ad-search-submit {
    display: none;
}

/* ---------- Tabs (All / Articles / Events / Forums / Businesses / Ads) ---------- */
html[data-theme="streaming"] .ld-tabs {
    display: flex;
    gap: 1.35rem;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    border-bottom: 1px solid var(--sv-stream-border);
    margin-bottom: 1.1rem;
}

html[data-theme="streaming"] .ld-tabs::-webkit-scrollbar {
    display: none;
}

html[data-theme="streaming"] .ld-tab {
    flex-shrink: 0;
    padding: 0 0 .7rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--sv-stream-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
}

html[data-theme="streaming"] .ld-tab.active {
    color: var(--sv-stream-text);
    font-weight: 800;
    border-bottom-color: var(--sv-stream-text);
}

/* ---------- Results bar (count + sort) ---------- */
html[data-theme="streaming"] .ld-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

html[data-theme="streaming"] .ld-results-count {
    font-size: .84rem;
    color: var(--sv-stream-muted);
}

html[data-theme="streaming"] .ld-sort {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .84rem;
}

html[data-theme="streaming"] .ld-sort-label {
    color: var(--sv-stream-muted);
    font-weight: 600;
}

html[data-theme="streaming"] .ld-sort-select {
    border: 1px solid var(--sv-stream-border);
    background: var(--sv-stream-card);
    color: var(--sv-stream-text);
    border-radius: 8px;
    padding: .3rem .5rem;
    font-size: .84rem;
    font-weight: 700;
}

html[data-theme="streaming"] .ld-back-link {
    display: inline-block;
    font-size: .84rem;
    font-weight: 600;
    color: var(--sv-stream-muted);
    text-decoration: none;
    margin-bottom: 1.25rem;
}

/* ---------- Result groups ---------- */
html[data-theme="streaming"] .ld-group {
    margin-bottom: 2rem;
}

html[data-theme="streaming"] .ld-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}

html[data-theme="streaming"] .ld-group-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

html[data-theme="streaming"] .ld-group-viewall {
    flex-shrink: 0;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

html[data-theme="streaming"] .ld-result-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

/* ---------- Result rows: shared skeleton ---------- */
html[data-theme="streaming"] .ld-row {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    background: var(--sv-stream-card);
    border: 1px solid var(--sv-stream-border);
    border-radius: 14px;
    padding: .85rem;
    text-decoration: none;
    color: var(--sv-stream-text);
}

html[data-theme="streaming"] .ld-row-body {
    flex: 1 1 auto;
    min-width: 0;
}

html[data-theme="streaming"] .ld-row-title {
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 .25rem;
}

html[data-theme="streaming"] .ld-row-title a {
    color: inherit;
    text-decoration: none;
}

html[data-theme="streaming"] .ld-row-desc {
    font-size: .8rem;
    color: var(--sv-stream-muted);
    margin: 0 0 .35rem;
    line-height: 1.4;
}

html[data-theme="streaming"] .ld-row-meta {
    font-size: .76rem;
    color: var(--sv-stream-muted);
}

html[data-theme="streaming"] .ld-row-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--sv-stream-elevated);
    display: block;
}

html[data-theme="streaming"] .ld-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html[data-theme="streaming"] .ld-row-thumb-empty {
    display: block;
    width: 100%;
    height: 100%;
}

/* Article / community blog rows */
html[data-theme="streaming"] .ld-row-badge {
    display: inline-block;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .03em;
    padding: .15rem .5rem;
    border-radius: 999px;
    margin-bottom: .3rem;
    color: var(--ld-badge-color, var(--ld-primary));
    background: color-mix(in srgb, var(--ld-badge-color, var(--ld-primary)) 14%, transparent);
}

/* Favourite / bookmark / star toggle (reuses .ad-card-favorite's JS, restyled for the row layout) */
html[data-theme="streaming"] .ld-row-fav {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--sv-stream-muted);
    border-radius: 50%;
    cursor: pointer;
}

html[data-theme="streaming"] .ld-row-fav:hover {
    background: var(--sv-stream-elevated);
}

html[data-theme="streaming"] .ld-row-fav.is-active {
    color: var(--ld-primary);
}

/* Event rows */
html[data-theme="streaming"] .ld-row-datebox {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--sv-type-event, #f97316) 12%, var(--sv-stream-card));
    border: 1px solid color-mix(in srgb, var(--sv-type-event, #f97316) 30%, transparent);
    color: var(--sv-type-event, #f97316);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.1;
}

html[data-theme="streaming"] .ld-row-datebox-month {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .03em;
}

html[data-theme="streaming"] .ld-row-datebox-day {
    font-size: 1.15rem;
    font-weight: 800;
}

/* Forum rows */
html[data-theme="streaming"] .ld-row-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--sv-type-forum, #3b82f6) 14%, var(--sv-stream-card));
    color: var(--sv-type-forum, #3b82f6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html[data-theme="streaming"] .ld-row-count-pill {
    flex-shrink: 0;
    min-width: 28px;
    height: 28px;
    padding: 0 .5rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #16a34a;
    font-size: .78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Business rows */
html[data-theme="streaming"] .ld-row-logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--sv-stream-elevated);
    color: var(--sv-stream-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

html[data-theme="streaming"] .ld-row-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html[data-theme="streaming"] .ld-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

html[data-theme="streaming"] .ld-row-status {
    flex-shrink: 0;
    font-size: .68rem;
    font-weight: 800;
    padding: .12rem .5rem;
    border-radius: 999px;
}

html[data-theme="streaming"] .ld-row-status.is-open {
    background: #dcfce7;
    color: #16a34a;
}

html[data-theme="streaming"] .ld-row-status.is-closed {
    background: #fee2e2;
    color: #dc2626;
}

/* Classified ad rows */
html[data-theme="streaming"] .ld-row-title-ad a {
    color: var(--sv-type-ad, #22c55e);
}

html[data-theme="streaming"] .ld-row-price {
    font-size: .88rem;
    font-weight: 800;
    color: var(--sv-stream-text);
    margin-bottom: .2rem;
}

/* ---------- Browse-by-category heading on the Explore page ---------- */
html[data-theme="streaming"] .cat-hub-browse-title {
    margin-bottom: .85rem;
}

/* ---------- Latest Updates: real item list (replaces the old stat tiles) ---------- */
html[data-theme="streaming"] .cat-hub-latest-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

html[data-theme="streaming"] .cat-hub-latest-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    color: var(--sv-stream-text);
    background: var(--sv-stream-card);
    border: 1px solid var(--sv-stream-border);
    border-radius: 12px;
    padding: .6rem .75rem;
}

html[data-theme="streaming"] .cat-hub-latest-thumb {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--sv-stream-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sv-stream-muted);
}

html[data-theme="streaming"] .cat-hub-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html[data-theme="streaming"] .cat-hub-latest-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

html[data-theme="streaming"] .cat-hub-latest-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .03em;
    padding: .1rem .45rem;
    border-radius: 999px;
    color: var(--ld-badge-color, var(--ld-primary));
    background: color-mix(in srgb, var(--ld-badge-color, var(--ld-primary)) 14%, transparent);
}

html[data-theme="streaming"] .cat-hub-latest-title {
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-theme="streaming"] .cat-hub-latest-time {
    font-size: .72rem;
    color: var(--sv-stream-muted);
}

html[data-theme="streaming"] .cat-hub-latest-count {
    flex-shrink: 0;
    min-width: 26px;
    height: 26px;
    padding: 0 .45rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #16a34a;
    font-size: .74rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html[data-theme="streaming"] .cat-hub-latest-fav-icon {
    flex-shrink: 0;
    color: var(--sv-stream-muted);
    display: inline-flex;
}

html[data-theme="streaming"] .cat-hub-empty {
    color: var(--sv-stream-muted);
}

/* =====================================================================
   RAIL / CARD — SITEWIDE FALLBACK (fixes the broken Search/Explore rails)
   partials/_rail.php + post/_card.php ("streaming 16:9 video card") are
   explicitly documented as a shared/reusable component, but every rule
   for them (.sv-section/.sv-head/.sv-title/.sv-viewall/.sv-nav/.sv-track/
   .sv-card/.sv-poster/.sv-play/.sv-chip/.sv-live/.sv-timecode/.sv-card-
   body/.sv-card-title) was scoped to `.streaming-home` inside streaming.css
   - and streaming.css itself is ONLY <link>ed from themes/streaming/
   index.php (the homepage), never from the shared _head.php. So on any
   other page that reuses the rail (Search's "Popular Searches", Explore's
   "Popular Now"/"Trending"), the cards rendered with ZERO css: a raw,
   unsized SVG play icon filled the card (the giant black triangle the
   client saw), no card borders/sizing, no rail layout at all.
   This block ports the exact same (var-driven) rules here, gated only by
   [data-theme="streaming"] (which IS loaded on every page via _head.php),
   so the rail renders correctly wherever it's reused. Values are copied
   verbatim from streaming.css's `.streaming-home` versions - on the
   homepage itself both rule sets now match (harmless, same values either
   way regardless of which one the cascade prefers).
   ===================================================================== */
[data-theme="streaming"] .sv-section {
    margin-top: 34px;
}

[data-theme="streaming"] .sv-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
}

[data-theme="streaming"] .sv-head .sv-title {
    font-size: clamp(1.05rem, 1.6vw, 1.45rem);
    font-weight: 800;
    letter-spacing: .2px;
    margin: 0;
    color: var(--sv-text);
    position: relative;
    padding-inline-start: 14px;
}

[data-theme="streaming"] .sv-head .sv-title::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 1.05em;
    border-radius: 4px;
    background: var(--sv-accent);
}

[data-theme="streaming"] .sv-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

[data-theme="streaming"] .sv-viewall {
    color: var(--sv-muted);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
}

[data-theme="streaming"] .sv-viewall:hover {
    color: var(--sv-text);
}

[data-theme="streaming"] .sv-nav {
    color: var(--sv-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, opacity .15s ease, transform .15s ease;
}

[data-theme="streaming"] .sv-nav:disabled {
    opacity: .35;
    cursor: default;
}

[data-theme="streaming"] .sv-nav svg {
    width: 18px;
    height: 18px;
}

[dir="rtl"] [data-theme="streaming"] .sv-nav svg {
    transform: scaleX(-1);
}

@media (max-width: 575px) {
    [data-theme="streaming"] .sv-nav {
        display: none;
    }
}

[data-theme="streaming"] .sv-rail-viewport {
    position: relative;
}

[data-theme="streaming"] .sv-track {
    display: flex;
    gap: var(--sv-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 2px 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

[data-theme="streaming"] .sv-track::-webkit-scrollbar {
    display: none;
}

[data-theme="streaming"] .sv-track > .sv-card {
    flex: 0 0 auto;
    width: 244px;
    scroll-snap-align: start;
}

@media (min-width: 1400px) {
    [data-theme="streaming"] .sv-track > .sv-card { width: 262px; }
}

@media (max-width: 991px) {
    [data-theme="streaming"] .sv-track > .sv-card { width: 220px; }
}

@media (max-width: 575px) {
    [data-theme="streaming"] .sv-track > .sv-card { width: 76vw; max-width: 320px; }
}

[data-theme="streaming"] .sv-card {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

[data-theme="streaming"] .sv-card:hover {
    transform: translateY(-4px);
    border-color: var(--sv-stream-border-strong, rgba(255, 255, 255, .16));
    box-shadow: var(--sv-stream-shadow, 0 16px 34px rgba(0, 0, 0, .5));
}

[data-theme="streaming"] .sv-card .sv-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--sv-surface-2);
    aspect-ratio: 16 / 9;
    text-decoration: none;
}

[data-theme="streaming"] .sv-card .sv-poster img,
[data-theme="streaming"] .sv-card .sv-poster .sv-img-empty {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

[data-theme="streaming"] .sv-card:hover .sv-poster img {
    transform: scale(1.08);
}

[data-theme="streaming"] .sv-img-empty {
    background: linear-gradient(135deg, var(--sv-elevated), var(--sv-surface-2));
}

[data-theme="streaming"] .sv-card .sv-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 11, 15, 0) 50%, rgba(11, 11, 15, .82) 100%);
    opacity: .8;
    transition: opacity .2s ease;
    pointer-events: none;
}

[data-theme="streaming"] .sv-card:hover .sv-poster::after {
    opacity: 1;
}

[data-theme="streaming"] .sv-chip {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    text-decoration: none;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
    background: var(--sv-cat, var(--sv-accent));
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
    z-index: 3;
    width: max-content;
}

[data-theme="streaming"] .sv-card .sv-poster .sv-chip {
    position: absolute;
    bottom: 10px;
    inset-inline-start: 10px;
}

[data-theme="streaming"] .sv-chip-community {
    background: var(--sv-type-article, #8b5cf6);
}

[data-theme="streaming"] .sv-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.9);
    z-index: 2;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(11, 11, 15, .55);
    border: 2px solid rgba(255, 255, 255, .85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

[data-theme="streaming"] .sv-play svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    margin-inline-start: 3px;
}

[data-theme="streaming"] .sv-card:hover .sv-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

[data-theme="streaming"] .sv-live {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 6px;
    background: #e50914;
    color: #fff;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .6px;
}

[data-theme="streaming"] .sv-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: sv-pulse 1.4s infinite;
}

@keyframes sv-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}

[data-theme="streaming"] .sv-timecode {
    position: absolute;
    bottom: 10px;
    inset-inline-end: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(11, 11, 15, .82);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(2px);
}

[data-theme="streaming"] .sv-timecode.is-duration {
    font-variant-numeric: tabular-nums;
}

[data-theme="streaming"] .sv-timecode .sv-tc-icon {
    width: 12px;
    height: 12px;
    opacity: .85;
}

[data-theme="streaming"] .sv-card-body {
    padding: 12px 13px 14px;
    background: var(--sv-surface);
}

[data-theme="streaming"] .sv-card-title {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="streaming"] .sv-card-title a {
    color: var(--sv-text);
    text-decoration: none;
}

[data-theme="streaming"] .sv-card-title a:hover {
    color: var(--sv-accent);
}

/* Community blog author line (never styled before - only ever appeared inside
   .streaming-home rails via this same undeclared class, and community_blog
   posts aren't part of the homepage rails, so this gap was never visible) */
[data-theme="streaming"] .sv-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    text-decoration: none;
    color: var(--sv-muted);
    font-size: .8rem;
    font-weight: 600;
}

[data-theme="streaming"] .sv-card-author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

[data-theme="streaming"] .sv-card-author-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =====================================================================
   MESSAGES / NOTIFICATIONS — LIGHT THEME (client mockup, 3rd page)
   Same page-scoped token override as Search/Explore (see that section
   above) - .conversation-row/.notification-row/.messages-tab etc. are
   already fully var-driven, so this alone re-colours the whole page.
   ===================================================================== */
html[data-theme="streaming"] body.body-messages-page {
    --sv-stream-bg: #f4f5f7;
    --sv-stream-bg-2: #ffffff;
    --sv-stream-card: #ffffff;
    --sv-stream-elevated: #eceef2;
    --sv-stream-border: rgba(20, 23, 31, .10);
    --sv-stream-border-strong: rgba(20, 23, 31, .18);
    --sv-stream-text: #14171f;
    --sv-stream-muted: #5b6170;
    --sv-stream-accent: #d97706;
    --sv-stream-accent-2: #ff7a00;
    --sv-stream-accent-ink: #ffffff;
    --sv-stream-shadow: 0 10px 28px rgba(20, 23, 31, .08);
    --ld-primary: #6366f1;
    --ld-primary-ink: #ffffff;
    background: var(--sv-stream-bg);
    color: var(--sv-stream-text);
}

html[data-theme="streaming"] body.body-messages-page .messages-page {
    background: var(--sv-stream-bg);
    color: var(--sv-stream-text);
}

/* Left-aligned variant of .ld-page-head (Search/Explore centre theirs; Messages doesn't) */
html[data-theme="streaming"] .ld-page-head-left {
    text-align: start;
    max-width: none;
    margin: 0 0 1.25rem;
}

/* Active tab underline + "Regarding:" context line use the same indigo as Search/Explore's
   search button, instead of the site's amber accent, on this page only */
html[data-theme="streaming"] body.body-messages-page .messages-tab.active::after {
    background: var(--ld-primary);
}

html[data-theme="streaming"] body.body-messages-page .conversation-context {
    color: var(--ld-primary);
    font-weight: 600;
}

html[data-theme="streaming"] body.body-messages-page .conversation-context-title {
    font-weight: 700;
}

html[data-theme="streaming"] body.body-messages-page .conversation-row.unread {
    border-color: color-mix(in srgb, var(--ld-primary) 45%, transparent);
}

html[data-theme="streaming"] body.body-messages-page .conversation-unread-dot {
    background: var(--ld-primary);
    color: var(--ld-primary-ink);
}

html[data-theme="streaming"] body.body-messages-page .notification-row.unread {
    border-color: color-mix(in srgb, var(--ld-primary) 40%, transparent);
    background: color-mix(in srgb, var(--ld-primary) 5%, var(--sv-stream-card));
}

/* ---------- Notification filter pills (All / Unread / Mentions) ---------- */
[data-theme="streaming"] .notif-filter-pills {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

[data-theme="streaming"] .notif-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    border: 1px solid var(--sv-border);
    background: var(--sv-surface);
    color: var(--sv-muted);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}

html[data-theme="streaming"] body.body-messages-page .notif-filter-pill.active {
    border-color: var(--ld-primary);
    color: var(--ld-primary);
    background: color-mix(in srgb, var(--ld-primary) 8%, var(--sv-surface));
}

[data-theme="streaming"] .notif-filter-pill:not(.active) {
    color: var(--sv-text);
}

[data-theme="streaming"] .notif-filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* ---------- Notification row layout follow-up: time + unread dot in their own
   column, so a thumbnail can sit after them without the time wrapping oddly ---------- */
[data-theme="streaming"] .notification-time-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: .3rem;
    align-self: flex-start;
}

[data-theme="streaming"] .notification-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ld-primary, var(--sv-accent));
    flex-shrink: 0;
}

/* ---------- "Tip" callout under the conversation list ---------- */
[data-theme="streaming"] .messages-tip {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1rem;
    padding: .9rem 1rem;
    border-radius: var(--sv-stream-radius-sm, 10px);
    background: color-mix(in srgb, var(--ld-primary, var(--sv-accent)) 8%, var(--sv-surface));
    color: var(--sv-muted);
    font-size: .84rem;
}

[data-theme="streaming"] .messages-tip-icon {
    flex-shrink: 0;
    display: inline-flex;
    color: var(--ld-primary, var(--sv-accent));
}
