/* NoSlopTube — GENT / Aether look: black and grey cards, yellow accent. */
:root {
  --page: #101010;
  --card: #161616;
  --line: #232323;
  --well: #1c1c1c;
  --well-line: #2c2c2c;
  --text: #ffffff;
  --soft: #dcdcdc;
  --muted: #a3a3a3;
  --faint: #6f6f6f;
  --accent: #ffeb3b;
  --on-accent: #121212;
  --good: #63d471;
  --bad: #e06a5a;
  --head: "Chakra Petch", "Montserrat", "Segoe UI", sans-serif;
  --body: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --side: 236px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--text); font-family: var(--body); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.side {
  width: var(--side); flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 18px 14px 24px; border-right: 1px solid var(--line); background: var(--page);
  scrollbar-width: thin; scrollbar-color: var(--well-line) transparent;
}
.logo { display: block; padding: 2px 6px 0; border-radius: 10px; }
.logo img { width: 200px; height: auto; }
.logo:hover img { filter: brightness(1.08); }
.logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tagline { color: var(--muted); font-size: 11px; margin: 6px 8px 16px; line-height: 1.4; }
.nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 9px; color: var(--soft); font-weight: 600; font-size: 13px;
}
.nav a:hover { background: var(--line); }
.nav a.on { background: var(--accent); color: var(--on-accent); }
.nav a .n { font-size: 11px; color: var(--faint); font-weight: 600; }
.nav a.on .n { color: rgba(0, 0, 0, .55); }
.nav.nav-own { margin-top: 22px; }
.nav a .ico { color: var(--faint); flex: none; }
.nav a:hover .ico { color: var(--soft); }
.nav a.on .ico { color: rgba(0, 0, 0, .6); }
.shelf-count { color: var(--muted); }
.side h4 {
  font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  font-size: 11px; color: var(--muted); margin: 18px 10px 6px;
}
.side .foot { color: var(--faint); font-size: 11px; margin: 18px 10px 0; line-height: 1.5; }

.main { flex: 1; min-width: 0; padding: 18px 28px 60px; overflow-x: clip; }
.top { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; position: sticky; top: 0; z-index: 5; padding: 8px 0; background: var(--page); }
.btn.menu-btn { display: none; }
.search { flex: 1; position: relative; max-width: 720px; }
.search input {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px 10px 38px; outline: none;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--faint); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.spacer { flex: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--well); border: 1px solid var(--well-line); border-radius: 10px;
  padding: 9px 13px; font-weight: 700; font-size: 13px;
}
.btn:hover { border-color: var(--faint); }
.btn.y { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.y:hover { filter: brightness(1.05); }
.btn.on { border-color: var(--accent); color: var(--accent); }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- filter panel ---------- */
.filters {
  display: none; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: -6px 0 18px;
}
.filters.open { display: grid; }
.filters label { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .6px; }
.filters select {
  width: 100%; background: var(--page); border: 1px solid var(--well-line); border-radius: 8px; padding: 8px; font-size: 13px; font-weight: 600;
}
.filters .row-end { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- headings, chips ---------- */
.title {
  font-family: var(--head); font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: .5px;
  margin: 2px 0 4px; line-height: 1.1;
}
.sub { color: var(--muted); margin: 0 0 14px; font-size: 13px; line-height: 1.5; max-width: 780px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px;
  font-weight: 600; color: var(--soft); font-size: 13px;
}
.chip:hover { border-color: var(--faint); }
.chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.section-h { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: 16px; margin: 26px 0 12px; }

/* ---------- grid + cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .12s, transform .12s;
}
.card:hover { border-color: var(--faint); transform: translateY(-1px); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--well); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.dur {
  position: absolute; right: 7px; bottom: 7px; background: rgba(0, 0, 0, .82); border-radius: 6px;
  padding: 2px 6px; font-weight: 700; font-size: 11px; letter-spacing: .3px;
}
.why-hover {
  position: absolute; inset: auto 0 0 0; padding: 22px 10px 9px; font-size: 12px; line-height: 1.35; font-weight: 500;
  background: linear-gradient(transparent, rgba(0, 0, 0, .92) 40%); opacity: 0; transition: opacity .15s;
}
.card:hover .why-hover { opacity: 1; }
.card:hover .dur { opacity: 0; }
.cb { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ct { font-weight: 700; line-height: 1.32; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm { color: var(--muted); font-size: 12px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; background: var(--well); border: 1px solid var(--well-line);
  border-radius: 6px; padding: 2px 7px; font-weight: 700; font-size: 10.5px; letter-spacing: .4px; text-transform: uppercase;
}
.badge.recs { color: var(--accent); }
.badge.trust { color: var(--soft); }
.badge.shelf { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.badge.liked { color: var(--good); }

.more { display: flex; justify-content: center; margin: 22px 0 0; }
.empty {
  background: var(--card); border: 1px dashed var(--well-line); border-radius: var(--radius); padding: 36px 20px;
  text-align: center; color: var(--muted); line-height: 1.6;
}
.empty .et { color: var(--text); display: block; font-size: 15px; margin-bottom: 4px; }
.empty span b { color: var(--text); }
.loading { color: var(--faint); padding: 40px 0; text-align: center; }

/* ---------- video page ---------- */
.vp { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
/* Cinematic glow (like YouTube's ambient mode): a heavy blur of the video's own frames behind the player. */
.player-wrap { position: relative; isolation: isolate; }
.ambient { position: absolute; inset: -7% -5%; z-index: 0; pointer-events: none; filter: blur(64px) saturate(1.6); opacity: .6; }
.ambient img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 4s ease; border-radius: 40px; }
.ambient img.on { opacity: 1; }
.player { position: relative; z-index: 1; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .04); }
.player > img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 55%, transparent 80%);
  border: 0; color: var(--text);
}
.play .nplay { width: 88px; height: auto; filter: drop-shadow(0 8px 26px rgba(0, 0, 0, .6)); transition: transform .14s; }
.play:hover .nplay { transform: scale(1.07); }
.play:focus-visible { outline: none; }
.play:focus-visible .nplay { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 22px; }
.play .lbl { font-weight: 700; font-size: 12px; text-shadow: 0 1px 6px #000; }
.vt { font-size: 21px; font-weight: 800; line-height: 1.3; margin: 14px 0 6px; }
.vm { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.vm a { color: var(--soft); font-weight: 600; }
.vm a:hover { color: var(--accent); }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.panel h3 { font-family: var(--head); text-transform: uppercase; letter-spacing: .6px; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.panel p { margin: 0; line-height: 1.55; }
.panel .whyline { font-weight: 500; font-size: 16px; line-height: 1.45; margin-bottom: 8px; color: #f2f2f2; }
.panel .whyline b { font-weight: 800; color: var(--accent); }
b { font-weight: 800; }
.cm b { color: var(--soft); font-weight: 700; }
.quote { border-left: 3px solid var(--accent); padding-left: 12px; font-style: italic; line-height: 1.55; color: #e9e9e9; }
.qsrc { color: var(--muted); font-size: 12px; margin-top: 8px; }
.qsrc a { color: var(--accent); font-weight: 600; }
.recs { display: flex; flex-direction: column; gap: 4px; }
.rec-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; font-size: 13px; color: var(--soft); }
.rec-row:hover { background: var(--well); }
.rec-row .go { margin-left: auto; color: var(--accent); font-weight: 700; font-size: 12px; white-space: nowrap; }
.rows .r { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.rows .r:last-child { border: 0; }
.rows .r span { color: var(--muted); }
.rows .r b { text-align: right; }
.rel { display: flex; flex-direction: column; gap: 10px; }
.rel a { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: start; border-radius: 10px; padding: 4px; }
.rel a:hover { background: var(--card); }
.rel .thumb { border-radius: 9px; }
.rel .ct { font-size: 13px; }
.desc { white-space: pre-wrap; color: var(--soft); font-size: 13px; line-height: 1.55; max-height: 9.5em; overflow: hidden; position: relative; }
.desc.open { max-height: none; }

/* ---------- shelf cards ---------- */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pl { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pl:hover { border-color: var(--faint); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 9; background: var(--well); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.pl .cb h3 { margin: 0; font-size: 15px; }

/* ---------- about ---------- */
.hero { display: flex; gap: 28px; align-items: center; margin: 4px 0 22px; flex-wrap: wrap; }
.hero img { width: 420px; max-width: 100%; height: auto; }
.lead { font-size: 16px; line-height: 1.6; color: #ececec; max-width: 640px; margin: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.src-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.src-row:last-child { border: 0; }
.src-row > span:first-child { min-width: 0; }
.src-row .cnt { white-space: nowrap; color: var(--soft); font-size: 12px; font-weight: 600; }
/* About page: bold words are white, numbers are yellow. */
.about b { color: var(--text); }
.about b.n, .about .stat b { color: var(--accent); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
/* Plain block layout: a flex row here would split every bold word into its own column. */
.steps li { counter-increment: s; position: relative; padding: 7px 0 7px 36px; line-height: 1.55; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 8px; width: 24px; height: 24px; border-radius: 7px;
  background: var(--accent); color: var(--on-accent); font-weight: 800; display: flex; align-items: center;
  justify-content: center; font-size: 12px;
}
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { font-family: var(--head); font-size: 28px; color: var(--accent); display: block; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 12px; font-weight: 600; }
.small-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.tc { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--accent); color: var(--on-accent); font-weight: 700; padding: 10px 16px; border-radius: 10px;
  transition: all .18s; pointer-events: none; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .vp { grid-template-columns: 1fr; }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .side { position: fixed; left: 0; top: 0; z-index: 40; transform: translateX(-100%); transition: transform .18s; box-shadow: 10px 0 40px rgba(0,0,0,.6); }
  .app.menu-open .side { transform: none; }
  .btn.menu-btn { display: inline-flex; }
  .main { padding: 10px 16px 50px; }
  .top { flex-wrap: wrap; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .filters { grid-template-columns: 1fr 1fr; }
  .cols { grid-template-columns: 1fr; }
  .title { font-size: 21px; }
  .pl-row { grid-template-columns: 26px 120px 1fr; gap: 10px; }
  .rel a { grid-template-columns: 120px 1fr; }
  .grid { grid-template-columns: 1fr; }
}
