/*
Theme Name: Miracles Word Semences TV
Theme URI: https://wms-tv.online
Author: Miracles Word Semences TV
Description: Thème Web TV chrétienne avec charte graphique or/rouge/noir, lecteur live 24/7, responsive tous écrans.
Version: 2.0
Text Domain: wmstv
*/

/* ============================================
   MIRACLES WORD SEMENCES TV — Brand Stylesheet
   Gold / Red / Dark Premium Theme
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg-alt: #111118;
  --bg-elevated: #16161f;
  --card: #1a1a25;
  --card-hover: #1f1f2c;
  --text: #f5f0e8;
  --text-muted: #9e978a;
  --gold: #c9a84c;
  --gold-light: #e6c96e;
  --gold-dark: #a07c2e;
  --red: #c0392b;
  --red-glow: rgba(192,57,43,0.35);
  --border: rgba(201,168,76,0.15);
  --border-hover: rgba(201,168,76,0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-gold: 0 0 40px rgba(201,168,76,0.08);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --font: 'Segoe UI', system-ui, -apple-system, 'Roboto', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.accent { color: var(--gold); }

/* ---- Fade-in animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  will-change: transform;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-transform: uppercase;
}

.logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(201,168,76,0.3));
  transition: transform var(--transition);
}
.logo:hover img { transform: scale(1.06); }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text .brand-main {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1.5px;
}
.logo-text .brand-sub {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  font-weight: 500;
}

/* WP nav menu compatibility */
.nav,
.nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a,
.nav li a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav a:hover,
.nav li a:hover {
  color: var(--gold-light);
  background: rgba(201,168,76,0.08);
}

.nav a.active,
.nav .current-menu-item > a,
.nav .current_page_item > a {
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  font-weight: 700;
}

.burger {
  display: none;
  background: none;
  border: 2px solid var(--border);
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
}
.burger:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
}

/* ============================================
   HERO — Accueil
   ============================================ */
.hero {
  padding: clamp(60px,12vh,120px) 0 clamp(40px,8vh,80px);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 80%, var(--red-glow) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.06), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: clamp(100px,18vw,180px);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 4px 24px rgba(201,168,76,0.3));
  animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.4);
  padding: 7px 20px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
  color: #e74c3c;
  text-transform: uppercase;
}

.dot {
  width: 9px;
  height: 9px;
  background: #e74c3c;
  border-radius: 50%;
  animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(231,76,60,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(231,76,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); }
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.12;
  background: linear-gradient(135deg, var(--text) 30%, var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 6px 30px rgba(201,168,76,0.45);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-live {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  box-shadow: 0 4px 20px rgba(192,57,43,0.3);
}
.btn-live:hover {
  box-shadow: 0 6px 30px rgba(192,57,43,0.5);
  transform: translateY(-2px);
}

/* ============================================
   PLAYER & TV DASHBOARD
   ============================================ */
.player-section { padding: 0 0 clamp(40px,8vh,90px); }

.tv-dashboard {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.tv-screen { min-width: 0; }

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201,168,76,0.1),
    0 24px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(201,168,76,0.05);
  will-change: transform;
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  z-index: 1;
}

.player-hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 16px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.hud-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(192,57,43,0.9);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.hud-live-badge .dot { width: 7px; height: 7px; }

.hud-clock {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  color: var(--gold-light);
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  font-family: 'Consolas', 'SF Mono', monospace;
}

.signal-lost-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #111;
}
.signal-lost-overlay.active { display: flex; }

.color-bars {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0.7;
  animation: barsFlicker 3s ease-in-out infinite;
}
.color-bars .bar { flex: 1; }

@keyframes barsFlicker {
  0%, 100% { opacity: 0.7; }
  30% { opacity: 0.4; }
  50% { opacity: 0.8; }
  70% { opacity: 0.3; }
  90% { opacity: 0.6; }
}

.signal-lost-text {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(0,0,0,0.85);
  padding: 30px 50px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.signal-icon { font-size: 2.5rem; margin-bottom: 10px; }

.signal-lost-text h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #e74c3c;
  letter-spacing: 3px;
  margin-bottom: 6px;
  animation: textGlitch 2s infinite;
}

@keyframes textGlitch {
  0%, 100% { opacity: 1; transform: translate(0); }
  20% { opacity: 0.8; transform: translate(-2px, 1px); }
  40% { opacity: 1; transform: translate(1px, -1px); }
  60% { opacity: 0.9; transform: translate(-1px, 0); }
  80% { opacity: 1; transform: translate(2px, 1px); }
}

.signal-lost-text p { color: var(--text-muted); font-size: 0.9rem; }

.reconnect-dots::after { content: ''; animation: dotsAnim 1.5s steps(4, end) infinite; }
@keyframes dotsAnim {
  0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; }
}

.reconnect-bar {
  width: 200px; height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  margin: 14px auto 0;
  overflow: hidden;
}
.reconnect-progress {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), #e74c3c);
  border-radius: 4px;
  transition: width 0.5s linear;
}

.player-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 12px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  gap: 12px;
}

.player-info-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.player-info-left .live-dot {
  width: 8px; height: 8px;
  background: #27ae60;
  border-radius: 50%;
  animation: livePulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
.player-info-left .live-dot.lost { background: #e74c3c; animation: none; }
.signal-status { white-space: nowrap; }

.player-info-center { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; }
.viewers-icon { font-size: 1rem; }
.viewers-count {
  font-weight: 800; color: var(--gold-light); font-size: 1.05rem;
  font-variant-numeric: tabular-nums; min-width: 30px; text-align: center;
  transition: transform 0.3s, color 0.3s;
}
.viewers-count.bump { transform: scale(1.3); color: #fff; }
.viewers-label { color: var(--text-muted); font-size: 0.78rem; }

.player-info-right { font-size: 0.82rem; color: var(--text-muted); }
.info-clock {
  font-family: 'Consolas', 'SF Mono', monospace;
  font-variant-numeric: tabular-nums;
  color: var(--gold); font-weight: 600;
}

/* ---- TV SIDEBAR ---- */
.tv-sidebar { display: flex; flex-direction: column; gap: 14px; }

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.sidebar-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-gold); }

.sidebar-card-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 12px;
}

.sidebar-big-clock {
  font-size: 2rem; font-weight: 800;
  font-family: 'Consolas', 'SF Mono', monospace;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; text-align: center; line-height: 1;
}
.sidebar-date { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }

.sidebar-viewers-number {
  font-size: 2.6rem; font-weight: 900; text-align: center; line-height: 1;
  background: linear-gradient(135deg, var(--gold-light), #e74c3c);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-variant-numeric: tabular-nums; transition: transform 0.3s;
}
.sidebar-viewers-number.bump { transform: scale(1.08); }
.sidebar-viewers-label { text-align: center; font-size: 0.76rem; color: var(--text-muted); margin-top: 4px; }

.viewers-chart {
  display: flex; align-items: flex-end; gap: 4px; height: 40px;
  margin-top: 14px; padding-top: 4px; border-top: 1px solid var(--border);
}
.chart-bar {
  flex: 1; background: linear-gradient(to top, var(--gold-dark), var(--gold-light));
  border-radius: 3px 3px 0 0; min-height: 4px;
  transition: height 0.6s cubic-bezier(.4,0,.2,1); opacity: 0.7;
}

.signal-bars { display: flex; align-items: flex-end; gap: 4px; justify-content: center; height: 28px; margin-bottom: 8px; }
.sbar { width: 8px; background: rgba(255,255,255,0.15); border-radius: 2px; }
.sbar:nth-child(1) { height: 6px; }
.sbar:nth-child(2) { height: 11px; }
.sbar:nth-child(3) { height: 16px; }
.sbar:nth-child(4) { height: 21px; }
.sbar:nth-child(5) { height: 26px; }
.sbar.active { background: #27ae60; }
.sbar.warn { background: #f39c12; }
.sbar.bad { background: #e74c3c; }

.signal-quality { text-align: center; font-size: 0.82rem; font-weight: 700; color: #27ae60; }
.signal-quality.warn { color: #f39c12; }
.signal-quality.bad { color: #e74c3c; }

.sidebar-uptime {
  font-size: 1.6rem; font-weight: 800; text-align: center;
  font-family: 'Consolas', 'SF Mono', monospace;
  font-variant-numeric: tabular-nums; color: var(--gold-light);
}
.sidebar-uptime-label { text-align: center; font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   FEATURES
   ============================================ */
.features { padding: clamp(40px,8vh,80px) 0 clamp(60px,10vh,110px); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  will-change: transform;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(192,57,43,0.1));
  border-radius: 14px;
  border: 1px solid var(--border);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
}
.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ============================================
   CTA
   ============================================ */
.cta {
  background: var(--bg-alt);
  padding: clamp(50px,10vh,100px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  bottom: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.06), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 2; }
.cta h2 {
  font-size: clamp(1.5rem,3.5vw,2.2rem);
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--text) 40%, var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.05rem; }

/* ============================================
   PAGE HERO (about / programmes)
   ============================================ */
.page-hero {
  padding: clamp(60px,10vh,100px) 0 clamp(30px,5vh,50px);
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.08), transparent 60%);
}
.page-hero h1 {
  font-size: clamp(1.8rem,4.5vw,2.8rem);
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--text) 30%, var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content { padding: clamp(30px,6vh,50px) 0 clamp(60px,10vh,110px); }

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text h2 {
  margin: 32px 0 12px;
  font-size: 1.35rem;
  color: var(--gold-light);
  position: relative;
  padding-left: 18px;
}
.about-text h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 22px;
  background: linear-gradient(to bottom, var(--gold), var(--red));
  border-radius: 4px;
}
.about-text h2:first-child { margin-top: 0; }
.about-text p { color: var(--text-muted); margin-bottom: 10px; font-size: 0.98rem; }

.values-list { list-style: none; margin-top: 14px; }
.values-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.values-list li strong { color: var(--gold-light); }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--text-muted); font-size: 0.88rem; margin-top: 4px; }

/* ============================================
   FOUNDER SECTION
   ============================================ */
.founder-section { padding: clamp(40px,8vh,80px) 0; background: var(--bg-alt); }

.founder-card {
  display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-gold);
}

.founder-image { position: relative; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--border-hover); }
.founder-image img { width: 100%; height: auto; display: block; object-fit: cover; }
.founder-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.4), transparent 50%); pointer-events: none;
}

.founder-label {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--gold); margin-bottom: 10px; padding: 4px 14px;
  background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.3); border-radius: 999px;
}

.founder-text h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.founder-text p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 14px; line-height: 1.7; }

.founder-quote {
  margin-top: 20px; padding: 20px 24px; background: rgba(201,168,76,0.06);
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.founder-quote blockquote { font-style: italic; color: var(--gold-light); font-size: 1rem; line-height: 1.6; }

/* ============================================
   FORMATS / EMISSION SECTION
   ============================================ */
.formats-section { padding: clamp(40px,8vh,80px) 0; }

.section-title {
  text-align: center; font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: 40px;
  background: linear-gradient(135deg, var(--text) 40%, var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.formats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.format-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.format-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--shadow-gold); }

.format-icon {
  width: 60px; height: 60px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(192,57,43,0.1));
  border-radius: 16px; border: 1px solid var(--border);
}

.format-card h3 { margin-bottom: 10px; font-size: 1.1rem; font-weight: 700; color: var(--gold-light); }
.format-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

/* ============================================
   CONTACT INFO
   ============================================ */
.contact-info { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-bottom: 28px; }

.contact-item {
  display: flex; align-items: center; gap: 10px; background: var(--card);
  border: 1px solid var(--border); padding: 12px 22px; border-radius: 999px;
  font-size: 0.9rem; color: var(--text-muted);
}
.contact-item a { color: var(--gold-light); font-weight: 600; transition: color var(--transition); }
.contact-item a:hover { color: var(--gold); }
.contact-icon { font-size: 1.1rem; }

/* ============================================
   PROGRAMS PAGE
   ============================================ */
.programs { padding: clamp(10px,3vh,30px) 0 clamp(60px,10vh,110px); }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.program-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), var(--red));
  opacity: 0;
  transition: opacity var(--transition);
}
.program-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}
.program-card:hover::before { opacity: 1; }

.program-time {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.program-card h3 { margin-bottom: 6px; font-size: 1.05rem; font-weight: 700; }
.program-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  height: 36px;
  width: auto;
  opacity: 0.7;
}

.footer-nav { display: flex; gap: 20px; }
.footer-nav a { transition: color var(--transition); }
.footer-nav a:hover { color: var(--gold); }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 960px) {
  .tv-dashboard { grid-template-columns: 1fr; }
  .tv-sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar-card { flex: 1; min-width: 200px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .formats-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-card { grid-template-columns: 1fr; gap: 30px; padding: 30px; }
  .founder-image { max-width: 300px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .formats-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-info { flex-direction: column; align-items: center; }
  .about-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1; min-width: 140px; }
  .player-info { flex-direction: column; gap: 8px; text-align: center; }
  .player-hud { padding: 8px 10px; }
  .hud-clock { font-size: 0.7rem; padding: 3px 10px; }
  .hud-live-badge { font-size: 0.65rem; padding: 3px 8px; }
  .signal-lost-text { padding: 20px 30px; }
  .signal-lost-text h3 { font-size: 1rem; }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 640px) {
  .header-inner { height: 64px; }
  .logo img { height: 40px; }
  .logo-text .brand-main { font-size: 0.72rem; }
  .logo-text .brand-sub { font-size: 0.52rem; }

  .nav { display: none; }
  .burger { display: flex; align-items: center; justify-content: center; }

  .nav.open,
  .nav.open ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .nav.open {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.3s ease;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  }
  .nav.open a,
  .nav.open li a {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero { padding: 50px 0 40px; }
  .hero-logo { width: 100px; margin-bottom: 20px; }
  .programs-grid { grid-template-columns: 1fr; }
  .tv-sidebar { flex-direction: column; }
  .sidebar-card { min-width: unset; }
  .sidebar-big-clock { font-size: 1.6rem; }
  .sidebar-viewers-number { font-size: 2rem; }
  .about-stats { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 380px) {
  .logo-text { display: none; }
  .hero h1 { font-size: 1.5rem; }
  .btn { padding: 12px 24px; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
