/* ============================================================
   Searingwolfe — Shared Stylesheet v2.0
   Layout: nav-left | content-center | sources-right
   (keygen-era layout, modernized)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Barlow:wght@300;400;500&family=Barlow+Condensed:wght@600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #0a0a0a;
  --bg2:         #111111;
  --bg3:         #181818;
  --border:      #202020;
  --border-hi:   rgba(0,255,204,0.25);
  --txt:         #cccccc;
  --txt2:        #888888;
  --txt3:        #444444;
  --cyan:        #00ffcc;
  --green:       #00ff41;
  --yellow:      #f5c842;
  --orange:      #ff6600;
  --red:         #ff2828;
  --purple:      #ff00ff;
  --blue:        #0000ff;
  --white:       #e8e8e8;
  --gray:        #888888;
  --glow-c:      0 0 8px rgba(0,255,204,0.45);
  --glow-g:      0 0 8px rgba(0,255,65,0.45);
  --glow-o:      0 0 8px rgba(255,102,0,0.45);
  --glow-r:      0 0 8px rgba(255,40,40,0.45);
  --glow-p:      0 0 8px rgba(255,0,255,0.45);
  --glow-b:      0 0 8px rgba(0,0,255,0.45);
  --glow-y:      0 0 8px rgba(245,200,66,0.45);
  --glow-w:      0 0 8px rgba(232,232,232,0.45);
  --glow-a:      0 0 8px rgba(136,136,136,0.45);
  --mono:        'Share Tech Mono', 'Courier New', monospace;
  --body:        'Barlow', system-ui, sans-serif;
  --cond:        'Barlow Condensed', system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) var(--bg2);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

::-webkit-scrollbar          { width: 5px; }
::-webkit-scrollbar-track    { background: var(--bg2); }
::-webkit-scrollbar-thumb    { background: var(--cyan); border-radius: 2px; }

body {
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 3px,
      rgba(0,0,0,.04) 3px, rgba(0,0,0,.04) 4px);
  color: var(--txt);
  font-family: var(--body);
  font-size: 21px;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── Site wrapper (3-col grid) ──────────────────────────────── */
.site-wrap {
  display: grid;
  grid-template-columns: 294px 1fr 264px;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "hd  hd  hd"
    "nav main src"
    "ft  ft  ft";
  min-height: 100vh;
  max-width: 1920px;
  margin: 0 auto;
  border-inline: 1px solid var(--border);
}

/* ── Header ─────────────────────────────────────────────────── */
.site-hd {
  grid-area: hd;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 21px 30px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.site-logo {
  font-family: var(--mono);
  font-size: 30px;
  letter-spacing: 3px;
  color: var(--cyan);
  text-shadow: var(--glow-c);
}
.site-logo sup {
  font-size: 15px;
  color: var(--txt3);
  letter-spacing: 0;
  vertical-align: super;
}
.site-logo span {
  color: var(--red);
  text-shadow: var(--glow-r); /* Optional: changes glow to match if you have an orange glow variable */
}

.site-tagline {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--txt3);
  letter-spacing: 1px;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

/* ── Left nav ───────────────────────────────────────────────── */
.site-nav {
  grid-area: nav;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 20px 0 28px;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
}

.nl-label {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--txt3);
  padding: 0 14px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nl-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.nl { list-style: none; margin-bottom: 20px; }

.nl a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--txt2);
  border-left: 2px solid transparent;
  transition: color .12s, border-color .12s, background .12s;
}
.nl a:hover, .nl a.on {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(0,220,255,.05);
  text-shadow: var(--glow-c);
}

.nl .sub a {
  padding-left: 26px;
  font-size: 16px;
  color: var(--txt3);
}
.nl .sub a:hover { color: var(--cyan); }

.nl-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 6px 14px;
}

/* ── Main ───────────────────────────────────────────────────── */
.site-main {
  grid-area: main;
  padding: 42px 45px 72px;
  min-width: 0;
}

/* ── Sources (right) ────────────────────────────────────────── */
.site-src {
  grid-area: src;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  padding: 20px 0 28px;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
}

.src-label {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--txt3);
  padding: 0 13px;
  margin-bottom: 6px;
}

.src-list { list-style: none; }
.src-list a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--txt2);
  transition: color .12s;
}
.src-list a:hover {
  color: var(--red);
  text-shadow: var(--glow-r);
}

.src-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 13px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-ft {
  grid-area: ft;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 20px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--txt3);
}
.site-ft a { color: var(--cyan); }
.site-ft a:hover { text-shadow: var(--glow-c); }

/* ── Content Components ─────────────────────────────────────── */

/* Section header */
.sec-hd {
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sec-title {
  font-family: var(--mono);
  font-size: 26px;
  color: var(--cyan);
  text-shadow: var(--glow-c);
  letter-spacing: 1px;
}
.sec-title::before { content: '> '; color: var(--txt3); }
.sec-sub {
  font-size: 18px;
  color: var(--txt2);
  margin-top: 3px;
}

/* Intro / info boxes */
.box {
  padding: 13px 16px;
  margin-bottom: 22px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--txt2);
}
.box-red    { background: rgba(255,40,40,.04);   border: 1px solid rgba(255,40,40,.18);   border-left-width: 3px; }
.box-orange{ background: rgba(255,109,56,.04); border: 1px solid rgba(255,109,56,.18); border-left-width: 3px; }
.box-warn  { background: rgba(245,200,66,.04); border: 1px solid rgba(245,200,66,.18); border-left-width: 3px; }
.box-yellow  { background: rgba(245,200,66,.04); border: 1px solid rgba(245,200,66,.18); border-left-width: 3px; }
.box-green  { background: rgba(0,255,65,.04);    border: 1px solid rgba(0,255,65,.18);    border-left-width: 3px; }
.box-cyan  { background: rgba(0,220,255,.04); border: 1px solid rgba(0,220,255,.18); border-left-width: 3px; }
.box-blue   { background: rgba(0,0,255,.04);     border: 1px solid rgba(0,0,255,.18);     border-left-width: 3px; }
.box-purple { background: rgba(255,0,255,.04);   border: 1px solid rgba(255,0,255,.18);   border-left-width: 3px; }
.box-white { background: rgba(232,232,232,.04); border: 1px solid rgba(232,232,232,.18); border-left-width: 3px; }
.box-gray { background: rgba(136,136,136,.04); border: 1px solid rgba(136,136,136,.18); border-left-width: 3px; }
.box a     { color: var(--cyan); }

.box-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.box-ico { flex-shrink: 0; font-size: 15px; margin-top: 2px; }

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
  gap: 0;
}
.tab-btn {
  padding: 8px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--txt3);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color .12s, border-color .12s;
}
.tab-btn:hover { color: var(--txt2); }
.tab-btn.on { color: var(--cyan); border-bottom-color: var(--cyan); }
.tab-pane { display: none; }
.tab-pane.on { display: block; }

/* Sub-section */
.sub-sec { margin-bottom: 32px; }
.sub-title {
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sub-title::before { content: '//'; color: var(--txt3); font-size: 16px; }

/* Cards */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  margin-bottom: 18px;
  transition: border-color .15s;
}
.card:hover { border-color: var(--border-hi); }

.card-hd {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.card-title {
  font-family: var(--cond);
  font-size: 22px;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: .4px;
}
.vtag {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--cyan);
  border: 1px solid rgba(0,220,255,.4);
  padding: 1px 7px;
  margin-left: 8px;
}
.card-body { padding: 22px; }
.card-body p {
  font-size: 20px;
  color: var(--txt2);
  line-height: 1.7;
  margin-bottom: 10px;
}
.card-body p:last-child { margin-bottom: 0; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.tag {
  font-family: var(--mono);
  font-size: 14px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  color: var(--txt3);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.tag.r { border-color: var(--red); color: var(--red); }
.tag.o { border-color: var(--orange); color: var(--orange); }
.tag.y { border-color: var(--yellow); color: var(--yellow); }
.tag.c { border-color: var(--cyan);   color: var(--cyan); }
.tag.g { border-color: var(--green);  color: var(--green); }
.tag.b { border-color: var(--blue);  color: var(--blue); }
.tag.p { border-color: var(--purple);  color: var(--purple); }
.tag.w { border-color: var(--white); color: var(--white); }
.tag.a { border-color: var(--gray); color: var(--gray); }


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: .4px;
  border: 1px solid;
  cursor: pointer;
  text-decoration: none;
  transition: all .12s;
}
.btn-c {
  color: var(--cyan);
  border-color: var(--cyan);
  background: transparent;
}
.btn-c:hover {
  background: rgba(0,220,255,.1);
  box-shadow: var(--glow-c);
  text-shadow: var(--glow-c);
}
.btn-r {
  color: var(--red);
  border-color: var(--red);
  background: transparent;
}
.btn-r:hover {
  background: rgba(255,40,40,.1);
  box-shadow: var(--glow-r);
  text-shadow: var(--glow-r);
}
.btn-o {
  color: var(--orange);
  border-color: var(--orange);
  background: transparent;
}
.btn-o:hover {
  background: rgba(255,102,0,.1);
  box-shadow: var(--glow-o);
  text-shadow: var(--glow-o);
}
.btn-p {
  color: var(--purple);
  border-color: var(--purple);
  background: transparent;
}
.btn-p:hover {
  background: rgba(255,0,255,.1);
  box-shadow: var(--glow-p);
  text-shadow: var(--glow-p);
}
.btn-b {
  color: var(--blue);
  border-color: var(--blue);
  background: transparent;
}
.btn-b:hover {
  background: rgba(0,0,255,.1);
  box-shadow: var(--glow-b);
  text-shadow: var(--glow-b);
}
.btn-g {
  color: var(--green);
  border-color: var(--green);
  background: transparent;
}
.btn-g:hover {
  background: rgba(0,255,65,.1);
  box-shadow: var(--glow-g);
  text-shadow: var(--glow-g);
}
.btn-y {
  color: var(--yellow);
  border-color: var(--yellow);
  background: transparent;
}
.btn-y:hover {
  background: rgba(245,200,66,.1);
  box-shadow: var(--glow-y);
  text-shadow: var(--glow-y);
}
.btn-w {
  color: var(--white);
  border-color: var(--white);
  background: transparent;
}
.btn-w:hover {
  background: rgba(232,232,232,.1);
  box-shadow: var(--glow-w);
  text-shadow: var(--glow-w);
}
.btn-a {
  color: var(--gray);
  border-color: var(--gray);
  background: transparent;
}
.btn-a:hover {
  background: rgba(136,136,136,.1);
  box-shadow: var(--glow-a);
  text-shadow: var(--glow-a);
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.share-btn-group {
  display: flex;
  gap: 7px;
  margin-left: auto;
  align-items: center;
  align-self: flex-end;
}

/* Steps */
.steps { list-style: none; counter-reset: sc; margin-bottom: 18px; }
.steps li {
  counter-increment: sc;
  display: flex;
  gap: 12px;
  margin-bottom: 13px;
  font-size: 20px;
  color: var(--txt2);
  line-height: 1.6;
}
.steps li::before {
  content: counter(sc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 15px;
  color: var(--cyan);
  background: rgba(0,220,255,.07);
  border: 1px solid rgba(0,220,255,.25);
  min-width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.steps li strong { color: var(--txt); }
.steps li a { color: var(--cyan); }
.steps li a:hover { text-shadow: var(--glow-c); }

/* Code / command blocks */
.cmd {
  display: inline;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--green);
  background: rgba(0,0,0,.45);
  border: 1px solid var(--border);
  padding: 1px 6px;
}
.code-block {
  background: rgba(0,0,0,.55);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  padding: 11px 15px;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--green);
  line-height: 1.85;
  margin: 10px 0;
  overflow-x: auto;
  white-space: pre;
  overflow-wrap: normal; /* don't break code lines — let the box scroll */
}

/* ── Text-wrap for long strings (URLs, filenames with / and _) ──────────
   Applied surgically to content areas only — NOT to nav, buttons, or
   flex-row UI elements where break-word collapses min-content width.   */
.yt-desc-inner,
.sc-desc-section,
.yt-title,
.vid-title,
.vid-desc,
.card-body,
.acc-body,
.box { overflow-wrap: break-word; }

/* YouTube video cards */
.vid-card {
  display: grid;
  grid-template-columns: 192px 1fr;
  gap: 13px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 13px;
  margin-bottom: 11px;
  transition: border-color .15s;
}
.vid-card:hover { border-color: var(--border-hi); }
.vid-thumb {
  width: 192px;
  height: 108px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 39px;
  color: var(--txt3);
  flex-shrink: 0;
  overflow: hidden;
}
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vid-info { min-width: 0; }
.vid-title {
  font-family: var(--cond);
  font-size: 21px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 4px;
}
.vid-meta {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--txt3);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 5px;
}
.vid-desc {
  font-size: 18px;
  color: var(--txt2);
  line-height: 1.6;
}

/* SoundCloud embed */
.sc-wrap {
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  margin-bottom: 14px;
  overflow: hidden;
}

/* Accordion (mod feature lists) */
.acc-btn {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 9px 14px;
  text-align: left;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--txt2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
  transition: color .12s, border-color .12s;
}
.acc-btn:hover, .acc-btn.on { color: var(--cyan); border-color: var(--border-hi); }
.acc-btn .arr { transition: transform .2s; }
.acc-btn.on .arr { transform: rotate(90deg); }
.acc-body {
  display: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: none;
  padding: 13px 15px;
  font-size: 18px;
  color: var(--txt2);
  line-height: 1.75;
  margin-bottom: 8px;
}
.acc-body.on { display: block; }
.acc-body ul { list-style: none; padding: 0; }
.acc-body ul li::before { content: '— '; color: var(--txt3); }

/* Mod grid */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

/* ── Responsive ─────────────────────────────────────────────── */

/* Mobile tagline line-break helpers: visible only on mobile */
.tl-br { display: none; }
@media (max-width: 1080px) {
  .site-wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hd"
      "nav"
      "main"
      "src"
      "ft";
    border-inline: none;
  }
  .site-nav, .site-src {
    position: static;
    max-height: none;
    border: none;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 10px;
  }
  .nl, .src-list { display: flex; flex-wrap: wrap; }
  .nl a, .src-list a { border: none; }
  .nl-label, .src-label { width: 100%; margin-bottom: 4px; }
  .site-main { padding: 18px 16px 36px; }
  .vid-card { grid-template-columns: 1fr; }
  .vid-thumb { width: 100%; height: 140px; }

  /* Header: bigger logo; push tagline flush to right edge */
  .site-hd { 
    padding: 18px 10px; 
    gap: 10px; 
    justify-content: center; /* Centers items horizontally in the header */
  }

  .site-logo { 
    font-size: 34px; 
    letter-spacing: 3px; 
    margin: 0 auto; /* Centers the logo within the flexbox */
  }
  .site-tagline    { font-size: 11px; letter-spacing: 0; text-transform: none;
                     padding-left: 10px; margin-left: auto; }
  .tl-br           { display: initial; }
}

/* ══════════════════════════════════════════════════════════
   YouTube-style archive video page
══════════════════════════════════════════════════════════ */

.yt-player-wrap {
  background: #000;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  position: relative;
}
.yt-player-wrap video {
  width: 100%;
  display: block;
  max-height: 750px;
  background: #000;
}

.yt-title {
  font-family: var(--cond);
  font-size: 30px;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.3;
  margin-bottom: 12px;
}

.yt-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.yt-views {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--txt2);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}
.yt-stat-sep { color: var(--txt3); }
.yt-like-row {
  display: flex;
  align-items: center;
}
.yt-like-btn, .yt-dislike-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-family: var(--mono);
  font-size: 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--txt2);
}
.yt-like-btn  { border-right: none; color: var(--cyan); border-color: var(--cyan); }
.yt-dislike-btn { color: var(--red); border-color: var(--red); }

.yt-channel-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 0 22px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.yt-avatar {
  width: 63px;
  height: 63px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.yt-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.yt-channel-name {
  font-family: var(--cond);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--txt);
}
.yt-channel-sub {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--txt3);
  margin-top: 2px;
}
.yt-channel-sub a { color: var(--cyan); }

.yt-desc-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 13px 16px;
  font-size: 20px;
  color: var(--txt2);
  line-height: 1.75;
}
.yt-desc-inner { max-height: 80px; overflow: hidden; transition: max-height .3s ease; }
.yt-desc-inner.expanded { max-height: 2000px; }
.yt-desc-toggle {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--cyan);
  background: none;
  border: none;
  padding: 8px 0 0;
  cursor: pointer;
  display: block;
}
.yt-desc-toggle:hover { text-shadow: var(--glow-c); }

/* Related videos sidebar (inside main, right column) */
.yt-page-inner {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 24px;
}
/* Grid children must have min-width:0 or they overflow on mobile */
.yt-page-inner > * { min-width: 0; }
.yt-related { }
.yt-related-label {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--txt3);
  margin-bottom: 10px;
}
.yt-related-card {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 8px;
  margin-bottom: 9px;
  text-decoration: none;
  transition: opacity .12s;
}
.yt-related-card:hover { opacity: .8; }
.yt-rel-thumb {
  width: 135px;
  height: 77px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  color: var(--txt3);
  overflow: hidden;
  flex-shrink: 0;
}
.yt-rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-rel-info { min-width: 0; }
.yt-rel-title {
  font-family: var(--cond);
  font-size: 18px;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.3;
  margin-bottom: 3px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.yt-rel-meta {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--txt3);
}

@media (max-width: 1080px) {
  .yt-page-inner { grid-template-columns: 1fr; }

  /* Channel row on mobile:
     - avatar + name stay on the same first line (flex: 1 on the info div)
     - share buttons drop to their own full-width second line
     - channel sub font shrunk so both links fit beside each other        */
  .yt-channel-row { flex-wrap: wrap; gap: 8px 10px; }
  .yt-channel-row > div:nth-child(2) { min-width: 0; flex: 1; }
  .yt-channel-sub { font-size: 12px; }
  .share-btn-group { margin-left: 0; width: 100%; }

  /* Views / date: stack on separate lines, hide the · separator */
  .yt-views { flex-direction: column; gap: 1px; }
  .yt-stat-sep { display: none; }
  .yt-stat-date::before { content: none; }
}


/* ══════════════════════════════════════════════════════════
   SoundCloud-style track page
══════════════════════════════════════════════════════════ */

.sc-player-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  margin-bottom: 22px;
}
.sc-player-top {
  display: grid;
  grid-template-columns:268px 1fr;
  align-items: start;
  padding: 16px 0 16px 16px;
}
.sc-artwork {
  width: 268px;
  height: 268px;
  background: var(--bg3);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 78px;
  color: var(--txt3);
  overflow: hidden;
  flex-shrink: 0;
}
.sc-artwork img { width: 100%; height: 100%; object-fit: cover; }

.sc-track-header {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sc-track-artist {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--red);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sc-track-title {
  font-family: var(--cond);
  font-size: 33px;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.2;
}
.sc-track-date {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--txt3);
}

/* Waveform player section */
.sc-waveform-section {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.sc-controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.sc-play-btn {
  width: 57px;
  height: 57px;
  background: var(--cyan);
  color: #000;
  border: none;
  cursor: pointer;
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .12s, box-shadow .12s;
  font-family: var(--mono);
}
.sc-play-btn:hover { box-shadow: var(--glow-c); }

/* CSS-drawn pause bars — no Unicode, immune to Android emoji rendering */
.pause-bars { display: flex; gap: 4px; align-items: center; }
.pause-bars span {
  display: block;
  width: 4px;
  height: 14px;
  background: #000;
  border-radius: 1px;
}
.play-tri { font-size: 15px; line-height: 1; }

/* Mobile: keep bars scaled for mobile */
@media (max-width: 1080px) {
  .pause-bars span { width: 4px; height: 14px; }
}
.sc-time-display {
  font-family: var(--mono);
  font-size: 18px;
  margin-left: 8px;
  color: var(--txt2);
  white-space: nowrap;
}
.sc-vol-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  margin-right: 5px;
}
.sc-vol-icon { font-size: 20px; color: var(--txt3); }
.sc-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 180px;
  height: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
  border-radius: 0;
}
.sc-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  background: var(--cyan);
  cursor: pointer;
}
.sc-waveform-canvas-wrap {
  cursor: pointer;
  position: relative;
  margin-bottom: 6px;
}
#waveform { width: 100%; height: 120px; display: block; }

.sc-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0 0 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
  align-items: center;
}
.sc-stat {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--txt3);
  display: flex;
  align-items: center;
  gap: 5px;
}

.sc-desc-section {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 20px;
  color: var(--txt2);
  line-height: 1.75;
}

/* SC track list cards (on index.html) */
.sc-track-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 12px;
  margin-bottom: 10px;
  transition: border-color .15s;
  text-decoration: none;
}
.sc-track-card:hover { border-color: var(--border-hi); }
.sc-card-art {
  width: 84px;
  height: 84px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--txt3);
  flex-shrink: 0;
  overflow: hidden;
}
.sc-card-art img { width: 100%; height: 100%; object-fit: cover; }
.sc-card-info { min-width: 0; }
.sc-card-title {
  font-family: var(--cond);
  font-size: 21px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 4px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.sc-card-meta {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--txt3);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 5px;
}

@media (max-width: 1080px) {
  .sc-player-top { grid-template-columns: 1fr; }
  .sc-artwork { width: 100%; height: 160px; border-right: none; border-bottom: 1px solid var(--border); }

  /* Shrink volume slider so controls row doesn't overflow the waveform canvas width */
  .sc-vol-slider { width: 90px; }
  .sc-controls-row { flex-wrap: wrap; }
}

/* ── Archive section sub-tabs (orange accent) ────────────────────── */
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  gap: 0;
}
.sub-tab-btn {
  padding: 8px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--txt3);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color .12s, border-color .12s;
}
.sub-tab-btn:hover  { color: var(--red); }
.sub-tab-btn.on     { color: var(--red); border-bottom-color: var(--red); }
.sub-tab-pane       { display: none; }
.sub-tab-pane.on    { display: block; }
.yt-status-ico {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px;
  margin-right: 5px;
  flex-shrink: 0;
}

/* ── Description / Tracklist inner tabs ──────────────────────────── */
.desc-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  padding: 3px 0 0 16px; /* top right bottom left */
}
.desc-tab-btn {
  padding: 7px 16px; /* top right bottom left */
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--txt3);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color .12s, border-color .12s;
}
.desc-tab-btn:hover { color: var(--txt2); }
.desc-tab-btn.on    { color: var(--cyan); border-bottom-color: var(--cyan); }
.desc-tab-pane      { display: none; padding: 14px 16px; }
.desc-tab-pane.on   { display: block; }

/* Tracklist table */
.tracklist {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 510px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) var(--bg3);
}
.tracklist li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 5px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
  line-height: 1.5;
}
.tracklist li:last-child { border-bottom: none; }
.tl-time {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 16px;
  white-space: nowrap;
  padding-top: 1px;
}
.tl-title { color: var(--txt2); }
/* Tracklist clickable timestamps */
.tl-time-link {
  font-family: var(--mono);
  color: var(--cyan) !important;     /* Force cyan color */
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 3px;
  transition: all .1s;
  display: inline-block;
  min-width: 96px;
  font-weight: 500;
}

.tl-time-link:hover {
  background: rgba(0, 255, 65, 0.2);
  color: #ffffff !important;
  text-shadow: var(--glow-c);
  box-shadow: 0 0 6px rgba(0,255,65,0.3);
}
/* Scrollable Video List */
.video-list-wrapper {
    max-height: 780px;           /* Adjust this value as needed */
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--cyan) #222;
}

.video-list-wrapper::-webkit-scrollbar {
    width: 6px;
}

.video-list-wrapper::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 3px;
}

.video-list-wrapper::-webkit-scrollbar-thumb:hover {
    background: #00ddff;
}

/* Optional: nicer spacing inside the scroll area */
.video-list-wrapper .vid-card {
    margin-bottom: 16px;
}