/* ===========================================================================
   gta6yt.com · SIGNATURE FEATURE styles, "Trailer Vault"
   Scoped to .yt-feature / .yt-countdown / .yt-vault / .yt-card. Inherits the
   Broadcast 84 design tokens (paper, ink, magenta, teal, amber, mono timecode).
   Self-contained: safe to load on the homepage + any countdown page.
   No em dashes in these comments (this file is copied verbatim, the engine's
   dash normalizer only runs on rendered HTML, not on copied assets).
   =========================================================================== */

.yt-feature { display: block; }

/* ---- FEATURE CARD (countdown chassis) ----------------------------------- */
.yt-feature__card {
  border: 2px solid var(--ink, #1C1B19);
  border-radius: var(--radius-lg, 8px);
  background: var(--paper-2, #FBF9F2);
  box-shadow: var(--shadow-md, 5px 5px 0 rgba(28,27,25,0.14));
  padding: clamp(1.1rem, 3vw, 2rem);
  position: relative;
  overflow: hidden;
}
/* colour-bar strip across the top of the card */
.yt-feature__card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-bars, linear-gradient(90deg,#E8367A,#F5A623,#149E9B,#1C1B19,#E8367A));
}

/* ---- COUNTDOWN ----------------------------------------------------------- */
.yt-cd__title {
  font-family: var(--font-display, "Anton", sans-serif);
  text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  color: var(--ink, #1C1B19);
  margin: 0 0 var(--space-4, 16px); max-width: none;
}
.yt-cd__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2, 8px) var(--space-3, 12px);
  max-width: 560px;
}
.yt-cd__cell {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: var(--space-3, 12px) var(--space-2, 8px);
  border: 2px solid var(--ink, #1C1B19); border-radius: var(--radius-sm, 4px);
  background: var(--ink, #1C1B19);
}
.yt-cd__val {
  font-family: var(--font-mono, "Space Mono", monospace);
  font-weight: 700; font-size: clamp(1.6rem, 6vw, 2.6rem); line-height: 1;
  color: var(--paper, #F4F0E6); font-variant-numeric: tabular-nums;
}
.yt-cd__unit {
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber, #F5A623); font-weight: 700;
}
.yt-cd__note {
  margin: var(--space-4, 16px) 0 0;
  font-family: var(--font-mono, "Space Mono", monospace);
  font-size: 0.84rem; color: var(--ink-2, #4A4842); max-width: 60ch;
}

/* ---- TRAILER VAULT ------------------------------------------------------- */
.yt-vault { margin-top: var(--space-8, 32px); }
.yt-vault__top { margin-bottom: var(--space-6, 24px); }
.yt-vault__title {
  font-family: var(--font-display, "Anton", sans-serif);
  text-transform: uppercase; letter-spacing: 0.01em;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--ink, #1C1B19); margin: 0 0 var(--space-2, 8px);
}
.yt-vault__intro {
  margin: 0; color: var(--ink-2, #4A4842); max-width: 64ch; font-size: 1rem;
}
.yt-vault__grid {
  display: grid; gap: var(--space-6, 24px);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .yt-vault__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- CARD ---------------------------------------------------------------- */
.yt-card {
  border: 2px solid var(--ink, #1C1B19);
  border-radius: var(--radius-md, 6px);
  background: var(--paper-2, #FBF9F2);
  box-shadow: var(--shadow-sm, 3px 3px 0 rgba(28,27,25,0.12));
  overflow: hidden;
  display: flex; flex-direction: column;
}

/* Player area keeps a 16:9 box whether facade, iframe or fallback link. */
.yt-card__player {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: var(--ink, #1C1B19);
  border-bottom: 2px solid var(--ink, #1C1B19);
}
.yt-card__facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; cursor: pointer; display: block; background: var(--ink, #1C1B19);
}
.yt-card__thumb {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.02) contrast(1.02);
}
.yt-card__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 46px; border-radius: 8px;
  background: var(--magenta, #E8367A);
  border: 2px solid var(--paper, #F4F0E6);
  box-shadow: 0 4px 0 rgba(28,27,25,0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}
.yt-card__play::after {
  content: ""; position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--paper, #F4F0E6);
}
.yt-card__facade:hover .yt-card__play,
.yt-card__facade:focus-visible .yt-card__play { transform: translate(-50%, -50%) scale(1.08); background: var(--magenta-hi, #ff5a98); }
.yt-card__facade:focus-visible { outline: 3px solid var(--amber, #F5A623); outline-offset: -3px; }
.yt-card__facade--link {
  display: grid; place-items: center; text-align: center; padding: 1rem;
  color: var(--paper, #F4F0E6); font-family: var(--font-mono, monospace);
  font-weight: 700; text-decoration: none; border-bottom: 0;
}
.yt-card__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.yt-card__body { padding: var(--space-4, 16px) var(--space-5, 20px) var(--space-5, 20px); display: flex; flex-direction: column; gap: var(--space-3, 12px); }
.yt-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3, 12px); flex-wrap: wrap; }
.yt-card__title {
  font-family: var(--font-display, "Anton", sans-serif);
  text-transform: uppercase; font-size: 1.25rem; margin: 0; color: var(--ink, #1C1B19);
  letter-spacing: 0.01em;
}
.yt-card__badge {
  flex: none;
  font-family: var(--font-mono, monospace); font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: #fff; background: var(--teal, #149E9B);
  border: 2px solid var(--ink, #1C1B19); border-radius: var(--radius-sm, 4px);
  padding: 2px 8px;
}
.yt-card__meta { margin: 0; max-width: none; font-size: 0.84rem; color: var(--ink-3, #6f695c); font-weight: 700; }

.yt-card__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-width: none; }
.yt-card__chip {
  margin: 0; font-size: 0.78rem; color: var(--ink-2, #4A4842);
  background: var(--paper-3, #ECE6D6); border: 1px solid var(--line-soft, #cfc7b4);
  border-radius: var(--radius-pill, 999px); padding: 3px 10px; display: inline-flex; align-items: center; gap: 4px;
}
.yt-card__tc { color: var(--magenta-deep, #bd185c); font-weight: 700; }

.yt-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3, 12px) var(--space-5, 20px); margin-top: var(--space-1, 4px); }
.yt-card__watch {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body, system-ui, sans-serif); font-weight: 700; font-size: 0.86rem;
  color: var(--ink, #1C1B19); background: var(--paper, #F4F0E6);
  border: 2px solid var(--ink, #1C1B19); border-radius: var(--radius-sm, 4px);
  padding: 7px 13px; min-height: 40px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.yt-card__watch::before {
  content: ""; width: 15px; height: 15px; border-radius: 3px;
  border: 2px solid var(--ink, #1C1B19); background: transparent; flex: none;
}
.yt-card__watch.is-on { background: var(--teal, #149E9B); color: #fff; border-color: var(--teal-deep, #0b6c6a); }
.yt-card__watch.is-on::before { background: #fff; border-color: #fff; }
.yt-card__watch:focus-visible { outline: 3px solid var(--magenta, #E8367A); outline-offset: 2px; }
.yt-card.is-watched .yt-card__player::after {
  content: ""; position: absolute; top: 10px; left: 10px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--teal, #149E9B); border: 2px solid var(--paper, #F4F0E6);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4); pointer-events: none; z-index: 2;
}
.yt-card__official { font-size: 0.82rem; font-weight: 600; }
