/* ----------------------------------------------------------------------
   LTV public site stylesheet. Standalone — the public pages load ONLY this
   file (no bootstrap/theme/kendo), so everything the templates reference
   is defined here. YouTube-inspired: flat white canvas, fixed top bar,
   collapsible left navigation, big 16:9 media cards, watch-page layout.
   ---------------------------------------------------------------------- */

:root {
    --ltv-canvas: #ffffff;          /* page background */
    --ltv-bg: #f2f2f2;              /* inset fills: search field, pills, bubbles */
    --ltv-surface: #ffffff;         /* floating surfaces: menus, dialogs, cards */
    --ltv-border: #e5e5e5;
    --ltv-hover: rgba(0, 0, 0, .05);
    --ltv-text: #0f0f0f;
    --ltv-text-muted: #606060;
    --ltv-text-faint: #909090;
    --ltv-accent: #223f77;
    --ltv-accent-hover: #173060;
    --ltv-breaking: #ef0101;
    --ltv-up: #107c10;
    --ltv-down: #d13438;
    --ltv-radius: 12px;
    --ltv-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --ltv-shadow-hover: 0 4px 10px rgba(16, 24, 40, .10), 0 2px 4px rgba(16, 24, 40, .08);
    --ltv-header-height: 56px;
    --ltv-nav-width: 240px;
    --ltv-nav-mini: 72px;
}

/* ---- reset-ish base ---- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.site-body {
    margin: 0;
    padding-top: var(--ltv-header-height);
    background: var(--ltv-canvas);
    color: var(--ltv-text);
    font-family: "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    transition: background-color .2s ease, color .2s ease;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, p, figure {
    margin: 0;
}

button {
    font: inherit;
    cursor: pointer;
}

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

/* ---- top bar (fixed, YouTube-style three-zone header) ---- */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--ltv-header-height);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    background: var(--ltv-canvas);
}

.topbar__start {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.topbar__burger {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ltv-text);
}

.topbar__burger:hover {
    background: var(--ltv-hover);
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0 4px;
}

.site-logo__img {
    height: 28px;
    width: auto;
    display: block;
}

/* Blue wordmark on the light theme; the white wordmark on dark. */
.site-logo__img--white {
    display: none;
}

/* The LindellTV wordmark is navy on transparent, so on the dark header we sit it on a
   small light chip to keep it legible (no separate white asset exists). */
[data-color-mode="dark"] .site-logo__img--blue {
    display: none;
}

[data-color-mode="dark"] .site-logo__img--white {
    display: block;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
}

/* centered search: rounded input with the attached button segment */
.site-search {
    flex: 1;
    max-width: 560px;
    height: 40px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    background: var(--ltv-canvas);
    border: 1px solid var(--ltv-border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.site-search:focus-within {
    border-color: var(--ltv-accent);
    box-shadow: 0 0 0 2px rgba(34, 63, 119, .15);
}

.site-search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0 6px 0 16px;
    font: inherit;
    color: var(--ltv-text);
    outline: none;
}

.site-search__btn {
    border: 0;
    border-left: 1px solid var(--ltv-border);
    background: var(--ltv-bg);
    color: var(--ltv-text-muted);
    padding: 0 18px;
    display: flex;
    align-items: center;
}

.site-search__btn:hover {
    color: var(--ltv-text);
}

.topbar__end {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.theme-toggle {
    border: 0;
    background: transparent;
    color: var(--ltv-text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 0;
    transition: color .15s ease, background-color .15s ease;
}

.theme-toggle:hover {
    color: var(--ltv-text);
    background: var(--ltv-hover);
}

.theme-toggle__icon {
    width: 18px;
    height: 18px;
}

/* Moon shows in light mode (tap to go dark); sun shows in dark mode (tap to go light). */
.theme-toggle__icon--sun {
    display: none;
}

[data-color-mode="dark"] .theme-toggle__icon--moon {
    display: none;
}

[data-color-mode="dark"] .theme-toggle__icon--sun {
    display: inline;
}

/* YouTube-style outlined sign-in chip (header + sidebar) */
.signin-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--ltv-border);
    border-radius: 18px;
    background: transparent;
    color: var(--ltv-accent);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.signin-link:hover {
    background: rgba(34, 63, 119, .08);
    border-color: transparent;
}

[data-color-mode="dark"] .signin-link:hover {
    background: rgba(77, 171, 247, .15);
}

/* ---- account menu (header avatar dropdown) ---- */

.account-menu {
    position: relative;
    flex-shrink: 0;
}

.account-menu__btn {
    display: block;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: none;
    line-height: 0;
}

.account-menu.is-open .account-menu__btn,
.account-menu__btn:hover {
    border-color: var(--ltv-accent);
}

.account-menu__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    -o-object-fit: cover;
       object-fit: cover;
}

.account-menu__initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ltv-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.account-menu__dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    padding: 6px 0;
    background: var(--ltv-surface);
    border: 1px solid var(--ltv-border);
    border-radius: var(--ltv-radius);
    box-shadow: var(--ltv-shadow-hover);
    z-index: 50;
}

.account-menu.is-open .account-menu__dropdown {
    display: block;
}

.account-menu__who {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 14px 10px;
    border-bottom: 1px solid var(--ltv-border);
    margin-bottom: 6px;
}

.account-menu__name {
    font-size: 14px;
    font-weight: 600;
}

.account-menu__email {
    font-size: 12px;
    color: var(--ltv-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-menu__link {
    display: block;
    width: 100%;
    padding: 8px 14px;
    border: 0;
    background: none;
    text-align: left;
    font-size: 13.5px;
    color: var(--ltv-text);
}

.account-menu__link:hover {
    background: var(--ltv-bg);
    color: var(--ltv-accent);
}

.account-menu__signout {
    color: var(--ltv-text-muted);
}

/* ---- left navigation (fixed rail: expanded / mini / drawer) ---- */

.sidenav {
    position: fixed;
    top: var(--ltv-header-height);
    bottom: 0;
    left: 0;
    width: var(--ltv-nav-width);
    z-index: 35;
    padding: 12px;
    background: var(--ltv-canvas);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.sidenav__section {
    display: flex;
    flex-direction: column;
}

.sidenav__heading {
    padding: 6px 12px 4px;
    font-size: 15px;
    font-weight: 700;
}

.sidenav__item {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--ltv-text);
    white-space: nowrap;
    overflow: hidden;
}

.sidenav__item:hover {
    background: var(--ltv-hover);
}

.sidenav__item.is-active {
    background: var(--ltv-bg);
    font-weight: 600;
}

.sidenav__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.sidenav__label {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Collapsible category group: children stay hidden until the chevron (or an active path) opens it. */
.sidenav__row {
    display: flex;
    align-items: center;
}

.sidenav__row .sidenav__item {
    flex: 1;
    min-width: 0;
}

.sidenav__expand {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-left: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--ltv-text-muted);
}

.sidenav__expand:hover {
    background: var(--ltv-hover);
    color: var(--ltv-text);
}

.sidenav__expand svg {
    transition: transform .15s ease;
}

.sidenav__group.is-open .sidenav__expand svg {
    transform: rotate(180deg);
}

.sidenav__children {
    display: none;
    flex-direction: column;
}

.sidenav__group.is-open .sidenav__children {
    display: flex;
}

.sidenav__child {
    display: block;
    height: 32px;
    line-height: 32px;
    padding: 0 12px 0 56px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--ltv-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidenav__child:hover {
    background: var(--ltv-hover);
    color: var(--ltv-text);
}

.sidenav__child.is-active {
    background: var(--ltv-bg);
    color: var(--ltv-text);
    font-weight: 600;
}

.sidenav__divider {
    height: 1px;
    margin: 12px 4px;
    background: var(--ltv-border);
}

.sidenav__signin {
    padding: 4px 12px 8px;
}

.sidenav__signin-text {
    font-size: 13px;
    color: var(--ltv-text-muted);
    margin-bottom: 12px;
}

.sidenav__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding: 4px 12px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ltv-text-faint);
}

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

.sidenav__copyright {
    width: 100%;
    font-weight: 400;
    margin-top: 4px;
}

.sidenav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 34;
    background: rgba(0, 0, 0, .5);
}

/* ---- page shell: content area beside the rail ---- */

.shell {
    margin-left: var(--ltv-nav-width);
    transition: margin-left .15s ease;
}

.shell__main {
    padding: 24px;
    min-height: calc(100vh - var(--ltv-header-height));
}

/* Mini rail on desktop when collapsed: stacked icon + tiny label, children/footer hidden. */
@media (min-width: 1100px) {
    [data-nav="collapsed"] .shell {
        margin-left: var(--ltv-nav-mini);
    }

    [data-nav="collapsed"] .sidenav {
        width: var(--ltv-nav-mini);
        padding: 4px;
    }

    [data-nav="collapsed"] .sidenav__item {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        height: 74px;
        padding: 0 2px;
        border-radius: 10px;
    }

    [data-nav="collapsed"] .sidenav__label {
        font-size: 10px;
        max-width: 100%;
    }

    [data-nav="collapsed"] .sidenav__children,
    [data-nav="collapsed"] .sidenav__group.is-open .sidenav__children,
    [data-nav="collapsed"] .sidenav__expand,
    [data-nav="collapsed"] .sidenav__heading,
    [data-nav="collapsed"] .sidenav__signin,
    [data-nav="collapsed"] .sidenav__footer {
        display: none;
    }

    [data-nav="collapsed"] .sidenav__divider {
        margin: 8px 6px;
    }
}

/* Drawer on narrow screens: rail hides; hamburger slides it over a backdrop. */
@media (max-width: 1099.98px) {
    .shell {
        margin-left: 0;
    }

    .sidenav {
        transform: translateX(-105%);
        transition: transform .18s ease;
        z-index: 45;
        box-shadow: var(--ltv-shadow-hover);
    }

    body.sidenav-open .sidenav {
        transform: translateX(0);
    }

    body.sidenav-open .sidenav-backdrop {
        display: block;
        z-index: 44;
    }

    body.sidenav-open {
        overflow: hidden;
    }
}

/* ---- simple shell (error pages: no rail, centered column) ---- */

.simple-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 16px;
}

/* ---- river heading (category landing pages, search) ---- */

.river-heading {
    margin-bottom: 20px;
}

.river-heading__title {
    font-size: 26px;
    font-weight: 700;
}

.river-heading__description {
    margin-top: 4px;
    color: var(--ltv-text-muted);
}

/* ---- YouTube-style card grid ---- */

.card-river {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 36px 16px;
}

.yt-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.yt-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: var(--ltv-radius);
    overflow: hidden;
    background: var(--ltv-bg);
}

.yt-card__thumb img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}

.yt-card__thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ltv-accent), var(--ltv-accent-hover));
    color: rgba(255, 255, 255, .85);
    font-size: 56px;
    font-weight: 700;
}

.yt-card__thumb-fallback--sm {
    font-size: 28px;
}

.yt-card__badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .8);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}

.yt-card__details {
    display: flex;
    gap: 12px;
    min-width: 0;
}

.yt-card__avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ltv-accent);
}

.yt-card__avatar img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.yt-card__avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.yt-card__info {
    flex: 1;
    min-width: 0;
}

.yt-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ltv-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.yt-card__titlelink:hover .yt-card__title {
    color: var(--ltv-accent);
}

.yt-card__channel {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.yt-card__channel-link {
    font-size: 13.5px;
    color: var(--ltv-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yt-card__channel-link:hover {
    color: var(--ltv-text);
}

.yt-card__stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 1px;
    font-size: 13px;
    color: var(--ltv-text-muted);
}

.yt-card__dot {
    color: var(--ltv-text-faint);
}

.yt-card__engage {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    color: var(--ltv-text-muted);
    white-space: nowrap;
}

a.yt-card__engage:hover {
    color: var(--ltv-accent);
}

/* ---- chips ---- */

.chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.chip--category {
    background: rgba(34, 63, 119, .08);
    color: var(--ltv-accent);
}

.chip--category:hover {
    background: rgba(34, 63, 119, .16);
}

.chip--breaking {
    background: var(--ltv-breaking);
    color: #fff;
}

[data-color-mode="dark"] .chip--category {
    background: rgba(77, 171, 247, .14);
}

/* ---- skeletons & feed status ---- */

.skeleton {
    background: linear-gradient(90deg, #eceff3 25%, #f6f8fa 45%, #eceff3 65%);
    background-size: 200% 100%;
    animation: ltv-shimmer 1.4s infinite;
    border-radius: 6px;
}

@keyframes ltv-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton--line {
    height: 12px;
    margin: 8px 0;
}

.skeleton--block {
    height: 64px;
    margin: 8px 0;
}

.skeleton--image {
    aspect-ratio: 16 / 9;
    border-radius: var(--ltv-radius);
}

.feed-sentinel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 36px 16px;
    margin-top: 36px;
}

.feed-sentinel[hidden] {
    display: none;
}

.skeleton-card {
    padding-bottom: 12px;
}

.skeleton-card .skeleton--line {
    margin: 10px 2px;
}

.feed-end {
    text-align: center;
    color: var(--ltv-text-faint);
    font-size: 13px;
    padding: 24px 0 8px;
}

/* ---- ads ---- */

.ad-placeholder {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 12px, #f4f5f7 12px, #f4f5f7 24px);
    border: 1px dashed var(--ltv-border);
    border-radius: var(--ltv-radius);
    color: var(--ltv-text-faint);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* AdSense units are inline by default; block keeps them from collapsing the layout. */
ins.adsbygoogle {
    display: block;
    width: 100%;
}

/* In-river ad card: same footprint as a content card so the grid stays intact. */
.ad-card {
    min-height: 240px;
    border: 1px solid var(--ltv-border);
    border-radius: var(--ltv-radius);
    padding: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* ---- search results page ---- */

.search-page__form {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    max-width: 560px;
}

.search-page__input {
    flex: 1;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--ltv-border);
    border-radius: 20px;
    background: var(--ltv-canvas);
    color: var(--ltv-text);
    font-size: 14px;
    outline: none;
}

.search-page__input:focus {
    border-color: var(--ltv-accent);
}

.search-page__btn {
    height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 20px;
    background: var(--ltv-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.search-page__btn:hover {
    background: var(--ltv-accent-hover);
}

.search-page__notice {
    background: var(--ltv-bg);
    border-radius: var(--ltv-radius);
    color: var(--ltv-text-muted);
    padding: 28px 20px;
    text-align: center;
}

.search-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 0 8px;
    font-size: 14px;
}

.search-pager__link {
    color: var(--ltv-accent);
    font-weight: 600;
}

.search-pager__link:hover {
    color: var(--ltv-accent-hover);
    text-decoration: underline;
}

.search-pager__status {
    color: var(--ltv-text-faint);
}

/* ---- breaking banner (created by site.js, fixed under the header) ---- */

.breaking-banner {
    position: fixed;
    top: var(--ltv-header-height);
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--ltv-breaking);
    color: #fff;
    font-size: 13px;
    box-shadow: var(--ltv-shadow-hover);
}

.breaking-banner__label {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.breaking-banner__link {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-weight: 600;
}

.breaking-banner__link:hover {
    text-decoration: underline;
}

.breaking-banner__dismiss {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    opacity: .85;
}

.breaking-banner__dismiss:hover {
    opacity: 1;
}

/* ---- live stream hero (home page) ---- */

.live-hero {
    max-width: 720px;
    margin: 0 auto 28px;
    border-radius: var(--ltv-radius);
    overflow: hidden;
    background: var(--ltv-bg);
}

.live-hero__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}

.live-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ltv-breaking);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 3px 8px;
    border-radius: 4px;
}

.live-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: live-hero-pulse 1.4s ease-in-out infinite;
}

@keyframes live-hero-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.live-hero__label {
    font-weight: 600;
    color: var(--ltv-text);
}

.live-hero__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.live-hero__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---- shared action pills (like / share / comments) ---- */

.action-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 18px;
    background: var(--ltv-bg);
    color: var(--ltv-text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .12s ease;
}

.action-pill:hover {
    background: var(--ltv-border);
}

.action-pill__icon {
    flex-shrink: 0;
}

.action-pill--like .action-pill__icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.action-pill--like.is-liked {
    color: var(--ltv-accent);
}

.action-pill--like.is-liked .action-pill__icon {
    fill: currentColor;
    stroke: none;
}

/* ---- watch page (video) ---- */

.preview-banner {
    background: #b91c1c;
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: .5rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.watch {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 1750px;
    margin: 0 auto;
}

.watch__primary {
    flex: 1;
    min-width: 0;
}

.watch__secondary {
    flex: 0 0 400px;
    min-width: 0;
}

.watch__player {
    margin-bottom: 12px;
}

.watch__video,
.watch__embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--ltv-radius);
    background: #000;
    display: block;
}

.watch__unavailable {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ltv-radius);
    background: var(--ltv-bg);
    color: var(--ltv-text-faint);
}

.watch__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.watch__bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 14px;
}

.watch__channel {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.watch__channel-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--ltv-accent);
}

.watch__channel-avatar img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.watch__channel-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.watch__channel-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.watch__channel-name {
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watch__channel-sub {
    font-size: 12.5px;
    color: var(--ltv-text-muted);
}

.watch__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

/* description box: gray rounded panel with bold stats line, clamped text, ...more */
.watch__desc {
    background: var(--ltv-bg);
    border-radius: var(--ltv-radius);
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 24px;
}

.watch__stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-weight: 600;
}

.watch__desc-text {
    margin-top: 6px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.watch__desc.is-expanded .watch__desc-text {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.watch__desc-toggle {
    border: 0;
    background: none;
    padding: 6px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ltv-text);
}

.watch__desc-toggle:hover {
    color: var(--ltv-accent);
}

.watch__source-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ltv-accent);
}

.watch__source-link:hover {
    text-decoration: underline;
}

/* video facade (click-to-load third-party embed) */
.video-facade {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--ltv-radius);
    overflow: hidden;
    background: #000;
}

.video-facade__poster {
    width: 100%;
    aspect-ratio: 16 / 9;
    -o-object-fit: cover;
       object-fit: cover;
    opacity: .9;
}

.video-facade__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34, 63, 119, .92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, background .15s ease;
}

.video-facade:hover .video-facade__play {
    transform: scale(1.08);
    background: var(--ltv-accent-hover);
}

/* ---- compact related rail (watch page "Up next") ---- */

.related-rail__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.related-rail {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-card {
    display: flex;
    gap: 10px;
    border-radius: 10px;
    min-width: 0;
}

.mini-card__thumb {
    position: relative;
    flex-shrink: 0;
    width: 168px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--ltv-bg);
}

.mini-card__thumb img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.mini-card__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding-top: 2px;
}

.mini-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ltv-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-card:hover .mini-card__title {
    color: var(--ltv-accent);
}

.mini-card__channel,
.mini-card__stats {
    font-size: 12.5px;
    color: var(--ltv-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- content pages (article / gallery): centered reading column ---- */

.content-page {
    max-width: 860px;
    margin: 0 auto;
}

.content-page__header {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.content-page__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.content-page__title {
    font-size: clamp(24px, 3.4vw, 34px);
    line-height: 1.2;
    font-weight: 700;
}

.content-page__subtitle {
    font-size: 17px;
    color: var(--ltv-text-muted);
}

.content-page__byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ltv-text-faint);
}

.content-page__dot {
    color: var(--ltv-text-faint);
}

.content-page__source,
.content-page__authors {
    font-weight: 600;
    color: var(--ltv-text-muted);
}

.content-page__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 2px;
}

.content-page__hero {
    margin: 0 0 18px;
}

.content-page__hero img {
    width: 100%;
    height: auto;
    border-radius: var(--ltv-radius);
    aspect-ratio: 16 / 9;
    -o-object-fit: cover;
       object-fit: cover;
    background: var(--ltv-bg);
}

.source-logo {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* article body — styles sanitized ingested/authored HTML */

.article-page__body {
    font-size: 17px;
    line-height: 1.65;
}

.article-page__body p {
    margin: 0 0 1em;
}

.article-page__body h2,
.article-page__body h3 {
    margin: 1.4em 0 .5em;
    line-height: 1.3;
}

.article-page__body img {
    border-radius: 8px;
    margin: 1em 0;
    height: auto;
}

.article-page__body a {
    color: var(--ltv-accent);
    text-decoration: underline;
}

.article-page__body blockquote {
    margin: 1em 0;
    padding: .5em 1.2em;
    border-left: 3px solid var(--ltv-accent);
    color: var(--ltv-text-muted);
}

.article-page__body ul,
.article-page__body ol {
    padding-left: 1.4em;
    margin: 0 0 1em;
}

.article-page__body--summary {
    color: var(--ltv-text-muted);
}

/* attribution / link-out */

.link-out {
    margin-top: 20px;
}

.link-out__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ltv-accent);
    color: #fff;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 18px;
    transition: background .15s ease;
}

.link-out__button:hover {
    background: var(--ltv-accent-hover);
}

.link-out__credit {
    font-size: 13px;
    color: var(--ltv-text-muted);
    text-decoration: underline;
}

.link-out__credit:hover {
    color: var(--ltv-accent);
}

/* gallery page */

.gallery {
    margin-bottom: 16px;
}

.gallery__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border-radius: var(--ltv-radius);
    scrollbar-width: none;
}

.gallery__track::-webkit-scrollbar {
    display: none;
}

.gallery__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.gallery__slide img {
    width: 100%;
    aspect-ratio: 3 / 2;
    -o-object-fit: cover;
       object-fit: cover;
    background: var(--ltv-bg);
}

.gallery__caption {
    padding: 8px 4px 0;
    font-size: 13px;
    color: var(--ltv-text-muted);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.gallery__credit {
    color: var(--ltv-text-faint);
    white-space: nowrap;
}

.gallery__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

.gallery__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ltv-border);
    background: var(--ltv-surface);
    color: var(--ltv-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}

.gallery__btn:hover {
    background: var(--ltv-bg);
}

.gallery__counter {
    font-size: 13px;
    color: var(--ltv-text-muted);
    min-width: 56px;
    text-align: center;
}

.video-page__summary,
.gallery-page__summary {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ltv-text-muted);
}

/* related stories under articles/galleries */

.related-stories {
    max-width: 860px;
    margin: 32px auto 0;
}

.related-stories__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.related-stories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px 16px;
}

/* ---- generic card surface (settings/auth panels) ---- */

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

/* ---- shared form + button styles (auth, account settings) ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid var(--ltv-border);
    border-radius: 999px;
    background: var(--ltv-surface);
    color: var(--ltv-text);
    font-size: 14px;
    font-weight: 600;
}

.btn:hover {
    border-color: var(--ltv-accent);
    color: var(--ltv-accent);
}

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

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

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

.btn--ghost:hover {
    border-color: var(--ltv-accent);
    color: var(--ltv-accent);
}

.btn--sm {
    padding: 5px 12px;
    font-size: 13px;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
    flex: 1;
}

.form-field__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ltv-text-muted);
}

.form-field__input {
    padding: 9px 12px;
    border: 1px solid var(--ltv-border);
    border-radius: 8px;
    background: var(--ltv-bg);
    color: var(--ltv-text);
    font: inherit;
}

.form-field__input:focus {
    outline: 2px solid var(--ltv-accent);
    outline-offset: -1px;
}

.form-field__hint {
    font-size: 12.5px;
    color: var(--ltv-text-faint);
}

.form-field__labelrow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.form-field__link {
    font-size: 13px;
    color: var(--ltv-accent);
}

.form-field__link:hover {
    text-decoration: underline;
}

.form-field__error {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--ltv-breaking);
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    cursor: pointer;
}

/* ---- auth pages (sign in / register) ---- */

.auth-card {
    max-width: 460px;
    margin: 24px auto;
    padding: 28px;
}

.auth-card__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-card__lead {
    font-size: 14px;
    color: var(--ltv-text-muted);
    margin-bottom: 20px;
}

.auth-form__submit {
    width: 100%;
    justify-content: center;
}

.auth-card__alt {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--ltv-border);
    font-size: 14px;
    color: var(--ltv-text-muted);
    text-align: center;
}

.auth-card__alt-link {
    color: var(--ltv-accent);
    font-weight: 600;
}

.auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--ltv-border);
    border-radius: 999px;
    background: var(--ltv-surface);
    color: var(--ltv-text);
    font-size: 14px;
    font-weight: 600;
    position: relative;
}

.auth-google:hover {
    border-color: var(--ltv-accent);
    background: var(--ltv-bg);
}

.auth-google__icon {
    display: inline-flex;
    align-items: center;
}

.auth-google__badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: var(--ltv-accent);
    border-radius: 999px;
    padding: 2px 8px;
}

.auth-hint {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ltv-text-muted);
    text-align: center;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--ltv-text-faint);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ltv-border);
}

/* ---- account settings ---- */

.account-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 2px 16px;
}

.account-heading__title {
    font-size: 22px;
    font-weight: 700;
}

.account-heading__link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ltv-accent);
}

.account-card {
    padding: 22px 24px;
    margin-bottom: 16px;
}

.account-card__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.account-card__actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}

.account-card__actions .btn--primary:only-child {
    margin-left: auto;
}

.avatar-editor {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.avatar-editor__preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    -o-object-fit: cover;
       object-fit: cover;
    border: 1px solid var(--ltv-border);
    flex-shrink: 0;
}

.avatar-editor__controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.avatar-editor__crop {
    max-height: 320px;
    overflow: hidden;
    margin-bottom: 14px;
    border-radius: 8px;
}

.avatar-editor__crop img {
    display: block;
    max-width: 100%;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    margin-bottom: 20px;
}

.profile-card__avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    -o-object-fit: cover;
       object-fit: cover;
    border: 1px solid var(--ltv-border);
    flex-shrink: 0;
}

.profile-card__identity {
    flex: 1;
    min-width: 0;
}

.profile-card__name {
    font-size: 20px;
    font-weight: 700;
}

.profile-card__email {
    font-size: 13.5px;
    color: var(--ltv-text-muted);
}

.profile-card__since {
    font-size: 12.5px;
    color: var(--ltv-text-faint);
    margin-top: 2px;
}

.profile-card__edit {
    flex-shrink: 0;
}

/* ---- dashboard pages (History / Liked / Your Profile) ---- */

.dashboard {
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-main {
    min-width: 0;
}

.dashboard-header {
    margin-bottom: 20px;
}

.dashboard-header__title {
    font-size: 26px;
    font-weight: 700;
}

.dashboard-header__lead {
    margin-top: 4px;
    color: var(--ltv-text-muted);
}

.dashboard-empty {
    background: var(--ltv-bg);
    border-radius: var(--ltv-radius);
    padding: 40px 24px;
    text-align: center;
    color: var(--ltv-text-muted);
}

.dashboard-empty .btn {
    margin-top: 14px;
}

/* Date header between days on the History list; spans the whole grid row. */
.dash-river {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px 16px;
}

.dash-day {
    grid-column: 1 / -1;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ltv-text-faint);
    padding: 10px 0 2px;
    border-bottom: 1px solid var(--ltv-border);
}

.dash-item {
    position: relative;
    min-width: 0;
}

/* Watch-progress bar under a history card. */
.dash-progress {
    height: 4px;
    border-radius: 999px;
    background: var(--ltv-border);
    margin-top: 8px;
    overflow: hidden;
}

.dash-progress > span {
    display: block;
    height: 100%;
    background: var(--ltv-accent);
}

.dash-progress--done > span {
    background: var(--ltv-up);
}

/* Unlike button pinned on the Liked list thumbnails. */
.dash-unlike {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
}

.dash-unlike:hover {
    background: rgba(0, 0, 0, .75);
}

/* ---- server-message toasts ---- */

.toast-stack {
    position: fixed;
    top: calc(var(--ltv-header-height) + 10px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
    width: min(480px, calc(100vw - 32px));
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--ltv-radius);
    background: var(--ltv-surface);
    border: 1px solid var(--ltv-border);
    border-left: 4px solid var(--ltv-accent);
    box-shadow: var(--ltv-shadow-hover);
    font-size: 14px;
}

.toast--success {
    border-left-color: var(--ltv-up);
}

.toast--error,
.toast--warning {
    border-left-color: var(--ltv-breaking);
}

.toast__text {
    flex: 1;
}

.toast__close {
    border: 0;
    background: none;
    color: var(--ltv-text-faint);
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
}

.toast__close:hover {
    color: var(--ltv-text);
}

/* ---- auth prompt modal (anonymous like / engagement) ---- */

body.auth-modal-open {
    overflow: hidden;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal[hidden] {
    display: none;
}

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, .55);
}

.auth-modal__dialog {
    position: relative;
    background: var(--ltv-surface);
    color: var(--ltv-text);
    border-radius: var(--ltv-radius);
    box-shadow: var(--ltv-shadow-hover);
    width: 100%;
    max-width: 380px;
    padding: 28px 24px 24px;
    text-align: center;
}

.auth-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: var(--ltv-text-faint);
}

.auth-modal__close:hover {
    color: var(--ltv-text);
}

.auth-modal__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-modal__text {
    color: var(--ltv-text-muted);
    margin-bottom: 18px;
}

.auth-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-modal__actions .btn {
    justify-content: center;
    width: 100%;
}

/* ----------------------------------------------------------------------
   Comments (Facebook-style thread) on content pages.
   ---------------------------------------------------------------------- */

.comments-mount {
    max-width: 860px;
    margin-top: 8px;
}

.watch .comments-mount {
    max-width: none;
}

.comments__loading {
    color: var(--ltv-text-faint);
    font-size: 14px;
    padding: 8px 0;
}

.comments__head {
    margin-bottom: 14px;
}

.comments__title {
    font-size: 17px;
    font-weight: 700;
}

.comments__signin {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--ltv-accent);
    font-weight: 600;
    font-size: 14px;
}

/* ---- composer (top-level + reply) ---- */

.cmt-composer {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.cmt-composer--reply {
    margin: 8px 0 4px;
}

.cmt-composer__field {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    background: var(--ltv-bg);
    border: 1px solid var(--ltv-border);
    border-radius: 18px;
    padding: 6px 6px 6px 14px;
}

.cmt-composer__input {
    flex: 1;
    border: 0;
    background: none;
    resize: none;
    outline: none;
    color: var(--ltv-text);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    max-height: 200px;
    padding: 4px 0;
}

.cmt-composer__submit {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--ltv-accent);
}

.cmt-composer__submit:hover {
    background: var(--ltv-border);
}

/* ---- a comment ---- */

.cmt {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 12px;
}

.cmt__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    -o-object-fit: cover;
       object-fit: cover;
    flex-shrink: 0;
    background: var(--ltv-border);
}

.cmt__avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ltv-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.cmt__main {
    flex: 1;
    min-width: 0;
}

.cmt__bubblewrap {
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    gap: 6px;
    max-width: 100%;
}

.cmt__bubble {
    background: var(--ltv-bg);
    border-radius: 16px;
    padding: 8px 12px;
    min-width: 0;
}

.cmt__author {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ltv-text);
}

.cmt__body {
    font-size: 14px;
    line-height: 1.4;
    color: var(--ltv-text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* like count pill hanging off the bubble bottom-right, Facebook-style */
.cmt__likepill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    align-self: flex-end;
    margin-bottom: -4px;
    padding: 1px 6px 1px 5px;
    border-radius: 999px;
    background: var(--ltv-surface);
    border: 1px solid var(--ltv-border);
    box-shadow: var(--ltv-shadow);
    font-size: 11px;
    font-weight: 600;
    color: var(--ltv-text-muted);
}

.cmt__likepill svg {
    color: var(--ltv-accent);
}

.cmt__likepill.is-empty {
    display: none;
}

/* moderator-removed placeholder */
.cmt__avatar--removed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--ltv-bg);
    color: var(--ltv-text-faint);
}

.cmt__bubble--removed {
    background: transparent;
    border: 1px dashed var(--ltv-border);
}

.cmt__body--removed {
    color: var(--ltv-text-faint);
    font-style: italic;
}

/* the ⋯ menu */
.cmt__menu {
    position: relative;
    align-self: center;
    opacity: 0;
    transition: opacity .1s ease;
}

.cmt__bubblewrap:hover .cmt__menu,
.cmt__menu.is-open {
    opacity: 1;
}

.cmt__menubtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--ltv-text-faint);
}

.cmt__menubtn:hover {
    background: var(--ltv-bg);
}

.cmt__menupop {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 120px;
    padding: 4px 0;
    background: var(--ltv-surface);
    border: 1px solid var(--ltv-border);
    border-radius: 8px;
    box-shadow: var(--ltv-shadow-hover);
    z-index: 20;
}

.cmt__menu.is-open .cmt__menupop {
    display: block;
}

.cmt__menupop button {
    display: block;
    width: 100%;
    padding: 7px 14px;
    border: 0;
    background: none;
    text-align: left;
    font-size: 13.5px;
    color: var(--ltv-text);
}

.cmt__menupop button:hover {
    background: var(--ltv-bg);
    color: var(--ltv-accent);
}

/* actions row: Like · Reply · time · Edited */
.cmt__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 12px 0;
    font-size: 12px;
    color: var(--ltv-text-faint);
}

.cmt__action {
    border: 0;
    background: none;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--ltv-text-muted);
}

.cmt__action:hover {
    text-decoration: underline;
}

.cmt__action--like.is-liked {
    color: var(--ltv-accent);
}

.cmt__time {
    font-weight: 400;
}

.cmt__edited {
    font-weight: 400;
    font-style: italic;
}

/* replies indent under their parent */
.cmt__replies {
    margin-left: 20px;
    padding-left: 12px;
    border-left: 2px solid var(--ltv-border);
}

.cmt--reply .cmt__avatar {
    width: 28px;
    height: 28px;
}

.cmt__more-replies,
.comments__more {
    margin: 10px 0 0;
    border: 0;
    background: none;
    padding: 4px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--ltv-text-muted);
}

.cmt__more-replies {
    margin-left: 32px;
}

.cmt__more-replies:hover,
.comments__more:hover {
    text-decoration: underline;
    color: var(--ltv-accent);
}

/* inline edit */
.cmt-edit {
    margin-top: 4px;
}

.cmt-edit .cmt-composer__input {
    width: 100%;
    background: var(--ltv-bg);
    border: 1px solid var(--ltv-border);
    border-radius: 12px;
    padding: 8px 12px;
}

.cmt-edit__actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

/* ---- save-to-playlist dialog ---- */

.save-modal__dialog {
    text-align: left;
    max-width: 340px;
}

.save-modal__dialog .auth-modal__title {
    text-align: left;
    font-size: 17px;
}

.save-modal__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 12px 0;
    max-height: 280px;
    overflow-y: auto;
}

.save-modal__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.save-modal__row:hover {
    background: var(--ltv-bg);
}

.save-modal__row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--ltv-accent);
}

.save-modal__name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.save-modal__hint {
    font-size: 12px;
}

.save-modal__create {
    display: flex;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--ltv-border);
}

.save-modal__create input {
    flex: 1;
}

/* ---- shows index tiles ---- */

.showtile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px 16px;
}

.showtile__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: var(--ltv-radius);
    overflow: hidden;
    background: var(--ltv-bg);
}

.showtile__thumb img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.showtile__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ltv-accent), var(--ltv-accent-hover));
    color: rgba(255, 255, 255, .85);
    font-size: 44px;
    font-weight: 700;
}

.showtile__live {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.showtile__title {
    display: block;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ltv-text);
}

.showtile:hover .showtile__title {
    color: var(--ltv-accent);
}

.showtile__host {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--ltv-text-muted);
}

/* ---- show landing page ---- */

.showpage__hero {
    position: relative;
    border-radius: var(--ltv-radius);
    overflow: hidden;
    margin-bottom: 18px;
    background: var(--ltv-bg);
}

.showpage__banner {
    width: 100%;
    max-height: 340px;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
}

.showpage__hero--plain {
    background: linear-gradient(135deg, var(--ltv-accent), var(--ltv-accent-hover));
    min-height: 160px;
}

.showpage__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 24px 18px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .72));
    color: #fff;
}

.showpage__hero--plain .showpage__overlay {
    position: static;
    background: none;
    padding: 24px;
}

.showpage__title {
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 700;
    line-height: 1.15;
}

.showpage__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13.5px;
}

.showpage__airchip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: 12px;
    font-weight: 600;
}

.showpage__description {
    max-width: 860px;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--ltv-text-muted);
    margin-bottom: 24px;
}

.showpage__episodes-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ---- playlists dashboard ---- */

.playlist-create {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin-bottom: 20px;
}

.playlist-create__input {
    flex: 1;
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.playlist-card {
    padding: 14px 16px;
}

.playlist-card__main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.playlist-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--ltv-bg);
    color: var(--ltv-accent);
    flex-shrink: 0;
}

.playlist-card__name {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.playlist-card__main:hover .playlist-card__name {
    color: var(--ltv-accent);
}

.playlist-card__count {
    display: block;
    font-size: 12.5px;
    color: var(--ltv-text-muted);
}

.playlist-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.playlist-rename summary {
    list-style: none;
    cursor: pointer;
}

.playlist-rename summary::-webkit-details-marker {
    display: none;
}

.playlist-rename__form {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

/* ----------------------------------------------------------------------
   Live homepage (design handoff "2b — Program Guide"). Standalone page with
   its own masthead; light-only by design. Tokens straight from the handoff:
   blue #175cd3, live red #e5484d, ink #141a21, secondary #5b6672, muted
   #8b97a5, panel #f6f8fa, borders #dfe4ea/#e6eaef/#eceff3/#f2f5f8.
   EPG scale: 96px = 1 hour, block height 80px.
   ---------------------------------------------------------------------- */

body.lp-body {
    background: #fff;
    color: #141a21;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    /* The standalone homepage renders its own masthead (.lp-mast), not the shell's fixed topbar,
       so drop the body top-padding that exists only to clear that topbar — otherwise it shows as
       an empty ~56px band at the top. (body.lp-body matches the same specificity as body.site-body
       and comes later, so it wins.) */
    padding-top: 0;
}

.lp {
    max-width: 1140px;
    margin: 0 auto;
}

.lp-byl {
    font-size: 11.5px;
    color: #8b97a5;
    line-height: 1.35;
}

.lp-kick {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #175cd3;
    margin-top: 10px;
}

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

.lp-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5484d;
    animation: lp-pulse 1.4s ease-in-out infinite;
}

/* ---- masthead ---- */

.lp-mast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px 16px;
}

.lp-logo img {
    height: 34px;
    width: auto;
    display: block;
}

.lp-mast__tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f1f4f7;
    border: 1px solid #e6eaef;
    border-radius: 8px;
    width: 210px;
}

.lp-search input {
    border: 0;
    background: transparent;
    outline: none;
    font-size: 12.5px;
    color: #141a21;
    width: 100%;
}

.lp-search input::-moz-placeholder {
    color: #9aa5b1;
}

.lp-search input::placeholder {
    color: #9aa5b1;
}

.lp-subscribe {
    padding: 8px 16px;
    background: #175cd3;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.lp-subscribe:hover {
    background: #0f3f96;
}

/* ---- category tabs ---- */

.lp-tabs {
    display: flex;
    gap: 2px;
    padding: 0 26px;
    border-top: 1px solid #eceff3;
    border-bottom: 1px solid #eceff3;
}

.lp-tab {
    padding: 12px 14px;
    font-size: 13.5px;
    color: #5b6672;
}

.lp-tab.is-active {
    font-weight: 600;
    color: #141a21;
    box-shadow: inset 0 -2px 0 #175cd3;
}

.lp-tab:hover {
    color: #141a21;
}

/* ---- hero: player + side column ---- */

.lp-hero {
    display: grid;
    grid-template-columns: 1fr 312px;
    gap: 24px;
    padding: 24px 30px;
}

.lp-player {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #0d1420;
}

.lp-player__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lp-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(13, 20, 32, .72);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
}

.lp-player__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    pointer-events: none;
}

.lp-player__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(255, 255, 255, .18);
    pointer-events: none;
}

.lp-player__progress > span {
    display: block;
    height: 100%;
    width: 0;
    background: #e5484d;
    transition: width 1s linear;
}

/* Home live player inner wrapper — fills the aspect box in normal flow; site.js
   pins it to the corner (see the shared sticky-player rules below). */
.lp-player__inner {
    position: absolute;
    inset: 0;
}

/* ---- sticky mini-player: pinned bottom-right once the video scrolls off-screen ----
   Shared by the home live player (.lp-player) and the watch page (.watch__player).
   The host stays in flow (JS reserves its height) so the page never jumps and the
   iframe is never re-parented; only the inner media wrapper is pinned. */
[data-sticky-player].is-floating [data-sticky-media] {
    position: fixed;
    /* inset shorthand resets top/left to auto so the home player's normal inset:0
       doesn't over-constrain the pinned box (which would stick it top-left). */
    inset: auto 20px 20px auto;
    width: 360px;
    max-width: 62vw;
    aspect-ratio: 16 / 9;
    height: auto;
    z-index: 1000;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
    animation: sticky-player-in .2s ease-out;
}

[data-sticky-player].is-floating [data-sticky-media] > iframe,
[data-sticky-player].is-floating [data-sticky-media] > video,
[data-sticky-player].is-floating [data-sticky-media] > .watch__video,
[data-sticky-player].is-floating [data-sticky-media] > .watch__embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
}

@keyframes sticky-player-in {
    from { opacity: 0; transform: translateY(14px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sticky-player__controls {
    position: absolute;
    top: 6px;
    right: 6px;
    display: none;
    gap: 6px;
    z-index: 3;
}

[data-sticky-player].is-floating [data-sticky-media] .sticky-player__controls {
    display: flex;
}

.sticky-player__btn {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(13, 20, 32, .72);
    color: #fff;
    cursor: pointer;
    transition: background .15s ease;
}

.sticky-player__btn:hover {
    background: rgba(13, 20, 32, .96);
}

@media (max-width: 640px) {
    [data-sticky-player].is-floating [data-sticky-media] {
        width: 220px;
        inset: auto 12px 12px auto;
    }
}

.lp-side {
    position: relative;
}

.lp-side__card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #e6eaef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.lp-onair {
    padding: 16px 16px 14px;
}

.lp-onair__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    color: #e5484d;
}

.lp-onair__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.15;
    color: #141a21;
    margin-top: 7px;
}

.lp-onair .lp-byl {
    margin-top: 4px;
}

.lp-watch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: #175cd3;
    color: #fff;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
}

.lp-watch-btn:hover {
    background: #0f3f96;
}

.lp-topnews {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #eceff3;
    padding: 13px 16px 14px;
    min-height: 0;
}

.lp-topnews__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.lp-topnews__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8b97a5;
}

.lp-topnews__all {
    font-size: 11.5px;
    font-weight: 600;
    color: #175cd3;
}

.lp-topnews__list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.lp-topnews__item {
    display: flex;
    gap: 10px;
    padding: 7px 0;
}

.lp-topnews__item + .lp-topnews__item {
    border-top: 1px solid #f2f5f8;
}

.lp-topnews__rank {
    font-size: 12px;
    font-weight: 700;
    color: #175cd3;
    width: 11px;
    flex-shrink: 0;
}

.lp-topnews__headline {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #141a21;
    line-height: 1.28;
}

.lp-topnews__body .lp-byl {
    display: block;
    margin-top: 3px;
}

.lp-topnews__item:hover .lp-topnews__headline {
    color: #175cd3;
}

/* ---- live engagement bar ---- */

.lp-engage {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 30px 20px;
}

.lp-engage__watching {
    margin-right: auto;
    font-size: 13px;
    color: #5b6672;
}

.lp-engage__watching strong {
    color: #141a21;
}

.lp-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border: 1px solid #e6eaef;
    background: #fff;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 600;
    color: #5b6672;
    cursor: pointer;
}

.lp-pill:hover {
    border-color: #cfe0fb;
    color: #141a21;
}

.lp-pill__heart,
.lp-cardaction--like svg {
    fill: none;
    stroke: currentColor;
}

.lp-pill--like.is-liked,
.lp-cardaction--like.is-liked {
    color: #e5484d;
}

.lp-pill--like.is-liked .lp-pill__heart,
.lp-cardaction--like.is-liked svg {
    fill: #e5484d;
    stroke: #e5484d;
}

.lp-share {
    position: relative;
}

.lp-share__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 172px;
    background: #fff;
    border: 1px solid #e6eaef;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(20, 26, 33, .14);
    padding: 5px;
    z-index: 60;
}

.lp-share__menu button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: none;
    font-size: 13px;
    font-weight: 500;
    color: #141a21;
    padding: 9px 11px;
    border-radius: 7px;
}

.lp-share__menu button:hover {
    background: #f1f4f7;
}

/* ---- EPG ---- */

.lp-epg {
    padding: 20px 30px;
    background: #f6f8fa;
    border-top: 1px solid #eceff3;
    border-bottom: 1px solid #eceff3;
}

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

.lp-epg__title {
    font-size: 15px;
    font-weight: 700;
    color: #141a21;
}

.lp-epg__days {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
}

.lp-epg__nav {
    border: 0;
    background: none;
    color: #175cd3;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.lp-epg__current {
    font-weight: 700;
    color: #141a21;
}

.lp-epg__scroller {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.lp-epg__inner {
    position: relative;
    width: -moz-max-content;
    width: max-content;
    min-width: 100%;
}

.lp-epg__ruler {
    display: flex;
}

.lp-epg__hour {
    /* Must stay in sync with EPG_PX_PER_HOUR in site.js (ruler + track share one scale). */
    width: 150px;
    flex-shrink: 0;
    padding: 0 0 8px 8px;
    border-left: 1px solid #dfe4ea;
    font-size: 11px;
    font-weight: 600;
    color: #8b97a5;
}

.lp-epg__track {
    position: relative;
    display: flex;
    height: 90px;
}

.lp-epg__block {
    flex-shrink: 0;
    height: 90px;
    padding: 11px 14px;
    background: #fff;
    border-top: 1px solid #e6eaef;
    border-bottom: 1px solid #e6eaef;
    border-right: 1px solid #eceff3;
    overflow: hidden;
    display: block;
    color: inherit;
    transition: box-shadow .12s ease, background-color .12s ease;
}

a.lp-epg__block:hover {
    background: #f4f8ff;
    box-shadow: inset 0 0 0 1px #175cd3;
}

.lp-epg__block:first-child {
    border-radius: 8px 0 0 8px;
    border-left: 1px solid #e6eaef;
}

.lp-epg__block:last-child {
    border-radius: 0 8px 8px 0;
}

.lp-epg__block-time {
    font-size: 11px;
    color: #8b97a5;
}

.lp-epg__block-title {
    font-size: 13px;
    font-weight: 600;
    color: #141a21;
    line-height: 1.15;
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-epg__block-host {
    font-size: 11px;
    color: #8b97a5;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-epg__block.is-live {
    background: #175cd3;
    border-color: #175cd3;
    border-radius: 8px 0 0 8px;
}

.lp-epg__block.is-live .lp-epg__block-time {
    color: #cfe0fb;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lp-epg__block.is-live .lp-epg__block-time .lp-dot {
    background: #fff;
    width: 7px;
    height: 7px;
}

.lp-epg__block.is-live .lp-epg__block-title {
    color: #fff;
}

.lp-epg__block.is-live .lp-epg__block-host {
    color: #cfe0fb;
}

.lp-epg__now {
    position: absolute;
    top: -6px;
    bottom: 0;
    width: 2px;
    background: #e5484d;
    z-index: 5;
    pointer-events: none;
}

.lp-epg__now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5484d;
}

.lp-epg__tznote {
    margin-top: 8px;
}

/* ---- section headers + shows & replays ---- */

.lp-sec__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 24px 30px 6px;
}

.lp-sec__title {
    font-size: 17px;
    font-weight: 700;
    color: #141a21;
}

.lp-sec__title--sm {
    font-size: 14px;
}

.lp-sec__all {
    font-size: 12.5px;
    font-weight: 600;
    color: #175cd3;
}

.lp-shows__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 10px 30px 6px;
}

.lp-showcard__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #0d1420;
}

.lp-showcard__thumb img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.lp-showcard__chip {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(13, 20, 32, .75);
    color: #e6eaef;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 600;
}

.lp-showcard__title {
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.2;
    color: #141a21;
    margin-top: 6px;
}

.lp-showcard__title a:hover {
    color: #175cd3;
}

.lp-showcard__dek {
    font-size: 13px;
    line-height: 1.5;
    color: #5b6672;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-showcard__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 11px;
}

.lp-cardaction {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    padding: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #5b6672;
    cursor: pointer;
}

.lp-cardaction:hover {
    color: #141a21;
}

/* ---- latest reads ---- */

.lp-reads__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px 30px 24px;
}

.lp-read {
    display: flex;
    gap: 13px;
}

.lp-read__thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f4f7;
}

.lp-read__thumb img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

.lp-read__headline {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #141a21;
    line-height: 1.28;
}

.lp-read:hover .lp-read__headline {
    color: #175cd3;
}

.lp-read__body .lp-byl {
    display: block;
    margin-top: 3px;
}

/* ---- conversation (restyle the shared comments module to the flat 2b look) ---- */

.lp-conv {
    padding: 20px 30px 24px;
    border-top: 1px solid #eceff3;
}

.lp-conv .comments-mount {
    max-width: none;
    margin-top: 0;
}

.lp-conv .comments__title {
    font-size: 15px;
    font-weight: 700;
}

.lp-conv .cmt-composer__field {
    background: #fff;
    border: 1px solid #e6eaef;
    border-radius: 9px;
}

.lp-conv .cmt__bubble {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.lp-conv .cmt__author {
    font-size: 13.5px;
}

.lp-conv .cmt__body {
    font-size: 13.5px;
    color: #3a4653;
    margin-top: 2px;
}

.lp-conv .cmt {
    padding: 13px 0 0;
    margin-top: 0;
    border-top: 1px solid #f2f5f8;
}

.lp-conv .cmt--reply {
    border-top: 0;
}

.lp-conv .cmt__actions {
    padding-left: 0;
}

.lp-conv .cmt__avatar--fallback {
    background: #eaf1fc;
    color: #175cd3;
}

/* ---- footer ---- */

.lp-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 30px;
    border-top: 1px solid #eceff3;
    font-size: 12px;
    color: #8b97a5;
}

.lp-foot__links {
    display: flex;
    gap: 16px;
}

.lp-foot__links a:hover {
    color: #175cd3;
}

/* ---- responsive ---- */

@media (max-width: 900px) {
    .lp-hero {
        grid-template-columns: 1fr;
    }

    .lp-side__card {
        position: static;
    }

    .lp-shows__grid,
    .lp-reads__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .lp-mast,
    .lp-hero,
    .lp-engage,
    .lp-epg,
    .lp-foot {
        padding-left: 16px;
        padding-right: 16px;
    }

    .lp-sec__head {
        padding-left: 16px;
        padding-right: 16px;
    }

    .lp-shows__grid,
    .lp-reads__grid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .lp-search {
        width: 130px;
    }

    .lp-engage {
        flex-wrap: wrap;
    }

    .lp-engage__watching {
        width: 100%;
    }
}

/* ---- dark mode ---- */

[data-color-mode="dark"] {
    --ltv-canvas: #0f0f0f;
    --ltv-bg: #272727;
    --ltv-surface: #1f2228;
    --ltv-border: #3f3f3f;
    --ltv-hover: rgba(255, 255, 255, .1);
    --ltv-text: #f1f1f1;
    --ltv-text-muted: #aaaaaa;
    --ltv-text-faint: #808080;
    --ltv-accent: #4dabf7;
    --ltv-accent-hover: #74c0fc;
    --ltv-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .55);
    --ltv-shadow-hover: 0 4px 12px rgba(0, 0, 0, .6), 0 2px 5px rgba(0, 0, 0, .5);
}

/* Skeleton shimmer uses fixed light greys; give it dark-friendly stops under dark mode. */
[data-color-mode="dark"] .skeleton {
    background: linear-gradient(90deg, #24272e 25%, #2d313a 45%, #24272e 65%);
    background-size: 200% 100%;
}

/* ---- responsive ---- */

@media (max-width: 1350px) {
    .watch__secondary {
        flex-basis: 340px;
    }
}

@media (max-width: 1099.98px) {
    .watch {
        flex-direction: column;
    }

    .watch__secondary {
        flex-basis: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .shell__main {
        padding: 16px 12px 24px;
    }

    .card-river,
    .feed-sentinel {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .topbar {
        gap: 8px;
        padding: 0 8px;
    }

    .site-search {
        max-width: none;
    }

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

    .watch__actions {
        margin-left: 0;
    }

    .mini-card__thumb {
        width: 140px;
    }
}
