:root {
  --bg: #000; --bar: #1b1b1b; --panel: #151515; --line: #2c2c2c; --text: #fff; --muted: #a8a8a8; --dim: #6f6f6f;
  --or: #ff9000; --or-hi: #ffa733; --green: #6fbf3b;
  --font: Arial, Helvetica, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.4 var(--font); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 24px; }

/* logo: white word, black word on an orange tile */
.logo { display: inline-flex; align-items: center; font: bold 30px/1 var(--font); letter-spacing: -.5px; white-space: nowrap; }
.logo .l1 { color: #fff; padding-right: 3px; }
.logo .l2 { background: var(--or); color: #000; border-radius: 5px; padding: 2px 6px 3px; }
.logo.small { font-size: 22px; }

/* top strip */
.topbar { display: flex; align-items: center; gap: 14px; padding: 6px 24px; background: #0e0e0e; color: var(--muted); font-size: 12px; border-bottom: 1px solid #191919; }
#nov-bar { flex: 0 1 220px; height: 4px; background: #2a2a2a; border-radius: 2px; overflow: hidden; }
#nov-bar i { display: block; height: 100%; width: 0; background: var(--or); }
.topbar a { margin-left: auto; color: var(--muted); }
.topbar a:hover { color: var(--or); }

/* header */
.head { display: flex; align-items: center; gap: 28px; padding: 14px 24px; background: #000; }
.menu { display: none; background: none; border: 0; padding: 6px; }
.menu span { display: block; width: 22px; height: 2px; margin: 5px 0; background: #fff; }
.search { flex: 1; max-width: 640px; display: flex; height: 40px; }
.search input { flex: 1; min-width: 0; border: 0; border-radius: 4px 0 0 4px; padding: 0 14px; background: #2f2f2f; color: #fff; font: 15px var(--font); }
.search input::placeholder { color: #8d8d8d; }
.search input:focus { outline: none; background: #3a3a3a; }
.search button { width: 52px; border: 0; border-radius: 0 4px 4px 0; background: var(--or); color: #000; }
.search button:hover { background: var(--or-hi); }
.search svg { width: 20px; height: 20px; }
.right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.upload { color: #fff; font-weight: bold; padding: 9px 14px; border: 1px solid #3b3b3b; border-radius: 4px; }
.upload:hover { border-color: var(--or); color: var(--or); }
.pill { background: var(--or); color: #000; padding: 9px 14px; border-radius: 4px; white-space: nowrap; }
.pill:hover { background: var(--or-hi); }

/* nav row */
.nav { display: flex; gap: 0; padding: 0 12px; background: var(--bar); border-bottom: 1px solid #262626; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 13px 14px 11px; font-weight: bold; text-transform: uppercase; font-size: 13px; color: #e6e6e6; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--or); }
.nav a.on { color: var(--or); border-bottom-color: var(--or); }

/* buttons */
.btn { display: inline-block; border: 0; border-radius: 4px; padding: 9px 16px; background: #2d2d2d; color: #fff; font-weight: bold; }
.btn:hover { background: #3a3a3a; }
.btn-or { background: var(--or); color: #000; }
.btn-or:hover { background: var(--or-hi); }
.btn.big { padding: 13px 26px; font-size: 16px; }

/* promo strip */
.promo { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 22px 0 6px; padding: 14px 18px; background: var(--panel); border-left: 4px solid var(--or); color: #ddd; font-size: 15px; }
.promo b { color: #fff; }

/* section heads + sort tabs */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 26px 0 12px; }
.sec-head h2 { margin: 0; font-size: 20px; }
.sec-head h2 small { color: var(--muted); font-weight: normal; font-size: 14px; margin-left: 6px; }
.sorts { display: flex; gap: 4px; flex-wrap: wrap; }
.sorts a { padding: 6px 12px; border-radius: 3px; color: var(--muted); font-weight: bold; font-size: 13px; }
.sorts a:hover { color: #fff; }
.sorts a.on { background: #2b2b2b; color: var(--or); }
.more { color: var(--or); font-weight: bold; font-size: 13px; }
.more:hover { text-decoration: underline; }

/* video grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 14px; }
.card, .cat { display: block; min-width: 0; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: #111; border-radius: 3px; overflow: hidden; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card:hover .thumb, .cat:hover .thumb { outline: 2px solid var(--or); outline-offset: -2px; }
.dur { position: absolute; right: 5px; bottom: 5px; padding: 1px 5px; border-radius: 2px; background: rgba(0,0,0,.8); font-size: 12px; font-weight: bold; }
.badge { position: absolute; left: 5px; bottom: 5px; padding: 1px 5px; border-radius: 2px; background: rgba(0,0,0,.8); color: var(--or); font-size: 11px; font-weight: bold; }
.badge.play { background: var(--or); color: #000; }
.meta { display: flex; flex-direction: column; gap: 3px; padding-top: 7px; }
.title { font-weight: bold; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .title, .cat:hover .title { color: var(--or); }
.chan { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.ok { width: 13px; height: 13px; fill: var(--or); flex: none; }
.stats { display: flex; justify-content: space-between; gap: 8px; color: var(--dim); font-size: 12px; }
.rate { color: var(--green); font-weight: bold; }
.cats .title { display: block; margin-top: 8px; font-size: 16px; }
.cats .title em { color: var(--muted); font-style: normal; font-weight: normal; }
.cat .sub { color: var(--muted); font-size: 13px; }

/* search */
.noresults { margin: 30px 0 10px; padding: 26px; background: var(--panel); border-radius: 4px; }
.noresults h2 { margin: 0 0 8px; font-size: 22px; }
.noresults p { margin: 0; max-width: 70ch; color: #cfcfcf; font-size: 15px; }
.empty { color: var(--muted); }
.loadmore { padding: 26px 0 6px; text-align: center; color: var(--dim); font-size: 13px; }
.ythint { margin: 10px 0 0; padding: 10px 14px; background: var(--panel); border-left: 3px solid var(--or); color: #cfcfcf; font-size: 13px; }
.ythint a { color: var(--or); font-weight: bold; }

/* watch page */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; margin-top: 22px; }
.player { position: relative; background: #000; aspect-ratio: 16 / 9; overflow: hidden; }
.player img, .player iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.player .dur { font-size: 14px; padding: 2px 7px; right: 10px; bottom: 10px; }
.bigplay { position: absolute; inset: 50% auto auto 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); display: block; }
.bigplay svg { width: 44px; height: 44px; fill: #fff; margin-left: 4px; }
.bigplay:hover { background: var(--or); }
.bigplay:hover svg { fill: #000; }
.plan-card label { display: flex; gap: 8px; align-items: center; flex: 1 1 320px; font-weight: bold; }
.plan-card input { flex: 1; min-width: 0; height: 38px; border: 1px solid #3a3a3a; border-radius: 4px; background: #222; color: #fff; padding: 0 10px; font: 14px var(--font); }
.plan-card input:focus { border-color: var(--or); outline: none; }
.saved { color: var(--green); font-weight: bold; }
.watch h1 { font-size: 22px; margin: 16px 0 10px; line-height: 1.25; }
.vbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.acts button, .acts a { border: 0; border-radius: 4px; padding: 8px 14px; background: #262626; font-weight: bold; font-size: 13px; }
.acts button:hover, .acts a:hover { background: #333; color: var(--or); }
.ratebar { height: 3px; margin-top: 10px; background: #3a3a3a; }
.ratebar i { display: block; height: 100%; width: 0; background: var(--green); }
.chanrow { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.chanrow div { display: flex; flex-direction: column; }
.chanrow small { color: var(--muted); }
.chanrow .btn { margin-left: auto; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--or); color: #000; display: grid; place-items: center; font: bold 20px var(--font); }
.tabs { padding: 12px 0 0; color: var(--or); border-bottom: 1px solid var(--line); }
.tabs b { display: inline-block; padding-bottom: 8px; border-bottom: 3px solid var(--or); }
.about { max-width: 80ch; font-size: 15px; color: #dcdcdc; }
.src h3 { font-size: 15px; margin: 18px 0 6px; color: #fff; }
.src p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.src a, .about .cats a { color: var(--or); font-weight: bold; }
.about .cats { display: block; color: var(--muted); font-size: 13px; }
.related h3 { margin: 0 0 12px; font-size: 16px; }
.related .card { display: grid; grid-template-columns: 168px 1fr; gap: 10px; margin-bottom: 12px; }
.related .meta { padding-top: 0; }
.related .stats { display: none; }

/* research */
.lead { max-width: 85ch; font-size: 16px; color: #dcdcdc; }
.research table { width: 100%; border-collapse: collapse; font-size: 14px; }
.research th { text-align: left; padding: 10px 12px; background: var(--bar); color: var(--muted); font-size: 12px; text-transform: uppercase; }
.research td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: #d6d6d6; }
.research td:first-child { width: 30%; }
.research td:first-child a { color: var(--or); }
.research td:first-child span { display: block; margin-top: 4px; color: var(--dim); font-size: 12px; }
.research td:last-child { width: 22%; }
.research td:last-child a { display: block; margin-bottom: 6px; color: #fff; }
.research td:last-child a:hover { color: var(--or); }
.tag { display: inline-block; padding: 2px 7px; border-radius: 3px; background: #2a2a2a; font-size: 12px; font-weight: bold; white-space: nowrap; }
.retracted .tag { background: #5a1512; color: #ff8a80; }

/* streak */
.streak { max-width: 760px; }
.streak .big { font: bold 54px/1 var(--font); color: var(--or); }
.streak > p { color: var(--muted); }
.cal { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin: 18px 0 24px; }
.cal button { aspect-ratio: 1; border: 0; border-radius: 4px; font-weight: bold; font-size: 15px; }
.cal .clean { background: var(--or); color: #000; }
.cal .slip { background: #4a4a4a; color: #fff; text-decoration: line-through; }
.cal .future { background: #1c1c1c; color: #5c5c5c; cursor: default; }
.cal .today { box-shadow: 0 0 0 2px #fff; }
.plan-card { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 18px; background: var(--panel); border-radius: 4px; }
.plan-card h3, .plan-card p { flex-basis: 100%; }
.plan-card a, .fine a, .catwhy a { color: var(--or); }
.catwhy { max-width: 95ch; margin: -2px 0 18px; color: #cfcfcf; font-size: 15px; }
.catwhy span { display: block; margin-top: 4px; font-size: 13px; }
.plan-card h3 { margin: 0 0 6px; }
.plan-card p { color: #dcdcdc; font-size: 15px; }
.fine { color: var(--dim); font-size: 13px; margin-top: 18px; }

/* footer */
.foot { margin-top: 56px; padding: 34px 0 40px; background: #0d0d0d; border-top: 1px solid #1d1d1d; color: var(--muted); }
.foot .cols { display: grid; grid-template-columns: 220px 160px 160px 1fr; gap: 28px; align-items: start; }
.foot h4 { margin: 0 0 8px; color: #fff; font-size: 13px; text-transform: uppercase; }
.foot .cols a:not(.logo) { display: block; margin-bottom: 6px; }
.foot .cols a:not(.logo):hover { color: var(--or); }
.legal { margin: 0; font-size: 12px; line-height: 1.6; }

/* entry gate */
.gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.92); }
.gate-box { width: min(560px, 100%); padding: 34px 32px 26px; background: #121212; border-top: 4px solid var(--or); text-align: center; border-radius: 4px; }
.gate-box h2 { margin: 22px 0 10px; font-size: 26px; }
.gate-box p { color: #cfcfcf; font-size: 15px; margin: 0 0 22px; }
.gate-box .exit { display: block; margin-top: 14px; color: var(--muted); text-decoration: underline; }
.gate-box small { display: block; margin-top: 18px; color: var(--dim); }

@media (max-width: 1100px) {
  .watch { grid-template-columns: 1fr; }
  .related .card { grid-template-columns: 200px 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .legal { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .topbar { padding: 6px 16px; }
  .topbar a { display: none; }
  #nov-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  #nov-bar { flex: 1 0 60px; }
  .sorts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .sorts a { white-space: nowrap; }
  .sec-head > * { min-width: 0; }
  .head { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .menu { display: block; }
  .logo { font-size: 24px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .upload { display: none; }
  .nav { display: none; flex-direction: column; padding: 0; }
  body.navopen .nav { display: flex; }
  .nav a { border-bottom: 1px solid #262626; }
  .grid { grid-template-columns: 1fr 1fr; gap: 16px 10px; }
  .title { font-size: 13px; }
  .stats { display: none; }
  .promo { flex-direction: column; align-items: flex-start; }
  .related .card { grid-template-columns: 140px 1fr; }
  .research thead { display: none; }
  .research tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .research td { display: block; width: auto !important; padding: 4px 0; border: 0; }
  .cal { grid-template-columns: repeat(6, 1fr); }
  .streak .big { font-size: 42px; }
  .foot .cols { grid-template-columns: 1fr; }
  @media (max-width: 400px) { .grid:not(.cats) { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
