/* ============================================
   3 Degrees North — Redesigned Stylesheet
   Editorial Warmth: bright, airy, professional
   Primary: #EE542F with warm grays & teal accent
   ============================================ */

/* ---- Design Tokens ---- */

:root {
  /* Primary palette derived from #EE542F */
  --primary: #EE542F;
  --primary-dark: #D4441F;
  --primary-darker: #B83518;
  --primary-light: #FFF0EC;
  --primary-glow: rgba(238, 84, 47, 0.12);

  /* Complementary accent */
  --accent: #0EA5A0;
  --accent-light: #E8FAF9;

  /* Neutrals — warm gray spectrum */
  --charcoal: #1E1E20;
  --gray-900: #2D2D30;
  --gray-700: #4A4A50;
  --gray-600: #6B6B73;
  --gray-500: #8E8E96;
  --gray-400: #ABABAF;
  --gray-300: #D1D1D4;
  --gray-200: #E8E8EA;
  --gray-100: #F3F3F4;
  --gray-50: #F9F9FA;
  --white: #FFFFFF;
  --cream: #FDFCFB;

  /* Semantic */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-500);
  --text-inverse: var(--white);

  --bg-body: var(--cream);
  --bg-card: var(--white);
  --bg-subtle: var(--gray-50);
  --bg-tinted: var(--primary-light);

  --border-light: var(--gray-200);
  --border-subtle: var(--gray-100);

  /* Shadows — warm-tinted */
  --shadow-xs: 0 1px 2px rgba(30, 30, 32, 0.04);
  --shadow-sm: 0 1px 3px rgba(30, 30, 32, 0.06), 0 1px 2px rgba(30, 30, 32, 0.04);
  --shadow-md: 0 4px 12px rgba(30, 30, 32, 0.08), 0 2px 4px rgba(30, 30, 32, 0.04);
  --shadow-lg: 0 12px 32px rgba(30, 30, 32, 0.10), 0 4px 8px rgba(30, 30, 32, 0.04);
  --shadow-xl: 0 24px 48px rgba(30, 30, 32, 0.12), 0 8px 16px rgba(30, 30, 32, 0.06);
  --shadow-primary: 0 8px 24px rgba(238, 84, 47, 0.2);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 960px;
  --header-height: 72px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

/* ---- Reset & Base ---- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

#content {
  flex: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--primary-dark);
}

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

h1, h2, h3, h4, h5 {
  font-family: 'DM Sans', 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.125rem; }

::selection {
  background: var(--primary-glow);
  color: var(--primary-darker);
}

/* ---- Animations ---- */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(238, 84, 47, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(238, 84, 47, 0); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Entry animation classes (applied via JS) */
.animate-in {
  animation: fadeInUp 0.6s var(--ease-out) forwards;
  opacity: 0;
}

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

/* ---- Header ---- */

.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--duration-normal) ease,
              background var(--duration-normal) ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  position: relative;
  transition: opacity var(--duration-fast) ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo {
  height: 32px;
  width: auto;
  /* The logo is white on transparent — we need to make it visible on white background */
  filter: brightness(0) saturate(100%);
  transition: filter var(--duration-fast) ease;
}

/* Primary-colored logo on hover */
.logo-link:hover .logo {
  filter: brightness(0) saturate(100%) invert(33%) sepia(85%) saturate(3000%) hue-rotate(5deg) brightness(98%) contrast(92%);
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.main-nav a {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) ease,
              background var(--duration-fast) ease;
  position: relative;
}

.main-nav a:hover {
  color: var(--charcoal);
  background: var(--gray-50);
}

.main-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* Contact CTA in nav */
.nav-cta a {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.8125rem;
  transition: background var(--duration-fast) ease,
              transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast) ease;
}

.nav-cta a:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}

.nav-cta a.active {
  background: var(--primary);
}

.nav-cta a.active::after {
  display: none;
}

.external-icon {
  font-size: 0.7em;
  margin-left: 2px;
  opacity: 0.5;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) ease;
}

.nav-toggle:hover {
  background: var(--gray-50);
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out),
              opacity 0.3s var(--ease-out);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Hamburger → X animation */
.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---- Footer ---- */

.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative gradient line at top of footer */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  animation: gradientShift 6s ease infinite;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.9;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--gray-400);
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.875rem;
  font-weight: 400;
  transition: color var(--duration-fast) ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--duration-normal) var(--ease-out);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ---- Container ---- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Page Hero ---- */

.page-hero {
  background: var(--white);
  padding: 3.5rem 0 3rem;
  margin-bottom: 0;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.5s var(--ease-out) forwards;
}

/* Accent underline on hero heading */
.page-hero h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 0.75rem;
}

.page-hero p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 520px;
  animation: fadeInUp 0.5s var(--ease-out) 0.1s forwards;
  opacity: 0;
}

/* ---- Video Grid ---- */

.video-grid-section {
  padding: 2.5rem 0 3rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: border-color var(--duration-normal) ease,
              box-shadow var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.video-card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.video-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-card-thumb {
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}

.video-card-thumb img,
.video-card-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
  pointer-events: none;
}

.video-card:hover .video-card-thumb img,
.video-card:hover .video-card-thumb video {
  transform: scale(1.04);
}

/* Play overlay */
.video-card-thumb .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 30, 32, 0.15);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.play-icon {
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(238, 84, 47, 0.35);
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) ease;
}

.video-card:hover .play-icon {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(238, 84, 47, 0.4);
}

.play-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent white;
  margin-left: 3px;
}

/* Duration badge on thumbnail */
.video-card-duration {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.75);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.1875rem 0.5rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.02em;
  line-height: 1.3;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Card body */
.video-card-body {
  padding: 1.25rem 1.5rem;
}

.video-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: var(--charcoal);
  transition: color var(--duration-fast) ease;
}

.video-card:hover .video-card-body h3 {
  color: var(--primary);
}

/* Presenter + date row */
.video-card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  margin-bottom: 0.625rem;
}

.video-card-presenter {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.video-card-presenter svg {
  color: var(--gray-400);
  flex-shrink: 0;
}

.video-card-date {
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Tags row */
.video-card-tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.video-card-tags .tag {
  background: var(--bg-tinted);
  color: var(--primary);
  padding: 0.1875rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* No-thumbnail placeholder */
.video-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb-placeholder .play-icon {
  opacity: 0.6;
}

/* ---- Single Video Page — Cinematic Redesign ---- */

/* Hero zone — light warm backdrop */
.vs-hero {
  background: var(--gray-50);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0 2.5rem;
}

/* Subtle texture — barely visible */
.vs-hero-grain {
  display: none;
}

.vs-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Back nav */
.vs-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.75rem 0.4rem 0.5rem;
  border-radius: var(--radius-full);
  transition: color var(--duration-fast) ease,
              background var(--duration-fast) ease;
}

.vs-back:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.vs-back svg {
  transition: transform var(--duration-normal) var(--ease-out);
}

.vs-back:hover svg {
  transform: translateX(-2px);
}

/* Player frame */
.vs-player {
  position: relative;
  width: 100%;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.5s var(--ease-out) forwards;
}

.vs-player-frame {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}

.vs-player-frame video,
.vs-player-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Vertical (9:16) video */
.vs-player--vertical {
  max-width: 400px;
}

.vs-player--vertical .vs-player-frame {
  padding-top: 177.78%;
}

/* Unmute prompt */
.btn-unmute {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeInUp 0.4s var(--ease-out) forwards;
  z-index: 10;
  transition: background var(--duration-fast) ease;
}

.btn-unmute:hover {
  background: var(--primary);
}

/* ---- Content zone below hero ---- */

.vs-content {
  background: var(--bg-body);
  position: relative;
  padding: 3rem 0 4rem;
}

/* Removed — no longer needed with light hero */

.vs-content-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Header cluster ---- */

.vs-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.vs-category {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
}

.vs-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  max-width: 720px;
}

.vs-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.vs-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
}

.vs-meta-item svg {
  color: var(--gray-400);
  flex-shrink: 0;
}

.vs-meta-presenter {
  font-weight: 600;
  color: var(--primary);
}

.vs-meta-presenter svg {
  color: var(--primary);
  opacity: 0.6;
}

/* Separator dots */
.vs-meta-item + .vs-meta-item::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gray-300);
  margin-right: 0.5rem;
}

/* ---- Two-column body ---- */

.vs-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: start;
}

.vs-main {
  min-width: 0;
}

/* ---- Description ---- */

.vs-description {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.vs-description p {
  margin-bottom: 1rem;
}

.vs-description p:last-child {
  margin-bottom: 0;
}

/* ---- Transcript Panel ---- */

.vs-transcript {
  margin-top: 2.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.vs-transcript-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: background var(--duration-fast) ease,
              color var(--duration-fast) ease;
}

.vs-transcript-toggle:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.vs-transcript-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.vs-transcript-chevron {
  transition: transform 0.3s var(--ease-out);
  color: var(--gray-400);
}

.vs-transcript-toggle[aria-expanded="true"] .vs-transcript-chevron {
  transform: rotate(180deg);
}

/* Smooth expand/collapse via max-height */
.vs-transcript-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.vs-transcript--open .vs-transcript-body {
  overflow-y: auto;
  border-top: 1px solid var(--border-subtle);
}

.vs-transcript-body p {
  padding: 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 0.625rem;
}

.vs-transcript-body p:first-child {
  padding-top: 1.5rem;
}

.vs-transcript-body p:last-child {
  padding-bottom: 1.5rem;
  margin-bottom: 0;
}

/* Scrollbar for long transcripts */
.vs-transcript--open .vs-transcript-body {
  max-height: 420px;
}

.vs-transcript-body::-webkit-scrollbar {
  width: 5px;
}

.vs-transcript-body::-webkit-scrollbar-track {
  background: transparent;
}

.vs-transcript-body::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

.vs-transcript-body::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ---- Sidebar ---- */

.vs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.vs-sidebar-section {
  margin-bottom: 2rem;
}

.vs-sidebar-section:last-child {
  margin-bottom: 0;
}

.vs-sidebar-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

/* Share action buttons */
.vs-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vs-action-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--duration-fast) ease,
              color var(--duration-fast) ease,
              background var(--duration-fast) ease,
              transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast) ease;
}

.vs-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.vs-action-btn--success {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: var(--accent-light) !important;
}

.vs-action-btn svg {
  flex-shrink: 0;
}

/* Tags */
.vs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.vs-tag {
  display: inline-block;
  background: var(--gray-50);
  color: var(--text-secondary);
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border-light);
  transition: background var(--duration-fast) ease,
              color var(--duration-fast) ease,
              border-color var(--duration-fast) ease,
              transform var(--duration-fast) var(--ease-spring);
}

.vs-tag:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* ---- Related Videos ---- */

.vs-related {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 3rem 0 3.5rem;
}

.vs-related-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.vs-related-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}

.vs-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ---- Taxonomy / Category Filter ---- */

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0;
  padding: 1.5rem 0;
}

.filter-bar a {
  display: inline-block;
  padding: 0.4375rem 1.125rem;
  background: var(--white);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--border-light);
  transition: background var(--duration-fast) ease,
              color var(--duration-fast) ease,
              border-color var(--duration-fast) ease,
              transform var(--duration-fast) var(--ease-spring);
}

.filter-bar a:hover {
  background: var(--gray-50);
  color: var(--charcoal);
  border-color: var(--gray-300);
  transform: translateY(-1px);
}

.filter-bar a.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ---- Home Page / Hero ---- */

.home-hero {
  background: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

/* Decorative background pattern */
.home-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 160, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.home-hero .container {
  position: relative;
  z-index: 1;
}

.home-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.6s var(--ease-out) forwards;
}

.home-hero p {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.6s var(--ease-out) 0.1s forwards;
  opacity: 0;
}

/* Section heading on homepage */
.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.section-heading h2 {
  font-size: 1.375rem;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--duration-fast) ease,
              color var(--duration-fast) ease,
              transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast) ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(238, 84, 47, 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
  transform: translateY(-1px);
}

/* ---- Back Link ---- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding: 0.375rem 0;
  transition: color var(--duration-fast) ease,
              gap var(--duration-normal) var(--ease-out);
}

.back-link:hover {
  color: var(--primary);
  gap: 0.75rem;
}

/* ---- Empty State ---- */

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}

.empty-state h2 {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* ---- View All link ---- */

.view-all-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---- Latest Videos Section ---- */

.latest-videos-section {
  padding: 3.5rem 0 2rem;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav .nav-list {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 0.75rem 1rem 1.25rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-light);
    animation: fadeIn 0.2s ease;
  }

  .main-nav .nav-list.open {
    display: flex;
  }

  .main-nav .nav-list li {
    width: 100%;
  }

  .main-nav .nav-list a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
  }

  .main-nav a.active::after {
    display: none;
  }

  .nav-cta {
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
  }

  .nav-cta a {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }

  .home-hero {
    padding: 3.5rem 0 3rem;
  }

  .home-hero h1 {
    font-size: 2.25rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .header-inner {
    padding: 0 1.25rem;
  }

  /* Related videos — 2 columns on tablet */
  .vs-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vs-related-inner {
    padding: 0 1.25rem;
  }

  /* Video single — stack to single column */
  .vs-hero-inner {
    padding: 0 1.25rem;
  }

  .vs-hero {
    padding: 1rem 0 2rem;
  }

  .vs-back {
    margin-bottom: 1rem;
  }

  .vs-content {
    padding: 2rem 0 3rem;
  }

  .vs-content-inner {
    padding: 0 1.25rem;
  }

  .vs-title {
    font-size: 1.625rem;
  }

  .vs-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vs-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .vs-sidebar-section {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .home-hero {
    padding: 3rem 0 2.5rem;
  }

  .home-hero h1 {
    font-size: 1.875rem;
  }

  .video-card-body {
    padding: 1rem 1.25rem;
  }

  .vs-title {
    font-size: 1.375rem;
  }

  .vs-related-grid {
    grid-template-columns: 1fr;
  }

  .vs-sidebar {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .vs-actions {
    flex-direction: row;
  }

  .vs-action-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ---- Tablet tweaks ---- */
@media (min-width: 769px) and (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Large screens ---- */
@media (min-width: 1400px) {
  :root {
    --max-width: 1320px;
  }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---- Focus Styles ---- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ---- Print ---- */
@media print {
  .site-header,
  .site-footer,
  .share-bar,
  .filter-bar,
  .back-link,
  .nav-toggle,
  .vs-back,
  .vs-actions,
  .vs-sidebar {
    display: none !important;
  }

  .vs-hero {
    background: white !important;
    border: none !important;
    padding: 1rem 0 !important;
  }

  body {
    background: white;
    color: black;
  }
}
