/* HIGHLIGHTS PAGE  news.css */
body.hl-page-active .main-area {
    height: 100vh;
    overflow: hidden
}

.hl-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: var(--bg)
}

@media(max-width: 768px) {
    .hl-page {
        height:auto;
        min-height: 100vh;
        overflow: visible
    }
}

/* ── BODY GRID ── */
.hl-body {
    display: grid;
    grid-template-columns: 22% 46% 32%;
    flex: 1;
    overflow: hidden;
    height: 100%;
}

/* ════════════════════════════════════════
   LEFT COLUMN — Countdown + Reels Grid
════════════════════════════════════════ */
.hl-reels-col {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    overflow: hidden;
    min-width: 0;
    background: var(--surface);
}

/* Countdown pinned at top of left column */
.hl-col-countdown {
    flex-shrink: 0;
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--surface), var(--card));
    text-align: center;
}

.hl-col-countdown .hl-countdown-label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 800;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 2px;
}

.hl-col-countdown .hl-countdown-date {
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 10px;
}

.hl-col-countdown .hl-countdown-digits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.hl-col-countdown .hl-cd-num {
    font-family: var(--font-display);
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 900;
    font-style: italic;
    background: linear-gradient(135deg, var(--gold), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hl-col-countdown .hl-cd-lbl {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.hl-col-countdown .hl-cd-sep {
    font-size: 18px;
    font-weight: 900;
    color: var(--gold);
    opacity: .6;
    margin-bottom: 10px;
}

/* Reels section label */
.hl-reels-section-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
    padding: 10px 12px 6px;
    flex-shrink: 0;
}

/* Scrollable reels area */
.hl-reels-wrap {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.hl-reels-wrap::-webkit-scrollbar { width: 3px; }
.hl-reels-wrap::-webkit-scrollbar-thumb { background: var(--panel); border-radius: 3px; }

/* ── REEL CARD GRID — 2 columns of portrait rectangles ── */
.hl-reels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 8px 12px;
}

/* Skeleton cards */
.reel-card-skel {
    aspect-ratio: 9/16;
    border-radius: var(--r-sm);
}

/* Individual reel card */
.reel-card {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: var(--r-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--panel);
    border: 1px solid var(--border);
    transition: transform .2s ease, border-color .2s, box-shadow .2s;
    -webkit-tap-highlight-color: transparent;
}

.reel-card:hover {
    transform: scale(1.03);
    border-color: rgba(232, 184, 75, .35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}

/* Media preview fills the card */
.reel-card-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Emoji placeholder when no media */
.reel-card-emoji {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(28px, 3vw, 40px);
    background: linear-gradient(135deg, var(--panel), var(--card));
}

/* Gradient overlay at bottom */
.reel-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 8px 8px;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
    pointer-events: none;
}

.reel-card-label {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* View count badge — top-right corner */
.reel-card-views {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 3px;
    pointer-events: none;
}

/* Gradient ring border on the card (matches sidebar ring) */
.reel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-sm);
    padding: 2px;
    background: linear-gradient(135deg, #e03030, #8b5cf6, #e8b84b);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
    z-index: 2;
}

.reel-card:hover::before {
    opacity: 1;
}

/* Video cards — muted autoplay preview */
.reel-card video.reel-card-media {
    pointer-events: none;
}

.hl-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg)
}

.hl-chat-header {
    height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--surface)
}

.hl-class-label {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px
}

.hl-class-select {
    height: 32px;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    outline: none
}

.hl-class-select:focus {
    border-color: rgba(45,212,191,.4)
}

.hl-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--gold),var(--red));
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0
}

.hl-chat-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px
}

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

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

.hl-chat-actions {
    display: flex;
    gap: 6px
}

.hl-chat-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: color .15s,background .15s
}

.hl-chat-action-btn:hover {
    color: var(--text);
    background: var(--panel)
}

.hl-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hl-messages::-webkit-scrollbar {
    width: 3px
}

.hl-messages::-webkit-scrollbar-thumb {
    background: var(--panel);
    border-radius: 3px
}

.hl-msg-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 78%
}

.hl-msg-wrap.sent {
    align-self: flex-end;
    align-items: flex-end
}

.hl-msg-wrap.received {
    align-self: flex-start;
    align-items: flex-start
}

.hl-msg-author {
    font-size: 10px;
    font-weight: 700;
    color: var(--purple);
    padding: 0 4px
}

.hl-bubble {
    padding: 8px 12px;
    border-radius: var(--r);
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
    position: relative;
    cursor: context-menu
}

.hl-msg-wrap.received .hl-bubble {
    /* background and border-color set inline by JS per author */
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 0 var(--r) var(--r) var(--r);
    color: var(--text)
}

.hl-msg-wrap.sent .hl-bubble {
    background: var(--teal);
    color: #000;
    border-radius: var(--r) 0 var(--r) var(--r);
    border: none
}

.hl-msg-ts {
    font-size: 10px;
    color: var(--muted);
    padding: 0 4px
}

.hl-msg-system {
    align-self: center;
    background: rgba(0,0,0,.25);
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    margin: 4px 0
}

.hl-reply-preview {
    background: rgba(0,0,0,.15);
    border-left: 3px solid var(--gold);
    border-radius: var(--r-xs);
    padding: 4px 8px;
    margin-bottom: 4px;
    font-size: 11px;
    color: var(--muted);
    max-width: 100%
}

.hl-reactions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 3px
}

.hl-reaction {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 2px 7px;
    font-size: 11px;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    gap: 3px
}

.hl-reaction:hover {
    background: var(--card)
}

.hl-reaction.mine {
    border-color: var(--gold);
    background: var(--gold-dim)
}

.hl-input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0
    
}
@media(max-width:768px){
    .hl-input-row{
      position:fixed;
      bottom:10vh;
    }
}

.hl-emoji-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    transition: transform .15s
}

.hl-emoji-btn:hover {
    transform: scale(1.15)
}

.hl-input-wrap {
    flex: 1;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 8px 12px;
    transition: border-color .18s
}

.hl-input-wrap:focus-within {
    border-color: rgba(45,212,191,.4)
}

.hl-msg-input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.5;
    resize: none;
    max-height: 120px;
    overflow-y: auto
}

.hl-msg-input::placeholder {
    color: var(--muted)
}

.hl-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--teal);
    border: none;
    color: #000;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform .15s,opacity .15s
}

.hl-send-btn:hover {
    transform: scale(1.08)
}

.hl-send-btn:disabled {
    opacity: .4;
    cursor: not-allowed
}

.hl-poll-composer {
    background: var(--panel);
    border-top: 1px solid var(--border);
    padding: 12px;
    flex-shrink: 0
}

.hl-poll-composer-inner {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.hl-poll-input,.hl-poll-option-input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text);
    outline: none;
    width: 100%;
    transition: border-color .18s
}

.hl-poll-input:focus,.hl-poll-option-input:focus {
    border-color: rgba(232,184,75,.4)
}

.hl-poll-composer-actions {
    display: flex;
    align-items: center;
    gap: 8px
}

.hl-poll-add-opt {
    background: none;
    border: none;
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0
}

.hl-poll-cancel {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px
}

.hl-poll-send {
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: var(--r-sm);
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer
}

.hl-poll-bubble {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 12px;
    min-width: 220px
}

.hl-poll-q {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px
}

.hl-poll-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    margin-bottom: 6px;
    cursor: pointer;
    transition: background .15s;
    position: relative;
    overflow: hidden
}

.hl-poll-opt:hover {
    background: var(--panel)
}

.hl-poll-opt.voted {
    border-color: var(--teal);
    cursor: default
}

.hl-poll-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(45,212,191,.15);
    transition: width .4s ease;
    z-index: 0
}

.hl-poll-opt-text {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: var(--text);
    flex: 1
}

.hl-poll-opt-pct {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 700;
    color: var(--teal)
}

.hl-countdown-card {
    background: linear-gradient(135deg,var(--surface),var(--card));
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 18px;
    text-align: center
}

.hl-countdown-label {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 4px
}

.hl-countdown-date {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 14px
}

.hl-countdown-digits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px
}

.hl-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px
}

.hl-cd-num {
    font-family: var(--font-display);
    font-size: clamp(22px,3vw,32px);
    font-weight: 900;
    font-style: italic;
    background: linear-gradient(135deg,var(--gold),var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1
}

.hl-cd-lbl {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted)
}

.hl-cd-sep {
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
    opacity: .6;
    margin-bottom: 12px
}

.hl-right-section {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.hl-right-section-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text)
}

.hl-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0
}

.hl-dot--red {
    background: var(--red);
    box-shadow: 0 0 5px var(--red)
}

.hl-dot--gold {
    background: var(--gold);
    box-shadow: 0 0 5px var(--gold)
}

.hl-events-list {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.hl-event-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .15s;
    cursor: default;
    position: relative;
    overflow: hidden
}

.hl-event-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--event-accent,var(--gold))
}

.hl-event-item:hover {
    background: var(--panel)
}

.hl-event-icon {
    font-size: 18px;
    flex-shrink: 0
}

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

.hl-event-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.hl-event-meta {
    font-size: 10px;
    color: var(--muted);
    margin-top: 1px
}

.hl-event-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    flex-shrink: 0
}

.hl-news-list {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.hl-news-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background .15s
}

.hl-news-item:hover {
    background: var(--panel)
}

.hl-news-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px
}

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

.hl-news-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.hl-news-meta {
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px
}

.hl-emoji-picker {
    position: fixed;
    background: var(--surface);
    border: 1px solid var(--border-md);
    border-radius: var(--r-sm);
    padding: 10px;
    box-shadow: 0 16px 48px var(--shadow);
    z-index: 9999;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 4px;
    width: 200px
}

.hl-emoji-picker button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--r-xs);
    transition: background .12s;
    line-height: 1
}

.hl-emoji-picker button:hover {
    background: var(--panel)
}

.hl-ctx-menu {
    position: fixed;
    background: var(--surface);
    border: 1px solid var(--border-md);
    border-radius: var(--r-sm);
    box-shadow: 0 8px 32px var(--shadow);
    z-index: 9999;
    overflow: hidden;
    min-width: 140px
}

.hl-ctx-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background .12s
}

.hl-ctx-item:hover {
    background: var(--panel)
}

.nav-reel-ring {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg,#e03030 0%,#8b5cf6 50%,#e8b84b 100%);
    position: relative;
    transition: transform .18s ease
}

.nav-reel-ring::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--surface);
    transition: background .3s
}

.nav-item:hover .nav-reel-ring,.nav-item.active .nav-reel-ring {
    transform: scale(1.08)
}

.nav-item.active .nav-reel-ring::after {
    background: var(--gold-dim)
}

@media(min-width: 769px) {
    /* Topbar is already gone from the HTML — nothing to hide */
    body.hl-page-active .topbar {
        display:none!important
    }
}

@media(max-width: 768px) {
    .hl-body {
        display: flex;
        flex-direction: column;
        height: calc(100dvh - var(--bottom-h));
        overflow: hidden;
    }

    .hl-reels-col {
        border-right: none;
        border-bottom: none;
        flex-shrink: 0;
    }

    .hl-chat-col {
        border-right: none;
        flex: 1;
        overflow: hidden;
        min-height: 0;
    }

    /* Hide desktop-only right column on mobile */
    .hl-right {
        display: none;
    }

    /* Hide desktop countdown in left col */
    .hl-col-countdown {
        display: none;
    }

    /* Chat fills remaining space */
    .hl-chat {
        height: 100%;
    }

    .hl-page {
        height: calc(100dvh - var(--bottom-h));
        overflow: hidden;
    }

    body.hl-page-active .main-area {
        height: calc(100dvh - var(--bottom-h));
        overflow: hidden;
    }

    /* ── Reels strip: horizontal circles ── */
    .hl-reels-wrap {
        padding: 8px 12px;
        flex-shrink: 0;
        overflow: visible;
        flex: none;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
    }

    .hl-reels-section-label {
        display: none;
    }

    .hl-reels-grid {
        display: flex;
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px 2px 6px;
        scrollbar-width: none;
        align-items: center;
    }

    .hl-reels-grid::-webkit-scrollbar { display: none; }

    /* Mobile reel cards — circles with gradient ring border */
    .reel-card {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        aspect-ratio: unset;
        border-radius: 50%;
        border: 2.5px solid transparent;
        background-clip: padding-box;
        box-shadow: 0 0 0 2.5px transparent,
                    inset 0 0 0 2.5px var(--bg);
        /* Gradient ring via outline trick */
        outline: 2.5px solid transparent;
        position: relative;
    }

    /* Gradient ring on mobile reel circles */
    .reel-card::after {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: 50%;
        background: linear-gradient(135deg, #e03030, #8b5cf6, #e8b84b);
        z-index: -1;
    }

    .reel-card-overlay {
        display: none;
    }

    .reel-card-views {
        display: none;
    }

    .reel-card-skel {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        aspect-ratio: unset;
        border-radius: 50%;
    }

    /* Special Events/Articles rings — slightly larger */
    .reel-special-ring {
        width: 60px;
        height: 60px;
    }

    .reel-special-ring .reel-card-overlay {
        display: flex;
        padding: 0;
        background: none;
        bottom: -18px;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }

    .reel-special-ring .reel-card-label {
        display: block;
        font-size: 9px;
        color: var(--text-2);
        text-align: center;
    }

    .hl-class-label {
        display: none;
    }

    /* ── Floating highlights ring — bottom-right corner ── */
    .hl-topbar { display: none; }

    .hl-highlights-strip {
        position: fixed;
        bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px) + 12px);
        right: 12px;
        left: auto;
        flex: none;
        width: auto;
        max-width: calc(100vw - 24px);
        justify-content: flex-end;
        gap: 10px;
        padding: 8px 12px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 50px;
        box-shadow: 0 4px 20px rgba(0,0,0,.45);
        z-index: 150;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 16px, black calc(100% - 16px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 16px, black calc(100% - 16px), transparent 100%);
    }

    .hl-highlights-strip::-webkit-scrollbar { display: none; }
    .hl-highlight-ring { width: 44px; height: 44px; }
    .hl-highlight-label { display: none; }
}

/* ════════════════════════════════════════════════════
   MOBILE COUNTDOWN BANNER
   Fixed above the messages list — like WhatsApp's
   end-to-end encryption notice. Never scrolls away.
════════════════════════════════════════════════════ */
.hl-countdown-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(232,184,75,.12), rgba(224,48,48,.08));
    border-bottom: 1px solid rgba(232,184,75,.2);
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-2);
    position: sticky;
    top: 0;
    z-index: 5;
}

.hl-countdown-banner-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.hl-countdown-banner-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.hl-countdown-banner-text strong {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-display);
    font-style: italic;
}

#hl-banner-digits {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: .5px;
}

/* ════════════════════════════════════════════════════
   MOBILE CONTENT OVERLAY (Events / Articles)
   Instagram post-style: slides up from bottom,
   full-screen panel with header + scrollable body.
════════════════════════════════════════════════════ */
.hl-content-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.hl-content-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.hl-content-overlay-panel {
    width: 100%;
    max-height: 88dvh;
    background: var(--surface);
    border-radius: 20px 20px 0 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}

.hl-content-overlay.open .hl-content-overlay-panel {
    transform: translateY(0);
}

.hl-content-overlay-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.hl-content-overlay-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: color .15s;
}

.hl-content-overlay-close:hover { color: var(--text); }

.hl-content-overlay-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    font-style: italic;
    color: var(--text);
}

.hl-content-overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Event card in overlay */
.hl-overlay-event-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    position: relative;
    overflow: hidden;
}

.hl-overlay-event-accent-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--event-accent, var(--gold));
    border-radius: 0;
}

.hl-overlay-event-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.hl-overlay-event-info {
    flex: 1;
    min-width: 0;
}

.hl-overlay-event-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.hl-overlay-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.hl-overlay-event-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Article card in overlay */
.hl-overlay-article-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
}

.hl-overlay-article-icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.hl-overlay-article-info {
    flex: 1;
    min-width: 0;
}

.hl-overlay-article-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 4px;
}

.hl-overlay-article-meta {
    font-size: 11px;
    color: var(--muted);
}

/* ── Mobile reel overlay: full-screen Instagram post style ── */
@media(max-width: 768px) {
    .reel-overlay-panel {
        flex-direction: column;
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
    }

    /* Media takes exactly 60% */
    .reel-media-side {
        width: 100%;
        flex: 0 0 60%;
        min-height: 0;
        background: #000;
    }

    /* Comments section: remaining 40%, flex column so input stays at bottom */
    .reel-comments-side {
        flex: 0 0 40%;
        min-height: 0;
        border-left: none;
        border-top: 1px solid var(--border);
        background: var(--surface);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* Comments list scrolls, input row stays fixed at bottom */
    .reel-comments-list {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }

    /* Input row pinned to bottom — never disappears */
    .reel-comment-input-row {
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        background: var(--surface);
        border-top: 1px solid var(--border);
        padding: 8px 12px;
        padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
    }

    /* Show the nav arrows on mobile */
    .reel-nav-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(0,0,0,.55);
        backdrop-filter: blur(4px);
        color: #fff;
        pointer-events: none;
    }

    .reel-tap-prev,
    .reel-tap-next {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 52px;
        padding: 0 8px;
    }

    .reel-tap-next {
        justify-content: flex-end;
    }

    .reel-nav-arrow--prev { margin-left: 2px; }
    .reel-nav-arrow--next { margin-right: 2px; }
}

.reel-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease
}

.reel-overlay.reel-overlay--open {
    opacity: 1;
    pointer-events: all
}

.reel-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(6px)
}

/* ── Nav arrow spans — hidden on desktop, shown on mobile ── */
.reel-nav-arrow {
    display: none;
}

.reel-overlay-panel {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(900px, 80vw);
    height: min(600px, 80vh);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 32px 80px rgba(0,0,0,.7)
}

.reel-media-side {
    flex: 0 0 auto;
    width: 55%;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}
@media(max-width:726px){
    .reel-media-side {width:100%}
}

.reel-segments {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 3px;
    z-index: 5
}

.reel-seg {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,.3);
    border-radius: 2px;
    overflow: hidden
}

.reel-seg-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width .1s linear
}

.reel-seg--done .reel-seg-fill {
    width: 100%
}

.reel-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    font-size: 14px;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 6;
    transition: background .15s
}

.reel-close-btn:hover {
    background: rgba(255,255,255,.2)
}

.reel-tap-prev,.reel-tap-next {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    z-index: 4;
    cursor: pointer
}

.reel-tap-prev {
    left: 0
}

.reel-tap-next {
    right: 0
}

.reel-media-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center
}

.reel-ov-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px
}

.reel-ov-emoji {
    font-size: clamp(72px,12vw,100px);
    line-height: 1;
    animation: reel-float 3s ease-in-out infinite
}

@keyframes reel-float {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

.reel-ov-coming {
    font-size: 12px;
    color: rgba(255,255,255,.4);
    text-align: center
}

.reel-media-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 18px 18px;
    background: linear-gradient(to top,rgba(0,0,0,.75) 0%,transparent 100%);
    color: #fff;
    pointer-events: none
}

.reel-ov-title {
    font-family: var(--font-display);
    font-size: clamp(14px,2vw,17px);
    font-weight: 700;
    font-style: italic;
    margin-bottom: 4px
}

.reel-ov-desc {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    line-height: 1.5
}

.reel-comments-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-left: 1px solid var(--border);
    min-width: 0
}

.reel-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0
}

.reel-post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0
}

.reel-post-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0
}

.reel-post-author {
    font-size: 13px;
    font-weight: 700;
    color: var(--text)
}

.reel-post-time {
    font-size: 11px;
    color: var(--muted)
}

.reel-actions-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0
}

.reel-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--text-2);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: color .15s,transform .15s
}

.reel-action-btn:hover {
    color: var(--text);
    transform: scale(1.1)
}

.reel-heart {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: fill .15s,stroke .15s
}

.reel-like-btn--liked .reel-heart {
    fill: var(--red);
    stroke: var(--red)
}

.reel-like-btn--liked {
    color: var(--red)
}

.reel-like-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-2);
    min-width: 20px
}

.reel-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px
}

.reel-no-comments {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    padding: 24px 0
}

.reel-comment {
    display: flex;
    gap: 10px;
    align-items: flex-start
}

.reel-comment--reply {
    margin-left: 36px;
    margin-top: 8px
}

.reel-comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 14px;
    flex-shrink: 0
}

.reel-comment-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px
}

.reel-comment-top {
    display: flex;
    align-items: baseline;
    gap: 6px
}

.reel-comment-author {
    font-size: 12px;
    font-weight: 700;
    color: var(--text)
}

.reel-comment-ts {
    font-size: 10px;
    color: var(--muted)
}

.reel-comment-text {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
    word-break: break-word
}

.reel-comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2px
}

.reel-comment-like-btn {
    background: none;
    border: none;
    font-size: 11px;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color .15s
}

.reel-comment-like-btn:hover {
    color: var(--red)
}

.reel-comment-like-btn--liked {
    color: var(--red)
}

.reel-comment-reply-btn {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    transition: color .15s
}

.reel-comment-reply-btn:hover {
    color: var(--text)
}

.reel-replies {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    padding-left: 4px;
    border-left: 2px solid var(--border)
}

.reel-reply-input-wrap {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center
}

.reel-reply-input {
    flex: 1;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--text);
    outline: none;
    transition: border-color .18s
}

.reel-reply-input:focus {
    border-color: rgba(232,184,75,.4)
}

.reel-comment-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    flex-shrink: 0
}

.reel-commenter-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 13px;
    flex-shrink: 0
}

.reel-comment-input {
    flex: 1;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: border-color .18s
}

.reel-comment-input:focus {
    border-color: rgba(232,184,75,.4)
}

.reel-comment-input::placeholder {
    color: var(--muted)
}

.reel-post-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    cursor: pointer;
    padding: 4px 6px;
    flex-shrink: 0;
    transition: opacity .15s
}

.reel-post-btn:hover {
    opacity: .75
}
