/* ============================================================
   TomekTV — Ocean Adventure Design System
   Theme: "Bioluminescent Deep"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Backgrounds — blue ocean depth layers */
  --bg:            #0e1e34;   /* Deep ocean floor */
  --surface-low:   #152540;   /* Submerged panels */
  --surface:       #1c3050;   /* Cards, containers */
  --surface-high:  #243c62;   /* Active overlays */
  --surface-bright:#2e4a74;   /* Hover states */

  /* Colours — Water Light Story
     Backgrounds = deep ocean blue
     Primary     = soft teal (real shallow-water colour, not neon)
     Accent      = warm amber (sunlight filtering from above)
  */
  --primary:       #22d3ee;   /* Soft teal-cyan — water, not electric */
  --primary-dark:  #0ea5c9;
  --primary-glow:  rgba(34, 211, 238, 0.14);
  --primary-ring:  rgba(34, 211, 238, 0.28);
  --secondary:     #7dd3fc;   /* Sky blue */
  --secondary-dark:#1e6091;
  --secondary-glow:rgba(125, 211, 252, 0.14);
  --tertiary:      #bae6fd;   /* Pale sky — labels */
  --danger:        #f87171;   /* Soft coral alert */

  /* Text */
  --text:          #e8f0fa;   /* Warm white — not harsh */
  --text-muted:    #90b4cc;   /* Readable mid-tone */
  --text-dim:      #527a96;   /* Metadata */

  /* Borders */
  --outline:       rgba(34, 211, 238, 0.10);
  --outline-solid: #1e3a52;

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Manrope', sans-serif;
  --font-mono:    'Space Grotesk', monospace;

  /* Warm gold accent — muted sunlight through water, not orange */
  --accent:       #c49a3c;
  --accent-dark:  #a67e28;
  --accent-glow:  rgba(196, 154, 60, 0.24);

  /* Spacing */
  --radius: 16px;
  --blur:   16px;
}

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

html { scroll-behavior: smooth; }

body {
  /* Depth gradient: lighter blue at surface, darker as you descend — fixed to viewport */
  background: linear-gradient(
    to bottom,
    #1a3d6e 0%,    /* near-surface light */
    #112a52 25%,
    #0e1e34 55%,   /* mid depth */
    #091828 100%   /* deeper — still blue, never black */
  );
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Water light caustics — sunlight from the surface above */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    /* Sunlight beam from directly above — bright at top, fades fast */
    radial-gradient(ellipse 110% 32% at 50% 0%,   rgba(120, 210, 255, 0.22) 0%, transparent 100%),
    /* Side caustic glows */
    radial-gradient(ellipse 140% 80% at 15% 5%,   rgba(34, 211, 238, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 80%  120% at 85% 90%,  rgba(0, 185, 212, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 70%  70%  at 50% 50%,  rgba(125, 211, 252, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

main { position: relative; z-index: 1; }

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

img { display: block; max-width: 100%; height: auto; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--text);
}

/* Bebas Neue is condensed — needs positive spacing and larger sizes */
h1 { font-size: clamp(3rem, 7vw, 5.5rem); letter-spacing: 0.04em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: 0.03em; }
h3 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); letter-spacing: 0.02em; }

/* Friendly label — soft data readout style */
.label-tactical {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.label-primary {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--primary);
}

.label-tertiary {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--tertiary);
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px)  { .container { padding: 0 2rem; } }
@media (min-width: 1280px) { .container { padding: 0 2.5rem; } }

.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }

/* ── Glassmorphism Panel ─────────────────────────────────────── */
.glass {
  background: rgba(21, 37, 64, 0.55);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.05),
              0 0 40px rgba(0, 0, 0, 0.25);
}

/* Card — standard data panel */
.card {
  background: var(--surface-low);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.03);
  padding: 1.5rem;
  transition: background .25s, box-shadow .3s, transform .3s, border-color .3s;
}

.card:hover {
  background: var(--surface);
  border-color: rgba(34, 211, 238, 0.25);
  box-shadow: inset 0 0 20px rgba(34, 211, 238, 0.05),
              0 0 0 1px rgba(34, 211, 238, 0.15),
              0 8px 32px rgba(0, 0, 0, 0.35),
              0 0 28px rgba(34, 211, 238, 0.07);
  transform: translateY(-4px);
}

/* Card-chamfer — now just a rounded card, no military cut corners */
.card-chamfer {
  background: var(--surface-low);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: background .25s, box-shadow .3s, transform .3s, border-color .3s;
}

.card-chamfer:hover {
  background: var(--surface);
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow: inset 0 0 20px rgba(34, 211, 238, 0.06),
              0 8px 32px rgba(0, 0, 0, 0.35),
              0 0 24px rgba(34, 211, 238, 0.08);
  transform: translateY(-4px);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  padding: .75rem 1.75rem;
  border: none;
  border-radius: 50px;   /* pill shape — friendly, organic */
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}

/* Primary — cyan gradient beam */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #003848;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .2s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #33ecff 0%, var(--primary) 100%);
  color: #002a38;
  transform: translateY(-2px);
  box-shadow: 0 0 28px var(--primary-ring), 0 4px 16px rgba(0,0,0,.3);
}

.btn-primary:hover::after { opacity: 1; }

/* Ghost — transparent with soft cyan border */
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(34, 211, 238, 0.35);
  box-shadow: inset 0 0 10px rgba(34, 211, 238, 0.04);
}

.btn-ghost:hover {
  background: var(--primary-glow);
  color: var(--primary);
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 18px var(--primary-ring);
  transform: translateY(-2px);
}

/* Tertiary — soft text link */
.btn-tertiary {
  background: transparent;
  color: var(--secondary);
  padding: .5rem 0;
  font-size: .875rem;
  letter-spacing: .02em;
  border-radius: 0;
}

.btn-tertiary:hover { color: var(--text); }

/* Accent — orange for secondary CTAs */
.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
}
.btn-accent:hover {
  background: linear-gradient(135deg, #ff9020 0%, var(--accent) 100%);
  box-shadow: 0 0 26px var(--accent-glow), 0 4px 16px rgba(0,0,0,.3);
  transform: translateY(-2px);
}

/* Danger */
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #e05050;
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
  transform: translateY(-2px);
}

/* ── Scroll-down indicator ───────────────────────────────────── */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  animation: scroll-bounce 2.2s ease-in-out infinite;
}

.scroll-down__label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

.scroll-down__arrow {
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(34, 211, 238, 0.40);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: .75rem;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: .7; }
  50%       { transform: translateX(-50%) translateY(9px); opacity: 1;  }
}

/* ── Status Badges / Chips ───────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 50px;
}

.badge-active {
  background: rgba(0, 60, 80, 0.85);
  color: var(--primary);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.badge-alert {
  background: rgba(60, 80, 120, 0.85);
  color: var(--secondary);
  border: 1px solid rgba(125, 211, 252, 0.3);
  animation: pulse-border 2.5s ease-in-out infinite;
}

.badge-danger {
  background: rgba(80, 20, 20, 0.85);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.badge-tertiary {
  background: rgba(0, 50, 70, 0.85);
  color: var(--tertiary);
  border: 1px solid rgba(165, 243, 252, 0.3);
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(125, 211, 252, 0.3); }
  50%       { border-color: rgba(125, 211, 252, 0.7); }
}

/* BIO-SIGNAL pulse */
.badge-bio {
  background: rgba(0, 60, 90, 0.85);
  color: var(--secondary);
  border: 1px solid rgba(125, 211, 252, 0.5);
  border-radius: 50px;
  animation: pulse-bio 1.4s ease-in-out infinite;
}

@keyframes pulse-bio {
  0%, 100% {
    background:  rgba(0, 60, 90, 0.85);
    border-color: rgba(125, 211, 252, 0.4);
    box-shadow:  0 0 0px rgba(125, 211, 252, 0);
  }
  50% {
    background:  rgba(0, 90, 130, 0.9);
    border-color: rgba(125, 211, 252, 1);
    box-shadow:  0 0 14px rgba(125, 211, 252, 0.6),
                 inset 0 0 8px rgba(125, 211, 252, 0.2);
  }
}

/* ── Input Fields ────────────────────────────────────────────── */
.input-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--outline-solid);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .75rem 0;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.input-field::placeholder { color: var(--text-dim); font-size: .875rem; }

.input-field:focus {
  border-bottom-color: var(--primary);
  box-shadow: 0 2px 0 0 var(--primary);
}

.input-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: .25rem;
}

.input-group { margin-bottom: 1.75rem; }

/* ── Navigation ──────────────────────────────────────────────── */
.hud-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, backdrop-filter .35s ease,
              border-color .35s ease, box-shadow .35s ease;
}

.hud-nav.scrolled {
  background: #0b1a2e;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.40);
}

/* Push content below fixed nav */
main { padding-top: 60px; }

.hud-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .875rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.hud-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color .25s;
}

.hud-nav.scrolled .hud-logo { color: var(--primary); }

.hud-logo__slash {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.hud-logo__img {
  height: 36px;
  width: auto;
  display: block;
  transition: opacity .25s;
}

.hud-logo:hover .hud-logo__img { opacity: .85; }
.hud-logo:hover { color: #fff; }

/* Desktop nav links */
.hud-links {
  display: none;
  align-items: center;
  gap: .15rem;
}

@media (min-width: 900px) { .hud-links { display: flex; } }

.hud-links a {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, 0.78);  /* white-ish when nav is transparent */
  padding: .45rem .9rem;
  border-radius: 50px;
  text-decoration: none;
  transition: color .25s, background .25s;
}

.hud-nav.scrolled .hud-links a {
  color: var(--text-muted);
}

.hud-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hud-nav.scrolled .hud-links a:hover {
  color: var(--primary);
  background: rgba(34, 211, 238, 0.08);
}

.hud-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hud-nav.scrolled .hud-links a.active {
  color: var(--primary);
  background: rgba(34, 211, 238, 0.10);
}

/* Right status area */
.hud-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}



/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: .2rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  padding: .28rem .6rem;
  border: 1px solid var(--outline);
  border-radius: 50px;
  transition: border-color .2s, background .2s;
}

.lang-toggle:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
}

.lang-toggle__active { color: var(--primary); }
.lang-toggle__sep    { color: var(--text-dim); }
.lang-toggle__other  { color: var(--text-dim); }
.lang-toggle:hover .lang-toggle__other { color: var(--text-muted); }

/* Hamburger */
.hud-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}

.hud-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all .3s;
}

@media (min-width: 900px) { .hud-menu-btn { display: none; } }

/* Mobile menu */
.hud-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--surface-low);
  border-top: 1px solid var(--outline);
  padding: .75rem 1.5rem 1rem;
}

.hud-mobile-menu.open { display: flex; }

.hud-mobile-menu a {
  font-family: var(--font-body);
  font-size: .9rem;
  letter-spacing: .01em;
  color: var(--text-muted);
  padding: .65rem 0;
  border-bottom: 1px solid var(--outline);
  text-decoration: none;
  transition: color .2s;
}

.hud-mobile-menu a:hover { color: var(--primary); }
.hud-mobile-menu a:last-child { border-bottom: none; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface-low);
  border-top: 1px solid rgba(34, 211, 238, 0.08);
  padding: 3.5rem 0 1.5rem;
  margin-top: 5rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand p {
  color: var(--text-muted);
  font-size: .875rem;
  line-height: 1.7;
  margin-top: .75rem;
  max-width: 28ch;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: .5rem; }

.footer-col a {
  font-size: .875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--outline);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-signal {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.signal-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .2; }
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-primary   { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-tertiary  { color: var(--tertiary); }
.text-muted     { color: var(--text-muted); }
.text-dim       { color: var(--text-dim); }

.bg-surface     { background: var(--surface); }
.bg-surface-low { background: var(--surface-low); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes counter-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in  { animation: fade-in  .5s ease forwards; }
.animate-slide-up { animation: slide-up .5s ease forwards; }

/* Bubble particles — floating softly in the water */
.sediment {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sediment::before,
.sediment::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  opacity: .05;
  animation: float 8s ease-in-out infinite alternate;
}

.sediment::before { width: 4px; height: 4px; top: 20%; left: 30%; animation-delay: 0s; }
.sediment::after  { width: 3px; height: 3px; top: 60%; left: 70%; animation-delay: 3s; }

@keyframes float {
  from { transform: translateY(0) translateX(0); }
  to   { transform: translateY(-18px) translateX(8px); }
}

/* Page header section */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--outline);
  margin-bottom: 3rem;
}

.page-header .label-tactical { margin-bottom: .5rem; }

/* ── Scroll progress bar ─────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--primary-dark), var(--primary), var(--tertiary));
  z-index: 9999;
  transition: width .1s linear;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.65);
  border-radius: 0 2px 2px 0;
}

/* ── Image zoom on card hover ────────────────────────────────── */
.mission-card__img,
.blog-card__img,
.entry-row__img {
  overflow: hidden;
}

.mission-card__img img,
.blog-card__img img,
.entry-row__img img {
  transition: transform .5s ease;
}

.mission-card:hover .mission-card__img img,
.blog-card:hover   .blog-card__img img,
.entry-row:hover   .entry-row__img img {
  transform: scale(1.07);
}

/* ── Hero headline gradient shimmer ─────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.hero-shimmer {
  display: inline-block;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--tertiary) 30%,
    #fff 50%,
    var(--tertiary) 70%,
    var(--primary) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  animation: shimmer 4s linear infinite;
}

/* ── YouTube video cards ─────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px)  { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }

.video-card {
  background: var(--surface-low);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.25);
  box-shadow: 0 12px 36px rgba(0,0,0,.4), 0 0 24px rgba(0,229,255,.07);
}

/* 16:9 thumbnail */
.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.video-card:hover .video-card__thumb img { transform: scale(1.06); }

/* Play button overlay */
.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 16, 30, 0.30);
  transition: background .3s;
}

.video-card:hover .video-card__play { background: rgba(8, 16, 30, 0.15); }

.video-card__play-btn {
  width: 52px;
  height: 52px;
  background: rgba(196, 154, 60, 0.90);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s;
  box-shadow: 0 0 24px rgba(196, 154, 60, 0.45);
}

.video-card:hover .video-card__play-btn {
  transform: scale(1.12);
  background: var(--accent);
}

.video-card__play-btn svg { margin-left: 3px; }

.video-card__duration {
  position: absolute;
  bottom: .6rem;
  right: .6rem;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 600;
  padding: .15rem .45rem;
  border-radius: 4px;
  letter-spacing: .04em;
}

.video-card__body { padding: 1rem 1.1rem 1.2rem; }

.video-card__title {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: .45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-dim);
  letter-spacing: .05em;
}

/* ── Sponsors horizontal scroll ──────────────────────────────── */
.sponsors-wrap {
  position: relative;
  overflow: hidden;
}

.sponsors-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,229,255,.2) transparent;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.sponsors-track::-webkit-scrollbar { height: 4px; }
.sponsors-track::-webkit-scrollbar-track { background: transparent; }
.sponsors-track::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.2);
  border-radius: 2px;
}

.sponsor-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 200px;
  background: var(--surface-low);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  transition: border-color .2s, transform .2s;
  text-decoration: none;
}

.sponsor-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-3px);
}

.sponsor-card__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.sponsor-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: .04em;
  color: var(--text);
}

.sponsor-card__desc {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.5;
}
