/* ============================================================
   TroubleFait — style.css
   Palette : #0D0D0D / #1A1A1A / #CC2929 / #EFEFEF / #7A7A7A
   Polices  : DM Serif Display (display) + DM Sans (body)
   ============================================================ */

/* ── IMPORT GOOGLE FONTS ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── CUSTOM PROPERTIES ──────────────────────────────────── */
:root {
  --bg:          #0D0D0D;
  --bg-alt:      #141414;
  --bg-card:     #1A1A1A;
  --bg-card-hover: #222222;
  --accent:      #CC2929;
  --accent-light:#E03535;
  --text:        #EFEFEF;
  --text-muted:  #7A7A7A;
  --text-faint:  #444444;
  --border:      #2A2A2A;
  --white:       #FFFFFF;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius: 4px;
  --nav-h: 64px;
  --max-w: 1200px;
  --section-py: clamp(4rem, 8vw, 7rem);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 400;
}

/* ── UTILITIES ───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.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;
}
.accent { color: var(--accent); }
.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: .25em .65em;
  border-radius: var(--radius);
}
.overline {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .75rem;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s ease;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--text);
  background: rgba(255,255,255,.04);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding-inline: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-ghost:hover { color: var(--accent-light); }

/* ── RED LINE DECORATION ─────────────────────────────────── */
.redline {
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--accent);
  margin-bottom: 1.5rem;
}
.redline-sm {
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: .75rem;
}

/* ── NAVIGATION ──────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13,13,13,.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: border-color .3s;
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -.01em;
  color: var(--white);
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-links a {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: .4rem .55rem;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active { background: rgba(255,255,255,.05); }
.nav-cta {
  flex-shrink: 0;
}
/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--text);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: all .25s;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--bg);
}
/* Subtle noise texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .5;
}
/* Diagonal accent bar */
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 30vw;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(204,41,41,.06) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-block: clamp(4rem, 10vh, 8rem);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  animation: fadeUp .6s ease both;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
  animation: fadeUp .6s .1s ease both;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  animation: fadeUp .6s .2s ease both;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp .6s .3s ease both;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
  animation: fadeUp .8s .6s ease both;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SECTION BASE ─────────────────────────────────────────── */
.section { padding-block: var(--section-py); }
.section-alt { background: var(--bg-alt); }
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--white);
}
.section-header p {
  margin-top: .75rem;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
}
.section-header.centered { text-align: center; }
.section-header.centered .redline { margin-inline: auto; }
.section-header.centered p { margin-inline: auto; }

/* ── SERIES CARDS ─────────────────────────────────────────── */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.series-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.series-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
}
.series-card:hover {
  border-color: rgba(204,41,41,.4);
  transform: translateY(-3px);
}
.series-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
  line-height: 1;
}
.series-card h3 {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: .75rem;
}
.series-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.series-card .btn { margin-top: auto; }

/* ── VIDEO GRID ────────────────────────────────────────────── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.video-card:hover {
  border-color: rgba(204,41,41,.3);
  transform: translateY(-3px);
}
.video-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #111;
  overflow: hidden;
}
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .2s;
}
.video-card:hover .video-thumb-play { opacity: 1; }
.video-thumb-play svg { width: 52px; height: 52px; }
.video-info { padding: 1.25rem 1.5rem; }
.video-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  color: var(--text-faint);
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.video-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
}
.video-info h3 {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.videos-cta { text-align: center; margin-top: 3rem; }

/* ── FEATURED VIDEO (HERO SIZE) ──────────────────────────── */
.featured-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.featured-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── LIVE BANNER ─────────────────────────────────────────── */
.live-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid #9147FF;
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.live-banner-icon {
  width: 72px;
  height: 72px;
  background: #9147FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.live-banner-content { flex: 1; min-width: 200px; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: .25em .7em;
  border-radius: 2px;
  margin-bottom: .75rem;
}
.live-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.5); }
}
.live-banner h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: .5rem;
}
.live-banner p {
  font-size: .9rem;
  color: var(--text-muted);
}
.btn-twitch {
  background: #9147FF;
  color: #fff;
}
.btn-twitch:hover { background: #7b2fd8; transform: translateY(-1px); }

/* ── SUPPORT SECTION ────────────────────────────────────── */
.support-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.support-block h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.support-block p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.support-reasons {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.support-reason {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.support-reason::before {
  content: '';
  display: block;
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: .15em;
}

/* ── PAGE HEADER (intérieur pages) ─────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 4rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.65;
}

/* ── ABOUT PAGE ────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about-manifesto {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}
.about-text p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.stat-card .stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-card .stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── THEMATIC CARDS ─────────────────────────────────────── */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.theme-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-size: .9rem;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
  transition: border-color .2s;
}
.theme-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.theme-card:hover { border-color: rgba(204,41,41,.3); }
.theme-card:hover::after { transform: scaleX(1); }
.theme-card h4 {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
}

/* ── FILTER BAR ────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all .15s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── SEARCH INPUT ──────────────────────────────────────── */
.search-wrap {
  position: relative;
  max-width: 400px;
  margin-bottom: 2rem;
}
.search-wrap input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .65rem 1rem .65rem 2.75rem;
  border-radius: 2rem;
  outline: none;
  transition: border-color .2s;
}
.search-wrap input::placeholder { color: var(--text-faint); }
.search-wrap input:focus { border-color: var(--accent); }
.search-wrap svg {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

/* ── CONTACT FORM ──────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .75rem 1rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { min-height: 140px; }
.form-notice {
  font-size: .8rem;
  color: var(--text-faint);
  margin-top: .5rem;
}

/* ── SOCIAL LINKS ──────────────────────────────────────── */
.social-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .875rem;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.social-link:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}
.social-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.social-link-label { font-weight: 600; }
.social-link-sub { font-size: .78rem; color: var(--text-muted); }

/* ── BREADCRUMB ────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-faint); }

/* ── NEWSLETTER / CTA BAND ─────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, rgba(204,41,41,.12), rgba(204,41,41,.04));
  border-top: 1px solid rgba(204,41,41,.2);
  border-bottom: 1px solid rgba(204,41,41,.2);
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-band p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-inline: auto;
}
.cta-band .btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── LEGAL PAGE ─────────────────────────────────────────── */
.legal-content h2 {
  font-size: 1.4rem;
  color: var(--white);
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.legal-content p, .legal-content li {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: .75rem;
}
.legal-content ul { padding-left: 1.25rem; list-style: disc; }
.legal-content a { color: var(--accent); }
.legal-content a:hover { text-decoration: underline; }

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: #0A0A0A;
  border-top: 1px solid var(--border);
  padding-block: 2.5rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-brand .nav-logo { font-size: 1.1rem; margin-bottom: .6rem; }
.footer-brand p {
  font-size: .8rem;
  color: var(--text-faint);
  line-height: 1.55;
  max-width: 200px;
}
.footer-social {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.footer-social a {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .7rem;
  transition: border-color .15s, color .15s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .75rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .35rem; }
.footer-col a {
  font-size: .8rem;
  color: var(--text-muted);
  transition: color .15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .78rem;
  color: var(--text-faint);
}
.footer-bottom a:hover { color: var(--accent); }

/* ── PLAYLIST EMBED ─────────────────────────────────────── */
.playlist-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.playlist-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── API NOTICE ─────────────────────────────────────────── */
.api-notice {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.api-notice strong { color: var(--text); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1400px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .support-block { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; flex-direction: column; }
  /* Mobile nav open state */
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(13,13,13,.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: .25rem;
    animation: slideDown .25s ease;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  body.nav-open .nav-links a { padding: .75rem 1rem; }
  body.nav-open .nav-cta {
    display: block;
    padding: .5rem 1rem 1rem;
  }
  .videos-grid { grid-template-columns: 1fr; }
  .series-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .live-banner { flex-direction: column; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ── TURNSTILE INTEGRATION ─────────────────────────────────── */
.cf-turnstile { filter: brightness(.85); }
.cf-turnstile iframe { border-radius: 6px !important; }
footer .cf-turnstile { margin-top: .4rem; transform: scale(0.85); transform-origin: left top; opacity: .65; transition: opacity .2s; }
footer .cf-turnstile:hover { opacity: 1; }
