/* =====================================================================
   Tito G's Video Vault: HORIZON theme
   The modern take on the site, built from the Instagram banner and story:
   a starfield over a particle mountain range and a neon grid floor, the
   cyan and orange of the logo, white techno headings with orange rules,
   and the orange scooped-corner frame saved for the Vault Pick.

   Everything here is scoped to html.theme-horizon, so this file does
   nothing until the theme script in index.html switches it on:
     titogvault.com/?theme=horizon    on for this browser (remembered)
     titogvault.com/?theme=standard   back to the current look
   To make Horizon the look for every visitor, set HORIZON_DEFAULT to
   true in that script. To remove the theme, delete this file, the fonts
   folder, the horizon-*.webp images and the <link> in index.html.
   ===================================================================== */

/* ---------- Fonts (self-hosted, so no visitor data goes to Google) ----------
   Tektur for headings and the nav; IBM Plex Mono for short labels and data
   (dates, formats, counts, status lines), which keeps the vault's terminal
   voice; Instrument Sans for anything read as full sentences.
   size-adjust keeps each one close to the size of the font it replaces,
   so existing layouts still fit. */
@font-face {
  font-family: 'HZ Display';
  src: url('fonts/tektur-medium.woff') format('woff');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'HZ Mono';
  src: url('fonts/ibm-plex-mono-regular.woff') format('woff');
  font-weight: 100 500;
  font-display: swap;
  size-adjust: 82%;
}
@font-face {
  font-family: 'HZ Mono';
  src: url('fonts/ibm-plex-mono-bold.woff') format('woff');
  font-weight: 600 900;
  font-display: swap;
  size-adjust: 82%;
}
@font-face {
  font-family: 'HZ Sans';
  src: url('fonts/instrument-sans-regular.woff') format('woff');
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
  size-adjust: 104%;
}
@font-face {
  font-family: 'HZ Sans';
  src: url('fonts/instrument-sans-bold.woff') format('woff');
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
  size-adjust: 104%;
}
@font-face {
  font-family: 'HZ Sans';
  src: url('fonts/instrument-sans-italic.woff') format('woff');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  size-adjust: 104%;
}

/* Symbols (arrows, stars, the nav glyphs) drawn as plain text glyphs, so phones
   don't swap in colour emoji for characters like the play arrow. */
@font-face {
  font-family: 'HZ Symbols';
  src: url('fonts/hz-symbols.woff') format('woff');
  unicode-range: U+2190, U+2192-2193, U+2195, U+21A9, U+21BA-21BB, U+21C5, U+2264, U+2295, U+2299, U+229B, U+229E, U+2302, U+2500, U+2502, U+250C, U+2510, U+2514, U+2518, U+2593, U+25A2-25A4, U+25A6, U+25B2, U+25B6, U+25B8, U+25BC, U+25BE, U+25C0, U+25C2, U+25C6, U+25C8-25C9, U+25CB-25CC, U+25CE, U+25EB, U+25F7, U+2605-2606, U+2630, U+2661, U+2665, U+2694, U+26A0, U+2704, U+2709, U+270E, U+2713, U+2715, U+2726, U+2756, U+2764;
  font-display: swap;
  size-adjust: 92%;
}

/* ---------- Tokens ----------
   Cyan and orange are sampled from the logo, the grid blue from the story.
   Orange draws structure (rules, frames, the main button); cyan marks
   anything you can interact with (links, focus, active states). */
html.theme-horizon {
  --bg: #02060f;
  --bg-2: #071530;
  --bg-3: #0c1f45;
  --ink: #010409;
  --paper: #dce8f8;
  --electric: #00bcf8;
  --electric-rgb: 0, 188, 248;
  --electric-deep: #0a86cf;
  --sign-top: #ffffff;
  --amber: #fc8400;
  --ember: #fc8400;
  --crimson: #ff3b4f;
  --crimson-deep: #b3152a;
  --steel: #7d90b2;
  --steel-dark: #1b3263;
  --steel-light: #a9bad8;
  --warning: #ffd23f;

  --hz-orange: #fc8400;
  --hz-orange-rgb: 252, 132, 0;
  --hz-grid-rgb: 47, 107, 255;
  --hz-line: rgba(122, 162, 255, 0.16);
  --hz-panel: rgba(6, 18, 42, 0.78);

  --font-marquee: 'HZ Display', 'HZ Symbols', 'Arial Black', sans-serif;
  --font-terminal: 'HZ Mono', 'HZ Symbols', ui-monospace, Menlo, Consolas, monospace;
  --font-body: 'HZ Sans', 'HZ Symbols', system-ui, -apple-system, 'Segoe UI', sans-serif;

  color-scheme: dark;
}
html.theme-horizon,
html.theme-horizon body {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.theme-horizon ::selection { background: rgba(var(--hz-orange-rgb), 0.35); color: #fff; }
html.theme-horizon :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 2px;
}
/* A few labels in app.js carry their font inline; bring them into the theme. */
html.theme-horizon [style*="VT323"] { font-family: var(--font-terminal) !important; }

/* ---------- Page background: deep space instead of scanlines ---------- */
html.theme-horizon body::before {
  background:
    radial-gradient(90% 55% at 50% -8%, rgba(20, 70, 160, 0.42) 0%, rgba(8, 30, 74, 0.22) 45%, transparent 70%),
    linear-gradient(180deg, #051231 0%, var(--bg) 62%);
}
html.theme-horizon body::after {
  background-image: url('horizon-stars.webp');
  background-size: 512px 512px;
  opacity: 0.45;
  mix-blend-mode: normal;
}

/* ---------- Hero: the banner, live ----------
   Sky, stars and the particle range are background layers; ::before is the
   grid floor (tilted in 3D and drifting toward you); ::after is the glowing
   horizon line plus a haze that hides the far edge of the moving floor.
   Kept compact so the Vault Pick still lands on the first screen; the status
   light sits on the horizon line instead of taking a row of its own. */
html.theme-horizon .wrap > header {
  --hz-floor: 78px;
  --hz-cell: 36px;
  --hz-tilt: 66deg;
  --hz-persp: 230px;
  --hz-mtn: 168px;
  overflow: hidden;
  isolation: isolate;
  padding: 16px 24px calc(var(--hz-floor) + 26px);
  border-bottom: 0;
  background:
    url('horizon-mountains.webp') center bottom var(--hz-floor) / auto var(--hz-mtn) no-repeat,
    url('horizon-stars.webp') center top / 512px 512px repeat,
    radial-gradient(70% 85% at 50% 8%, rgba(30, 96, 196, 0.5) 0%, rgba(12, 44, 104, 0.32) 45%, transparent 78%),
    linear-gradient(180deg, #0b2652 0%, #071a3c 52%, #030b1c 100%);
}
html.theme-horizon .wrap > header::before,
html.theme-horizon .wrap > footer::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: -75%;
  right: -75%;
  bottom: auto;
  background:
    linear-gradient(90deg,
      transparent calc(50% - 3px), rgba(var(--hz-grid-rgb), 0.16) calc(50% - 3px),
      rgba(var(--hz-grid-rgb), 0.85) calc(50% - 1px), rgba(var(--hz-grid-rgb), 0.85) calc(50% + 1px),
      rgba(var(--hz-grid-rgb), 0.16) calc(50% + 1px), transparent calc(50% + 3px)) center top / var(--hz-cell) var(--hz-cell),
    linear-gradient(180deg,
      transparent calc(50% - 3px), rgba(var(--hz-grid-rgb), 0.22) calc(50% - 3px),
      rgba(var(--hz-grid-rgb), 0.95) calc(50% - 1px), rgba(var(--hz-grid-rgb), 0.95) calc(50% + 1px),
      rgba(var(--hz-grid-rgb), 0.22) calc(50% + 1px), transparent calc(50% + 3px)) center top / var(--hz-cell) var(--hz-cell);
  transform-origin: 50% 0;
  transform: perspective(var(--hz-persp)) rotateX(var(--hz-tilt));
  opacity: 1;
  box-shadow: none;
}
html.theme-horizon .wrap > header::before {
  top: calc(100% - var(--hz-floor));
  height: calc(var(--hz-floor) * 4);
  animation: hz-grid-drift 3.6s linear infinite;
}
@keyframes hz-grid-drift {
  from { transform: perspective(var(--hz-persp)) rotateX(var(--hz-tilt)) translateY(0); }
  to   { transform: perspective(var(--hz-persp)) rotateX(var(--hz-tilt)) translateY(var(--hz-cell)); }
}
html.theme-horizon .wrap > header::after,
html.theme-horizon .wrap > footer::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  height: calc(var(--hz-floor) + 1px);
  opacity: 1;
  background: linear-gradient(180deg,
    rgba(160, 210, 255, 0.95) 0px,
    rgba(var(--hz-grid-rgb), 0.6) 2px,
    rgba(3, 9, 22, 0.92) 3px,
    rgba(3, 9, 22, 0.55) 12px,
    rgba(3, 9, 22, 0) 26px,
    rgba(2, 6, 15, 0) calc(100% - 16px),
    var(--bg) 100%);
  box-shadow: 0 -10px 34px -6px rgba(var(--hz-grid-rgb), 0.65);
}
html.theme-horizon .wrap > header > * {
  position: relative;
  z-index: 2;
}
/* The logo replaces the text sign. The text stays in the page for screen
   readers and search engines; only its look changes. */
html.theme-horizon .wrap > header .sign {
  display: block;
  width: min(330px, 62vw);
  aspect-ratio: 1200 / 347;
  height: auto;
  margin: 0 auto;
  font-size: 0;
  line-height: 0;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: url('logo.webp') center / contain no-repeat;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 26px rgba(var(--electric-rgb), 0.22));
  animation: none;
}
html.theme-horizon .wrap > header .tagline { display: none; }
html.theme-horizon .wrap > header .tagline.tagline-sub {
  display: block;
  margin-top: 6px;
  font-family: var(--font-terminal);
  font-size: 0.92rem;
  letter-spacing: 0.3em;
  color: rgba(220, 234, 255, 0.8);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
  opacity: 1;
}
html.theme-horizon .open-sign {
  padding: 5px 16px;
  border-radius: 999px;
  font-family: var(--font-terminal);
  font-size: 0.98rem;
  letter-spacing: 0.16em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
html.theme-horizon .wrap > header .open-sign {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: var(--hz-floor);
  transform: translate(-50%, 50%);
  margin: 0;
  white-space: nowrap;
}
html.theme-horizon .open-sign.online {
  border-color: rgba(62, 224, 143, 0.5);
  color: #52e6a0;
  text-shadow: none;
  background: rgba(2, 12, 16, 0.72);
  box-shadow: 0 0 18px rgba(62, 224, 143, 0.16);
  animation: none;
}
html.theme-horizon .open-sign.loading {
  border-color: rgba(var(--hz-orange-rgb), 0.6);
  color: #ffb15c;
  text-shadow: none;
  background: rgba(16, 9, 2, 0.72);
  box-shadow: 0 0 16px rgba(var(--hz-orange-rgb), 0.2);
  animation: hz-pulse 1.8s ease-in-out infinite;
}
@keyframes hz-pulse {
  50% { box-shadow: 0 0 24px rgba(var(--hz-orange-rgb), 0.45); }
}
@media (max-width: 600px) {
  html.theme-horizon .wrap > header {
    --hz-floor: 60px;
    --hz-cell: 28px;
    --hz-persp: 160px;
    --hz-mtn: 110px;
    padding: 8px 12px calc(var(--hz-floor) + 19px);
  }
  html.theme-horizon .wrap > header .sign { width: min(236px, 64vw); }
  html.theme-horizon .wrap > header .tagline.tagline-sub { font-size: 0.7rem; letter-spacing: 0.18em; margin-top: 4px; }
  html.theme-horizon .open-sign { font-size: 0.8rem; padding: 3px 11px; }
}

/* ---------- Navigation: a sticky glass bar, orange underline when active ---------- */
html.theme-horizon .wrap > nav {
  background: rgba(3, 9, 22, 0.84);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(var(--electric-rgb), 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  padding: 0 10px;
}
html.theme-horizon .tab {
  font-family: var(--font-marquee);
  font-size: 0.77rem;
  letter-spacing: 0.12em;
  color: var(--steel-light);
  padding: 19px 10px 17px;
  border-right: 0;
  transition: color 0.15s;
}
html.theme-horizon .tab .tab-ico { color: var(--electric); opacity: 0.8; margin-right: 0.45em; }
html.theme-horizon .tab:hover { background: transparent; color: #fff; }
html.theme-horizon .tab.active {
  background: transparent;
  color: #fff;
  box-shadow: none;
  text-shadow: none;
}
html.theme-horizon .tab::after {
  content: '';
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--hz-orange);
  box-shadow: 0 0 12px rgba(var(--hz-orange-rgb), 0.8);
  opacity: 0;
  transition: opacity 0.15s;
}
html.theme-horizon .tab.active::after { opacity: 1; }
html.theme-horizon .tab.active .tab-ico { opacity: 1; }
html.theme-horizon .auth-bar { border-left: 0; padding: 0 6px 0 14px; }
html.theme-horizon .auth-btn {
  border-radius: 999px;
  border: 1px solid rgba(var(--electric-rgb), 0.55);
  color: var(--electric);
  font-family: var(--font-marquee);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  padding: 8px 16px;
}
html.theme-horizon .auth-btn:hover {
  background: rgba(var(--electric-rgb), 0.14);
  color: #fff;
  box-shadow: 0 0 14px rgba(var(--electric-rgb), 0.35);
}
html.theme-horizon .auth-user { color: var(--hz-orange); text-shadow: none; }

/* Mobile bar and drawer */
html.theme-horizon .mobile-nav-bar {
  background: rgba(3, 9, 22, 0.88);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(var(--electric-rgb), 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
html.theme-horizon .mobile-nav-home {
  color: #fff;
  text-shadow: none;
  border-right: 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}
html.theme-horizon .mobile-nav-hamburger { color: var(--hz-orange); }
html.theme-horizon .mobile-nav-hamburger .hamburger-icon { text-shadow: none; }
html.theme-horizon .mobile-drawer {
  background: #040d20;
  border-left: 1px solid rgba(var(--electric-rgb), 0.25);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.6);
}
html.theme-horizon .mobile-drawer-header,
html.theme-horizon .mobile-drawer-footer {
  background: #030a19;
  border-color: rgba(var(--electric-rgb), 0.14);
}
html.theme-horizon .mobile-drawer-title { text-shadow: none; }
html.theme-horizon .mobile-drawer-close { border-radius: 999px; }
html.theme-horizon .mobile-drawer-item {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--steel-light);
  border-left-width: 3px;
}
html.theme-horizon .mobile-drawer-item:hover,
html.theme-horizon .mobile-drawer-item.active {
  background: rgba(var(--electric-rgb), 0.07);
  color: #fff;
  border-left-color: var(--hz-orange);
  text-shadow: none;
}

/* ---------- Home: welcome line and the main button ---------- */
html.theme-horizon main { padding-top: 16px; }
html.theme-horizon .home-welcome { margin: 0 0 10px; }
html.theme-horizon .home-welcome-line {
  font-size: 0.98rem;
  letter-spacing: 0.3em;
  color: var(--electric);
  text-shadow: none;
}
/* The glow lives on the wrapper because the button's angled corners
   (clip-path, after the logo badge) would cut a glow off. */
html.theme-horizon .home-cta-wrap {
  margin-bottom: 20px;
  filter: drop-shadow(0 0 22px rgba(var(--hz-orange-rgb), 0.3));
}
html.theme-horizon .home-cta-primary {
  background: linear-gradient(180deg, #ffa443 0%, var(--hz-orange) 52%, #e86f00 100%);
  border: 0;
  color: #140a00;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  box-shadow: none;
  padding: 8px 30px 8px 22px;
  transition: filter 0.15s, transform 0.15s;
}
html.theme-horizon .home-cta-primary::before { display: none; }
html.theme-horizon .home-cta-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: none;
  border-color: transparent;
}
html.theme-horizon .home-cta-primary:focus-visible { outline: 3px solid #fff; outline-offset: -7px; }
html.theme-horizon .home-cta-icon { color: #140a00; text-shadow: none; }
html.theme-horizon .home-cta-label {
  color: #140a00;
  text-shadow: none;
  font-size: 1.06rem;
  letter-spacing: 0.08em;
}
html.theme-horizon .home-cta-sub { color: rgba(20, 10, 0, 0.8); letter-spacing: 0.12em; }

/* ---------- Section headings: the story's "PRESENTS" treatment ----------
   A short orange rule, the title in white, then a rule running to the
   section's link. */
html.theme-horizon .home-section { margin-bottom: 40px; }
html.theme-horizon .home-section-header {
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 0;
  border-bottom: 0;
}
html.theme-horizon .home-section-header::before {
  content: '';
  flex: 0 0 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--hz-orange);
  box-shadow: 0 0 10px rgba(var(--hz-orange-rgb), 0.6);
}
html.theme-horizon .home-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  text-shadow: none;
  font-size: 1.12rem;
  letter-spacing: 0.12em;
}
html.theme-horizon .home-section-title::after {
  content: '';
  flex: 1 1 auto;
  min-width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--hz-orange), rgba(var(--hz-orange-rgb), 0.12));
}
html.theme-horizon .home-see-all {
  flex: 0 0 auto;
  border: 1px solid rgba(var(--electric-rgb), 0.45);
  border-radius: 999px;
  color: var(--electric);
  padding: 5px 13px;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  transition: background 0.15s, color 0.15s;
}
html.theme-horizon .home-see-all:hover {
  background: rgba(var(--electric-rgb), 0.14);
  color: #fff;
  border-color: var(--electric);
  box-shadow: none;
}
html.theme-horizon .home-theme-sub {
  margin: -4px 0 12px 40px;
  color: var(--steel-light);
  font-size: 1.02rem;
}
html.theme-horizon .home-theme-sub strong { color: var(--hz-orange); }
@media (max-width: 600px) {
  html.theme-horizon .home-section-header::before { flex-basis: 14px; }
  html.theme-horizon .home-section-header { gap: 10px; margin-bottom: 8px; }
  html.theme-horizon .home-section-title { font-size: 0.9rem; gap: 10px; letter-spacing: 0.1em; white-space: nowrap; }
  html.theme-horizon .home-section-title::after { min-width: 8px; }
  html.theme-horizon .home-see-all { padding: 4px 10px; font-size: 0.9rem; }
  html.theme-horizon .home-welcome-line { letter-spacing: 0.16em; font-size: 0.82rem; }
  html.theme-horizon main { padding-top: 12px; }
  html.theme-horizon .home-welcome { margin-bottom: 6px; }
  html.theme-horizon .home-cta-wrap { margin-bottom: 16px; }
  html.theme-horizon .home-cta-primary {
    padding: 7px 16px 7px 14px;
    gap: 12px;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  }
  html.theme-horizon .home-cta-icon { font-size: 1.35rem; }
  html.theme-horizon .home-cta-label { font-size: 0.98rem; }
  html.theme-horizon .home-cta-sub { font-size: 0.86rem; }
  html.theme-horizon .home-theme-sub { margin: -2px 0 8px; }
}

/* ---------- Vault Pick of the Day: the orange frame from the story ----------
   Drawn as a border-image, so the scooped corners keep their size at any
   width. This is the only place the frame appears. */
html.theme-horizon .home-featured {
  grid-template-columns: 176px 1fr;
  gap: 26px;
  border: 28px solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M36.5 2.5H83.5A34 34 0 0 0 117.5 36.5V83.5A34 34 0 0 0 83.5 117.5H36.5A34 34 0 0 0 2.5 83.5V36.5A34 34 0 0 0 36.5 2.5Z' fill='%23040b1a' stroke='%23fc8400' stroke-width='5'/%3E%3C/svg%3E") 44 fill / 44px / 0 stretch;
  background: none;
  padding: 8px 14px;
  overflow: visible;
  filter: drop-shadow(0 0 16px rgba(var(--hz-orange-rgb), 0.22));
  transition: filter 0.2s;
}
html.theme-horizon .home-featured::after { display: none; }
/* The pin button and title picker above the Vault Pick are retired: picks are
   chosen from the Dossier now. */
html.theme-horizon .home-feat-admin { display: none; }
html.theme-horizon .home-featured:hover {
  transform: none;
  box-shadow: none;
  filter: drop-shadow(0 0 24px rgba(var(--hz-orange-rgb), 0.45));
}
html.theme-horizon .home-featured-poster {
  border: 0;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 14px 32px rgba(0, 0, 0, 0.6);
}
html.theme-horizon .home-featured-info { padding: 6px 0 4px; }
html.theme-horizon .home-featured-info h3 {
  color: #fff;
  font-size: 2.1rem;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-shadow: none;
  margin-bottom: 10px;
}
html.theme-horizon .home-feat-tag,
html.theme-horizon .home-watched-tag {
  font-family: var(--font-terminal);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 999px;
  text-shadow: none;
}
html.theme-horizon .home-feat-tag {
  background: rgba(var(--electric-rgb), 0.1);
  border-color: rgba(var(--electric-rgb), 0.45);
  color: #bfeaff;
}
html.theme-horizon .home-feat-tag.amber {
  background: rgba(var(--hz-orange-rgb), 0.1);
  border-color: rgba(var(--hz-orange-rgb), 0.55);
  color: #ffb768;
}
html.theme-horizon .home-featured-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.08rem;
  letter-spacing: 0;
  color: var(--electric);
}
html.theme-horizon .home-featured-overview {
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 68ch;
  opacity: 0.9;
}
html.theme-horizon .home-featured-cta {
  font-size: 1.02rem;
  letter-spacing: 0.18em;
  color: var(--electric);
  text-shadow: none;
}
@media (max-width: 600px) {
  html.theme-horizon .home-featured {
    grid-template-columns: 1fr;
    gap: 12px;
    border-width: 20px;
    border-image-width: 30px;
    padding: 4px 6px 8px;
  }
  html.theme-horizon .home-featured-info h3 { font-size: 1.35rem; }
}

/* ---------- Latest dispatch and newest video ---------- */
html.theme-horizon .home-vault-card {
  background: var(--hz-panel);
  border: 1px solid var(--hz-line);
  border-radius: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
html.theme-horizon .home-vault-card:hover {
  transform: none;
  border-color: rgba(var(--electric-rgb), 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
html.theme-horizon .home-vault-cover::after {
  background: linear-gradient(90deg, transparent 55%, rgba(6, 18, 42, 0.85) 100%);
}
html.theme-horizon .home-vault-cover-empty { color: var(--electric); }
html.theme-horizon .home-vault-body { padding: 24px 28px; }
html.theme-horizon .home-vault-meta {
  color: var(--hz-orange);
  text-shadow: none;
  font-size: 0.98rem;
}
html.theme-horizon .home-vault-body h3 {
  color: #fff;
  text-shadow: none;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}
html.theme-horizon .home-vault-preview { font-size: 0.98rem; line-height: 1.65; max-width: 70ch; }
html.theme-horizon .home-vault-cta { text-shadow: none; font-size: 1.02rem; letter-spacing: 0.18em; }
@media (max-width: 600px) {
  html.theme-horizon .home-vault-cover::after {
    background: linear-gradient(180deg, transparent 55%, rgba(6, 18, 42, 0.85) 100%);
  }
  html.theme-horizon .home-vault-body { padding: 18px 18px 20px; }
}

/* ---------- Poster strips: bare posters, cyan ring on hover ---------- */
html.theme-horizon .home-new-card,
html.theme-horizon .home-recent-card {
  background: transparent;
  border: 0;
  width: 148px;
}
html.theme-horizon .home-recent-card { width: 132px; }
html.theme-horizon .home-new-poster,
html.theme-horizon .home-recent-poster {
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.15s;
}
html.theme-horizon .home-new-card:hover,
html.theme-horizon .home-recent-card.clickable:hover {
  transform: none;
  box-shadow: none;
}
html.theme-horizon .home-new-card:hover .home-new-poster,
html.theme-horizon .home-recent-card.clickable:hover .home-recent-poster {
  box-shadow: 0 0 0 2px var(--electric), 0 0 22px rgba(var(--electric-rgb), 0.45);
}
html.theme-horizon .home-new-meta,
html.theme-horizon .home-recent-meta { padding: 9px 2px 2px; }
html.theme-horizon .home-new-title,
html.theme-horizon .home-recent-title {
  font-weight: 600;
  font-size: 0.86rem;
  color: #eef4ff;
}
html.theme-horizon .home-new-date,
html.theme-horizon .home-recent-date {
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-shadow: none;
}
html.theme-horizon .home-new-date { color: var(--hz-orange); }
html.theme-horizon .home-recent-stars { text-shadow: none; }
html.theme-horizon .home-new-strip,
html.theme-horizon .home-recent-strip {
  gap: 16px;
  padding-bottom: 12px;
  scrollbar-color: rgba(var(--electric-rgb), 0.45) transparent;
}
html.theme-horizon .home-new-strip::-webkit-scrollbar-track,
html.theme-horizon .home-recent-strip::-webkit-scrollbar-track { background: transparent; }
html.theme-horizon .home-new-strip::-webkit-scrollbar-thumb,
html.theme-horizon .home-recent-strip::-webkit-scrollbar-thumb {
  background: rgba(var(--electric-rgb), 0.45);
  border-radius: 8px;
}

/* ---------- Collection grid ---------- */
html.theme-horizon .tape {
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  overflow: visible;
}
html.theme-horizon .tape .poster {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 28px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.15s;
}
html.theme-horizon .tape:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}
html.theme-horizon .tape:hover .poster {
  box-shadow: 0 0 0 2px var(--electric), 0 0 24px rgba(var(--electric-rgb), 0.45), 0 12px 28px rgba(0, 0, 0, 0.55);
}
html.theme-horizon .label {
  background: transparent;
  border-top: 0;
  padding: 10px 2px 4px;
}
html.theme-horizon .label::before { display: none; }
html.theme-horizon .label .title { font-weight: 600; font-size: 0.92rem; color: #eef4ff; }
html.theme-horizon .label .meta { font-size: 0.86rem; color: var(--steel); }
html.theme-horizon .label .set-tag { border-radius: 999px; }
html.theme-horizon .poster.no-image::before { color: var(--hz-orange); }

/* ---------- Movie detail window ---------- */
html.theme-horizon .modal { background: rgba(1, 4, 10, 0.82); }
html.theme-horizon .modal-content {
  background: linear-gradient(180deg, #081833 0%, #040c1d 100%);
  border: 1px solid rgba(var(--electric-rgb), 0.26);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
html.theme-horizon .close-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-family: var(--font-body);
}
html.theme-horizon .close-btn:hover {
  background: transparent;
  border-color: var(--hz-orange);
  color: var(--hz-orange);
}
html.theme-horizon .share-btn { border-radius: 999px; border-width: 1px; }

/* ---------- Footer: the grid floor from the bottom of the story ---------- */
html.theme-horizon .wrap > footer {
  --hz-floor: 92px;
  --hz-cell: 40px;
  --hz-tilt: 64deg;
  --hz-persp: 200px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 64px;
  padding: 44px 20px calc(var(--hz-floor) + 40px);
  border-top: 0;
  color: var(--steel);
  letter-spacing: 0.22em;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 16, 40, 0.7) 40%, #071a3c 100%);
}
html.theme-horizon .wrap > footer::before {
  top: calc(100% - var(--hz-floor));
  height: calc(var(--hz-floor) * 4);
  opacity: 0.9;
}
html.theme-horizon .wrap > footer > * { position: relative; z-index: 2; }
html.theme-horizon .footer-logo {
  width: min(300px, 72%);
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(var(--electric-rgb), 0.22));
}
html.theme-horizon .footer-social { color: var(--hz-orange); text-shadow: none; }
html.theme-horizon .footer-link { color: var(--electric); }

/* ---------- Motion: the drifting floor is the only ambient movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html.theme-horizon .wrap > header::before,
  html.theme-horizon .open-sign.loading { animation: none; }
}

/* ---------- Detail window: titles, chips and badges ---------- */
html.theme-horizon .detail-info h2 {
  color: #fff;
  font-size: 2rem;
  letter-spacing: 0.01em;
}
html.theme-horizon .tagline-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0;
  text-shadow: none;
}
html.theme-horizon .section-title { color: var(--hz-orange); letter-spacing: 0.1em; }
html.theme-horizon .genre-chip {
  border-radius: 999px;
  border-color: rgba(var(--electric-rgb), 0.45);
  font-size: 0.92rem;
}
html.theme-horizon .cast-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}
html.theme-horizon .format-badge {
  border-radius: 4px;
  letter-spacing: 0.1em;
}

/* ---------- Collection filters ---------- */
html.theme-horizon .filters {
  background: var(--hz-panel);
  border: 1px solid var(--hz-line);
  border-radius: 14px;
}
html.theme-horizon .filters input,
html.theme-horizon .filters select {
  border-width: 1px;
  border-radius: 8px;
  background-color: #030916;
}
html.theme-horizon .filters select::picker(select) {
  border-width: 1px;
  border-radius: 10px;
}
/* The genre picker's button and checklist, matched to the dropdowns. */
html.theme-horizon .ms-btn {
  border-width: 1px;
  border-radius: 8px;
  background-color: #030916;
}
html.theme-horizon .ms-panel {
  border-width: 1px;
  border-radius: 10px;
}
html.theme-horizon .filters .ms-opt input { border-width: 2px; border-radius: 3px; }
/* Plex Mono runs wide: a size down, and a wider column before it splits in two. */
html.theme-horizon .ms-opt { font-size: 0.86rem; letter-spacing: 0; }
html.theme-horizon .ms-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
html.theme-horizon .more-filters-btn,
html.theme-horizon .filters-toggle { border-radius: 10px; border-width: 1px; }
html.theme-horizon .mobile-drawer-nav {
  border-bottom: 0;
  box-shadow: none;
  background: transparent;
}

/* ---------- Page titles: white with orange rules, like "PRESENTS" ---------- */
html.theme-horizon .blog-header h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  white-space: nowrap;
  color: #fff;
  text-shadow: none;
  letter-spacing: 0.12em;
}
html.theme-horizon .blog-header h2::before,
html.theme-horizon .blog-header h2::after {
  content: '';
  flex: 0 0 auto;
  width: clamp(20px, 7vw, 110px);
  height: 2px;
  border-radius: 2px;
  background: var(--hz-orange);
  box-shadow: 0 0 10px rgba(var(--hz-orange-rgb), 0.55);
}

/* ---------- Dossier: readable type inside the system file ---------- */
html.theme-horizon [style*="Bungee"] { font-family: var(--font-marquee) !important; }
html.theme-horizon #view-about > div {
  font-family: var(--font-body) !important;
  border-radius: 14px;
  border-left-width: 1px !important;
}
html.theme-horizon #view-about h2[style] { color: #fff !important; text-shadow: none !important; }
html.theme-horizon #view-about p { line-height: 1.7; }
@media (max-width: 600px) {
  html.theme-horizon .blog-header h2 { display: block; white-space: normal; }
  html.theme-horizon .blog-header h2::before,
  html.theme-horizon .blog-header h2::after { display: none; }
}
html.theme-horizon [style*="IBM Plex Mono"] { font-family: var(--font-body) !important; }

/* ---------- Every page but Home: a slimmer hero so content starts sooner ---------- */
html.theme-horizon body:has(#view-home.hidden) .wrap > header {
  --hz-floor: 58px;
  --hz-mtn: 128px;
  padding-top: 12px;
  padding-bottom: calc(var(--hz-floor) + 22px);
}
html.theme-horizon body:has(#view-home.hidden) .wrap > header .sign { width: min(300px, 60vw); }
html.theme-horizon body:has(#view-home.hidden) .wrap > header .tagline.tagline-sub { display: none; }
@media (max-width: 600px) {
  html.theme-horizon body:has(#view-home.hidden) .wrap > header {
    --hz-floor: 48px;
    --hz-mtn: 92px;
    padding-top: 10px;
    padding-bottom: calc(var(--hz-floor) + 18px);
  }
  html.theme-horizon body:has(#view-home.hidden) .wrap > header .sign { width: min(210px, 58vw); }
}

/* ---------- Monospace sizing ----------
   Plex Mono runs wider than Tektur did, so a few labels get a touch smaller
   to stay on one line: the collection and Movie Talk filters, and on phones the month's category line
   and the format and edition tags on the Vault Pick. */
html.theme-horizon .filters input,
html.theme-horizon .filters select,
html.theme-horizon .filters .ms-btn,
html.theme-horizon .vault-filters input,
html.theme-horizon .vault-filters select {
  font-size: 0.95rem;
  letter-spacing: 0;
}
html.theme-horizon .filters select option { font-size: 0.95rem; }
@media (max-width: 600px) {
  html.theme-horizon .home-theme-sub { font-size: 0.84rem; letter-spacing: 0.02em; }
  html.theme-horizon .vault-filters input,
  html.theme-horizon .vault-filters select { font-size: 0.82rem; padding-left: 10px; }
  html.theme-horizon .home-feat-tag,
  html.theme-horizon .home-watched-tag {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    padding: 3px 8px;
  }
}
/* The smallest phones (iPhone mini/SE width): a touch smaller and tighter so
   "Oldest Released" still fits beside its arrow. */
@media (max-width: 380px) {
  html.theme-horizon .filters select,
  html.theme-horizon .filters .ms-btn {
    font-size: 0.9rem;
    padding-left: 8px;
  }
}
