/* ---------------------------------------------------------------------------
   AIO Video - public theme
   Author: MD OMAR FARUK | www.faruk.bd | Copyright (c) 2026
   --------------------------------------------------------------------------- */

:root {
    --brand: #2f6fed;
    --bg: #ffffff;
    --bg-soft: #f6f7fa;
    --card: #ffffff;
    --ink: #10141c;
    --muted: #606a7d;
    --line: #e5e8ef;
    --shadow: 0 1px 3px rgba(16, 20, 28, .08);
    --radius: 12px;
    --topbar: 58px;
    --side: 232px;
}

html[data-mode="dark"] {
    --bg: #0f1218;
    --bg-soft: #161b24;
    --card: #161b24;
    --ink: #e9edf5;
    --muted: #94a0b6;
    --line: #232b38;
    --shadow: none;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hind Siliguri", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; }
svg { width: 22px; height: 22px; fill: currentColor; }

/* ------------------------------------------------------------- topbar */

.topbar {
    position: fixed; inset: 0 0 auto 0; height: var(--topbar); z-index: 40;
    display: flex; align-items: center; gap: 14px; padding: 0 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
}

.icon-btn {
    background: none; border: 0; color: var(--ink); cursor: pointer;
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
}
.icon-btn:hover { background: var(--bg-soft); }

.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; }
.logo img { height: 30px; width: auto; }
.logo-mark {
    width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), #7c3aed);
}
.logo-mark svg { width: 16px; height: 16px; fill: #fff; }
.logo:hover { color: inherit; }

.search { flex: 1; max-width: 560px; margin: 0 auto; display: flex; }
.search input {
    flex: 1; min-width: 0; height: 38px; padding: 0 16px; font: inherit;
    border: 1px solid var(--line); border-right: 0; border-radius: 19px 0 0 19px;
    background: var(--bg-soft); color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--brand); }
.search button {
    width: 58px; height: 38px; border: 1px solid var(--line); border-left: 0;
    border-radius: 0 19px 19px 0; background: var(--bg-soft); color: var(--muted); cursor: pointer;
}
.search button:hover { color: var(--brand); }

.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn-upload {
    display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
    border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); font-weight: 600;
}
.btn-upload svg { width: 18px; height: 18px; }
.cmenu .menu-list { min-width: 250px; }
.menu-list.create-list a, .menu-list.account-list a { display: flex; align-items: center; gap: 12px; }
.menu-list.create-list svg, .menu-list.account-list svg { width: 22px; height: 22px; fill: currentColor; flex: none; color: var(--muted); }
.menu-list.create-list a:hover svg, .menu-list.account-list a:hover svg { color: var(--ink); }
.menu-list.create-list small { display: block; font-size: 11.5px; color: var(--muted); }
.menu-list.account-list em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--muted); }

/* the line along the top while the next page loads, in the site's colour */
.aio-loadbar {
    position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 99999; pointer-events: none;
    background: var(--brand); box-shadow: 0 0 8px var(--brand), 0 0 2px var(--brand);
    opacity: 0; transition: width .3s ease, opacity .3s;
}
.aio-loadbar.on { opacity: 1; }
.uw-link.is-lit { outline: 2px solid var(--brand); outline-offset: 6px; border-radius: 8px; }

/* a member's articles */
.myblog-list { display: flex; flex-direction: column; gap: 10px; }
.myblog-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); flex-wrap: wrap; }
.myblog-row .th { width: 132px; flex: none; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--bg-soft); }
.myblog-row .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.myblog-row .tx { flex: 1; min-width: 200px; }
.myblog-row .t { font-weight: 600; font-size: 15px; }
.myblog-row .m { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.myblog-row .ac { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 640px) { .myblog-form .edit-cols { grid-template-columns: 1fr !important; } }
.btn-upload:hover { border-color: var(--brand); color: var(--brand); }

.btn-signin {
    height: 36px; padding: 0 18px; display: grid; place-items: center;
    border-radius: 18px; background: var(--brand); color: #fff; font-weight: 600;
}
.btn-signin:hover { color: #fff; filter: brightness(1.08); }

.menu { position: relative; }
.avatar-btn { background: none; border: 0; padding: 0; cursor: pointer; }
.avatar-btn img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.menu-list {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px;
    background: var(--card); border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,.18); padding: 6px; display: none; z-index: 60;
}
.menu.open .menu-list { display: block; }
.menu-list a { display: block; padding: 9px 14px; border-radius: 7px; }
.menu-list a:hover { background: var(--bg-soft); color: var(--ink); }

/* ------------------------------------------------------------ sidebar */

.sidebar {
    position: fixed; top: var(--topbar); bottom: 0; left: 0; width: var(--side);
    overflow-y: auto; padding: 12px 10px 24px; border-right: 1px solid var(--line);
    background: var(--bg); z-index: 30;
}
.side-link {
    display: flex; align-items: center; gap: 14px; padding: 9px 12px;
    border-radius: 9px; color: var(--ink); font-size: 14px;
}
.side-link:hover { background: var(--bg-soft); color: var(--ink); }
.side-link.active { background: var(--bg-soft); font-weight: 600; }
.side-link svg { width: 20px; height: 20px; flex: 0 0 20px; }
.side-link .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
    flex: 0 0 8px; margin: 0 6px; opacity: .6;
}
.side-title {
    font-size: 11px; text-transform: uppercase; letter-spacing: .8px;
    color: var(--muted); padding: 18px 12px 6px; border-top: 1px solid var(--line); margin-top: 12px;
}
.side-foot {
    margin-top: 18px; padding: 14px 12px 0; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--muted);
}
.side-credit { padding: 14px 12px; font-size: 12px; color: var(--muted); }

/* --------------------------------------------------------------- page */

.page {
    padding: calc(var(--topbar) + 22px) 22px 60px;
    margin-left: var(--side);
    min-height: 100vh;
}
.page.wide { margin-left: 0; }
body.no-sidebar .page { margin-left: 0; }

h1.page-title { font-size: 21px; margin: 0 0 18px; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.alert.info    { background: rgba(47,111,237,.10); border: 1px solid rgba(47,111,237,.28); }
.alert.success { background: rgba(34,197,94,.10);  border: 1px solid rgba(34,197,94,.3); }
.alert.error   { background: rgba(239,68,68,.10);  border: 1px solid rgba(239,68,68,.3); }
.alert.warn    { background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.3); }

.empty {
    padding: 60px 20px; text-align: center; color: var(--muted);
    border: 1px dashed var(--line); border-radius: var(--radius);
}

/* -------------------------------------------------------- video cards */

.vgrid {
    display: grid; gap: 26px 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.vthumb {
    position: relative; display: block; border-radius: var(--radius); overflow: hidden;
    background: var(--bg-soft); aspect-ratio: 16 / 9;
}
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.vcard:hover .vthumb img { transform: scale(1.03); }
.vtime {
    position: absolute; right: 7px; bottom: 7px; background: rgba(0,0,0,.82); color: #fff;
    font-size: 12px; font-weight: 600; padding: 1px 6px; border-radius: 4px;
}

.vmeta { display: flex; gap: 12px; margin-top: 11px; }
.vavatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.vtext { min-width: 0; }
.vtitle {
    font-weight: 600; font-size: 14.5px; line-height: 1.35; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vchannel, .vsub { display: block; font-size: 13px; color: var(--muted); }
.vchannel { margin-top: 4px; }
.tick { color: var(--brand); font-size: 11px; }

/* ------------------------------------------------------------- watch */

.watch { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 26px; }
.player {
    background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9;
}
.player video, .player iframe { width: 100%; height: 100%; border: 0; display: block; }

h1.vhead { font-size: 19px; margin: 16px 0 10px; line-height: 1.35; }

.vbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.vstats { color: var(--muted); font-size: 13.5px; }
.vactions { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
    display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px;
    border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line);
    font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--ink); font-family: inherit;
}
.chip:hover { border-color: var(--brand); color: var(--ink); }
.chip svg { width: 18px; height: 18px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* the line under the title: the channel on the left, the buttons on the right, as on YouTube */
.vtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; flex-wrap: nowrap; }
.vowner { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; }
.vowner img.pfp { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
.vowner .who { min-width: 0; margin-right: 6px; }
.vowner .who b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vowner .who span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.vowner .sub-btn { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.vowner .sub-btn.on { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
.vtop .vactions { flex: 1 1 0; min-width: 150px; flex-wrap: nowrap; justify-content: flex-end; }
.vtop .vactions > * { flex: none; }
/* a short line: the buttons keep their icons and drop their words */
.vactions.fit-compact > [data-fit] span:last-child:not(:first-child) { display: none; }
.vactions.fit-compact > .chip[data-fit], .vactions.fit-compact > [data-fit] > .chip { padding: 0 11px; gap: 0; }
.vseg { display: flex; }
.vseg .chip:first-child { border-radius: 18px 0 0 18px; border-right: 0; }
.vseg .chip + .chip { border-radius: 0 18px 18px 0; }
.chip.round { width: 36px; padding: 0; justify-content: center; }

/* the bell: ringing when on, struck through when off */
.sub-bell { width: 36px; padding: 0; justify-content: center; }
.sub-bell[hidden] { display: none; }
.sub-bell .bell-on, .sub-bell.on .bell-off { display: none; }
.sub-bell.on .bell-on { display: block; }
.sub-bell svg { width: 20px; height: 20px; fill: currentColor; }
.sub-bell.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.sub-bell.ring .bell-on { animation: aio-bell-ring .7s ease-in-out; transform-origin: 50% 12%; }
@keyframes aio-bell-ring {
    0% { transform: rotate(0); } 15% { transform: rotate(18deg); } 30% { transform: rotate(-16deg); }
    45% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 75% { transform: rotate(4deg); } 100% { transform: rotate(0); }
}

/* the ⋯ menu, and the buttons that move into it when the line is full */
.vmore .menu-list { top: calc(100% + 6px); min-width: 220px; }
.vmore .menu-list > a { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 7px; }
.fit-slot:empty { display: none; }
.fit-slot { border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 6px; }
.fit-slot > .chip, .fit-slot .dl-menu > .chip {
    display: flex; width: 100%; height: 38px; justify-content: flex-start; gap: 12px; padding: 0 14px;
    border: 0; border-radius: 7px; background: none; font-weight: 500;
}
.fit-slot > .chip:hover { background: var(--bg-soft); }
.fit-slot > .chip.on { background: none; color: var(--brand); }
.fit-slot .dl-menu { display: block; }
.fit-slot .dl-menu > .chip { pointer-events: none; }
.fit-slot .dl-menu .menu-list {
    position: static; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; padding: 0 10px 6px 44px;
    border: 0; box-shadow: none; background: none;
}
.fit-slot .dl-menu .menu-list a { padding: 4px 10px; border-radius: 14px; background: var(--bg-soft); font-size: 12.5px; }

/* a short message at the bottom of the screen */
.aio-toast {
    position: fixed; left: 24px; bottom: 24px; z-index: 3000; max-width: calc(100vw - 48px);
    background: #10141c; color: #fff; border-radius: 8px; padding: 13px 16px; font-size: 14px;
    transform: translateY(160%); transition: transform .25s ease; pointer-events: none;
}
.aio-toast.show { transform: none; }

@media (max-width: 620px) {
    /* a phone: the channel over the buttons; the buttons that do not fit go
       into the ⋯ menu (watch.js) rather than off the edge, and the channel's
       name may take two lines instead of being cut short */
    .vtop { flex-direction: column; align-items: stretch; }
    .vtop .vactions { flex: none; min-width: 0; max-width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow: visible; }
    .vowner .who { flex: 1; }
    .vowner .who b { white-space: normal; overflow: visible; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
    /* the ⋯ menu opens as a sheet at the foot of the screen, where a thumb can reach it */
    .vmore .menu-list { position: fixed; left: 8px; right: 8px; bottom: 8px; top: auto; min-width: 0; max-height: 70vh; overflow: auto; box-shadow: 0 -8px 40px rgba(0, 0, 0, .35); z-index: 2500; }
    .vmore .menu-list > a, .vmore .fit-slot > .chip { min-height: 44px; }
}

.channel-row {
    display: flex; align-items: center; gap: 12px; margin: 18px 0;
    padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.channel-row img.pfp { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.channel-row .who { flex: 1; min-width: 0; }
.channel-row .who b { display: block; font-size: 15px; }
.channel-row .who span { font-size: 13px; color: var(--muted); }

.vdesc {
    background: var(--bg-soft); border-radius: var(--radius); padding: 14px 16px;
    font-size: 14px; word-wrap: break-word;   /* the line breaks come as <br> already */
}
.vdesc .meta { color: var(--ink); font-size: 14px; margin-bottom: 6px; }
.vdesc .meta b { font-weight: 600; }

/* ---------------------------------------------------------- comments */

.comments { margin-top: 30px; }
.comments h3 { font-size: 16px; margin: 0 0 18px; }
.cform { display: flex; gap: 12px; margin-bottom: 26px; }
.cform img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.cform .grow { flex: 1; }
.cform textarea {
    width: 100%; min-height: 42px; resize: vertical; padding: 10px 12px; font: inherit;
    border: 1px solid var(--line); border-radius: 9px; background: var(--bg-soft); color: var(--ink);
}
.cform textarea:focus { outline: none; border-color: var(--brand); }

.comment { display: flex; gap: 12px; margin-bottom: 20px; }
.comment img.pfp { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: 0 0 38px; }
.comment .head { font-size: 13px; margin-bottom: 3px; }
.comment .head b { font-size: 13.5px; }
.comment .head span { color: var(--muted); margin-left: 7px; }
.comment .replies { margin-top: 14px; padding-left: 8px; border-left: 2px solid var(--line); }

/* ----------------------------------------------------------- channel */

/* the banner keeps YouTube's shape whatever the screen: 6.2 to 1, cropped to fit */
.cover { width: 100%; max-width: 100%; aspect-ratio: 6.2 / 1; max-height: 300px; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
@media (max-width: 640px) { .cover { aspect-ratio: 4.2 / 1; } }
@media (max-width: 400px) { .cover { aspect-ratio: 3.8 / 1; } }
/* the membership badge beside a name */
.mbadge { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 7px; border-radius: 99px;
          background: var(--badge, var(--brand)); color: #fff; font-size: 11px; font-weight: 700; line-height: 16px;
          letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; }
.mbadge.sm { font-size: 10px; line-height: 14px; padding: 0 6px; margin-left: 4px; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.chead { display: flex; gap: 20px; align-items: center; padding: 20px 4px; flex-wrap: wrap; }
.chead img.pfp { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.chead h1 { font-size: 23px; margin: 0 0 4px; }
.chead .stat { color: var(--muted); font-size: 13.5px; }

/* a row to slide when the tabs are more than the phone is wide (a plugin may add its own: Shorts) */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 11px 16px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; flex: none; white-space: nowrap; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--ink); }

/* ------------------------------------------------------------- forms */

.form-card {
    max-width: 460px; margin: 30px auto; background: var(--card);
    border: 1px solid var(--line); border-radius: 16px; padding: 30px 32px;
}
.form-card.wide { max-width: 720px; }
.form-card h1 { font-size: 20px; margin: 0 0 6px; }
.form-card .lead { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 13px; font: inherit; border: 1px solid var(--line);
    border-radius: 9px; background: var(--bg-soft); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.field textarea { min-height: 110px; resize: vertical; }

.btn {
    display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600;
    background: var(--brand); color: #fff; padding: 12px 24px; border-radius: 9px;
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.form-foot { margin-top: 18px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------- pager */

.pager { display: flex; gap: 8px; justify-content: center; margin: 36px 0 10px; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 38px; height: 38px; padding: 0 12px; border-radius: 9px;
    display: grid; place-items: center; border: 1px solid var(--line); font-size: 13.5px;
}
.pager .here { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* ------------------------------------------------------------ mobile */

@media (max-width: 1100px) {
    .watch { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    body.side-open .sidebar { transform: none; }
    .page { margin-left: 0; padding-left: 16px; padding-right: 16px; }
    .logo-text { display: none; }
}

@media (max-width: 620px) {
    .btn-upload span { display: none; }
    .btn-upload { padding: 0 11px; }
    .search { max-width: none; }
    .vgrid { grid-template-columns: 1fr; gap: 22px; }
    .form-card { padding: 24px 20px; margin: 10px auto; }
}

/* --------------------------------------------------- save & share panels */

.panel {
    margin-top: 14px; padding: 16px 18px; border: 1px solid var(--line);
    border-radius: var(--radius); background: var(--bg-soft);
}
.panel h4 { margin: 0 0 12px; font-size: 14px; }
.panel .lists { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.panel .lists label {
    display: flex; align-items: center; gap: 10px; padding: 7px 8px;
    border-radius: 7px; cursor: pointer; font-size: 14px;
}
.panel .lists label:hover { background: var(--bg); }
.panel .lists input { width: 17px; height: 17px; accent-color: var(--brand); }
.panel .lists .built { color: var(--muted); font-size: 12px; margin-left: auto; }

.panel .newlist { display: flex; gap: 8px; }
.panel .newlist input {
    flex: 1; min-width: 0; padding: 9px 12px; font: inherit; border: 1px solid var(--line);
    border-radius: 8px; background: var(--bg); color: var(--ink);
}
.panel .newlist input:focus { outline: none; border-color: var(--brand); }

.share-row { display: flex; gap: 8px; }
.share-row input {
    flex: 1; min-width: 0; padding: 9px 12px; font: inherit; font-size: 13px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink);
}
.share-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share-links a {
    padding: 7px 14px; border-radius: 18px; border: 1px solid var(--line);
    font-size: 13px; font-weight: 600;
}
.share-links a:hover { border-color: var(--brand); }

/* ------------------------------------------------ the home page rows */
.catbar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 22px;
    scrollbar-width: thin;
}
.catbar .chip { white-space: nowrap; }

.hsec { margin-bottom: 30px; }

.hhead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
}
.hhead h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.2px;
}
.hhead a { font-size: 13px; color: var(--muted); }
.hhead a:hover { color: var(--ink); }

/* ------------------------------------------- membership and the wallet */
.page-head { margin-bottom: 22px; }
.page-head .lead { color: var(--muted); margin: 6px 0 0; }
.small { color: var(--muted); font-size: 13px; }

.mine-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 22px;
    background: var(--bg-soft);
}

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.plan {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 20px;
    background: var(--bg-soft);
    display: flex;
    flex-direction: column;
}
.plan.popular {
    border-color: var(--plan, var(--brand));
    box-shadow: 0 0 0 1px var(--plan, var(--brand));
}
.plan .flag {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--plan, var(--brand));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}
.plan h3 { margin: 0; font-size: 18px; }
.plan .tag { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.plan .price {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 16px 0 14px;
}
.plan .price span {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--muted);
}
.plan .points { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; }
.plan .points li {
    position: relative;
    padding: 5px 0 5px 24px;
    font-size: 13.5px;
    line-height: 1.5;
}
.plan .points li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 11px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--plan, var(--brand));
    border-bottom: 2px solid var(--plan, var(--brand));
    transform: rotate(-45deg);
}

.wallet-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.wallet-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    background: var(--bg-soft);
}
.wallet-box .big {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.8px;
    margin-top: 4px;
}

.card-plain {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    background: var(--bg-soft);
    margin-bottom: 20px;
}

.money-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.money-table th {
    text-align: left;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
    font-weight: 600;
    padding: 8px 10px;
}
.money-table td { padding: 11px 10px; border-top: 1px solid var(--line); }

/* the narrow card beside the player */
.vcard.vcompact { display: flex; gap: 10px; margin-bottom: 14px; }
.vcompact .vthumb { width: 158px; flex: 0 0 158px; }
.vcompact .vtext { min-width: 0; }
.vcompact .vtitle { font-size: 13.5px; }

/* ----------------------------------------------------- notifications */

.bell-btn { position: relative; }
.nbadge {
    position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 9px; background: #e5484d; color: #fff; font-size: 10.5px; font-weight: 700;
    display: grid; place-items: center; line-height: 1; border: 2px solid var(--bg);
}
.nbadge[hidden] { display: none; }
.nbadge-inline {
    display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 99px;
    background: #e5484d; color: #fff; font-size: 12px; font-weight: 700; vertical-align: middle;
}
.nbox { width: 380px; max-width: calc(100vw - 24px); padding: 0; overflow: hidden; }
.nbox-head { padding: 13px 16px; font-weight: 700; border-bottom: 1px solid var(--line); }
.nbox-list { max-height: 420px; overflow-y: auto; }
.nbox-empty { padding: 26px 18px; color: var(--muted); font-size: 13.5px; text-align: center; }
.nbox-all { display: block; text-align: center; padding: 11px; border-top: 1px solid var(--line); font-weight: 600; font-size: 13.5px; }
.nitem { display: flex; gap: 12px; align-items: flex-start; padding: 11px 16px; font-size: 13.5px; line-height: 1.4; position: relative; }
.nitem:hover { background: var(--bg-soft); color: var(--ink); }
.nitem.unseen::before {
    content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 5px;
    margin-top: -2.5px; border-radius: 50%; background: var(--brand);
}
.nitem .pfp { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 40px; }
.nitem .ntext { flex: 1; min-width: 0; }
.nitem .ago { color: var(--muted); font-size: 12px; margin-top: 3px; }
.nitem .nthumb { width: 86px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: 0 0 86px; }

.nlist-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.nlist { max-width: 860px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.nlist .nitem { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.nlist .nitem:last-child { border-bottom: 0; }
.nlist .nitem .nthumb { width: 120px; flex-basis: 120px; }

/* ------------------------------------------------------- taking money out */

.withdraw-form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.withdraw-form input, .withdraw-form select, .withdraw-form textarea {
    width: 100%; padding: 10px 12px; margin-top: 5px; font: inherit;
    border: 1px solid var(--line); border-radius: 9px;
    background: var(--bg-soft); color: var(--ink);
}
.withdraw-form .wf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.withdraw-form .wf-block { margin-bottom: 16px; }
@media (max-width: 640px) { .withdraw-form .wf-row { grid-template-columns: 1fr; } }

.tag {
    display: inline-block; font-size: 11.5px; font-weight: 600;
    padding: 3px 9px; border-radius: 99px; background: rgba(148,160,182,.18); color: var(--muted);
}
.tag.ok   { background: rgba(34,197,94,.16);  color: #16a34a; }
.tag.warn { background: rgba(245,158,11,.16); color: #d97706; }
.tag.bad  { background: rgba(239,68,68,.16);  color: #dc2626; }

/* ===========================================================  comments  */

.comments-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.comments-head h3 { margin: 0; font-size: 16px; }
.csort { display: flex; gap: 12px; font-size: 13px; }
.csort a { color: var(--muted); }
.csort a.on { color: var(--ink); font-weight: 600; }

.cform { display: flex; gap: 12px; margin-bottom: 24px; }
.cform .pfp { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: 0 0 38px; }
.cform .pfp.sm { width: 30px; height: 30px; flex-basis: 30px; }
.cform .grow { flex: 1; min-width: 0; }
.cform textarea {
    width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
    color: var(--ink); font: inherit; font-size: 14px; padding: 6px 0; resize: none; min-height: 34px;
}
.cform textarea:focus { outline: none; border-bottom-color: var(--ink); }
.cform-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cform-foot .grow { flex: 1; }
.emoji-btn {
    border: 0; background: none; cursor: pointer; font-size: 19px; line-height: 1;
    color: var(--muted); padding: 4px 6px; border-radius: 50%;
}
.emoji-btn:hover { background: var(--bg-soft); color: var(--ink); }

.comment { display: flex; gap: 12px; margin-bottom: 18px; }
.comment .pfp { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: 0 0 38px; }
.comment.is-reply .pfp { width: 30px; height: 30px; flex-basis: 30px; }
.comment .cmain { flex: 1; min-width: 0; }
.comment .cpin { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.comment .chead { display: flex; gap: 8px; align-items: baseline; font-size: 13px; flex-wrap: wrap; }
.comment .cname { font-weight: 600; }
.comment .cname.is-owner { background: var(--ink); color: var(--bg); padding: 1px 8px; border-radius: 99px; }
.comment .chead span { color: var(--muted); font-size: 12px; }
.comment .cbody { font-size: 14px; margin: 3px 0 5px; white-space: pre-wrap; word-break: break-word; }

.ctools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ctool {
    display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; cursor: pointer;
    color: var(--muted); font: inherit; font-size: 12.5px; padding: 5px 8px; border-radius: 99px;
}
.ctool:hover { background: var(--bg-soft); color: var(--ink); }
.ctool.on { color: var(--brand); font-weight: 600; }
.ctool.text { font-weight: 600; }
.ctool.bad:hover { color: #e5484d; }
.ctool .i { font-size: 11px; }
.ctool svg.i { width: 18px; height: 18px; fill: currentColor; }
.ctool.on svg.i { fill: var(--brand); }
.comment.is-new > .cmain, .pcard.is-new { animation: aio-new-in 1.6s ease-out; }
@keyframes aio-new-in { 0% { background: rgba(47, 111, 237, .14); } 100% { background: transparent; } }
.replies-btn::before { content: "\25BE"; display: inline-block; margin-right: 6px; transition: transform .2s; }
.replies-btn.open::before { transform: rotate(180deg); }
.pfoot .ctool svg.i { width: 18px; height: 18px; }

.replies-btn {
    border: 0; background: none; color: var(--brand); font: inherit; font-size: 13px; font-weight: 600;
    cursor: pointer; padding: 6px 10px; border-radius: 99px; margin-top: 4px;
}
.replies-btn:hover { background: rgba(47, 111, 237, .1); }
.replies { margin-top: 10px; }

.emoji-pop {
    position: absolute; z-index: 60; width: min(320px, 92vw);
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .22); padding: 8px;
}
.emoji-pop[hidden] { display: none; }
.emoji-tabs { display: flex; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.emoji-tabs button {
    border: 0; background: none; font: inherit; font-size: 12px; color: var(--muted);
    padding: 4px 9px; border-radius: 99px; cursor: pointer;
}
.emoji-tabs button.on { background: var(--bg-soft); color: var(--ink); font-weight: 600; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 190px; overflow-y: auto; }
.emoji-grid button {
    border: 0; background: none; font-size: 19px; line-height: 1; padding: 5px; border-radius: 7px; cursor: pointer;
}
.emoji-grid button:hover { background: var(--bg-soft); }

/* ==============================================================  blog  */

.blog-bar { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.blog-search input {
    padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line);
    background: var(--bg-soft); color: var(--ink); font: inherit; font-size: 13.5px; min-width: 220px;
}
.chiprow { display: flex; gap: 8px; flex-wrap: wrap; }
.chiprow .chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px;
    border: 1px solid var(--line); background: var(--bg-soft); font-size: 13px; cursor: pointer;
}
.chiprow .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.bcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.bthumb { display: block; aspect-ratio: 16/9; background: var(--bg-soft); }
.bthumb img { width: 100%; height: 100%; object-fit: cover; }
.bmeta { padding: 14px 16px 16px; }
.bcat { font-size: 11.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .5px; }
.btitle { display: block; font-size: 15.5px; font-weight: 600; margin: 5px 0 7px; line-height: 1.35; }
.bsum { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.bsub { color: var(--muted); font-size: 12px; }

.article { max-width: 760px; margin: 0 auto; }
.article-head { margin-bottom: 22px; }
.article-cat { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .6px; }
.article-head h1 { font-size: clamp(24px, 4vw, 34px); line-height: 1.25; margin: 8px 0 12px; }
.article-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.article-meta a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.article-meta img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.article-cover { width: 100%; border-radius: 14px; margin-bottom: 24px; }
.article-body { font-size: 16.5px; line-height: 1.8; }
.article-body img, .article-body iframe, .article-body video { max-width: 100%; border-radius: 10px; }
.article-body iframe { width: 100%; aspect-ratio: 16/9; border: 0; }
.article-body h2 { font-size: 24px; margin: 30px 0 10px; }
.article-body h3 { font-size: 19px; margin: 24px 0 8px; }
.article-body blockquote {
    margin: 18px 0; padding: 4px 18px; border-left: 3px solid var(--brand); color: var(--muted);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 9px 12px; }
.article-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 28px 0; }
.blog-more { max-width: 760px; margin: 40px auto 0; }
.blog-more h2 { font-size: 18px; margin: 0 0 16px; }

/* =====================================================  channel posts  */

.posts-wrap { max-width: 720px; }
.post-form {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 16px 18px; margin-bottom: 22px;
}
.post-form-top { display: flex; gap: 12px; }
.post-form .pfp { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 40px; }
.post-form textarea {
    flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px;
    resize: vertical; min-height: 52px; outline: none; width: 100%;
}
.post-form-foot { display: flex; gap: 12px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.post-file { cursor: pointer; font-size: 13.5px; color: var(--muted); }
.post-file input { display: none; }
.post-file-said { font-size: 12.5px; color: var(--muted); }
.post-keep { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.post-keep label { font-size: 12px; color: var(--muted); text-align: center; }
.post-keep img { width: 110px; aspect-ratio: 1; object-fit: cover; border-radius: 9px; margin-bottom: 4px; }

.pcard {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 16px 18px; margin-bottom: 18px;
}
.phead { display: flex; gap: 11px; align-items: center; margin-bottom: 10px; }
.phead .pfp { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.pwho a { font-weight: 600; font-size: 14px; display: block; }
.pwho span { color: var(--muted); font-size: 12px; }
.pmenu { margin-left: auto; position: relative; }
.pmore { border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; padding: 2px 8px; border-radius: 50%; }
.pmore:hover { background: var(--bg-soft); }
.pbody { font-size: 14.5px; white-space: pre-wrap; word-break: break-word; margin-bottom: 12px; }
.pimages { display: grid; gap: 4px; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.pimages.n1 { grid-template-columns: 1fr; }
.pimages.n2 { grid-template-columns: 1fr 1fr; }
.pimages.n3, .pimages.n4 { grid-template-columns: 1fr 1fr; }
.pimages img { width: 100%; height: 100%; object-fit: cover; max-height: 420px; }
.pimages.n1 img { max-height: 520px; }
.pvideo { display: flex; gap: 12px; align-items: center; background: var(--bg-soft); border-radius: 10px; padding: 10px; margin-bottom: 12px; }
.pvideo img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; }
.plink { display: block; font-size: 13px; color: var(--brand); margin-bottom: 10px; word-break: break-all; }
.pfoot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.post-page { max-width: 720px; margin: 0 auto; }

/* ============================================================  support  */

.support { max-width: 1000px; margin: 0 auto; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } }

.ticket-top { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }

.tform label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.tform input, .tform select, .tform textarea {
    width: 100%; margin-top: 5px; padding: 10px 12px; font: inherit;
    border: 1px solid var(--line); border-radius: 9px; background: var(--bg-soft); color: var(--ink);
}
.tform textarea { resize: vertical; }
.tf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .tf-row { grid-template-columns: 1fr; } }
.tform-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }

.treply { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.treply img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 36px; }
.treply.is-staff { background: var(--bg-soft); border-radius: 12px; padding: 16px; border-top: 0; margin: 10px 0; }
.thead { display: flex; gap: 9px; align-items: baseline; font-size: 13px; flex-wrap: wrap; margin-bottom: 4px; }
.thead span { color: var(--muted); font-size: 12px; }
.tbody { font-size: 14px; white-space: pre-wrap; word-break: break-word; }

.tline {
    display: flex; gap: 12px; align-items: center; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px solid var(--line);
}
.tline:last-child { border-bottom: 0; }
.tl-main b { display: block; font-size: 14px; }
.tl-main span { color: var(--muted); font-size: 12px; }

/* =====================================================  watch page bits  */

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h4 { margin: 0; font-size: 15px; }
.panel-x {
    border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1;
    cursor: pointer; padding: 2px 8px; border-radius: 50%;
}
.panel-x:hover { background: var(--bg-soft); color: var(--ink); }


.noplay { display: grid; place-items: center; height: 100%; color: #8b95a6; font-size: 14px; }

/* a video that cannot be shown: the word is in the player, the page stays */
.vblocked { display: grid; place-items: center; height: 100%; min-height: 220px; background: #000; color: #fff; text-align: center; padding: 24px; }
.vblocked svg { width: 56px; height: 56px; fill: #9aa3b2; margin-bottom: 10px; }
.vblocked b { display: block; font-size: 20px; font-weight: 600; }
.vblocked span { display: block; color: #9aa3b2; font-size: 14px; margin-top: 6px; }
.vblocked a { display: inline-block; margin-top: 16px; padding: 8px 18px; border-radius: 18px; background: #fff; color: #000; font-weight: 600; font-size: 14px; }

/* what only the owner is told */
.vnotice { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 14px; border-radius: 10px;
           background: rgba(245, 158, 11, .14); border: 1px solid rgba(245, 158, 11, .45); font-size: 13.5px; }
.vnotice svg { width: 20px; height: 20px; fill: #d97706; flex: none; }
.vnotice span { flex: 1; min-width: 0; }
.vnotice a { font-weight: 600; color: var(--brand); white-space: nowrap; }

/* the playlist down the side */
.upnext-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.autonext { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; user-select: none; }
.autonext input { position: absolute; opacity: 0; width: 0; height: 0; }
.autonext i { width: 34px; height: 18px; border-radius: 99px; background: var(--line); position: relative; transition: background .15s; }
.autonext i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.autonext input:checked + i { background: var(--brand); }
.autonext input:checked + i::after { transform: translateX(16px); }
.autonext.solo { margin: 0 0 12px; }
.vqueue { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); margin-bottom: 18px; overflow: hidden; }
.vqueue-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.vqueue-title { font-weight: 700; font-size: 15px; display: block; }
.vqueue-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.vqueue-list { list-style: none; margin: 0; padding: 6px 0; max-height: 420px; overflow-y: auto; }
.vqueue-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 4px; }
.vqueue-list li.now { background: rgba(47, 111, 237, .12); }
.vqueue-list .n { width: 22px; text-align: center; font-size: 12px; color: var(--muted); flex: none; }
.vqueue-list .th { position: relative; width: 100px; flex: none; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.vqueue-list .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vqueue-list .th em { position: absolute; right: 4px; bottom: 4px; background: rgba(0, 0, 0, .82); color: #fff; font-style: normal; font-size: 11px; padding: 1px 4px; border-radius: 4px; }
.vqueue-list .tx { min-width: 0; }
.vqueue-list .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.vqueue-list .c { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* the countdown to the next video */
.player { position: relative; }
.endcard { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(0, 0, 0, .78); color: #fff; }
.endcard-box { width: min(340px, 90%); text-align: center; }
.endcard-up { font-size: 13px; color: #cfd5e0; margin-bottom: 10px; }
.endcard-up b { color: #fff; }
.endcard-thumb { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #111; margin: 0 auto 10px; }
.endcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.endcard-title { display: block; color: #fff; font-weight: 600; font-size: 15px; line-height: 1.3; }
.endcard-ch { font-size: 12.5px; color: #cfd5e0; margin-top: 3px; }
.endcard-btns { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.endcard-btns button, .endcard-btns a { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 13.5px; padding: 8px 18px; border-radius: 18px; }
.endcard-btns button { background: rgba(255, 255, 255, .16); color: #fff; }
.endcard-btns a { background: #fff; color: #000; }

/* playlists on a channel */
.plgrid { display: grid; gap: 26px 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.plthumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.plthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plcount { position: absolute; right: 0; top: 0; bottom: 0; width: 40%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
           background: rgba(0, 0, 0, .72); color: #fff; font-size: 12.5px; font-weight: 600; }
.plcount svg { width: 22px; height: 22px; fill: #fff; }
.plplay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-weight: 700; font-size: 14px; opacity: 0; transition: opacity .15s; }
.plthumb:hover .plplay { opacity: 1; }
.pltitle { display: block; margin-top: 10px; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.plmore { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.plmore:hover { color: var(--ink); }

/* theatre mode, for whichever player asks for it */
body.aiop-cinema .watch { grid-template-columns: 1fr !important; }
body.aiop-cinema .player { max-height: calc(100vh - 90px); aspect-ratio: auto; height: calc(100vh - 90px); border-radius: 0; }
body.aiop-cinema .watch > aside { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px 16px; }
body.aiop-cinema .watch > aside > .upnext-head, body.aiop-cinema .watch > aside > .vqueue { grid-column: 1 / -1; }

.embed-stage { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.embed-panel { margin-top: 10px; }
.embed-size-say { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------- sharing */

.share-round {
    display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 14px;
}
.share-round .sr {
    display: flex; flex-direction: column; align-items: center; gap: 5px; width: 52px;
    border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 10.5px; padding: 0;
}
.share-round .sr i {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; font-style: normal; font-weight: 700; font-size: 12.5px;
}
.share-round .sr.sr-embed i svg { width: 17px; height: 17px; }

/* the share sheet on pages that have no panel under a player */
.share-sheet { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .55); display: grid; place-items: center; padding: 16px; }
.share-sheet-box { width: 100%; max-width: 520px; background: var(--card); color: var(--ink); border-radius: 14px; padding: 18px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.share-sheet .share-round { margin-bottom: 14px; }
.share-round .sr:hover { color: var(--ink); }
.share-round .sr:hover i { filter: brightness(1.12); transform: translateY(-1px); }

.share-row { display: flex; gap: 8px; align-items: center; }
.share-row input {
    flex: 1; min-width: 0; padding: 10px 12px; border-radius: 9px;
    border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink);
    font: inherit; font-size: 13px;
}
.share-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.linkish { border: 0; background: none; color: var(--brand); font: inherit; font-size: 12.5px; cursor: pointer; padding: 0; }
.share-at { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.share-at input { width: auto; }

/* --------------------------------------------------------- embed panel */

/* the preview takes the whole width, so the size that is picked is the size that is seen */
.embed-wrap { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.embed-preview { background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; }
.embed-preview iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; align-content: start; }
.embed-opts label { font-size: 12.5px; color: var(--muted); }
.embed-opts label.wide { grid-column: 1 / -1; }
.embed-opts input[type="number"], .embed-opts select {
    width: 100%; margin-top: 4px; padding: 8px 10px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font: inherit; font-size: 13px;
}
.embed-opts .tickline { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.embed-opts .tickline input { width: auto; }
.embed-colours { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.embed-colours button {
    width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer;
    box-shadow: 0 0 0 1px rgba(127, 127, 127, .35) inset;
}
.embed-colours button.on { border-color: var(--ink); }
.embed-colours input[type="color"] {
    width: 30px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer;
}

/* ----------------------------------------------------------- chapters */

.chapters { margin: 18px 0; }
.chapters h4 { margin: 0 0 10px; font-size: 14px; }
.chapter-list { display: flex; flex-direction: column; gap: 2px; }
.chapter {
    display: flex; gap: 12px; align-items: baseline; text-align: left;
    border: 0; background: none; cursor: pointer; color: var(--ink);
    font: inherit; font-size: 13.5px; padding: 8px 10px; border-radius: 9px;
}
.chapter:hover { background: var(--bg-soft); }
.chapter .t { color: var(--brand); font-variant-numeric: tabular-nums; font-size: 12.5px; }

/* --------------------------------------------------------- downloading */

.dl-menu { position: relative; display: inline-block; }
.dl-menu .menu-list {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 150px;
    background: var(--card); border: 1px solid var(--line); border-radius: 11px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .18); padding: 6px; display: none;
}
.dl-menu.open .menu-list { display: block; }
.dl-menu .menu-list a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; }
.dl-menu .menu-list a:hover { background: var(--bg-soft); }
/* 1.10.0: each size says HD or SD, and how big the file is */
.dl-menu .menu-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; white-space: nowrap; }
.dl-menu .menu-list a .q { display: inline-flex; align-items: flex-start; }
.dl-menu .menu-list a small { color: var(--muted); font-size: 11.5px; }
.fit-slot .dl-menu .menu-list a { display: inline-flex; gap: 6px; }
.chip.is-off { opacity: .6; }

/* ==========================================================  upload wizard  */

.uw {
    max-width: 1060px; margin: 0 auto; background: var(--card);
    border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.uw-head { padding: 22px 26px 0; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(47, 111, 237, .05), transparent 70%); }
.uw-title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.uw-title h1 { font-size: 21px; margin: 0; letter-spacing: -.01em; }
.uw-sub { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.uw-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, var(--brand), #7c3aed); box-shadow: 0 8px 20px rgba(47, 111, 237, .28); }
.uw-ico svg { width: 26px; height: 26px; fill: currentColor; }

/* the four steps: numbered, joined by a line, ticked when done */
.uw-steps { list-style: none; margin: 0; padding: 0 0 20px; display: flex; gap: 8px; align-items: stretch; }
.uw-step { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; position: relative; padding: 8px 12px; border-radius: 12px; color: var(--muted); }
.uw-step::after { content: ""; position: absolute; right: -8px; top: 50%; width: 8px; height: 2px; background: var(--line); }
.uw-step:last-child::after { display: none; }
.uw-step .num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700;
    border: 2px solid var(--line); background: var(--card); color: var(--muted); transition: all .2s; }
.uw-step .num svg { width: 16px; height: 16px; fill: #fff; display: none; }
.uw-step .txt { display: grid; min-width: 0; }
.uw-step .name { font-weight: 600; font-size: 13.5px; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uw-step .hint { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uw-step.on { color: var(--ink); background: var(--card); box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(15, 23, 42, .06); }
.uw-step.on .num { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px rgba(47, 111, 237, .14); }
.uw-step.done { color: var(--ink); }
.uw-step.done .num { border-color: var(--brand); background: var(--brand); color: #fff; }
.uw-step.done .num b { display: none; }
.uw-step.done .num svg { display: block; }
.uw-step.done::after { background: var(--brand); }
.uw-mini { display: none; padding: 0 0 14px; }
.uw-mini-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 8px; }
.uw-mini-row b { font-size: 15px; }
.uw-mini-row span { color: var(--muted); font-size: 12px; }
.uw-mini-bar { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.uw-mini-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #7c3aed); border-radius: 99px; transition: width .3s; }
@media (max-width: 760px) {
    .uw-step .hint { display: none; }
    .uw-step { padding: 6px 8px; gap: 8px; }
}
@media (max-width: 560px) {
    .uw-steps { display: none; }
    .uw-mini { display: block; }
    .uw-head { padding: 16px 16px 0; }
    .uw-title { margin-bottom: 14px; }
    .uw-title h1 { font-size: 18px; }
    .uw-ico { width: 40px; height: 40px; border-radius: 12px; }
}
.uw-body { padding: 8px 26px 26px; min-height: 380px; }
.uw-pane { display: none; }
.uw-pane.on { display: block; }
.uw-pane h2 { font-size: 22px; margin: 6px 0 4px; }
.uw-lead { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }

.uw-drop {
    border: 2px dashed var(--line); border-radius: 14px; padding: 46px 24px;
    text-align: center; background: var(--bg-soft);
}
.uw-drop.is-over { border-color: var(--brand); background: rgba(47, 111, 237, .07); }
.uw-cloud { width: 78px; height: 78px; fill: var(--muted); opacity: .55; }
.uw-drop h2 { font-size: 19px; margin: 12px 0 6px; }
.uw-drop p { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.uw-pick { padding: 11px 26px; border-radius: 99px; }
.uw-limit { color: var(--muted); font-size: 12px; margin-top: 16px; }

.uw-or { text-align: center; color: var(--muted); font-size: 12.5px; margin: 18px 0; }
.uw-link { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.uw-link label { flex: 1; min-width: 240px; font-size: 13px; color: var(--muted); }
.uw-link input {
    width: 100%; margin-top: 5px; padding: 10px 12px; border-radius: 9px;
    border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font: inherit;
}
.uw-said { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.uw-said.bad { color: #e5484d; }

.uw-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
@media (max-width: 880px) { .uw-cols { grid-template-columns: 1fr; } }

.uw-f { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.uw-f input, .uw-f select, .uw-f textarea {
    width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 14px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink);
}
.uw-f textarea { resize: vertical; }
.uw-f input.is-bad { border-color: #e5484d; }
.uw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .uw-two { grid-template-columns: 1fr; } }

.uw-thumb h3 { font-size: 15px; margin: 4px 0 4px; }
.uw-thumb p { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
/* 1.10.0 - the thumbnail picker: an upload tile that looks like one, the member's own
   picture with a bin on it, and the frames; the one in use wears a tick */
.uw-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; margin-bottom: 22px; max-width: 760px; }
.field .uw-thumbs { margin-bottom: 8px; }
.uw-thumb-pick, .uw-thumb-frame { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; cursor: pointer; overflow: hidden; padding: 0; font: inherit; }
.uw-thumbs .uw-thumb-pick {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; padding: 6px; margin: 0; font-weight: 400;
    color: var(--text); isolation: isolate;
    border: 1.5px dashed rgba(47, 111, 237, .55); border-color: color-mix(in srgb, var(--brand) 60%, var(--line));
    background: rgba(47, 111, 237, .07);
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 15%, transparent), color-mix(in srgb, var(--brand) 4%, transparent));
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.uw-thumb-pick::before {
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .2s ease;
    background: radial-gradient(130px 70px at 50% 0%, rgba(47, 111, 237, .28), transparent 72%);
    background: radial-gradient(130px 70px at 50% 0%, color-mix(in srgb, var(--brand) 32%, transparent), transparent 72%);
}
.uw-thumb-pick:hover, .uw-thumb-pick:focus-within, .uw-thumb-pick.is-drop {
    transform: translateY(-2px); border-style: solid; border-color: var(--brand);
    box-shadow: 0 8px 22px rgba(47, 111, 237, .25); box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 30%, transparent);
}
.uw-thumb-pick:hover::before, .uw-thumb-pick.is-drop::before { opacity: 1; }
.uw-thumb-pick .ic {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 3px; flex: none;
    background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(47, 111, 237, .4);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 45%, transparent); transition: transform .18s ease;
}
.uw-thumb-pick:hover .ic, .uw-thumb-pick.is-drop .ic { transform: scale(1.08); }
.uw-thumb-pick .ic svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.uw-thumb-pick b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.uw-thumb-pick small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }
.uw-thumb-pick.is-drop small { color: var(--brand); }

.uw-thumb-frame { border: 0; background: var(--bg-soft); box-shadow: 0 0 0 1px var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.uw-thumb-frame img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .78; transition: opacity .15s ease; }
.uw-thumb-frame:hover { transform: translateY(-2px); }
.uw-thumb-frame:hover img, .uw-thumb-frame.on img { opacity: 1; }
.uw-thumb-frame.on { box-shadow: 0 0 0 3px var(--brand); }
.uw-thumb-frame .tick { position: absolute; left: 7px; top: 7px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; display: none; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.uw-thumb-frame.on .tick { display: grid; }
.uw-thumb-frame .tick svg { width: 14px; height: 14px; fill: currentColor; }
.uw-thumb-frame .tag { position: absolute; left: 7px; bottom: 7px; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 10.5px; font-weight: 600; line-height: 15px; letter-spacing: .2px; }
.uw-thumb-frame .rm { position: absolute; right: 7px; top: 7px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .72); color: #fff; display: grid; place-items: center; transition: background .15s ease, transform .15s ease; }
.uw-thumb-frame .rm:hover, .uw-thumb-frame .rm:focus-visible { background: #e5484d; transform: scale(1.1); outline: none; }
.uw-thumb-frame .rm svg { width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 420px) { .uw-thumbs { grid-template-columns: 1fr 1fr; gap: 10px; } }

.uw-side { position: sticky; top: 80px; }
.uw-preview { background: var(--bg-soft); border-radius: 12px; overflow: hidden; }
.uw-preview img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.uw-progress { padding: 12px 14px; }
.uw-progress .bar { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.uw-progress .bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .25s; }
.uw-progress .say { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.uw-facts { margin-top: 14px; font-size: 12.5px; }
.uw-facts .k { color: var(--muted); margin-top: 10px; }
.uw-facts .v { word-break: break-all; }
.uw-facts .v a { color: var(--brand); }

.uw-tick { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.uw-tick input { width: 18px; height: 18px; accent-color: var(--brand); }
.uw-plugin { margin-top: 18px; }

.uw-radio { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; cursor: pointer; }
.uw-radio input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); }
.uw-radio span { font-size: 13.5px; color: var(--muted); }
.uw-radio b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 2px; }
.uw-radio:has(input:checked) { border-color: var(--brand); background: rgba(47, 111, 237, .05); }

.uw-plan { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.uw-plan input[type="datetime-local"] {
    margin-top: 10px; padding: 10px 12px; border-radius: 9px;
    border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font: inherit;
}
.uw-note { color: var(--muted); font-size: 12px; margin-top: 8px; }

.uw-foot {
    display: flex; align-items: center; gap: 12px; padding: 14px 26px;
    border-top: 1px solid var(--line); background: var(--bg-soft);
}
.uw-state { flex: 1; font-size: 13px; color: var(--muted); }

/* the browser own rule loses to any class that sets display, so say it louder */
[hidden] { display: none !important; }

.edit-head { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; }
.edit-head-links { display:flex; gap:8px; }
.edit-cols { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:26px; align-items:start; }
@media (max-width:880px){ .edit-cols { grid-template-columns:1fr; } }
.edit-side { position:sticky; top:80px; }

/* ------------------------------------------------------------- toasts */

.flash-toast { display: block; }
.js-toasts .flash-toast { display: none; }
.aio-toasts {
    position: fixed; top: 74px; right: 16px; z-index: 3000; display: flex; flex-direction: column; gap: 10px;
    width: min(360px, calc(100vw - 32px)); pointer-events: none;
}
.aio-toast {
    pointer-events: auto; position: relative; overflow: hidden; display: flex; gap: 12px; align-items: flex-start;
    padding: 13px 40px 14px 14px; border-radius: 14px; background: var(--card); color: var(--ink);
    border: 1px solid var(--line); box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .12);
    transform: translateX(24px); opacity: 0; transition: transform .26s cubic-bezier(.2, .8, .2, 1), opacity .26s;
}
.aio-toast.is-in { transform: none; opacity: 1; }
.aio-toast.is-leaving { transform: translateX(24px); opacity: 0; }
.aio-toast-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; }
.aio-toast-ico svg { width: 20px; height: 20px; fill: currentColor; }
.aio-toast.is-success .aio-toast-ico { background: #16a34a; }
.aio-toast.is-error   .aio-toast-ico { background: #dc2626; }
.aio-toast.is-warn    .aio-toast-ico { background: #d97706; }
.aio-toast.is-info    .aio-toast-ico { background: var(--brand); }
.aio-toast-body { min-width: 0; font-size: 13.5px; line-height: 1.45; }
.aio-toast-body b { display: block; font-size: 13px; margin-bottom: 1px; }
.aio-toast-body span { color: var(--muted); word-break: break-word; }
.aio-toast-x {
    position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; background: none; color: var(--muted);
    font-size: 20px; line-height: 1; cursor: pointer; border-radius: 8px;
}
.aio-toast-x:hover { background: var(--bg-soft); color: var(--ink); }
.aio-toast-bar {
    position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; background: var(--brand);
    animation: aio-toast-run linear forwards;
}
.aio-toast.is-success .aio-toast-bar { background: #16a34a; }
.aio-toast.is-error   .aio-toast-bar { background: #dc2626; }
.aio-toast.is-warn    .aio-toast-bar { background: #d97706; }
.aio-toast.is-held .aio-toast-bar { animation-play-state: paused; }
@keyframes aio-toast-run { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 640px) {
    .aio-toasts { top: auto; bottom: 74px; right: 16px; left: 16px; width: auto; }
}

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

.sfoot { margin: 48px 0 0; padding: 26px 0 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.sfoot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.sfoot-brand { max-width: 420px; }
.sfoot-brand p { margin: 8px 0 0; line-height: 1.55; }
.sfoot-logo { height: 26px; width: auto; display: block; }
html[data-mode="dark"] .sfoot-logo-light, html[data-mode="light"] .sfoot-logo-dark { display: none; }
.sfoot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sfoot-links a { color: var(--muted); }
.sfoot-links a:hover { color: var(--ink); }
.sfoot-line { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; }
.sfoot-dev a { color: var(--brand); font-weight: 600; }
.topbar .logo img { height: 28px; width: auto; }

/* ------------------------------------------------------------ contact */

.contact-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; max-width: 1080px; margin: 0 auto; }
.contact-card { max-width: none; margin: 0; }
.contact-trap { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.contact-side { display: grid; gap: 12px; }
.contact-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 13.5px; }
.contact-box h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.contact-box a { color: var(--brand); }
.contact-quiet { color: var(--muted); }
.contact-sum label b { color: var(--ink); }
.contact-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.contact-thread { display: grid; gap: 10px; margin: 8px 0 16px; }
.contact-msg { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.contact-msg.is-team { border-color: var(--brand); }
.contact-msg > span { color: var(--muted); font-size: 12px; margin-left: 6px; }
.contact-msg > div { margin-top: 6px; white-space: pre-wrap; }
@media (max-width: 820px) {
    .contact-wrap { grid-template-columns: 1fr; }
    .contact-form .grid2 { grid-template-columns: 1fr; }
}

/* ------------------------------------- round 11: the credit and the foot */

.fkbd-credit { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 4px; line-height: 0; }
.fkbd-credit img { height: 18px; width: auto; display: inline-block; vertical-align: middle; }
html[data-mode="dark"] .fkbd-light, html:not([data-mode="dark"]) .fkbd-dark { display: none; }
html[data-mode="dark"] .fkbd-dark { display: inline-block; }
.side-credit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; line-height: 20px; }
.sfoot-copy { margin: 8px 0 0; font-size: 12.5px; }
.sfoot-line { justify-content: center; text-align: center; }
.sfoot-dev { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.sfoot-dev a { color: var(--brand); font-weight: 600; }


/* ---------------------------------- round 11: search suggestions, more */

.search.has-suggest, form.has-suggest { position: relative; }
.aio-suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 500;
    background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18); padding: 8px 0; text-align: left; max-height: min(60vh, 460px); overflow: auto;
}
.aio-suggest[hidden] { display: none; }
.aio-suggest-item { display: flex; align-items: center; gap: 12px; padding: 8px 16px; cursor: pointer; font-size: 15px; line-height: 20px; }
.aio-suggest-item svg { width: 20px; height: 20px; fill: currentColor; color: var(--muted); flex: none; }
.aio-suggest-item .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aio-suggest-item .t b { font-weight: 700; }
.aio-suggest-item .t small { display: block; font-size: 12px; color: var(--muted); }
.aio-suggest-item:hover, .aio-suggest-item.on { background: var(--bg-soft); }
.aio-suggest-item.kind-history .t { color: var(--ink); }
.aio-suggest-x { font-size: 12px; color: var(--brand); flex: none; padding: 2px 6px; border-radius: 6px; }
.aio-suggest-x:hover { background: var(--bg); text-decoration: underline; }
.search-sort a { padding: 6px 12px; }

/* the grid that grows as you scroll */
.pager.is-auto { display: none; }
.aio-more { display: flex; justify-content: center; align-items: center; min-height: 48px; margin: 18px 0; }
.aio-more-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: aio-spin .8s linear infinite; }
.aio-more-spin[hidden], .aio-more-btn[hidden] { display: none; }
.aio-more-btn { border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); border-radius: 18px; padding: 8px 18px; font: inherit; font-size: 14px; cursor: pointer; }
.aio-more-btn:hover { border-color: var(--brand); color: var(--brand); }
@keyframes aio-spin { to { transform: rotate(360deg); } }

/* one of the owner's own rows laid out as a single line */
.vgrid.vrow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 6px; }
.vgrid.vrow > * { flex: 0 0 280px; scroll-snap-align: start; }


/* round 11: the watch page on a phone, the badge, the embed preview */
.mbadge, .comments .chead > .mbadge, .comments .chead > span.mbadge { color: #fff !important; }
.embed-preview { max-width: 100%; }
@media (max-width: 700px) {
    /* a phone only previews the embed - the size boxes are for a desk */
    .embed-opts label:not(.wide):not(.tickline) { display: none; }
    .embed-opts label.wide.embed-size { display: none; }
    .embed-stage { width: 100%; }
    .embed-preview { width: 100% !important; aspect-ratio: 16 / 9 !important; }
}

/* ------------------------------------------------- round 12: the ⋯ sheet */

.sheet-head { display: none; }
.aio-sheet-back { position: fixed; inset: 0; z-index: 2490; background: rgba(0, 0, 0, .5); animation: aio-fade .18s ease-out; }
@keyframes aio-fade { from { opacity: 0; } }
@keyframes aio-sheet-up { from { transform: translateY(24px); opacity: .6; } }
@media (max-width: 656px) {
    body.aio-sheet-open { overflow: hidden; }
    .vmore .menu-list, .yt-more-menu .yt-pop, .yt-more-menu.up .yt-pop {
        left: 0; right: 0; bottom: 0; border-radius: 18px 18px 0 0; padding: 6px 10px calc(12px + env(safe-area-inset-bottom));
        animation: aio-sheet-up .22s ease-out; max-height: 78vh;
    }
    .vmore .menu-list::before, .yt-more-menu .yt-pop::before {
        content: ""; display: block; width: 40px; height: 4px; border-radius: 99px; background: var(--line, #ccc); margin: 4px auto 6px; opacity: .9;
    }
    .sheet-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 15px; padding: 2px 6px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line, rgba(128,128,128,.25)); }
    .sheet-head button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg-soft, rgba(128,128,128,.12)); color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
    .vmore .menu-list > a, .vmore .menu-list > button, .yt-more-menu .yt-pop > a, .yt-more-menu .yt-pop > button { min-height: 46px; font-size: 15px; }
}
/* ---------------------------------------- round 12: the wizard's two doors */

.uw-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); margin: 4px 0 18px; }
.uw-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.uw-tabs button svg { width: 18px; height: 18px; fill: currentColor; }
.uw-tabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .12), 0 0 0 1px var(--line); }
.uw-tabs button.on svg { color: var(--brand); }
.uw-drop { padding: 44px 20px; border: 2px dashed var(--line); border-radius: 16px; text-align: center; background: var(--bg-soft); transition: border-color .15s, background .15s; }
.uw-drop .uw-cloud { width: 72px; height: 72px; fill: var(--brand); opacity: .75; }
.uw-limit b { color: var(--ink); }

.uw-import { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); }
.uw-import-label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.uw-import-row { display: flex; gap: 8px; margin-top: 8px; }
.uw-import-row input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; }
.uw-import-row input:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.uw-import-row .btn { padding: 0 22px; border-radius: 12px; white-space: nowrap; }
.uw-import-note { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; line-height: 1.5; }
.uw-sites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.uw-site { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.uw-site i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }
.uw-import-card { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--brand); box-shadow: 0 10px 30px rgba(47, 111, 237, .12); animation: aio-sheet-up .25s ease-out; }
.uw-import-thumb { position: relative; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.uw-import-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uw-import-thumb span { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 5px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 12px; font-weight: 600; }
.uw-import-site { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.uw-import-site b { color: var(--brand); text-transform: uppercase; letter-spacing: .4px; font-size: 11px; }
.uw-import-text h3 { font-size: 16px; margin: 0 0 6px; line-height: 1.3; }
.uw-import-text p { color: var(--muted); font-size: 13px; margin: 0 0 8px; white-space: pre-line; max-height: 96px; overflow: hidden; }
.uw-import-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.uw-import-tags span { font-size: 12px; color: var(--brand); background: rgba(47, 111, 237, .08); padding: 2px 8px; border-radius: 99px; }
.uw-import-btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
    .uw-import { padding: 14px; }
    .uw-import-row { flex-direction: column; }
    .uw-import-card { grid-template-columns: 1fr; }
}

/* the numbers while a file goes up */
.uw-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.uw-stats b { color: var(--ink); font-size: 13px; }
.uw-progress .bar { height: 6px; }
.uw-progress .bar span { background: linear-gradient(90deg, var(--brand), #7c3aed); }

/* the switches with a line of explanation under them */
.uw-tick > span { display: block; }
.uw-tick-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.uw-tick-earn { background: rgba(34, 197, 94, .06); border: 1px solid rgba(34, 197, 94, .25); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }

/* the wizard on a phone */
@media (max-width: 560px) {
    .uw { border-radius: 0; border-left: 0; border-right: 0; margin: 0 calc(50% - 50vw); width: 100vw; max-width: 100vw; box-sizing: border-box; }
    .uw-body { padding: 8px 16px 20px; min-height: 0; }
    .uw-pane h2 { font-size: 19px; }
    .uw-tabs { display: flex; width: 100%; }
    .uw-tabs button { flex: 1; justify-content: center; padding: 9px 8px; }
    .uw-drop { padding: 30px 14px; }
    .uw-drop h2 { font-size: 16px; }
    .uw-foot { position: sticky; bottom: 0; padding: 12px 16px; box-shadow: 0 -6px 20px rgba(15, 23, 42, .06); }
    .uw-foot .btn { padding: 10px 18px; }
    .uw-state { font-size: 12px; }
}

/* ------------------------------------------------ round 12: the Studio */

.st-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.st-top h1 { margin: 0; }
.st-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 0 0 18px; }
.st-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.st-card span { color: var(--muted); font-size: 12.5px; }
.st-card b { display: block; font-size: 24px; line-height: 32px; margin-top: 4px; font-weight: 600; }
.st-card i { display: block; font-style: normal; font-size: 12px; margin-top: 4px; color: var(--muted); }
.st-card i.up { color: #16a34a; }
.st-card i.down { color: #dc2626; }

.st-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.st-tabs a:hover { color: var(--ink); }
.st-tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.st-tabs a svg { width: 18px; height: 18px; fill: currentColor; }
.st-tabs-gap { flex: 1; }

.st-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.st-search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.st-search svg { width: 20px; height: 20px; fill: var(--muted); flex: none; }
.st-search input { flex: 1; border: 0; background: transparent; padding: 10px 0; color: var(--ink); font: inherit; font-size: 14px; outline: 0; }
.st-filter select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 13px; }
.st-apply { padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.st-apply:hover { border-color: var(--brand); color: var(--brand); }
.st-clear { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.st-clear svg { width: 16px; height: 16px; fill: currentColor; }

.st-bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px; border-radius: 12px; background: var(--ink); color: var(--bg); position: sticky; top: 64px; z-index: 5; box-shadow: 0 8px 24px rgba(15, 23, 42, .2); }
.st-bulk b { margin-right: 6px; }
.st-bulk select, .st-bulk button { padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: inherit; font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.st-bulk button:hover { background: rgba(255, 255, 255, .18); }
.st-bulk button.bad { border-color: rgba(229, 72, 77, .6); }
.st-bulk button.bad:hover { background: #e5484d; color: #fff; }
.st-bulk button svg { width: 16px; height: 16px; fill: currentColor; }
.st-bulk .st-x { margin-left: auto; font-size: 18px; padding: 4px 10px; }
.st-bulk select option { color: #111; }

.st-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-table th { text-align: left; padding: 12px; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.st-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.st-table tbody tr:last-child td { border-bottom: 0; }
.st-table tbody tr:hover td { background: var(--bg-soft); }
.st-table tbody tr.is-picked td { background: rgba(47, 111, 237, .07); }
.st-table .num { text-align: right; }
.st-table .chk { width: 36px; text-align: center; }
.st-table .chk input { width: 18px; height: 18px; accent-color: var(--brand); }
.st-sort { color: inherit; }
.st-sort.on { color: var(--ink); text-decoration: underline; }
.st-v { display: flex; gap: 14px; min-width: 380px; }
.st-thumb { position: relative; width: 120px; flex: none; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--bg-soft); display: block; }
.st-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-thumb .len { position: absolute; right: 4px; bottom: 4px; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 11px; font-weight: 600; }
.st-text { min-width: 0; flex: 1; }
.st-title { color: var(--ink); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-desc { color: var(--muted); font-size: 12px; line-height: 16px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-desc i { font-style: normal; opacity: .7; }
.st-tools { display: flex; gap: 2px; margin-top: 6px; visibility: hidden; align-items: center; }
.st-table tr:hover .st-tools, .st-tools:has(.st-menu.open) { visibility: visible; }
.st-tools > a, .st-tools > button, .st-menu > button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.st-tools > a:hover, .st-tools > button:hover, .st-menu > button:hover { color: var(--ink); background: var(--bg-soft); }
.st-tools svg, .st-menu > button svg { width: 20px; height: 20px; fill: currentColor; }
@media (hover: none) { .st-tools { visibility: visible; } }

.st-menu { position: relative; display: inline-block; }
.st-pop { display: none; position: absolute; left: 0; top: calc(100% + 4px); z-index: 30; min-width: 240px; padding: 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 36px rgba(15, 23, 42, .18); }
.st-menu.open .st-pop { display: block; }
.st-menu.up .st-pop { top: auto; bottom: calc(100% + 4px); }
/* 1.10.0: the open menu is pinned to the window by studio.js (the table's scroll box used to cut it off) */
.st-menu.open .st-pop[style] { z-index: 2147483000; overflow-y: auto; overscroll-behavior: contain; }
.st-pop-sizes { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 12px 8px 44px; }
.st-pop-sizes a { display: inline-flex; align-items: flex-start; gap: 2px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); font-size: 12px; line-height: 18px; white-space: nowrap; }
.st-pop-sizes a:hover { border-color: var(--brand); color: var(--brand); }
.st-pop-note { display: flex; align-items: center; gap: 12px; padding: 9px 12px; color: var(--muted); font-size: 12.5px; }
.st-pop-note svg { width: 20px; height: 20px; fill: currentColor; flex: none; opacity: .6; }
/* HD, SD, 4K beside a resolution */
.q-tag { display: inline-block; margin-left: 3px; padding: 0 4px; border-radius: 3px; font-size: 9px; font-weight: 700; line-height: 13px; letter-spacing: .3px; vertical-align: top; background: var(--brand); color: #fff; font-style: normal; }
.q-tag.q-sd { background: rgba(127, 127, 127, .28); color: inherit; }
.q-tag.q-4k, .q-tag.q-2k { background: #e5484d; }
.st-pop > a, .st-pop > button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.st-pop > a:hover, .st-pop > button:hover { background: var(--bg-soft); }
.st-pop > a svg, .st-pop > button svg { width: 20px; height: 20px; fill: currentColor; color: var(--muted); flex: none; }
.st-pop > .bad { color: #e5484d; }
.st-pop > .bad svg { color: #e5484d; }
.st-pop > .on { font-weight: 600; }
.st-pop > .on svg:last-child { margin-left: auto; color: var(--brand); }

.st-vis .st-pop { min-width: 180px; }
.st-visbtn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 6px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.st-visbtn svg { width: 18px; height: 18px; fill: currentColor; }
.st-visbtn i { font-style: normal; font-size: 10px; color: var(--muted); }
.st-visbtn:hover { border-color: var(--line); background: var(--bg-soft); }
.st-visbtn.plain { cursor: default; }
.st-visbtn.plain:hover { border-color: transparent; background: transparent; }
.st-visbtn.vis-public svg { color: #16a34a; }
.st-visbtn.vis-unlisted svg { color: #d97706; }
.st-visbtn.vis-private svg { color: var(--muted); }
.st-status { font-weight: 600; }
.st-status.ok { color: #16a34a; }
.st-status.warn { color: #d97706; }
.st-status.bad { color: #e5484d; }
.st-status.mute { color: var(--muted); }
.st-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.st-sub.bad { color: #e5484d; }
.st-muted { color: var(--muted); }
.st-likebar { width: 80px; height: 3px; background: var(--line); margin: 6px 0 0 auto; border-radius: 2px; overflow: hidden; }
.st-likebar i { display: block; height: 100%; background: var(--ink); }

.st-tfoot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 4px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.st-tfoot label { display: inline-flex; align-items: center; gap: 8px; }
.st-tfoot select { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 13px; }
.st-pg { display: inline-flex; align-items: center; width: 34px; height: 34px; justify-content: center; border-radius: 50%; color: var(--ink); }
.st-pg svg { width: 20px; height: 20px; fill: currentColor; }
.st-pg:hover { background: var(--bg-soft); }
.st-pg.off { opacity: .3; pointer-events: none; }
.st-empty { text-align: center; padding: 60px 16px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.st-empty > svg { width: 90px; height: 90px; fill: currentColor; opacity: .25; margin-bottom: 10px; }
.st-empty p { margin: 0 0 14px; font-size: 15px; }
.st-empty.sm { padding: 24px; border: 0; }
.st-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.st-lead { margin: 0; color: var(--muted); font-size: 13.5px; }
.st-h2 { font-size: 19px; margin: 0 0 6px; }
.st-mini { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.st-mini svg { width: 15px; height: 15px; fill: currentColor; }
.st-mini:hover { border-color: var(--brand); }
.st-mini.bad:hover { border-color: #e5484d; color: #e5484d; }

/* the dialogues */
.st-modal { position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, .55); display: grid; place-items: center; padding: 16px; animation: aio-fade .15s; }
.st-modal-box { width: min(560px, 100%); background: var(--card); border-radius: 16px; padding: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); max-height: 90vh; overflow: auto; }
.st-modal-box h3 { margin: 0 0 12px; font-size: 18px; }
.st-modal-box p { color: var(--muted); font-size: 13.5px; }
.st-modal-preview { display: grid; gap: 6px; margin-bottom: 10px; }
.st-del-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.st-del-item img { width: 64px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.st-del-more { font-size: 12.5px; color: var(--muted); }
.st-tick { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin: 12px 0 18px; }
.st-tick input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; margin-top: 1px; }
.st-modal-btns { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.st-gap { flex: 1; }
.btn.bad { background: #e5484d; color: #fff; border-color: #e5484d; }
.st-f { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.st-f input, .st-f textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; }
.st-f textarea { resize: vertical; }
body.st-modal-open { overflow: hidden; }

/* analytics */
.st-days { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.st-days a { padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.st-days a.on { background: var(--ink); color: var(--bg); }
.st-an-video { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.st-an-video .st-thumb { width: 96px; }
.st-panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.st-panel-h { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.st-panel .st-table-wrap { border: 0; }
.st-chart { width: 100%; height: auto; display: block; }
.st-chart rect { fill: var(--brand); opacity: .85; }
.st-chart rect:hover { opacity: 1; }
.st-chart .grid { stroke: var(--line); stroke-width: 1; }
.st-chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }

/* comments */
.st-comments { display: grid; gap: 10px; }
.st-comment { display: flex; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.st-comment > img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.st-comment-body { min-width: 0; flex: 1; }
.st-comment-head { font-size: 13px; }
.st-comment-head span { color: var(--muted); font-size: 12px; margin-left: 6px; }
.st-comment-text { margin: 4px 0; font-size: 14px; word-break: break-word; }
.st-comment-on { font-size: 12.5px; color: var(--muted); }
.st-comment-on a { color: var(--brand); }
.st-comment-btns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

@media (max-width: 700px) {
    .st-cards { grid-template-columns: repeat(2, 1fr); }
    .st-v { min-width: 300px; }
    .st-bulk { top: 56px; }
    .st-tfoot { justify-content: center; }
    .st-days { display: flex; overflow-x: auto; }
}

.st-vis, .st-table td:nth-child(3) { white-space: nowrap; }

@media (max-width: 656px) { .sheet-head > span { flex: 1; white-space: nowrap; } }

/* ------------------------------------------------- round 13: requests */

/* the Studio pages where a member asks for the tick or for monetization */
.st-req { max-width: 760px; }
.st-req-head .st-lead { max-width: 640px; }
.st-req-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); margin: 14px 0; }
.st-req-card svg { width: 26px; height: 26px; flex: none; fill: currentColor; margin-top: 2px; }
.st-req-card b { display: block; font-size: 15px; }
.st-req-card span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; line-height: 1.5; }
.st-req-card.is-ok { color: #15803d; border-color: rgba(22, 163, 74, .35); background: rgba(22, 163, 74, .08); }
.st-req-card.is-ok b { color: inherit; }
.st-req-card.is-wait { color: #b45309; border-color: rgba(217, 119, 6, .35); background: rgba(217, 119, 6, .08); }
.st-req-card.is-no { color: #b91c1c; border-color: rgba(220, 38, 38, .3); background: rgba(220, 38, 38, .07); }
.st-req-card.is-off { color: var(--muted); }
.st-req-rules { margin: 18px 0; }
.st-req-rules h3, .st-req-form h3 { font-size: 15px; margin: 0 0 10px; }
.st-req-rules ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.st-req-rules li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.st-req-rules li:first-child { border-top: 0; }
.st-req-rules li svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.st-req-rules li.ok { color: #15803d; }
.st-req-rules li.no { color: #b91c1c; }
.st-req-rules li span { flex: 1; color: var(--ink); }
.st-req-rules li b { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.st-req-form { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.st-req-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.st-req-form label small { color: var(--muted); font-weight: 400; }
.st-req-form textarea, .st-req-form input[type="text"] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; }
.st-req-form .btn { justify-self: start; }
.st-req-note { color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------ round 13: promotion */

.pm-wrap { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: 24px; align-items: start; }
.pm-form { margin: 0; }
.pm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.pm-places { display: grid; gap: 6px; }
.pm-estimate { padding: 12px 14px; border-radius: 10px; background: var(--bg-soft); border: 1px dashed var(--line); font-size: 14px; margin: 4px 0 16px; }
.pm-list h2 { font-size: 18px; margin: 0 0 12px; }
.pm-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.pm-row:first-of-type { border-top: 0; }
.pm-thumb { flex: 0 0 120px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--bg-soft); }
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-text { flex: 1; min-width: 0; }
.pm-title { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-meta { color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.5; }
.pm-state { font-weight: 600; color: var(--ink); }
.pm-row.is-active .pm-state { color: #15803d; }
.pm-row.is-waiting .pm-state { color: #b45309; }
.pm-row.is-paused .pm-state { color: #6b7280; }
.pm-bar { height: 5px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.pm-bar i { display: block; height: 100%; background: var(--brand); }
.pm-btns { display: flex; flex-direction: column; gap: 6px; flex: none; }
.pm-btns form { margin: 0; }
@media (max-width: 900px) { .pm-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pm-two { grid-template-columns: 1fr; } .pm-thumb { flex-basis: 96px; } .pm-btns { flex-direction: row; } .pm-row { flex-wrap: wrap; } }

/* the tag on a promoted video's card */
.vpromo { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; line-height: 16px; vertical-align: 1px; }

/* ------------------------------------------- round 13: the missing video */

.watch-missing { max-width: 1120px; margin: 0 auto; }
.watch-missing-player { aspect-ratio: 16 / 9; max-height: 68vh; border-radius: 12px; overflow: hidden; background: #000; }
.watch-missing-player .vblocked { height: 100%; }
.watch-missing-title { font-size: 20px; margin: 16px 0 4px; }
.watch-missing-sub { font-size: 15px; color: var(--muted); margin: 18px 0 12px; font-weight: 600; }
@media (max-width: 620px) { .watch-missing-player { border-radius: 0; margin: 0 -12px; } }

/* ------------------------------------- round 13: the owner row on a phone */

@media (max-width: 620px) {
    /* the name never squeezes beside the buttons: the buttons drop under it */
    .vowner { flex-wrap: wrap; row-gap: 8px; }
    .vowner .who { flex: 1 1 140px; }
    body { overflow-x: hidden; }
    .cover img { max-width: 100%; }
}
/* round 13: the visibility picker is a labelled button, not a 32px icon (the generic menu rule was shrinking it) */
.st-menu.st-vis > button.st-visbtn { width: auto; height: auto; border-radius: 8px; display: inline-flex; place-items: unset; color: var(--ink); padding: 4px 8px 4px 6px; }
.st-menu.st-vis > button.st-visbtn svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------- 1.9.0 (round 14) */
/* the edit page uses the room it has, as YouTube Studio's does */
.form-card.wide.edit-page, body.area-studio .form-card.wide.edit-page { max-width: 1280px; width: 100%; margin-left: auto; margin-right: auto; }
.edit-page .edit-cols { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 32px; }
.edit-page .field textarea[name="description"] { min-height: 190px; }
.edit-page .edit-head h1 { font-size: 24px; }
.edit-preview a { position: relative; display: block; color: #fff; }
.edit-preview .edit-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
    background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; transition: transform .15s, background .15s; }
.edit-preview .edit-play svg { width: 30px; height: 30px; fill: #fff; }
.edit-preview a:hover .edit-play { transform: scale(1.08); background: rgba(0, 0, 0, .78); }
.edit-preview .edit-time { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .78); border-radius: 4px; padding: 1px 5px; font-size: 12px; font-weight: 600; }
.edit-source { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; word-break: normal !important; }
.edit-source .src-link { overflow-wrap: anywhere; min-width: 0; flex: 1 1 180px; }
.src-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
    background: var(--bg-soft, #f1f3f6); color: var(--ink, #1f2430); white-space: nowrap; line-height: 1.6; }
.src-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #64748b; }
.src-badge.src-youtube::before { background: #ff0000; } .src-badge.src-vimeo::before { background: #1ab7ea; }
.src-badge.src-facebook::before { background: #1877f2; } .src-badge.src-tiktok::before { background: #111; }
.src-badge.src-dailymotion::before { background: #0066dc; } .src-badge.src-instagram::before { background: #e1306c; }
.src-badge.src-twitter::before { background: #000; } .src-badge.src-twitch::before { background: #9146ff; }
.src-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.src-line a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.src-line a:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 880px) { .edit-page .edit-cols { grid-template-columns: 1fr; } .edit-page .edit-side { position: static; order: -1; } }
/* the account menu of the plain theme: the member's whole menu, grouped, scrolling on a short screen */
.menu-list.account-list { max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain; min-width: 250px; }
.menu-list.account-list .acc-head { padding: 10px 14px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-list.account-list .acc-head b { display: block; font-size: 14.5px; }
.menu-list.account-list .acc-head span { display: block; font-size: 12.5px; color: var(--muted); }
.acc-group { border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 4px; }
.acc-group > summary { list-style: none; cursor: pointer; padding: 8px 14px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.acc-group > summary::-webkit-details-marker { display: none; }
.acc-group > summary::after { content: "\25BE"; float: right; }
.acc-group:not([open]) > summary::after { content: "\25B8"; }
@media (max-width: 640px) {
    .menu .menu-list.account-list { position: fixed; top: 58px; right: 8px; left: auto; width: min(320px, calc(100vw - 16px)); }
}
/* the cookie note and the robot check */
.aio-cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 2000; max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 14px;
    padding: 12px 14px 12px 18px; border-radius: 14px; background: var(--card, #fff); color: var(--ink, #111); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); border: 1px solid var(--line, #e5e8ef); }
.aio-cookie p { margin: 0; flex: 1; font-size: 13.5px; line-height: 1.5; }
.aio-cookie a { color: var(--brand); }
.aio-cookie .btn { flex: none; }
.aio-cookie[hidden] { display: none !important; }
.aio-captcha { margin: 12px 0 4px; min-height: 65px; }
@media (max-width: 480px) { .aio-cookie { flex-direction: column; align-items: stretch; text-align: center; } }

/* --- 1.11.0: sizes kept for members --- */
.qnudge { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 204, 0, .14); border: 1px solid rgba(255, 204, 0, .5); font-size: 14px; }
.qnudge svg { width: 20px; height: 20px; flex: none; fill: #b98900; }
.qnudge span { flex: 1; min-width: 0; }
.qnudge a { flex: none; padding: 6px 14px; border-radius: 16px; background: #111; color: #fff !important; font-weight: 600; font-size: 13px; text-decoration: none; }
.vblocked.vlocked svg { fill: #ffcc00; }

/* 1.15.0: the language picker (top bar, footer, side menu) */
.lang-pick { display: inline-flex; align-items: center; margin: 0; }
.lang-pick label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: inherit; margin: 0; }
.lang-pick svg { flex: none; opacity: .8; }
.lang-pick select { appearance: none; -webkit-appearance: none; background: transparent; border: 1px solid var(--line, rgba(128,128,128,.3)); color: inherit; border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 13px; width: auto; min-width: 0; cursor: pointer; }
.lang-pick select option { color: #111; background: #fff; }
.lang-pick.in-topbar { margin: 0 4px; }
.lang-pick.in-side { padding: 8px 12px 0; }
@media (max-width: 640px) { .lang-pick.in-topbar select { max-width: 84px; padding: 4px 6px; } .lang-pick.in-topbar svg { display: none; } }
[dir="rtl"] .side-link, [dir="rtl"] .menu-list a { text-align: right; }
