:root {
  color-scheme: dark;
  --page: #101016;
  --surface: #1a1a24;
  --edge: #30303e;
  --text: #f2f1fb;
  --muted: #b9b7ca;
  --accent: #c4ff79;
  font: 16px/1.55 system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); }
a { color: inherit; text-underline-offset: .24em; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: fixed; left: 1rem; top: -6rem; z-index: 5; background: var(--accent); color: #141716; padding: .7rem 1rem; }
.skip:focus { top: 1rem; }
.shell { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.header, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 82px; }
.header { border-bottom: 1px solid var(--edge); }
.brand { display: inline-flex; align-items: center; gap: .7rem; font: 800 .93rem/1.25 ui-monospace, monospace; letter-spacing: -.045em; text-decoration: none; }
.brand-icon { display: grid; width: 28px; height: 22px; border: 1px solid var(--accent); border-radius: 5px; place-items: center; color: var(--accent); }
.brand-icon span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.accent, .eyebrow { color: var(--accent); }
nav, .actions, .filters { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.nav-link { text-decoration: none; color: var(--muted); margin-inline: .3rem; }
.nav-link:hover, .channel a:hover { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border-radius: 6px; padding: .62rem 1rem; font-weight: 720; text-decoration: none; cursor: pointer; min-height: 42px; }
.outline { border: 1px solid #4a495a; background: transparent; color: var(--text); }
.outline:hover { border-color: var(--accent); }
.primary { border: 1px solid var(--accent); background: var(--accent); color: #171c14; }
.primary:hover { background: #deffa9; }
.hero { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(1.5rem, 6vw, 5rem); align-items: center; min-height: 490px; padding-block: 3rem; }
.eyebrow { font: 700 .72rem/1.5 ui-monospace, monospace; letter-spacing: .10em; }
.signal, .monitor-live i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); vertical-align: .07em; margin-right: .5rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.7rem, 7vw, 5.75rem); line-height: .99; letter-spacing: -.072em; margin: .95rem 0 1rem; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.04em; line-height: 1.1; margin: .25rem 0 .5rem; }
h3 { font-size: 1.22rem; letter-spacing: -.02em; }
p { color: var(--muted); }
.hero p { max-width: 30ch; font-size: 1.08rem; }
.actions { margin-top: 1.5rem; }
.monitor { padding: .85rem .9rem .75rem; border: 1px solid #49485b; border-radius: 14px; background: #22212e; box-shadow: 0 22px 54px #07070b91; }
.monitor-top, .monitor-bottom { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #d0cbec; font: 700 .67rem ui-monospace, monospace; letter-spacing: .1em; }
.monitor-top { margin-bottom: .65rem; }
.monitor-bottom { margin-top: .75rem; }
.monitor-live { color: #d7f5ad; }
.monitor-live i { background: #fca382; }
.screen { position: relative; display: grid; place-items: center; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; border: 1px solid #5a4a92; isolation: isolate;
  background: repeating-linear-gradient(0deg, #18122738 0 1px, transparent 1px 5px), radial-gradient(ellipse at 50% 45%, #534180, #2d224b 60%, #1d1737 86%); }
.screen::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, transparent 0 12.35%, #b292ff2b 12.45% 12.55%, transparent 12.65% 12.8%); }
.screen-target { display: grid; place-items: center; width: 35%; aspect-ratio: 1; border: 1px solid #c5a7ff; border-radius: 50%; box-shadow: 0 0 0 18px #c5a7ff22, 0 0 0 37px #c5a7ff13; color: var(--accent); font-size: clamp(1.9rem, 5vw, 3.8rem); }
.screen-target span { transform: translateX(.09em); }
.screen-left, .screen-right { position: absolute; bottom: .8rem; color: #e5d9ff; font: 700 .7rem ui-monospace, monospace; letter-spacing: .1em; }
.screen-left { left: .85rem; } .screen-right { right: .85rem; }
.channels { padding: 1.2rem 0 3rem; scroll-margin-top: 1rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.filters { gap: .35rem; }
.filters button { border: 1px solid #444358; border-radius: 5px; padding: .36rem .78rem; background: #201f2b; color: var(--text); cursor: pointer; }
.filters button[aria-pressed=true] { border-color: var(--accent); color: var(--accent); }
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.channel { display: flex; flex-direction: column; border: 1px solid var(--edge); border-radius: 9px; overflow: hidden; background: var(--surface); min-width: 0; }
.channel-art { display: flex; align-items: flex-start; justify-content: space-between; min-height: 104px; padding: .75rem 1rem; color: #171922; font: 850 1.35rem ui-monospace, monospace; }
.channel-art i { font: 400 3.7rem/.95 system-ui, sans-serif; }
.art-one { background: linear-gradient(120deg, #d1fe84, #93da92); }
.art-two { background: linear-gradient(120deg, #fcc7a6, #e899ad); }
.art-three { background: linear-gradient(120deg, #d2beff, #af9feb); }
.channel-info { display: flex; flex-direction: column; flex: 1; align-items: start; gap: .36rem; padding: 1rem; overflow-wrap: anywhere; }
.channel-info p { font-size: .92rem; }
.channel-info a { margin-top: auto; padding-top: .45rem; font-weight: 700; }
.guide { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem; border: 1px solid var(--edge); border-radius: 9px; background: #191822; margin-bottom: 3rem; }
footer { border-top: 1px solid var(--edge); color: var(--muted); font-size: .84rem; }
.panel { background: var(--surface); border: 1px solid var(--edge); border-radius: 10px; padding: clamp(1.2rem, 4vw, 2rem); }
.login { width: min(100%, 500px); margin: 3.5rem auto; }
.login h1, .library h1 { font-size: clamp(2.25rem, 5vw, 3.7rem); line-height: 1.05; }
form label { display: grid; gap: .35rem; color: var(--text); font-weight: 650; }
.login form, .upload form { display: grid; gap: 1rem; margin-top: 1rem; }
input:not([type=hidden]) { width: 100%; min-width: 0; border: 1px solid #535266; border-radius: 5px; padding: .65rem .75rem; background: #12121a; color: var(--text); }
form .button { justify-self: start; }
.notice { padding: .65rem .8rem; border-left: 3px solid var(--accent); background: #252631; color: var(--text); margin: .9rem 0; }
.library { margin: 2.75rem 0 3.2rem; }
.upload { margin: 0 0 1.5rem; }
.upload summary { cursor: pointer; font-size: 1.25rem; font-weight: 800; }
.hint { font-size: .89rem; }
.video-grid { margin-top: 1rem; }
video { display: block; width: 100%; aspect-ratio: 16/9; background: #08080c; }
@media (max-width: 750px) {
  .shell { width: calc(100% - 32px); }
  .header, footer { min-height: 66px; }
  .header .nav-link { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-block: 2.3rem; }
  .hero h1 { font-size: clamp(2.8rem, 11vw, 4.6rem); }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .channel-grid { grid-template-columns: 1fr; }
  footer > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
