:root {
  /* Colours: the "Holographic" skin of northstarproductionstudio.com (Nexus palette): cyan and violet on deep navy. Colours only. */
  --bg: #050B1B; --panel: #08162B; --panel-2: #0D213B; --line: #12294A; --line-2: #205978; --text: #DFF8FF; --text-2: #BADCEB;
  --muted: #78A0B8; --accent: #28D7FF; --accent-2: #A26BFF; --accent-ink: #050B1B; --ok: #2BE3A0; --warn: #FFB547; --danger: #FF4D6D;
  --foot: #040915; --holo: linear-gradient(135deg, var(--accent), var(--accent-2)); --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { background-image: radial-gradient(900px 560px at 90% 0, rgba(162,107,255,.16), transparent 70%), radial-gradient(800px 480px at 5% 10%, rgba(40,215,255,.10), transparent 70%); background-repeat: no-repeat; background-attachment: fixed; }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
a:hover { color: var(--accent); }
h1 { font-size: 1.5rem; margin: .4em 0; }
h2 { font-size: 1.15rem; margin: 1.4em 0 .6em; }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted, .hint { color: var(--muted); }
.hint { font-size: .8rem; font-weight: 400; margin-left: .5em; }
.empty { color: var(--muted); padding: 2em 0; }
.error { background: color-mix(in srgb, var(--danger) 18%, transparent); border-left: 3px solid var(--danger); padding: .6em .9em; border-radius: 6px; }
.warn { color: var(--warn); }
.flash { max-width: 1400px; margin: 10px auto 0; padding: .6em 1em; border-left: 3px solid var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); border-radius: 6px; }
.code { font: 600 1.05rem/1.4 ui-monospace, monospace; background: var(--panel); border: 1px dashed var(--line); padding: .8em 1em; border-radius: 8px; word-break: break-all; user-select: all; }
.pre { white-space: pre-wrap; }

/* header / footer */
.top { position: sticky; top: 0; z-index: 5; display: flex; gap: 16px; align-items: center; padding: 10px 20px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.2rem; text-decoration: none; display: flex; align-items: center; gap: 8px; letter-spacing: -.02em; }
.logo .mark { background: var(--holo); color: var(--accent-ink); border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; font-size: .75rem; }
.search { flex: 1; display: flex; max-width: 560px; min-width: 200px; }
.search input { flex: 1; border-radius: 20px 0 0 20px; }
.search button { border-radius: 0 20px 20px 0; border: 1px solid var(--line); border-left: 0; background: var(--panel); color: var(--text); padding: 0 14px; cursor: pointer; }
.me { display: flex; gap: 14px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.me a { text-decoration: none; }
.badge { background: var(--danger); color: #fff; border-radius: 10px; padding: 0 6px; font-size: .75rem; }
main { max-width: 1400px; margin: 0 auto; padding: 16px 20px 40px; }
.foot { border-top: 1px solid var(--line-2); background: var(--foot); padding: 20px; text-align: center; color: var(--muted); font-size: .9rem; }
.foot nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }

/* forms */
input, textarea, select { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; margin-top: .3em; accent-color: var(--accent); }
input[type=file] { padding: 6px; }
textarea { resize: vertical; }
label { display: block; }
.stack { display: grid; gap: 12px; }
.stack label > input, .stack label > textarea, .stack label > select { margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > label { flex: 1; min-width: 140px; }
.row > input { width: auto; flex: 1; min-width: 80px; }
.row > label > input { margin-top: 4px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; }
legend { padding: 0 6px; font-weight: 600; }
.btn { display: inline-block; background: var(--holo); color: var(--accent-ink); border: 0; border-radius: 20px; padding: 8px 18px; font: 600 .95rem system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.btn:hover { color: var(--accent-ink); filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 5px 12px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: wait; }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
.inline { display: inline; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.narrow { max-width: 620px; margin: 20px auto; }
.prose { max-width: 760px; margin: 0 auto; }
.prose.wide { max-width: 1100px; }
.rules li { margin-bottom: .6em; }
.progress { display: flex; gap: 10px; align-items: center; }
.progress progress { flex: 1; accent-color: var(--accent); }

/* video grid */
.hero { padding: 18px 0 4px; }
.hero h1 { font-size: 2rem; letter-spacing: -.02em; margin: 0; }
.hero p { color: var(--muted); max-width: 720px; }
.grid { display: grid; gap: 22px 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.vcard .thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.vcard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dur, .age { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.8); color: #fff; font-size: .75rem; padding: 1px 5px; border-radius: 4px; }
.age { right: auto; left: 6px; background: var(--danger); }
.vtitle .age { position: static; font-size: .8rem; vertical-align: middle; }
.vcard .meta { display: grid; padding-top: 8px; }
.vcard .title { font-weight: 600; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard .chan, .vcard .sub { color: var(--muted); font-size: .88rem; text-decoration: none; }
.pager { display: flex; justify-content: space-between; margin-top: 24px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px 3px 4px; text-decoration: none; font-size: .9rem; }
.avatar { --s: 36px; --h: 0; width: var(--s); height: var(--s); min-width: var(--s); border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; color: #fff; font-size: calc(var(--s) * .45); background: hsl(var(--h) 55% 42%); }
.avatar.s24 { --s: 24px; } .avatar.s32 { --s: 32px; } .avatar.s72 { --s: 72px; }
.avatar.h0 { --h: 0; }
.avatar.h1 { --h: 30; }
.avatar.h2 { --h: 60; }
.avatar.h3 { --h: 90; }
.avatar.h4 { --h: 120; }
.avatar.h5 { --h: 150; }
.avatar.h6 { --h: 180; }
.avatar.h7 { --h: 210; }
.avatar.h8 { --h: 240; }
.avatar.h9 { --h: 270; }
.avatar.h10 { --h: 300; }
.avatar.h11 { --h: 330; }

/* watch page */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
@media (max-width: 1000px) { .watch { grid-template-columns: 1fr; } }
.player { width: 100%; height: auto; max-height: 75vh; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); display: block; }
.vtitle { font-size: 1.3rem; margin: 12px 0 8px; }
.vbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.owner { display: flex; gap: 10px; align-items: center; text-decoration: none; margin-right: 6px; }
.owner span { display: grid; line-height: 1.25; }
.owner small { color: var(--muted); }
.votes { display: flex; gap: 0; margin-left: auto; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.vote { background: var(--panel); border: 0; color: var(--text); padding: 7px 14px; cursor: pointer; font: inherit; text-decoration: none; display: inline-block; }
.votes form + form .vote, .votes a + a { border-left: 1px solid var(--line); }
.vote.on { color: var(--accent); font-weight: 700; }
.report { color: var(--muted); font-size: .9rem; }
.sponsor { margin: 12px 0 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.sponsor span { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--warn); margin-right: 6px; }
.desc { margin-top: 12px; }
.tags a { color: var(--muted); text-decoration: none; }
.support { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.support > span { color: var(--muted); font-size: .9rem; }
.comments form { margin-bottom: 18px; }
.comment { display: flex; gap: 12px; margin: 14px 0; }
.comment p { margin: 0 0 4px; overflow-wrap: anywhere; }
.comment .who a { font-weight: 600; text-decoration: none; }
.comment small, .cact { color: var(--muted); font-size: .85rem; }
.cact { display: flex; gap: 12px; }
.side { display: grid; gap: 10px; align-content: start; }
.mini { display: grid; grid-template-columns: 168px 1fr; gap: 10px; text-decoration: none; }
.mini img { width: 168px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #000; }
.mini span { display: grid; align-content: start; font-size: .9rem; }
.mini small { color: var(--muted); }
.mod { margin-top: 14px; border-color: var(--warn); }

/* ads: small, labelled, no motion */
.ad { margin: 14px 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; align-items: center; gap: 10px; }
.ad > a:first-child { display: flex; gap: 12px; align-items: center; text-decoration: none; flex: 1; }
.ad img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.adtext { display: grid; font-size: .9rem; }
.adtext small { color: var(--muted); }
.ad .why { font-size: .75rem; color: var(--muted); }
.ad.wide { margin: 22px 0; }

/* channel */
.chead { display: flex; gap: 18px; align-items: flex-start; padding: 10px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.chead > div:nth-child(2) { flex: 1; min-width: 240px; }
.chead h1 { margin: 0; }
.chead .cact { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

/* studio / admin */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 12px 0 18px; }
.stats .card { display: grid; }
.stats strong { font-size: 1.5rem; }
.stats small { color: var(--muted); }
.list { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .92rem; }
.list th, .list td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list th { color: var(--muted); font-weight: 500; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a.on { border-color: var(--accent); }
.report-item { margin-bottom: 12px; }
.report-item.urgent { border-color: var(--danger); }
.card.read { opacity: .6; }
.thumbprev { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 640px) {
  .top { padding: 10px 14px; }
  main { padding: 12px 14px 30px; }
  .me { width: 100%; justify-content: space-between; }
  .mini { grid-template-columns: 130px 1fr; }
  .mini img { width: 130px; }
  .list { display: block; overflow-x: auto; }
}

/* ---- Helpers added 2026-11-19 ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spread { justify-content: space-between; align-items: center; }
.ok { color: var(--ok); }
code.wrap { word-break: break-all; }
.small { font-size: .85rem; }

/* ---- Ad menu ---- */
.adform h3 { margin: 18px 0 4px; font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .8rem; }
.adform fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }
.adcard.paused { opacity: .65; }
.adpreview { display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px dashed var(--line); border-radius: var(--radius); max-width: 520px; }
.adpreview img { border-radius: 6px; object-fit: cover; display: block; }
.adpreview .adtext { display: flex; flex-direction: column; }
.adstats { font-size: .9rem; color: var(--muted); }
.team fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; }

/* ---- #metube forum: mIRC style ---- */
.irc { --irc-bg: #000; --irc-fg: #d8d8d8; --irc-line: #2b2b2b; font-family: "Fixedsys", "Lucida Console", ui-monospace, "Cascadia Mono", Consolas, monospace; }
.irc-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #000080; color: #fff; padding: 6px 10px; border-radius: 6px 6px 0 0; }
.irc-bar a { color: #fff; }
.irc-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.irc-topics { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 6px 10px; background: var(--irc-bg); color: var(--irc-fg); border-bottom: 1px solid var(--irc-line); font-size: .9rem; }
.irc-topics a { color: #9cf; text-decoration: none; }
.irc-topics a.on { color: #ff0; text-decoration: underline; }
.irc-topics .sep { color: #666; }
.irc-table { width: 100%; border-collapse: collapse; background: var(--irc-bg); color: var(--irc-fg); font-size: .92rem; }
.irc-table th { text-align: left; color: #0f0; border-bottom: 1px solid #0f0; padding: 6px 8px; letter-spacing: .05em; }
.irc-table td { padding: 5px 8px; border-left: 1px solid var(--irc-line); vertical-align: top; }
.irc-table td:first-child { border-left: 0; }
.irc-table a { color: #fff; }
.irc-thread { border-bottom: 1px solid var(--irc-line); }
.irc-thread.pinned { background: #0a0a2a; }
.irc-stats td { color: #8a8a8a; font-size: .85rem; padding-top: 0; border-left: 0; }
.pin { color: #ff0; } .lock { color: #f80; }
.irc-title { font-family: inherit; font-size: 1.25rem; margin: 12px 0 2px; }
.irc-topicline { color: #0a0; font-size: .9rem; }
.irc-log { background: var(--irc-bg); color: var(--irc-fg); padding: 10px 12px; border-radius: 0 0 6px 6px; margin-top: 10px; }
.irc-line { padding: 3px 0; }
.irc-line.deleted { opacity: .45; }
.irc-line .ts { color: #777; }
.irc-msg { display: inline; white-space: pre-wrap; }
.irc-msg p { display: inline; margin: 0; }
.irc-say { display: flex; gap: 8px; margin-top: 8px; }
.irc-say textarea { flex: 1; font-family: inherit; background: #000; color: #fff; border: 1px solid #444; }
.nick0 { color: #f55; } .nick1 { color: #5f5; } .nick2 { color: #5af; } .nick3 { color: #fd4; }
.nick4 { color: #f5f; } .nick5 { color: #4ff; } .nick6 { color: #fa5; } .nick7 { color: #aaf; }
@media (max-width: 640px) {
  .irc-table thead { display: none; }
  .irc-table tr:not(.irc-stats) td { display: inline-block; border: 0; padding: 4px 6px 0; }
  .irc-table tr:not(.irc-stats) td:last-child { display: block; }
  .irc-actions { margin-left: 0; }
}

/* ---- About page ---- */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.levels .card h3 { margin-top: 0; }
.level-everyone { border-top: 4px solid var(--ok); }
.level-adult { border-top: 4px solid var(--warn); }
.level-explicit { border-top: 4px solid var(--danger); }
.notice18 { border: 1px solid var(--warn); border-radius: var(--radius); padding: 10px 14px; }
.age.members { background: var(--accent-2); left: auto; right: 6px; top: 6px; bottom: auto; }
.vtitle .age.members { position: static; }

/* Business label (companies vs people) */
.age.biz { position: static; display: inline-block; background: var(--ok); color: var(--accent-ink); font-weight: 700; font-size: .75rem; vertical-align: middle; margin-left: 6px; }
.prices td, .prices th { text-align: right; }
.prices td:first-child, .prices th:first-child { text-align: left; }
/* House ads (MeTube and Northstar promos in empty ad slots; never counted or billed) */
.ad.house { border-color: var(--line-2); background: color-mix(in srgb, var(--panel) 70%, transparent); }
