/* ==========================================================================
   v2 design system — every rule is scoped under .v2 so this file can load
   globally alongside the v1 stylesheet without leaking into the old UI.
   At cutover this becomes the app stylesheet.
   ========================================================================== */

.v2 {
    /* palette — modern dark */
    --v2-bg: #131318;
    --v2-bg-raised: #1c1d24;
    --v2-surface: #23242d;
    --v2-surface-hover: #2b2d38;
    --v2-border: #33353f;
    --v2-text: #e8eaf0;
    --v2-text-muted: #9aa0ae;
    --v2-accent: #6c7cff;
    --v2-accent-hover: #8492ff;
    --v2-accent-soft: rgb(108 124 255 / .14);
    --v2-success: #3dd68c;
    --v2-warning: #f0b232;
    --v2-danger: #f23f43;
    --v2-info: #4cc2ff;

    /* shape & depth */
    --v2-radius: 12px;
    --v2-radius-sm: 8px;
    --v2-shadow-1: 0 1px 2px rgb(0 0 0 / .4);
    --v2-shadow-2: 0 8px 24px rgb(0 0 0 / .45);

    /* type */
    --v2-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    font-family: var(--v2-font);
    background: var(--v2-bg);
    color: var(--v2-text);
    color-scheme: dark;
}

.v2 h1, .v2 h2, .v2 h3 {
    letter-spacing: -0.01em;
    color: var(--v2-text);
}

.v2 h1 { font-size: 28px; font-weight: 700; }
.v2 h2 { font-size: 22px; font-weight: 650; }
.v2 { font-size: 15px; }

.v2 a { color: var(--v2-accent); text-decoration: none; }
.v2 a:hover { color: var(--v2-accent-hover); }

/* ==========================================================================
   Layout shell: header / sidebar / main / footer grid
   ========================================================================== */

.v2-shell {
    display: grid;
    grid-template-areas:
        "header header"
        "sidebar main"
        "footer footer";
    /* the sidebar column sizes to the aside so the interactive island
       can open/close it without touching this statically-rendered shell */
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 100dvh;
}

.v2-header {
    grid-area: header;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 1rem;
    height: 56px;
    background: var(--v2-bg-raised);
    border-bottom: 1px solid var(--v2-border);
}

.v2-sidebar {
    grid-area: sidebar;
    width: 260px;
    background: var(--v2-bg-raised);
    border-right: 1px solid var(--v2-border);
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform .2s ease;
}

.v2-sidebar.closed {
    display: none;
}

.v2-main {
    grid-area: main;
    padding: 1.5rem;
    min-width: 0;
}

.v2-footer {
    grid-area: footer;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    font-size: 13px;
    color: var(--v2-text-muted);
    background: var(--v2-bg-raised);
    border-top: 1px solid var(--v2-border);
}

/* mobile: sidebar becomes an off-canvas drawer */
@media (max-width: 768px) {
    .v2-shell {
        grid-template-areas:
            "header"
            "main"
            "footer";
        grid-template-columns: 1fr;
    }

    .v2-main { padding: .75rem; }

    .v2-sidebar,
    .v2-sidebar.closed {
        display: block;
        position: fixed;
        top: 56px;
        bottom: 0;
        left: 0;
        width: 260px;
        z-index: 99;
        transform: translateX(-100%);
        box-shadow: none;
    }

    .v2-sidebar:not(.closed) {
        transform: translateX(0);
        box-shadow: var(--v2-shadow-2);
    }
}

/* ==========================================================================
   Header pieces
   ========================================================================== */

.v2-header .v2-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: var(--v2-radius-sm);
    background: transparent;
    color: var(--v2-text);
    cursor: pointer;
}

.v2-header .v2-burger:hover { background: var(--v2-surface-hover); }

.v2-brand {
    font-weight: 700;
    font-size: 17px;
    color: var(--v2-text);
    white-space: nowrap;
}

.v2-brand:hover { color: var(--v2-accent-hover); }

.v2-header .v2-socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: .25rem;
    min-width: 0;
}

.v2-social-icon {
    width: 34px;
    height: 34px;
    padding: 6px;
    border-radius: var(--v2-radius-sm);
    opacity: .8;
    transition: opacity .15s ease, background .15s ease;
}

.v2-social-icon:hover { opacity: 1; background: var(--v2-surface-hover); }

/* ==========================================================================
   Sidebar nav
   ========================================================================== */

.v2-nav { padding: .75rem .5rem 1.5rem; }

.v2-nav-section {
    margin: 1rem .5rem .25rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--v2-text-muted);
}

.v2-nav a.v2-nav-link,
.v2-nav .v2-nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .75rem;
    margin: 2px 0;
    border-radius: var(--v2-radius-sm);
    color: var(--v2-text);
    font-weight: 500;
    border-left: 3px solid transparent;
}

.v2-nav .v2-nav-link:hover {
    background: var(--v2-surface-hover);
    color: var(--v2-text);
}

.v2-nav .v2-nav-link.active {
    background: var(--v2-accent-soft);
    border-left-color: var(--v2-accent);
    color: var(--v2-accent-hover);
}

.v2 .v2-nav-icon {
    font-family: 'Material Symbols', 'Material Symbols Outlined', 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.v2-card {
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    box-shadow: var(--v2-shadow-1);
}

.v2-card-hover {
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.v2-card-hover:hover {
    background: var(--v2-surface-hover);
    box-shadow: var(--v2-shadow-2);
    transform: translateY(-2px);
}

/* ==========================================================================
   Buttons & pills
   ========================================================================== */

.v2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .45rem 1rem;
    border-radius: var(--v2-radius-sm);
    border: 1px solid transparent;
    background: var(--v2-accent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s ease;
}

.v2-btn:hover { background: var(--v2-accent-hover); color: #fff; }

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

.v2-btn.v2-btn-ghost:hover { background: var(--v2-surface-hover); }

.v2-btn.v2-btn-danger { background: var(--v2-danger); }
.v2-btn:disabled { opacity: .5; cursor: not-allowed; }

.v2-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    border: 1px solid var(--v2-border);
    background: transparent;
    color: var(--v2-text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.v2-pill:hover { background: var(--v2-surface-hover); color: var(--v2-text); }

.v2-pill.active {
    background: var(--v2-accent-soft);
    border-color: var(--v2-accent);
    color: var(--v2-accent-hover);
}

.v2-pill .v2-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* suggestion-state dot colors — used by the filter pills and the admin state
   toggle. The compound .v2-dot.v2-dot-* selector keeps these winning over the
   base .v2-dot { background: currentColor } rule regardless of source order. */
.v2 .v2-dot.v2-dot-waiting { background: var(--v2-warning); }
.v2 .v2-dot.v2-dot-considering { background: var(--v2-info); }
.v2 .v2-dot.v2-dot-inprogress { background: var(--v2-accent); }
.v2 .v2-dot.v2-dot-finished { background: var(--v2-success); }
.v2 .v2-dot.v2-dot-offline { background: var(--v2-text-muted); }
.v2 .v2-dot.v2-dot-notinterested { background: var(--v2-danger); }
.v2 .v2-dot.v2-dot-hidden { background: var(--v2-text-muted); }

/* ==========================================================================
   Media cards (SearchCardV2 / SuggestionCardV2 / AdminCardV2)
   A card is a flex row — poster rail on the left, content column on the
   right. Add the .v2-media-card--tile modifier to stack it into a
   poster-on-top grid tile (used by the search grid).
   ========================================================================== */

.v2 .v2-media-card {
    display: flex;
    width: 100%;
    max-width: 538px;
    margin: .5rem;
    padding: 0;
    overflow: hidden;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    box-shadow: var(--v2-shadow-1);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.v2 .v2-media-card:hover {
    box-shadow: var(--v2-shadow-2);
    border-color: var(--v2-accent);
    transform: translateY(-2px);
}

/* Row cards get a fixed height so the poster has a definite height to
   stretch to; its width is then derived from the 2:3 aspect ratio below.
   (Tiles are exempt — they stack vertically.) */
@media (min-width: 576px) {
    .v2 .v2-media-card:not(.v2-media-card--tile) { height: 252px; }
}

/* --- poster rail ------------------------------------------------------- */
.v2 .v2-media-card .v2-poster {
    position: relative;
    /* fixed width chosen to match the 252px card height at ~2:3, stretched to
       full height so it fills the whole left edge-to-edge. The card's own
       border-radius + overflow:hidden round the poster's outer corners, so
       the poster itself needs no radius (a second radius here leaves a notch). */
    flex: 0 0 168px;
    align-self: stretch;
    margin: 0;
    background: var(--v2-bg-raised);
    overflow: hidden;
}

/* absolutely fill the poster box so the image can never letterbox, whatever
   height the flex row resolves to. */
.v2 .v2-media-card .v2-poster-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.v2 .v2-media-card .v2-poster-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--v2-text-muted);
    background: linear-gradient(135deg, var(--v2-surface-hover), var(--v2-bg-raised));
}

.v2 .v2-media-card .v2-poster-empty .v2-ico { font-size: 34px; }

/* small chip pinned to the poster (year / type) */
.v2 .v2-media-card .v2-poster-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgb(19 19 24 / .82);
    border: 1px solid rgb(255 255 255 / .12);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(2px);
}

/* --- content column ---------------------------------------------------- */
.v2 .v2-media-card .v2-card-body {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.v2 .v2-media-card .v2-card-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.v2 .v2-media-card .v2-card-title {
    flex: 1;
    min-width: 0;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v2 .v2-media-card .v2-card-subtitle {
    margin-top: 1px;
    font-size: 13px;
    color: var(--v2-text-muted);
}

.v2 .v2-media-card .v2-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--v2-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* actions pinned to the bottom of the content column */
.v2 .v2-media-card .v2-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

.v2 .v2-media-card .v2-card-actions .v2-btn-icon { margin-left: auto; }

/* --- meta chips (votes / runtime / seasons / warnings) ----------------- */
.v2 .v2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.v2 .v2-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: #c7ccd6;
    background: var(--v2-surface-hover);
    border: 1px solid var(--v2-border);
    white-space: nowrap;
}

.v2 .v2-chip .v2-ico { font-size: 14px; }

.v2 .v2-chip.v2-chip-warning {
    color: var(--v2-warning);
    background: rgb(240 178 50 / .13);
    border-color: rgb(240 178 50 / .35);
}

.v2 .v2-chip.v2-chip-info {
    color: var(--v2-info);
    background: rgb(76 194 255 / .12);
    border-color: rgb(76 194 255 / .32);
}

.v2 .v2-chip.v2-chip-success {
    color: var(--v2-success);
    background: rgb(61 214 140 / .12);
    border-color: rgb(61 214 140 / .32);
}

.v2 .v2-chip.v2-chip-danger {
    color: var(--v2-danger);
    background: rgb(242 63 67 / .12);
    border-color: rgb(242 63 67 / .32);
}

/* --- admin state control (replaces raw bootstrap dropdown toggle) ------ */
.v2 .v2-state-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: var(--v2-radius-sm);
    border: 1px solid var(--v2-border);
    background: var(--v2-surface-hover);
    color: var(--v2-text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.v2 .v2-state-toggle:hover { border-color: var(--v2-accent); }
.v2 .v2-state-toggle .v2-ico { font-size: 16px; color: var(--v2-text-muted); }

.v2 .v2-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 auto;
    /* colour comes from the .v2-dot-* state class — every rendered dot has one */
}

/* --- icon-only ghost button ------------------------------------------- */
.v2 .v2-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 11px;
    border-radius: var(--v2-radius-sm);
    border: 1px solid var(--v2-border);
    background: transparent;
    color: var(--v2-text);
    cursor: pointer;
    transition: background .15s ease;
}

.v2 .v2-btn-icon:hover { background: var(--v2-surface-hover); }
.v2 .v2-btn-icon .v2-ico { font-size: 18px; }

/* --- Material Symbols icon glyph --------------------------------------- */
.v2 .v2-ico {
    font-family: 'Material Symbols Outlined', 'Material Symbols', 'Material Icons';
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

/* --- vertical grid tile (search grid) ---------------------------------- */
.v2 .v2-media-card.v2-media-card--tile {
    flex-direction: column;
    width: 232px;
    max-width: 232px;
}

.v2 .v2-media-card--tile .v2-poster {
    flex: none;
    width: 100%;
    aspect-ratio: 2 / 3;
    min-height: 0;
}

.v2 .v2-media-card--tile .v2-card-body { padding: 12px 13px; }
.v2 .v2-media-card--tile .v2-card-title { font-size: 15px; }
.v2 .v2-media-card--tile .v2-card-desc { -webkit-line-clamp: 2; font-size: 13px; }

/* --- mobile: keep the row but give the poster a touch more room -------- */
@media (max-width: 575.98px) {
    /* on a phone a full-height 2:3 poster can eat too much width — cap it so
       the content column stays readable (a little cover-crop is fine here). */
    .v2 .v2-media-card:not(.v2-media-card--tile) .v2-poster {
        aspect-ratio: auto;
        flex-basis: 34%;
        max-width: 140px;
    }
    .v2 .v2-media-card.v2-media-card--tile { width: 100%; max-width: 100%; }
}

/* dark dropdown that matches the v2 surface */
.v2 .dropdown-menu {
    background: var(--v2-bg-raised);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-sm);
    box-shadow: var(--v2-shadow-2);
}

.v2 .dropdown-menu .dropdown-item { color: var(--v2-text); }
.v2 .dropdown-menu .dropdown-item:hover { background: var(--v2-surface-hover); }

/* state badges */
.v2 .v2-badge {
    display: inline-block;
    padding: .25em .65em;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    width: fit-content;
    white-space: nowrap;
}

.v2 .v2-badge-success { background: var(--v2-success); color: #10231a; }
.v2 .v2-badge-primary { background: var(--v2-accent); }
.v2 .v2-badge-info { background: var(--v2-info); color: #0d2330; }
.v2 .v2-badge-warning { background: var(--v2-warning); color: #2b2005; }
.v2 .v2-badge-danger { background: var(--v2-danger); }
.v2 .v2-badge-muted { background: var(--v2-text-muted); color: #16171c; }

/* integration cards — dark surface with a brand-colored top accent */
.v2 .v2-integration-card {
    flex: 1 1 200px;
    min-width: 180px;
    max-width: 260px;
    text-align: center;
    overflow: hidden;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-top: 3px solid var(--v2-accent);
    border-radius: var(--v2-radius);
    box-shadow: var(--v2-shadow-1);
    display: flex;
    flex-direction: column;
}

.v2 .v2-integration-card.v2-ic-discord { border-top-color: #5865F2; }
.v2 .v2-integration-card.v2-ic-youtube { border-top-color: #c41f24; }
.v2 .v2-integration-card.v2-ic-patreon { border-top-color: #f96854; }

@media (max-width: 575.98px) {
    .v2 .v2-integration-card {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   Forms & toolbars
   ========================================================================== */

.v2 .v2-input {
    background: var(--v2-bg-raised);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-sm);
    color: var(--v2-text);
    padding: .45rem .75rem;
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.v2 .v2-input:focus {
    border-color: var(--v2-accent);
    box-shadow: 0 0 0 3px var(--v2-accent-soft);
}

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

.v2 .v2-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.v2 .v2-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.v2 .v2-pagination .v2-page-btn {
    min-width: 38px;
    padding: .4rem .7rem;
    border-radius: var(--v2-radius-sm);
    border: 1px solid var(--v2-border);
    background: transparent;
    color: var(--v2-text);
    font-size: 14px;
    cursor: pointer;
    transition: background .15s ease;
}

.v2 .v2-pagination .v2-page-btn:hover:not(:disabled) { background: var(--v2-surface-hover); }

.v2 .v2-pagination .v2-page-btn:disabled {
    color: var(--v2-text-muted);
    cursor: default;
}

.v2 .v2-pagination .v2-page-btn.current {
    background: var(--v2-accent-soft);
    border-color: var(--v2-accent);
    color: var(--v2-accent-hover);
}

.v2 .v2-spinner {
    width: 2.25rem;
    height: 2.25rem;
    border: 3px solid var(--v2-border);
    border-top-color: var(--v2-accent);
    border-radius: 50%;
    animation: v2-spin .8s linear infinite;
}

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

/* ==========================================================================
   Home page
   ========================================================================== */

.v2 .v2-home {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    overflow: hidden;
}

.v2 .v2-banner {
    width: 100%;
    height: auto;
    border-radius: var(--v2-radius);
    box-shadow: var(--v2-shadow-1);
}

/* video grid (responsive, multi-row) */
.v2 .v2-video-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    padding: .25rem;
}

.v2 .v2-video-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--v2-radius);
    overflow: hidden;
    border: 1px solid var(--v2-border);
    box-shadow: var(--v2-shadow-1);
    background: var(--v2-surface);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.v2 .v2-video-card:hover {
    transform: translateY(-4px);
    border-color: var(--v2-accent);
    box-shadow: var(--v2-shadow-2), 0 0 0 3px var(--v2-accent-soft);
}

/* thumbnail / player area — the button is the click-to-play trigger */
.v2 .v2-video-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--v2-surface-hover);
    cursor: pointer;
    overflow: hidden;
}

.v2 .v2-video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.v2 .v2-video-card:hover .v2-video-thumb img {
    transform: scale(1.05);
}

.v2 .v2-video-thumb iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.v2 .v2-video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgb(19 19 24 / .6);
    border: 1px solid rgb(255 255 255 / .14);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.v2 .v2-video-card:hover .v2-video-play {
    background: var(--v2-accent);
    transform: scale(1.14);
    box-shadow: 0 4px 14px rgb(108 124 255 / .5);
}

.v2 .v2-video-play svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

/* footer: channel avatar + title + relative date */
.v2 .v2-video-meta {
    display: flex;
    gap: .625rem;
    padding: .7rem .75rem .8rem;
}

.v2 .v2-video-avatar {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--v2-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2 .v2-video-info {
    min-width: 0;
}

.v2 .v2-video-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--v2-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.v2 .v2-video-sub {
    display: block;
    margin-top: 3px;
    color: var(--v2-text-muted);
    font-size: 12px;
}

@media (max-width: 768px) {
    .v2 .v2-video-strip {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Radzen islands (scheduler, charts, data grid) — blend material-dark into
   the v2 palette by overriding the theme variables inside .v2 only.
   ========================================================================== */

.v2 .rz-scheduler,
.v2 .rz-datatable,
.v2 .rz-data-grid,
.v2 .rz-chart {
    --rz-base-background-color: var(--v2-surface);
    --rz-panel-background-color: var(--v2-surface);
    --rz-border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
}
