/* HungZone: a classic tube layer over Giga. Loaded after giga.css and the page css on every page.
   Neutral greys, one orange accent, plain sentence-case type, flat badges. Colours come from the tokens of giga.css
   (palette "Classic orange" in inc/layout.php), so the Appearance studio keeps working. */

/* ==========================================================================
   Tokens
   ========================================================================== */

:root,
[data-theme="dark"],
#ageGate {
  --grad: linear-gradient(var(--mag), var(--mag));
  --grad-cta: linear-gradient(var(--cta-a), var(--cta-a));
  --grad-gold: linear-gradient(var(--mag), var(--mag));
  --on-accent: #0d1402;
  --link-hover: #c9f27a;
  --glow-mag: none;
  --code-tx: #c9f27a;
  --info-tx: #c9f27a;
}
[data-theme="light"] {
  --on-accent: #0d1402;
  --link-hover: #3a540b;
  --code-tx: #3a540b;
}
:root {
  --r-card: 6px;
  --r-lg: 8px;
  --r-pill: 6px;
}

/* ==========================================================================
   Browser surfaces
   ========================================================================== */

::selection {
  background: var(--mag);
  color: var(--on-accent);
}
html {
  scrollbar-color: var(--line-2) var(--ink);
  accent-color: var(--mag);
}
:focus-visible {
  outline: 2px solid var(--mag);
  outline-offset: 2px;
}
a {
  text-underline-offset: 0.18em;
}
input,
textarea {
  caret-color: var(--mag);
}
.ico {
  stroke-width: 1.5;
}

/* ==========================================================================
   Atoms
   ========================================================================== */

.btn--primary {
  background: var(--mag);
  color: var(--on-accent);
  box-shadow: none;
}
.btn--primary:hover {
  background: var(--mag-l);
  box-shadow: none;
  filter: none;
  transform: none;
}
[data-theme="light"] .btn--primary:hover {
  background: #3a540b;
}
.btn--ghost {
  background: transparent;
}
.chip:hover {
  border-color: var(--line-3);
}
.grad-text,
.logo__acc {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--mag);
  -webkit-text-fill-color: currentColor;
}

/* ==========================================================================
   Header
   ========================================================================== */

.hdr-main {
  background: var(--ink);
}
.hdr-nav {
  background: var(--ink);
}
.hdr-nav:after {
  display: none;
}
.nav__link:after {
  border-radius: 0;
  background: var(--mag);
}
.nav__link[aria-current="page"] {
  color: var(--tx-hi);
}
.search__field {
  background: var(--velvet);
}
.search:focus-within .search__field {
  background: var(--velvet);
  box-shadow: 0 0 0 2px var(--mag);
}

/* Text logo: plain wordmark, the accent word in orange */
.logo__mark {
  border-radius: 6px;
  background: var(--mag);
  color: var(--on-accent);
  box-shadow: none;
}
.logo__mark:before,
.logo__mark:after {
  display: none;
}

/* ==========================================================================
   Homepage head: title line, count, category shortcuts
   ========================================================================== */

.hp-head {
  padding: clamp(14px, 1.6vw, 22px) 0 4px;
}
.hp-head__in {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 20px;
  flex-wrap: wrap;
}
.hp-head__title {
  font-weight: 800;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hp-head__acc {
  color: var(--mag);
}
.hp-head__sub {
  flex-basis: 100%;
  color: var(--tx-3);
  font-size: 13.5px;
}
.hp-head .hero__cats {
  margin-top: 12px;
}

/* ==========================================================================
   Video cards
   ========================================================================== */

.vcard:before {
  display: none;
}
.thumb:after {
  height: 30%;
}
@media (hover: hover) {
  .vcard:hover .vcard__title a {
    color: var(--mag);
  }
}
.vcard:has(:focus-visible) .thumb:before {
  box-shadow: 0 0 0 2px var(--mag) inset;
}

/* Badges: real data only, flat */
.vcard__stk {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 3;
  display: flex;
  gap: 4px;
  pointer-events: none;
}
.stk {
  display: inline-grid;
  place-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;
}
.stk--q {
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
}
.stk--new {
  background: var(--mag);
  color: #111;
}
.vcard__dur {
  right: 6px;
  bottom: 6px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.vcard__sub {
  font-variant-numeric: tabular-nums;
}
@container (max-width: 330px) {
  .vcard__age {
    display: none;
  }
}

/* ==========================================================================
   Section heads and listing heads
   ========================================================================== */

.sec-title {
  font-weight: 800;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.01em;
}
.sec-title .ico {
  filter: none;
}
.lhead {
  background: var(--ink);
}
.lhead__bg {
  display: none;
}
.lhead--cover {
  min-height: 0;
}
.lhead__title {
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Category tiles: no zoom, no gradient wash on the "all" tile */
.ctile:hover img {
  transform: none;
}
.ctile__arrow {
  border-radius: 6px;
}
.ctile--all,
.ctile--all:hover {
  background: var(--velvet);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.ctile--all:hover {
  box-shadow: inset 0 0 0 1px var(--mag);
}

/* "More ways to browse": plain outlined rows */
.lsee__list a:hover {
  transform: none;
}
.lsee__ico {
  background: var(--velvet-2);
  box-shadow: none;
}
.lsee__ico .ico {
  color: var(--mag);
}

/* ==========================================================================
   Watch page
   ========================================================================== */

.player {
  box-shadow: 0 0 0 1px #ffffff0f;
}
.vote__bar:after {
  background: var(--mag);
}
.uplist > .vrow:first-child .vrow__link {
  background: var(--velvet);
  box-shadow: 0 0 0 1px var(--line) inset;
}

/* ==========================================================================
   Footer, tab bar, 404, rails
   ========================================================================== */

.footer {
  background: var(--ink-2);
}
.footer:before {
  display: none;
}
.tabbar {
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.links .all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.links .all .ico {
  width: 14px;
  height: 14px;
}
.nf:before {
  display: none;
}
.nf__code {
  background: none;
  color: var(--mag);
  -webkit-text-fill-color: currentColor;
  filter: none;
}
.rail.at-start.at-end .rail__btn {
  display: none;
}
/* Up next reason sits on the thumbnail as a badge, not above the title */
.vrow__link {
  position: relative;
}
.vrow__why {
  position: absolute;
  left: 11px;
  top: 11px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  pointer-events: none;
}

/* Category shortcuts sit on the page ground, not on a hero picture */
.cats .chip {
  background: var(--velvet);
  border-color: var(--line);
}
.cats .chip:hover {
  background: var(--velvet-2);
  border-color: var(--line-3);
}
.cats .chip--all,
.cats .chip--all:hover {
  background: var(--mag);
  border-color: var(--mag);
  color: var(--on-accent);
}

/* Watched badge goes bottom-left so it never sits on the New / HD badges */
.vcard__seen {
  top: auto;
  left: 6px;
  bottom: 6px;
  height: 20px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
}


/* ==========================================================================
   Brand layer: HungZone
   ========================================================================== */

:root {
  --r-card: 4px;
  --r-lg: 6px;
  --r-pill: 4px;
}
[data-theme="light"] {
  --on-accent: #ffffff;
}
.search__go {
  background: var(--mag);
  color: var(--on-accent);
}
.logo__word { font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; }
.logo__mark { border-radius: 2px; }
.hp-head__title, .sec-title { font-stretch: 122%; font-weight: 900; letter-spacing: -0.015em; }
.nav__link { font-stretch: 112%; }
.btn, .chip, .search__field { border-radius: 4px; }
::selection { background: var(--mag); color: var(--on-accent); }

