/* Youtube Vloggers section. Colours/fonts come from the shared tokens in /site-theme.css. */
.container { max-width: 960px; margin: 0 auto; padding: 0 16px 40px; }
.container > h1 { text-align: center; margin: 0 0 6px; }
.vg-sub { text-align: center; color: var(--text-muted, #9bb); margin: 0 0 10px; }
.vg-sub strong { color: var(--text-color, #f5f5f5); }
.vg-clock { text-align: center; color: var(--accent-gold, #ffc107); font-size: 0.85rem; font-weight: 600; margin: 0 0 14px; }
.vg-status { text-align: center; min-height: 1.2em; color: #ff8a8a; font-size: 0.9rem; margin-bottom: 8px; }

/* ---------- Form: one wide row on desktop, stacked on phones ---------- */
.vg-form {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
    margin: 0 0 14px;
    padding: 14px 16px;
    background: var(--panel-bg, rgba(18, 38, 28, 0.55));
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--card-radius, 18px);
    box-shadow: var(--panel-glow, 0 8px 32px rgba(0, 0, 0, 0.37));
}
.vg-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 0 0 170px; }
.vg-field.vg-field-id { flex: 1 1 260px; }
.vg-form label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-gold, #ffc107);
}
.vg-form input, .vg-form select {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.12));
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-color, #f5f5f5);
    font-size: 0.95rem;
}
.vg-form select option { background: #12261c; color: #f5f5f5; }
.vg-form input:focus, .vg-form select:focus { outline: 2px solid var(--accent-gold, #ffc107); border-color: transparent; }
.vg-save {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 30px;
    border: 0;
    border-radius: 8px;
    background: var(--accent-gold, #ffc107);
    color: var(--text-dark, #12261c);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}
.vg-save:disabled { opacity: 0.6; cursor: wait; }
.vg-msg { flex-basis: 100%; font-size: 0.82rem; line-height: 1.35; }
.vg-msg:empty { display: none; }
.vg-ok { color: #7be0a0; }
.vg-err { color: #ff8a8a; }

/* ---------- Table ---------- */
.vg-table-wrap {
    background: var(--panel-bg, rgba(18, 38, 28, 0.55));
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--card-radius, 18px);
    box-shadow: var(--panel-glow, 0 8px 32px rgba(0, 0, 0, 0.37));
}
.vg-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.vg-table th, .vg-table td { padding: 12px 16px; text-align: left; vertical-align: top; }
.vg-table thead th {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-gold, #ffc107);
    background: rgba(0, 0, 0, 0.25);
}
.vg-table thead th:first-child { border-top-left-radius: var(--card-radius, 18px); }
.vg-table thead th:last-child { border-top-right-radius: var(--card-radius, 18px); }
.vg-table tbody tr + tr td { border-top: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08)); }
.vg-table td.vg-time {
    position: relative;
    width: 120px;
    font-weight: 700;
    white-space: nowrap;
    padding-top: 18px;
    cursor: help;
    outline: none;
}
.vg-table tr.vg-half td.vg-time { font-weight: 500; color: var(--text-muted, #9bb); }

/* UK time tooltip (hover, keyboard focus, or tap on a phone) */
.vg-uk {
    position: absolute;
    top: 50%;
    left: 78px;
    transform: translateY(-50%);
    z-index: 20;
    padding: 6px 10px;
    border-radius: 8px;
    background: #0b1a12;
    border: 1px solid var(--accent-gold, #ffc107);
    color: var(--text-color, #f5f5f5);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease;
}
.vg-table td.vg-time:hover .vg-uk, .vg-table td.vg-time:focus .vg-uk { opacity: 1; visibility: visible; }

/* Current slot in Indian time: clearly different background, gold edge and a NOW tag */
.vg-table tr.vg-now td { background: rgba(46, 204, 113, 0.22); }
.vg-table tr.vg-now td.vg-time {
    color: var(--accent-gold, #ffc107);
    font-weight: 800;
    box-shadow: inset 4px 0 0 var(--accent-gold, #ffc107);
}
.vg-table tr.vg-now td.vg-time .vg-label::after {
    content: 'NOW';
    display: block;
    width: max-content;
    margin-top: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--accent-gold, #ffc107);
    color: var(--text-dark, #12261c);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.vg-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 40px; }

/* ---------- Capsules ---------- */
.vg-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 2px 4px 2px 12px;
    border-radius: 999px;
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.12));
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}
.vg-chip a {
    color: var(--text-color, #f5f5f5);
    text-decoration: none;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px 6px 4px 0;
}
.vg-chip a:hover { color: var(--accent-gold, #ffc107); text-decoration: underline; }
.vg-chip button {
    width: 24px; height: 24px;
    border: 0; border-radius: 50%;
    background: none;
    color: var(--text-muted, #9bb);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
}
.vg-chip button:hover { background: rgba(255, 255, 255, 0.12); color: var(--accent-red, #e0243a); }

/* ---------- + button and inline add form ---------- */
.vg-add {
    flex: 0 0 auto;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px dashed var(--text-muted, #9bb);
    background: transparent;
    color: var(--text-muted, #9bb);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
.vg-add:hover, .vg-add:focus-visible { border-color: var(--accent-gold, #ffc107); color: var(--accent-gold, #ffc107); outline: none; }
.vg-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1 1 100%; max-width: 520px; }
.vg-entry input {
    box-sizing: border-box;
    flex: 1 1 200px;
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.12));
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-color, #f5f5f5);
    font-size: 0.9rem;
}
.vg-entry input:focus { outline: 2px solid var(--accent-gold, #ffc107); border-color: transparent; }
.vg-entry button { min-height: 38px; border: 0; border-radius: 8px; padding: 0 14px; font-size: 0.85rem; cursor: pointer; }
.vg-entry-save { background: var(--accent-gold, #ffc107); color: var(--text-dark, #12261c); font-weight: 700; }
.vg-entry-cancel { background: rgba(255, 255, 255, 0.1); color: var(--text-color, #f5f5f5); }
.vg-entry button:disabled { opacity: 0.6; cursor: wait; }
.vg-entry-err { flex-basis: 100%; color: #ff8a8a; font-size: 0.8rem; }
.vg-entry-err:empty { display: none; }
/* ---------- Drag & drop ---------- */
.vg-chip.vg-dragging { opacity: 0.3; }
.vg-chip.vg-ghost {
    position: fixed;
    z-index: 9999;
    margin: 0;
    pointer-events: none;
    opacity: 0.95;
    cursor: grabbing;
    background: rgba(40, 70, 52, 0.95);
    border-color: var(--accent-gold, #ffc107);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--accent-gold, #ffc107);
    transform: rotate(-2deg);
}
.vg-drop {
    flex: 0 0 4px;
    width: 4px;
    height: 30px;
    border-radius: 2px;
    background: var(--accent-gold, #ffc107);
    box-shadow: 0 0 10px var(--accent-gold-glow, rgba(255, 193, 7, 0.6));
}
.vg-table tr.vg-over td { background: rgba(255, 193, 7, 0.12); }
.vg-table tr.vg-reject td { background: rgba(224, 36, 58, 0.18); }
body.vg-is-dragging, body.vg-is-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }

footer { text-align: center; color: var(--text-muted, #9bb); padding: 20px 0; }

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
    .container { padding: 0 12px 32px; }
    .vg-sub { font-size: 0.9rem; }
    .vg-form { padding: 14px; gap: 10px; }
    .vg-field { flex: 1 1 calc(50% - 5px); }
    .vg-field.vg-field-id { flex: 1 1 100%; }
    .vg-save { flex: 1 1 100%; }
    /* 16px stops iOS Safari from zooming into the field */
    .vg-form input, .vg-form select { font-size: 16px; }
    .vg-chip button { width: 30px; height: 30px; font-size: 1.05rem; }
    .vg-chip a { max-width: 46vw; padding: 7px 8px 7px 0; }
    .vg-add { width: 38px; height: 38px; }
    .vg-entry input { font-size: 16px; }
    .vg-entry button { padding: 0 16px; font-size: 0.95rem; }
}
@media (max-width: 600px) {
    /* Each slot becomes a card: time on top, pills below at full width */
    .vg-table, .vg-table tbody, .vg-table tr, .vg-table td { display: block; width: 100%; box-sizing: border-box; }
    .vg-table thead { display: none; }
    .vg-table tbody tr + tr { border-top: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08)); }
    .vg-table tbody tr + tr td { border-top: 0; }
    body[data-section] .vg-table td { border-bottom: 0; }
    .vg-table td.vg-time {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 10px 12px 0;
        font-size: 0.95rem;
    }
    .vg-table tr.vg-now td.vg-time .vg-label::after { display: inline-block; margin: 0 0 0 8px; }
    .vg-uk { top: 100%; left: 12px; transform: none; margin-top: 2px; }
    .vg-table td:not(.vg-time) { padding: 6px 12px 12px; }
}

/* ================= Tabs: Timeline | List ================= */
.vg-tabs { display: flex; justify-content: center; gap: 8px; margin: 0 0 12px; }
.vg-tab {
    min-height: 40px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.12));
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted, #9bb);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}
.vg-tab:hover { color: var(--text-color, #f5f5f5); }
.vg-tab.active { background: var(--accent-gold, #ffc107); border-color: var(--accent-gold, #ffc107); color: var(--text-dark, #12261c); }
.vg-view[hidden] { display: none; }
.vg-hint { text-align: center; color: var(--text-muted, #9bb); font-size: 0.82rem; margin: 0 0 10px; }
.vg-hint strong { color: var(--accent-gold, #ffc107); }
.vg-legend { text-align: center; color: var(--text-muted, #9bb); font-size: 0.78rem; margin: 10px 0 0; }

/* ================= Timeline ================= */
.vg-tl-scroll {
    overflow-x: auto;
    background: var(--panel-bg, rgba(18, 38, 28, 0.55));
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--card-radius, 18px);
    box-shadow: var(--panel-glow, 0 8px 32px rgba(0, 0, 0, 0.37));
}
.vg-tl {
    --vg-name: 190px;
    --vg-col: 32px;
    position: relative;
    display: grid;
    grid-template-columns: var(--vg-name) repeat(16, minmax(var(--vg-col), 1fr));
    grid-template-rows: auto;
    grid-auto-rows: 46px;
    min-width: calc(var(--vg-name) + 16 * var(--vg-col));
}
.vg-tl-corner, .vg-tl-heatlabel, .vg-tl-name {
    position: sticky;
    left: 0;
    z-index: 6;
    background: #0f2218;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    padding: 0 12px;
    min-width: 0;
}
.vg-tl-corner { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #9bb); font-weight: 700; }
.vg-tl-heatlabel { font-size: 0.72rem; color: var(--text-muted, #9bb); border-top: 1px solid var(--panel-border, rgba(255,255,255,.08)); }
.vg-tl-name { border-top: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08)); font-weight: 600; font-size: 0.9rem; }
.vg-tl-name a { color: var(--accent-gold, #ffc107); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vg-tl-name a:hover { text-decoration: underline; }
.vg-tl-head {
    padding: 8px 6px 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.74rem;
    line-height: 1.25;
    color: var(--text-muted, #9bb);
    background: rgba(0, 0, 0, 0.25);
    min-width: 0;
}
.vg-tl-head b { display: block; font-size: 0.8rem; color: var(--text-color, #f5f5f5); }
.vg-tl-head.vg-tl-now { background: rgba(46, 204, 113, 0.28); }
.vg-tl-head.vg-tl-now b { color: var(--accent-gold, #ffc107); }
.vg-tl-heat {
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: #fff;
    border-top: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
    border-left: 1px dashed var(--panel-border, rgba(255, 255, 255, 0.08));
}
.vg-tl-heat.vg-tl-now { outline: 2px solid var(--accent-gold, #ffc107); outline-offset: -2px; }
.vg-tl-hr { border-left: 1px solid rgba(255, 255, 255, 0.16) !important; }
.vg-tl-cell {
    display: flex; align-items: center; justify-content: center;
    border-top: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
    border-left: 1px dashed var(--panel-border, rgba(255, 255, 255, 0.08));
}
.vg-tl-add {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1px dashed var(--text-muted, #9bb);
    background: transparent;
    color: var(--text-muted, #9bb);
    font-size: 1rem; line-height: 1;
    cursor: pointer;
    opacity: 0;
}
.vg-tl-cell:hover .vg-tl-add, .vg-tl-add:focus-visible { opacity: 1; border-color: var(--accent-gold, #ffc107); color: var(--accent-gold, #ffc107); outline: none; }
@media (hover: none) { .vg-tl-add { opacity: 0.3; } }
.vg-tl-empty { padding: 28px 16px; text-align: center; color: var(--text-muted, #9bb); border-top: 1px solid var(--panel-border, rgba(255,255,255,.08)); }

/* bars */
.vg-bar {
    position: relative;
    align-self: center;
    z-index: 3;
    box-sizing: border-box;
    height: 32px;
    margin: 0 3px;
    padding: 0 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    color: #10221a;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    outline: none;
}
.vg-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.vg-bar-short .vg-bar-label { display: none; }
.vg-handle { position: absolute; top: 4px; bottom: 4px; width: 8px; cursor: ew-resize; border-radius: 4px; }
.vg-handle-l { left: 4px; }
.vg-handle-r { right: 4px; }
.vg-bar:hover .vg-handle, .vg-bar-sel .vg-handle { background: rgba(0, 0, 0, 0.25); }
.vg-bar:focus-visible { box-shadow: 0 0 0 3px #fff; }
.vg-bar-sel { box-shadow: 0 0 0 2px #fff, 0 0 14px var(--accent-gold, #ffc107); }
.vg-bar-dragging { z-index: 9; cursor: grabbing; opacity: 0.9; }
.vg-c0 { background: linear-gradient(135deg, #ffd54f, #ffb300); }
.vg-c1 { background: linear-gradient(135deg, #81d4fa, #29b6f6); }
.vg-c2 { background: linear-gradient(135deg, #ffab91, #ff7043); }
.vg-c3 { background: linear-gradient(135deg, #ce93d8, #ab47bc); }
.vg-c4 { background: linear-gradient(135deg, #a5d6a7, #66bb6a); }
.vg-c5 { background: linear-gradient(135deg, #f48fb1, #ec407a); }

/* current time: column tint + line */
.vg-tl-nowcol { position: absolute; top: 0; bottom: 0; background: rgba(46, 204, 113, 0.10); pointer-events: none; z-index: 1; }
.vg-tl-nowline {
    position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px;
    background: var(--accent-gold, #ffc107);
    box-shadow: 0 0 8px var(--accent-gold, #ffc107);
    pointer-events: none; z-index: 4;
}
.vg-tl-nowline::after {
    content: 'NOW ' attr(data-time);
    position: absolute; bottom: 2px; left: 4px; white-space: nowrap;
    padding: 1px 6px; border-radius: 999px;
    background: var(--accent-gold, #ffc107); color: var(--text-dark, #12261c);
    font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em;
}

/* selected-bar toolbar */
.vg-tl-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
    margin: 0 0 10px; padding: 10px 14px;
    background: rgba(255, 193, 7, 0.10);
    border: 1px solid var(--accent-gold, #ffc107);
    border-radius: 14px;
}
.vg-tl-toolbar[hidden] { display: none; }
.vg-tb-title { font-weight: 700; color: var(--accent-gold, #ffc107); }
.vg-tb-group { display: inline-flex; align-items: center; gap: 4px; }
.vg-tb-name { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #9bb); margin-right: 2px; }
.vg-tl-toolbar button {
    min-width: 36px; min-height: 34px; padding: 0 10px;
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.2));
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color, #f5f5f5);
    font-size: 1rem; font-weight: 700; cursor: pointer;
}
.vg-tl-toolbar button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.18); }
.vg-tl-toolbar button:disabled { opacity: 0.3; cursor: default; }
.vg-tl-toolbar .vg-tb-remove, .vg-tl-toolbar .vg-tb-done { font-size: 0.85rem; }
.vg-tl-toolbar .vg-tb-remove { color: #ff8a8a; margin-left: auto; }

@media (max-width: 700px) {
    .vg-tl { --vg-name: 104px; --vg-col: 30px; }
    .vg-tl-corner, .vg-tl-heatlabel, .vg-tl-name { padding: 0 8px; }
    .vg-tl-name { font-size: 0.8rem; }
    .vg-tab { flex: 1 1 0; max-width: 180px; }
    .vg-tl-toolbar { padding: 10px; gap: 8px 10px; }
    .vg-tl-toolbar button { min-width: 40px; min-height: 40px; }
    .vg-tl-toolbar .vg-tb-remove { margin-left: 0; }
}

@media (hover: none) { .vg-hint-mouse { display: none; } }
@media (hover: hover) { .vg-hint-touch { display: none; } }

/* ---- Timeline: hour headers show the UK time on hover; live marker; ordering ---- */
.vg-tl-head { position: relative; cursor: help; outline: none; }
.vg-tl-head .vg-tip {
    position: absolute;
    top: calc(100% + 4px);
    left: 4px;
    z-index: 30;
    padding: 6px 10px;
    border-radius: 8px;
    background: #0b1a12;
    border: 1px solid var(--accent-gold, #ffc107);
    color: var(--text-color, #f5f5f5);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease;
}
.vg-tl-head.vg-tip-right .vg-tip { left: auto; right: 4px; }
.vg-tl-head:hover .vg-tip, .vg-tl-head:focus .vg-tip { opacity: 1; visibility: visible; }
.vg-live-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: transparent; }

/* ---- Live now (checked on YouTube): blinking red dot + LIVE pill + highlight ---- */
.vg-live-dot.on { background: #ff3b30; animation: vg-live-blink 1.1s ease-in-out infinite; }
@keyframes vg-live-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px 1px rgba(255, 59, 48, 0.85); }
    50% { opacity: 0.2; box-shadow: none; }
}
.vg-live-pill {
    flex: 0 0 auto;
    padding: 1px 7px;
    border-radius: 999px;
    background: #ff3b30;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.vg-tl-name.vg-is-live {
    background-color: #0f2218;
    background-image: linear-gradient(90deg, rgba(255, 59, 48, 0.32), rgba(255, 59, 48, 0.10));
}
.vg-tl-name.vg-is-live a { color: #fff; }
.vg-tl-name .vg-live-pill { margin-left: auto; }
.vg-chip-live { border-color: rgba(255, 59, 48, 0.65); background: rgba(255, 59, 48, 0.15); }
.vg-chip .vg-live-dot { margin: 0 6px 0 -2px; }
.vg-chip .vg-live-pill { margin: 0 2px 0 4px; }
@media (max-width: 700px) { .vg-live-pill { display: none; } }

/* ---- Profile photo + click targets: live channels lead to the live stream, others to the profile ---- */
.vg-tl-name a.vg-avatar { position: relative; flex: 0 0 auto; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; overflow: visible; }
.vg-tl-name a.vg-avatar:hover { text-decoration: none; }
.vg-avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #1d3326; }
.vg-tl-name.vg-is-live .vg-avatar { box-shadow: 0 0 0 2px #ff3b30; }
.vg-avatar .vg-live-dot { position: absolute; right: -4px; bottom: -4px; width: 10px; height: 10px; margin: 0; border: 2px solid #0f2218; }
/* with a photo the blinking dot sits on the photo; the separate dot is only for narrow screens */
.vg-tl-name.has-avatar > .vg-live-dot { display: none; }
.vg-tl-name a.vg-live-pill, .vg-chip a.vg-live-pill {
    color: #fff; text-decoration: none; max-width: none; overflow: visible; cursor: pointer;
}
.vg-tl-name a.vg-live-pill:hover, .vg-chip a.vg-live-pill:hover { color: #fff; text-decoration: none; filter: brightness(1.15); }
.vg-chip a.vg-live-pill { padding: 1px 7px; }
@media (max-width: 700px) {
    .vg-tl-name a.vg-avatar { display: none; }
    .vg-tl-name.has-avatar > .vg-live-dot { display: block; }
}

/* ---- Read-only page: nothing can be dragged or edited ---- */
.vg-bar { cursor: default; }
.vg-chip { cursor: default; touch-action: auto; user-select: auto; -webkit-user-select: auto; }

/* The page title is kept for screen readers and search engines, but not shown */
.vg-sr-only {
    position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
    overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* No reserved space for the (normally empty) status line */
.vg-status { min-height: 0; margin: 0 0 8px; }
.vg-status:empty { display: none; }

/* The Timeline / List buttons line up with the table's left edge */
.vg-tabs { justify-content: flex-start; }

.vg-tl-nowline.vg-flip::after { left: auto; right: 4px; }

/* ---- Full ids everywhere: nothing is cut off with "..." ---- */
.vg-tl-name a.vg-name-link { flex: 0 0 auto; overflow: visible; text-overflow: clip; margin-right: 10px; }
.vg-pill-ghost { visibility: hidden; margin-left: auto; }
.vg-chip a { max-width: none; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 700px) {
    /* the vlogger column is capped on phones, so a long id wraps onto a second line */
    .vg-tl-name a.vg-name-link { flex: 1 1 auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.15; font-size: 0.74rem; margin-right: 0; }
    .vg-tl-name { padding: 0 6px; }
    .vg-tl-corner { padding: 0 6px; }
    .vg-chip a { max-width: none; padding: 7px 8px 7px 0; }
}

/* ---- Phones: edge-to-edge tables, larger type, taller rows ---- */
@media (max-width: 700px) {
    .container { padding-left: 0; padding-right: 0; }
    .vg-tabs { padding: 0 12px; }
    .vg-tl-scroll, .vg-table-wrap { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0; border-radius: 0; border-left: 0; border-right: 0; box-sizing: border-box; }
    .vg-tl { --vg-col: 44px; grid-auto-rows: 60px; }
    .vg-tl-name { padding: 0 8px; }
    .vg-tl-name a.vg-name-link { font-size: 0.95rem; line-height: 1.2; }
    .vg-tl-corner { font-size: 0.8rem; padding: 0 8px; }
    .vg-tl-head b { font-size: 1rem; }
    .vg-bar { height: 40px; border-radius: 20px; padding: 0 10px; font-size: 0.85rem; }
    .vg-tab { min-height: 46px; font-size: 1rem; }
}
@media (max-width: 600px) {
    .vg-table td.vg-time { font-size: 1.05rem; }
    .vg-chip { font-size: 1rem; }
    .vg-chip a { font-size: 1rem; padding: 9px 10px 9px 0; }
}

/* ================= Schedule: ids with their start and end times ================= */
.vg-sched {
    background: var(--panel-bg, rgba(18, 38, 28, 0.55));
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--card-radius, 18px);
    box-shadow: var(--panel-glow, 0 8px 32px rgba(0, 0, 0, 0.37));
    overflow: hidden;
}
.vg-s-head, .vg-s-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 16px; padding: 12px 18px; }
.vg-s-head { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #9bb); font-weight: 700; background: rgba(0, 0, 0, 0.25); }
.vg-s-row { border-top: 1px solid var(--panel-border, rgba(255, 255, 255, 0.08)); }
.vg-s-row.vg-is-live { background-image: linear-gradient(90deg, rgba(255, 59, 48, 0.32), rgba(255, 59, 48, 0.08)); }
.vg-s-name { display: flex; align-items: center; min-width: 0; font-weight: 700; font-size: 1.05rem; }
.vg-s-name a { color: var(--accent-gold, #ffc107); text-decoration: none; }
.vg-s-name a:hover { text-decoration: underline; }
.vg-s-row.vg-is-live .vg-s-name a { color: #fff; }
.vg-s-name a.vg-name-link { min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.vg-s-name a.vg-avatar { position: relative; flex: 0 0 auto; width: 34px; height: 34px; margin-right: 12px; border-radius: 50%; }
.vg-s-name a.vg-avatar:hover { text-decoration: none; }
.vg-s-row.vg-is-live .vg-avatar { box-shadow: 0 0 0 2px #ff3b30; }
.vg-s-name.has-avatar > .vg-live-dot { display: none; }
.vg-s-name a.vg-live-pill { margin-left: 12px; color: #fff; font-size: 0.7rem; padding: 2px 8px; }
.vg-s-name a.vg-live-pill:hover { text-decoration: none; filter: brightness(1.15); }
.vg-s-times { display: flex; flex-direction: column; gap: 4px; font-size: 1.02rem; color: var(--text-color, #f5f5f5); font-variant-numeric: tabular-nums; }
.vg-s-win { white-space: nowrap; }
.vg-s-win.vg-s-now { color: var(--accent-gold, #ffc107); font-weight: 700; }
.vg-s-empty { padding: 28px 16px; text-align: center; color: var(--text-muted, #9bb); }
@media (max-width: 700px) {
    .vg-sched { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; border-left: 0; border-right: 0; box-sizing: border-box; }
    .vg-s-head, .vg-s-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px 14px; }
    .vg-s-head { font-size: 0.8rem; }
    .vg-s-name { font-size: 1.1rem; }
    .vg-s-name a.vg-avatar { display: none; }
    .vg-s-name.has-avatar > .vg-live-dot { display: block; }
    .vg-s-name .vg-live-dot { width: 10px; height: 10px; margin-right: 10px; }
    .vg-s-times { font-size: 1.05rem; text-align: right; }
}

/* ================= Live tab, refresh icon, live-for / watching columns ================= */
.vg-tabs { align-items: center; }
.vg-refresh {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.12));
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color, #f5f5f5);
    font-size: 1.25rem; line-height: 1;
    cursor: pointer;
}
.vg-refresh:hover { color: var(--accent-gold, #ffc107); border-color: var(--accent-gold, #ffc107); }
.vg-refresh.vg-spin { animation: vg-spin 0.8s linear infinite; color: var(--accent-gold, #ffc107); }
@keyframes vg-spin { to { transform: rotate(360deg); } }
.vg-tab-live.active { background: #ff3b30; border-color: #ff3b30; color: #fff; }
.vg-l-head, .vg-l-row { grid-template-columns: minmax(0, 1fr) 7rem 6.4rem; }
.vg-l-for, .vg-l-watch { font-variant-numeric: tabular-nums; font-size: 1.02rem; font-weight: 700; color: var(--text-color, #f5f5f5); }
.vg-l-for, .vg-l-watch { text-align: right; }
.vg-sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; text-align: left; }
.vg-sort:nth-child(n+2) { justify-self: end; }
.vg-sort:hover, .vg-sort.active { color: var(--accent-gold, #ffc107); }
.vg-sort .vg-arrow { display: inline-block; width: 1em; font-size: 0.7em; visibility: hidden; letter-spacing: 0; }
.vg-sort.active .vg-arrow { visibility: visible; }
@media (max-width: 700px) {
    .vg-tab { padding: 0 10px; font-size: 0.95rem; }
    .vg-refresh { width: 44px; height: 44px; }
    .vg-l-head, .vg-l-row { grid-template-columns: minmax(0, 1fr) 5rem 5.3rem; gap: 8px; }
    .vg-l-head { font-size: 0.68rem; letter-spacing: 0.04em; }
    .vg-l-for, .vg-l-watch { font-size: 1.02rem; }
}
