/* ============================================================
   TOKENS & VARIABLES
   ============================================================ */
:root {
  --bg:       #080c18;
  --bg2:      #0d1221;
  --bg3:      #131828;
  --surface:  #181e30;
  --surface2: #1e2639;
  --border:   rgba(255,255,255,0.06);
  --border2:  rgba(255,255,255,0.12);

  --red:      #e8273d;
  --red2:     #ff3a52;
  --orange:   #ff7c2a;
  --gold:     #f5c518;

  --text:     #f0f2f8;
  --muted:    #8892aa;
  --faint:    #4a5270;

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --r: 10px;
  --r2: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.6);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }

/* ============================================================
   NOISE OVERLAY
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,12,24,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

/* Promo bar sticky — se queda pegada debajo del nav */
.promo-bar-sticky-wrap {
  position: sticky;
  top: 60px;
  z-index: 99;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.nav-logo-text span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.15s;
}

.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); }
.nav-links a i { font-size: 14px; }

/* Chat link — verde destacado */
.nav-chat-link {
  color: var(--chat-green) !important;
  background: rgba(34,197,94,0.08) !important;
  border: 1px solid rgba(34,197,94,0.2);
  font-weight: 600 !important;
}
.nav-chat-link:hover {
  background: rgba(34,197,94,0.15) !important;
  color: #4ade80 !important;
}
.nav-chat-link i { color: var(--chat-green); }

/* ── NAV CHAT MODAL — ventana flotante centrada ── */
#chatModal {
  display: none; position: fixed; inset: 0; z-index: 650;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(12px);
  align-items: center; justify-content: center; padding: 20px;
}
#chatModal.open { display: flex; }
.chat-modal-card {
  background: var(--bg3); border: 1px solid var(--chat-green-border);
  border-radius: 20px; width: 100%; max-width: 520px;
  height: min(680px, 88vh); display: flex; flex-direction: column;
  overflow: hidden; animation: slideUpModal .3s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(34,197,94,0.12);
}
.chat-modal-hdr {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--chat-green-border);
  background: linear-gradient(90deg,rgba(34,197,94,0.08),transparent);
  flex-shrink: 0;
}
.chat-modal-title { font-family:var(--font-head); font-size:16px; font-weight:800; flex:1; }
.chat-modal-close {
  width:32px; height:32px; border-radius:50%; background:var(--surface);
  border:1px solid var(--border); color:var(--muted); font-size:15px;
  cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .15s;
}
.chat-modal-close:hover { color:var(--text); }
@media(max-width:600px){
  #chatModal { padding:0; align-items:flex-end; }
  .chat-modal-card { max-width:100%; height:92vh; border-radius:20px 20px 0 0; }
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--red);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.live-dot {
  width: 7px; height: 7px;
  background: white;
  border-radius: 50%;
  animation: dotPulse 1s infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── PROMO BAR — ticker de derecha a izquierda ── */
.promo-bar {
  width: 100%;
  background: linear-gradient(90deg, #b91c1c, #e8273d, #c2410c);
  cursor: pointer;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 38px;
  position: relative;
  z-index: 40;
  border: none;
  outline: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.promo-bar:hover { filter: brightness(1.12); }
.promo-bar:active { filter: brightness(0.92); }

/* Fading edges */
.promo-bar::before,
.promo-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}
.promo-bar::before { left: 0; background: linear-gradient(to right, #c0232f, transparent); }
.promo-bar::after  { right: 0; background: linear-gradient(to left, #c0232f, transparent); }

/* The scrolling track */
.promo-ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: promoTicker 18s linear infinite;
  will-change: transform;
}
.promo-bar:hover .promo-ticker-track { animation-play-state: paused; }

@keyframes promoTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* One item inside the track */
.promo-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 48px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: white;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.promo-ticker-sep {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  flex-shrink: 0;
}
.promo-ticker-wa {
  font-size: 15px;
  color: #86efac;
}

/* ── WHATSAPP PROMO MODAL ── */
#waPromoModal { display:none; position:fixed; inset:0; z-index:600; background:rgba(0,0,0,.7); backdrop-filter:blur(8px); align-items:center; justify-content:center; padding:20px; }
#waPromoModal.open { display:flex; }
.wa-promo-card { background:var(--bg3); border:1px solid var(--border2); border-radius:20px; padding:32px 28px; max-width:380px; width:100%; text-align:center; position:relative; animation:slideUpModal .3s cubic-bezier(.22,1,.36,1); }
@keyframes slideUpModal { from{transform:translateY(40px);opacity:0} to{transform:translateY(0);opacity:1} }
.wa-promo-close { position:absolute; top:14px; right:16px; width:30px; height:30px; border-radius:50%; background:var(--surface); border:1px solid var(--border); color:var(--muted); font-size:14px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.wa-promo-logo { width:72px; height:72px; border-radius:50%; background:#25d366; display:flex; align-items:center; justify-content:center; margin:0 auto 18px; font-size:36px; box-shadow:0 8px 32px rgba(37,211,102,.3); }
.wa-promo-title { font-family:var(--font-head); font-size:22px; font-weight:800; margin-bottom:8px; }
.wa-promo-desc { font-size:14px; color:var(--muted); line-height:1.6; margin-bottom:24px; }
.wa-promo-btn { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:14px; background:#25d366; color:white; border:none; border-radius:12px; font-family:var(--font-head); font-size:16px; font-weight:700; cursor:pointer; text-decoration:none; box-shadow:0 4px 20px rgba(37,211,102,.35); }
.wa-promo-btn:hover { background:#20b85a; }

/* ── SCHEDULE DAY MODAL ── */
#scheduleDayModal { display:none; position:fixed; inset:0; z-index:600; background:rgba(0,0,0,.75); backdrop-filter:blur(10px); align-items:center; justify-content:center; padding:20px; }
#scheduleDayModal.open { display:flex; }
.sch-modal-card { background:var(--bg3); border:1px solid var(--border2); border-radius:20px; width:100%; max-width:400px; max-height:85vh; overflow:hidden; display:flex; flex-direction:column; animation:slideUpModal .3s cubic-bezier(.22,1,.36,1); }
.sch-modal-hdr { display:flex; align-items:center; justify-content:space-between; padding:18px 20px; border-bottom:1px solid var(--border); flex-shrink:0; }
.sch-modal-day { font-family:var(--font-head); font-size:22px; font-weight:800; }
.sch-modal-close { width:32px; height:32px; border-radius:50%; background:var(--surface); border:1px solid var(--border); color:var(--muted); font-size:15px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.sch-modal-body { overflow-y:auto; padding:12px 16px 20px; flex:1; }
.sch-modal-show { display:flex; align-items:center; gap:14px; padding:13px 14px; border-radius:10px; margin-bottom:6px; background:var(--surface); }
.sch-modal-show.now { background:rgba(232,39,61,.12); border-left:3px solid var(--red); }
.sch-modal-time { font-family:var(--font-mono); font-size:13px; font-weight:700; color:var(--red2); flex-shrink:0; min-width:48px; }
.sch-modal-name { font-size:15px; font-weight:600; color:var(--text); line-height:1.3; }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 3vh 4vw;
}
.mobile-nav.open { display: flex; }
.mobile-nav-card {
  width: 94%;max-width: 420px;max-height: 92vh;
  background: rgba(8,12,24,0.98);border: 1px solid var(--border2);
  border-radius: 18px;display: flex;flex-direction: column;
  overflow-y: auto;overflow-x: hidden;
  box-shadow: 0 16px 50px rgba(0,0,0,.6);
  animation: slideUpModal .3s cubic-bezier(.22,1,.36,1);
  padding: 0 0 16px;
}
.mobile-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
  flex-shrink: 0;
}
.mobile-close:hover { color: var(--text); }
.mobile-player-mini { display: flex; align-items: center; gap: 14px; padding: 20px 20px 16px; border-bottom: 1px solid var(--border); margin-top: 8px; }
.mobile-player-cover { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.mobile-menu-sections { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.mob-section-btn { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 12px; cursor: pointer; transition: background 0.15s; text-decoration: none; color: var(--text); border: none; background: none; width: 100%; text-align: left; }
.mob-section-btn:hover, .mob-section-btn:active { background: var(--surface); }
.mob-section-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.mob-section-text { flex: 1; min-width: 0; }
.mob-section-title { font-family: var(--font-head); font-size: 15px; font-weight: 700; line-height: 1.2; }
.mob-section-sub   { font-size: 11px; color: var(--muted); margin-top: 2px; }
.mob-section-arrow { color: var(--faint); font-size: 13px; flex-shrink: 0; }
.mobile-menu-social { display: flex; justify-content: center; gap: 12px; padding: 16px 20px 8px; border-top: 1px solid var(--border); margin: 8px 14px 0; }
.mob-social { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--muted); transition: all 0.15s; }
.mob-social:hover { border-color: var(--border2); color: var(--text); }
#mobileStickyPlayer { display: none; }

/* ============================================================
   HERO — RADIO PLAYER
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  overflow: hidden;
}

/* Animated BG */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(232,39,61,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(255,124,42,0.1) 0%, transparent 60%),
    var(--bg);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.015) 40px,
    rgba(255,255,255,0.015) 41px
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red2);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--red);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  color: var(--red2);
}

.hero-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--red);
  color: white;
}
.btn-primary:hover { background: var(--red2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,39,61,0.4); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-outline:hover { background: var(--surface); border-color: rgba(255,255,255,0.25); }

.btn-app {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-app:hover { background: var(--surface2); }

/* ============================================================
   PLAYER CARD
   ============================================================ */
.player-card {
  position: relative;
  z-index: 1;
  background: rgba(13,18,33,0.85);
  backdrop-filter: blur(24px);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  gap: 24px;
}

.player-cover {
  position: relative;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e2639, #0d1221);
  border: 3px solid var(--border2);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
}

.player-cover.spinning {
  animation: spin 20s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.player-cover-img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}

.player-cover-fallback {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 1;
  line-height: 1;
}

/* Vinyl groove rings */
.player-cover::before {
  content: '';
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.04);
  z-index: 2;
}
.player-cover::after {
  content: '';
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: var(--bg3);
  z-index: 3;
}

.player-info {
  text-align: center;
}

.player-station {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.player-track {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 280px;
}

/* Visualizer bars */
.visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  width: 100%;
  justify-content: center;
}

.vbar {
  width: 4px;
  border-radius: 2px;
  background: var(--red);
  animation: vbounce 0.8s ease-in-out infinite alternate;
  min-height: 4px;
}

.vbar:nth-child(odd) { background: var(--orange); }

@keyframes vbounce {
  from { height: 4px; }
  to { height: var(--h, 20px); }
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ctrl-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.ctrl-btn:hover { color: var(--text); background: var(--surface2); }

.ctrl-btn.play {
  width: 58px; height: 58px;
  background: var(--red);
  color: white;
  font-size: 20px;
  border: none;
  box-shadow: 0 4px 20px rgba(232,39,61,0.4);
}
.ctrl-btn.play:hover { background: var(--red2); transform: scale(1.05); }

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.volume-icon { color: var(--muted); font-size: 14px; }

.volume-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--surface2);
  outline: none;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
  cursor: pointer;
}

/* ============================================================
   SOCIAL BAR
   ============================================================ */
.social-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  gap: 8px;
  min-height: 52px;
}

.social-bar-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  font-family: var(--font-mono);
}

.social-links {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
  color: var(--muted);
  border: 1px solid transparent;
}

.social-link:hover {
  border-color: var(--border2);
  color: var(--text);
}

.social-link.fb:hover { color: #1877f2; border-color: rgba(24,119,242,0.3); background: rgba(24,119,242,0.08); }
.social-link.ig:hover { color: #e1306c; border-color: rgba(225,48,108,0.3); background: rgba(225,48,108,0.08); }
.social-link.wa:hover { color: #25d366; border-color: rgba(37,211,102,0.3); background: rgba(37,211,102,0.08); }
.social-link.tt:hover { color: #ffffff; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }
.social-link.yt:hover { color: #ff0000; border-color: rgba(255,0,0,0.3); background: rgba(255,0,0,0.08); }

.social-link i { font-size: 16px; }

/* ============================================================
   AD BANNERS
   ============================================================ */
/* ── AD CAROUSEL 3D — estilo captura ── */
.ad-banner-zone {
  width: 100%;
  padding: 16px 0 10px;
  position: relative;
  overflow: hidden;
}
.ad-banner-zone .ad-label { text-align: center; }

.ad-carousel {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: 10px 0 8px;
}
.ad-carousel-scene {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 120px;
  overflow: visible;
}
.ad-carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
}

.ad-carousel-slide {
  flex-shrink: 0;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              opacity 0.4s ease,
              box-shadow 0.4s ease,
              width 0.4s ease;
  /* Default: visible, so single ads show correctly */
  width: 100%;
  max-width: 320px;
  opacity: 1;
}

/* Center = largest, most prominent */
.ad-carousel-slide.pos-center {
  width: 55%;
  max-width: 380px;
  min-width: 200px;
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  z-index: 5;
}
/* Adjacent to center */
.ad-carousel-slide.pos-side1,
.ad-carousel-slide.pos-side1-neg {
  width: 20%;
  max-width: 150px;
  min-width: 90px;
  opacity: 0.72;
  transform: scale(0.88);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  z-index: 4;
}
/* Far sides */
.ad-carousel-slide.pos-side2,
.ad-carousel-slide.pos-side2-neg {
  width: 13%;
  max-width: 100px;
  min-width: 60px;
  opacity: 0.45;
  transform: scale(0.76);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 3;
}
.ad-carousel-slide.pos-hidden {
  width: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
}

.ad-carousel-slide a { display: block; width: 100%; }
.ad-carousel-slide img,
.ad-carousel-slide > div > img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}
.ad-carousel-slide > div { width: 100%; }

/* Nav arrows */
.ad-carousel-prev,
.ad-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background 0.15s;
}
.ad-carousel-prev { left: 4px; }
.ad-carousel-next { right: 4px; }
.ad-carousel-prev:hover,
.ad-carousel-next:hover { background: rgba(255,255,255,0.22); }

/* Dots */
.ad-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 4px 0 2px;
}
.ad-carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border2);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  padding: 0;
}
.ad-carousel-dot.active {
  background: var(--red);
  width: 18px;
  border-radius: 3px;
}
.ad-label {
  font-size: 9px;
  color: var(--faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

/* Chat image */
.chat-img {
  max-width: 180px;
  max-height: 160px;
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-top: 4px;
  display: block;
  transition: opacity 0.2s;
}
.chat-img:hover { opacity: 0.85; }

/* Chat avatar in messages */
.chat-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Image lightbox */
#chatImgLightbox {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
  cursor: zoom-out; backdrop-filter: blur(8px);
}
#chatImgLightbox.open { display: flex; }
#chatImgLightbox img { max-width:92vw; max-height:90vh; border-radius:8px; }

/* Filtered notice */
.filtered-notice { font-size:10px; color:var(--faint); font-family:var(--font-mono); padding:2px 0; }

/* Upload spin */
.upload-spin { animation: spin 1s linear infinite; display:inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--red);
  padding: 8px 0;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
  animation: tickerScroll 35s linear infinite;
  white-space: nowrap;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: white;
}

.ticker-sep {
  display: inline-block;
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
}

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
.section {
  padding: 72px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red2);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
}

.section-link {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.section-link:hover { color: var(--text); }

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.video-featured {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r2);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  group: true;
}

.video-featured:hover .video-overlay { opacity: 1; }
.video-featured:hover .video-thumb { transform: scale(1.03); }

.video-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  background: var(--surface2);
}

/* YouTube embed fallback placeholder */
.video-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface), var(--bg3));
  gap: 12px;
}

.video-placeholder i { font-size: 48px; color: var(--red); }
.video-placeholder span { font-size: 13px; color: var(--muted); }

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--red);
  transform: scale(0.9);
  transition: transform 0.2s;
}
.video-featured:hover .play-icon { transform: scale(1); }

.video-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.video-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--red);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.video-title-text {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.video-date { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* Video list */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-list-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  cursor: pointer;
  border-radius: var(--r);
  padding: 8px;
  transition: background 0.15s;
}
.video-list-item:hover { background: var(--surface); }

.video-list-thumb {
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface2);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.video-list-thumb i { font-size: 22px; color: var(--muted); }

.video-list-thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.video-list-info { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.video-list-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.video-list-meta { font-size: 12px; color: var(--muted); }

/* ============================================================
   LIVE STREAM SECTION
   ============================================================ */
.live-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.live-section .section { padding: 60px 24px; }

.live-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.live-player-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--r2);
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--border);
}

.live-player-wrap iframe {
  width: 100%; height: 100%;
  border: none;
}

.live-badge-wrap {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
}

.live-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--red);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(232,39,61,0.5);
}

/* ── CHAT — GREEN THEME ── */
:root {
  --chat-green: #22c55e;
  --chat-green2: #16a34a;
  --chat-green-bg: rgba(34,197,94,0.12);
  --chat-green-border: rgba(34,197,94,0.25);
}

.chat-box {
  background: var(--bg3);
  border: 1px solid var(--chat-green-border);
  border-radius: var(--r2);
  display: flex;
  flex-direction: column;
  height: 520px;
}

.chat-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--chat-green-border);
  background: linear-gradient(90deg, rgba(34,197,94,0.08), transparent);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.chat-msg {
  display: flex;
  gap: 8px;
  animation: msgIn 0.2s ease both;
}
@keyframes msgIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.chat-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  font-family: var(--font-head);
}

.chat-msg-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chat-msg-name { font-size: 11px; font-weight: 600; }
.chat-msg-text {
  font-size: 13px; color: var(--muted); line-height: 1.4;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 8px 8px 8px;
  padding: 7px 10px;
  word-break: break-word;
}
.chat-msg-text.mine {
  background: var(--chat-green-bg);
  border-color: var(--chat-green-border);
  border-radius: 8px 0 8px 8px;
  color: var(--text);
}

.chat-audio {
  width: 100%;
  max-width: 220px;
  height: 32px;
  accent-color: var(--chat-green);
}

.chat-msg-text.filtered {
  color: var(--faint);
  font-style: italic;
  background: rgba(255,255,255,0.02);
}

.chat-uploading {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); padding: 6px 10px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.upload-spin { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.chat-toolbar {
  display: flex;
  gap: 4px;
  padding: 6px 12px 0;
  align-items: center;
}
/* Timer hidden by default via class, shown with .active */
.rec-timer {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  font-size: 11px;
  color: var(--chat-green);
  font-family: var(--font-mono);
}
.rec-timer.active { display: flex; }
.chat-tool-btn {
  width: 32px; height: 32px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.15s;
  cursor: pointer;
  position: relative;
}
.chat-tool-btn:hover { color: var(--chat-green); border-color: var(--chat-green-border); }
.chat-tool-btn.recording {
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.4);
  color: var(--chat-green);
  animation: recPulse 1s infinite;
}
@keyframes recPulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

.chat-input-wrap {
  padding: 8px 12px 12px;
  border-top: 1px solid var(--chat-green-border);
  flex-shrink: 0;
}
.chat-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.chat-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
}
.chat-input:focus { border-color: var(--chat-green); }
.chat-input::placeholder { color: var(--faint); }
.chat-send {
  width: 36px; height: 36px;
  background: var(--chat-green);
  color: white;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: all 0.15s;
  flex-shrink: 0;
  border: none; cursor: pointer;
}
.chat-send:hover { background: var(--chat-green2); }

/* ── EMOJI PICKER ── */
.emoji-picker-wrap {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 200;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 10px;
  width: 280px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: none;
}
.emoji-picker-wrap.open { display: block; }
.emoji-picker-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.emoji-tab {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
  transition: background 0.15s;
  opacity: 0.6;
}
.emoji-tab.active, .emoji-tab:hover { background: var(--surface); opacity: 1; }
.emoji-search {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
  margin-bottom: 6px;
}
.emoji-search:focus { border-color: var(--chat-green); }
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  max-height: 180px;
  overflow-y: auto;
}
.emoji-grid button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
  padding: 4px;
  transition: background 0.1s;
  line-height: 1;
}
.emoji-grid button:hover { background: var(--surface); }



/* Filtered text overlay */
.filtered-notice {
  font-size: 10px;
  color: var(--faint);
  font-family: var(--font-mono);
  padding: 2px 0;
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: var(--shadow);
}

.news-card-img {
  aspect-ratio: 16/9;
  background: var(--surface2);
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.news-card-img i { font-size: 36px; color: var(--faint); }

.news-card-body { padding: 18px; }

.news-cat {
  display: inline-block;
  padding: 3px 9px;
  background: rgba(232,39,61,0.15);
  color: var(--red2);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.news-card-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.news-card-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.news-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--faint);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ============================================================
   SCHEDULE SECTION
   ============================================================ */
.schedule-section { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.schedule-day {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.schedule-day.today {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.schedule-day-header {
  padding: 10px 12px;
  background: var(--surface2);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.today-tag {
  font-size: 9px;
  padding: 2px 6px;
  background: var(--red);
  border-radius: 3px;
  letter-spacing: 0.1em;
}

.schedule-shows {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-show {
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 12px;
  background: rgba(255,255,255,0.03);
  transition: background 0.15s;
  cursor: default;
}
.schedule-show:hover { background: rgba(255,255,255,0.06); }
.schedule-day { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.schedule-day:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }

.schedule-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--red2);
  margin-bottom: 2px;
}

.schedule-name {
  color: var(--text);
  font-weight: 500;
  line-height: 1.2;
}

/* ============================================================
   APP PROMO SECTION
   ============================================================ */
.app-section {
  display: flex;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, rgba(232,39,61,0.15), rgba(255,124,42,0.08));
  border: 1px solid rgba(232,39,61,0.2);
  border-radius: 24px;
  padding: 48px;
  margin: 72px auto;
  max-width: 1280px;
  margin-left: 24px;
  margin-right: 24px;
}

.app-text { flex: 1; }

.app-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 14px;
}

.app-desc { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; max-width: 440px; }

.app-store-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  transition: all 0.2s;
}
.store-btn:hover { background: var(--surface); border-color: rgba(255,255,255,0.25); transform: translateY(-2px); }

.store-btn i { font-size: 24px; color: var(--text); }
.store-btn-text { font-size: 11px; color: var(--muted); line-height: 1; }
.store-btn-name { font-size: 15px; font-weight: 700; }

.app-mockup {
  width: 200px;
  height: 360px;
  background: var(--surface);
  border: 2px solid var(--border2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.app-mockup i { font-size: 64px; color: var(--red); }
.app-mockup span { font-size: 12px; color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 60px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--muted);
  transition: all 0.15s;
}
.footer-social a:hover { color: var(--text); border-color: var(--border2); background: var(--surface2); }

.footer-col-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--faint);
}

.footer-bottom a { color: var(--muted); transition: color 0.15s; }
.footer-bottom a:hover { color: var(--text); }

/* ============================================================
   MODAL (VIDEO)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex; }

.modal-inner {
  width: 100%;
  max-width: 900px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  overflow: hidden;
}

.modal-video {
  aspect-ratio: 16/9;
  background: black;
  width: 100%;
}
.modal-video iframe { width: 100%; height: 100%; border: none; }

.modal-foot {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.modal-close { font-size: 22px; color: var(--muted); transition: color 0.15s; }
.modal-close:hover { color: var(--text); }

/* ============================================================
   RESPONSIVE — COMPLETO
   ============================================================ */

/* ── 1100px: tablets landscape ── */
@media (max-width: 1100px) {
  .schedule-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section       { max-width: 100%; padding: 60px 20px; }
  .app-section   { margin-left: 20px; margin-right: 20px; }
}

/* ── 900px: tablets portrait ── */
@media (max-width: 900px) {
  /* Nav */
  .nav-links  { display: none; }
  .hamburger  { display: flex; }

  /* Hero — ocultar texto, mostrar solo reproductor */
  .hero { grid-template-columns: 1fr; min-height: auto; overflow: visible; }
  .hero-content { display: none; }
  .hero-bg { display: none; }
  .player-card {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    border-left: none;
    border-top: none;
    padding: 28px 20px;
    background: rgba(13,18,33,0.95);
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  .player-cover {
    width: 110px !important; height: 110px !important;
    font-size: 36px;
    flex-shrink: 0;
  }
  .player-info { text-align: center; flex: 1; min-width: 140px; }
  .player-station { font-size: 16px; }
  .player-track { font-size: 12px; }
  .visualizer { width: 100%; order: 3; }
  .player-controls { order: 4; }
  .volume-wrap { width: 100%; max-width: 320px; order: 5; }

  /* Live */
  .live-grid { grid-template-columns: 1fr; gap: 20px; }
  .chat-box  { height: 400px; }

  /* Videos */
  .video-grid { grid-template-columns: 1fr; gap: 16px; }

  /* News */
  .news-grid  { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Schedule */
  .schedule-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }

  /* App section */
  .app-section { gap: 28px; padding: 36px 24px; }
  .app-mockup  { display: none; }
}

/* ── 768px: large phones landscape / small tablets ── */
@media (max-width: 768px) {
  /* Social bar horizontal scroll */
  .social-bar { padding: 0 12px; gap: 4px; }
  .social-links { gap: 2px; }
  .social-link  { padding: 6px 10px; font-size: 12px; }
  .social-link span { display: none; }

  /* News */
  .news-grid { grid-template-columns: 1fr; }

  /* Schedule */
  .schedule-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  /* Video modal */
  .modal-inner { margin: 12px; }
  .modal-foot  { padding: 12px 14px; }
  .modal-title { font-size: 15px; }

  /* Section headers */
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── 600px: phones ── */
@media (max-width: 600px) {
  /* General */
  .section { padding: 40px 14px; }

  /* Hero — ocultar texto completamente */
  .hero-content { display: none !important; }

  /* Nav */
  .nav-logo-text span { display: none; }
  .topnav { padding: 0 14px; height: 52px; }

  /* Ticker */
  .ticker-item { font-size: 11px; padding: 0 20px; }

  /* Live section */
  .live-section .section { padding: 40px 14px; }
  .chat-box { height: 360px; }
  .chat-header { font-size: 14px; padding: 10px 12px; }

  /* Chat input */
  .chat-toolbar { padding: 4px 8px 0; gap: 4px; }
  .chat-tool-btn { width: 30px; height: 30px; font-size: 13px; }
  .chat-input-wrap { padding: 6px 8px 8px; }
  .chat-input { font-size: 13px; padding: 7px 10px; }
  .chat-send  { width: 34px; height: 34px; font-size: 13px; }

  /* Videos */
  .video-list-item { grid-template-columns: 100px 1fr; gap: 10px; }
  .video-list-title { font-size: 13px; }
  .section-title    { font-size: clamp(24px, 7vw, 36px); }

  /* Schedule */
  .schedule-grid  { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .schedule-day-header { font-size: 12px; padding: 8px 10px; }
  .schedule-show  { padding: 5px 7px; }
  .schedule-time  { font-size: 9px; }
  .schedule-name  { font-size: 11px; }

  /* App section */
  .app-section  { flex-direction: column; padding: 28px 16px; gap: 20px;
                  border-radius: 16px; margin: 48px 14px; }
  .app-title    { font-size: clamp(28px, 9vw, 44px); }
  .app-desc     { font-size: 13px; }
  .app-store-btns { flex-direction: column; }
  .store-btn    { justify-content: center; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; gap: 24px; padding: 36px 16px; }
  .footer-social { gap: 6px; flex-wrap: wrap; }
  .footer-social a { width: 36px; height: 36px; font-size: 14px; }
  .footer-col-title { font-size: 10px; margin-bottom: 10px; }
  .footer-links a { font-size: 13px; min-height: 36px; display: flex; align-items: center; }
  .footer-grid > div:first-child { order: -1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; font-size: 11px; }

  /* Player card compact on small phones */
  .player-card { padding: 24px 20px; }
  .player-cover { width: 140px; height: 140px; }

  /* Show sticky player when scrolled */
  #mobileStickyPlayer.visible { display: flex !important; }
  body.has-sticky-player { padding-bottom: 68px; }

  /* Ads */
  .ad-banner-zone { padding: 6px 0; }
  .ad-banner-zone img { max-height: 60px; }

  /* Modal */
  .modal-overlay { padding: 10px; }
  .modal-foot    { padding: 10px 12px; }
  .modal-title   { font-size: 14px; }
}

/* ── 400px: very small phones ── */
@media (max-width: 400px) {
  .hero-title { font-size: clamp(30px, 13vw, 44px); }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .schedule-grid { grid-template-columns: 1fr 1fr; }
  .topnav { height: 48px; }
  .nav-logo-text { font-size: 15px; }
  .social-link { padding: 5px 7px; }
  .chat-box { height: 320px; }
}

/* ── Touch: larger tap targets ── */
@media (hover: none) and (pointer: coarse) {
  .nav-links a, .social-link, .footer-links a { min-height: 44px; }
  .btn { min-height: 44px; }
  .ctrl-btn { width: 52px; height: 52px; }
  .ctrl-btn.play { width: 62px; height: 62px; }
  .chat-tool-btn { width: 40px; height: 40px; }
  .chat-send { width: 42px; height: 42px; }
  .volume-slider::-webkit-slider-thumb { width: 20px; height: 20px; }
}

/* ============================================================
   ANIMATIONS ON LOAD
   ============================================================ */
@keyframes vbounce {
  from { transform: scaleY(0.3); }
  to   { transform: scaleY(1); }
}
@keyframes dotPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: fadeUp 0.5s ease both; }
.hero-title { animation: fadeUp 0.5s ease 0.1s both; }
.hero-desc { animation: fadeUp 0.5s ease 0.2s both; }
.hero-actions { animation: fadeUp 0.5s ease 0.3s both; }
/* Player card: NO animation — causes opacity:0 bug on mobile */
.player-card { opacity: 1 !important; }
@media (min-width: 901px) {
  .player-card { animation: fadeUp 0.5s ease 0.2s both; }
}

/* ── CAROUSEL MOBILE ── */
@media (max-width:768px){
  .ad-carousel-slide img,.ad-carousel-slide > div > img{height:auto!important;object-fit:contain!important;}
  .ad-carousel-slide.pos-center{width:65%;max-width:320px;min-width:180px;}
  .ad-carousel-scene{min-height:140px;}
}
/* ── AD LIGHTBOX — VENTANA FLOTANTE ── */
#adLightbox{display:none;position:fixed;inset:0;z-index:9100;
  background:rgba(0,0,0,.5);backdrop-filter:blur(4px);
  align-items:center;justify-content:center;padding:3vh 3vw;}
#adLightbox.open{display:flex;}
.adlb-card{width:92%;max-width:500px;max-height:92vh;background:var(--bg2);
  border:1px solid var(--border2);border-radius:16px;overflow:hidden;
  display:flex;flex-direction:column;box-shadow:0 16px 50px rgba(0,0,0,.5);
  animation:slideUpModal .3s cubic-bezier(.22,1,.36,1);}
.adlb-hdr{display:flex;align-items:center;justify-content:space-between;
  padding:10px 14px;border-bottom:1px solid var(--border);background:var(--bg3);
  flex-shrink:0;font-family:var(--font-head);font-size:13px;font-weight:700;color:var(--muted);}
.adlb-hdr i{margin-right:6px;}
.adlb-x{width:34px;height:34px;border-radius:50%;background:var(--surface);
  border:1px solid var(--border);color:var(--muted);font-size:16px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;}
.adlb-x:hover{background:var(--red);color:#fff;}
.adlb-img{flex:1;overflow:auto;display:flex;align-items:center;justify-content:center;
  padding:12px;background:rgba(0,0,0,.15);min-height:0;}
.adlb-img img{max-width:100%;max-height:65vh;border-radius:8px;object-fit:contain;display:block;}
.adlb-acts{display:flex;gap:10px;justify-content:center;padding:12px 14px;
  border-top:1px solid var(--border);background:var(--bg3);flex-shrink:0;}
.ad-lb-btn{display:flex;align-items:center;gap:8px;padding:10px 22px;border-radius:8px;
  font-size:14px;font-weight:700;font-family:var(--font-head);cursor:pointer;border:none;
  transition:all .15s;text-decoration:none;}
.ad-lb-close{background:rgba(255,255,255,.12);color:#fff;}
.ad-lb-close:hover{background:rgba(255,255,255,.22);}
.ad-lb-dl{background:var(--red);color:#fff;}
.ad-lb-dl:hover{background:var(--red2);}
/* ── CHAT LIGHTBOX ── */
#chatImgLightbox{position:fixed;inset:0;z-index:9000;background:rgba(0,0,0,.96);
  display:none;align-items:center;justify-content:center;flex-direction:column;
  gap:14px;backdrop-filter:blur(14px);padding:20px;}
#chatImgLightbox.open{display:flex;}
#chatImgLightbox img{max-width:92vw;max-height:74vh;border-radius:8px;object-fit:contain;
  user-select:none;-webkit-user-drag:none;}
.chat-lb-hint{font-size:12px;color:rgba(255,255,255,.4);font-family:var(--font-mono);text-align:center;}
.chat-lb-row{display:flex;gap:10px;}
.chat-lb-btn{display:flex;align-items:center;gap:8px;padding:9px 20px;border-radius:8px;
  font-size:14px;font-weight:700;font-family:var(--font-head);cursor:pointer;border:none;
  transition:all .15s;text-decoration:none;}
.chat-lb-close{background:rgba(255,255,255,.12);color:#fff;}
.chat-lb-close:hover{background:rgba(255,255,255,.22);}
.chat-lb-dl{background:var(--chat-green);color:#fff;}
/* ── MOBILE NAV ── */
@media(max-width:600px){
  .topnav{padding:0 10px;height:52px;gap:6px;}
  .nav-logo{flex:1;min-width:0;overflow:hidden;}
  .nav-logo-text{font-size:14px;}
  .nav-logo-text span{display:none;}
  .live-badge{font-size:10px;padding:4px 8px;}
}
/* ── MOBILE FOOTER ── */
@media(max-width:600px){
  .footer-grid{grid-template-columns:1fr 1fr!important;gap:18px;padding:24px 14px!important;}
  .footer-grid>div:first-child{grid-column:1/-1;}
  .footer-brand-desc{font-size:12px;line-height:1.5;margin-bottom:10px;}
  .footer-social{gap:6px;flex-wrap:wrap;}
  .footer-social a{width:36px;height:36px;font-size:14px;}
  .footer-col-title{font-size:10px;margin-bottom:8px;}
  .footer-links a{font-size:12px;min-height:32px;display:flex;align-items:center;}
  .footer-bottom{flex-direction:column;text-align:center;gap:4px;font-size:11px;padding:10px 14px;}
}

/* ── IMPROVED MOBILE FOOTER ── */
@media(max-width:600px){
  .footer-grid{
    grid-template-columns:1fr 1fr!important;
    gap:14px!important;
    padding:20px 14px!important;
  }
  .footer-grid>div:first-child{grid-column:1/-1}
  .footer-brand-name{font-size:20px;margin-bottom:6px}
  .footer-brand-desc{font-size:11px;line-height:1.4;margin-bottom:8px;max-width:none}
  .footer-social{gap:5px}
  .footer-social a{width:32px;height:32px;font-size:13px;border-radius:6px}
  .footer-col-title{font-size:9px;margin-bottom:6px}
  .footer-links{gap:4px}
  .footer-links a{font-size:12px;min-height:28px;display:flex;align-items:center}
  .footer-bottom{padding:10px 14px;font-size:10px;gap:4px}
}

/* ── CURRENT SHOW HIGHLIGHT ── */
.schedule-show.show-on-air {
  background: rgba(232,39,61,0.12) !important;
  border-left: 3px solid var(--red) !important;
  position: relative;
}
.schedule-show.show-on-air .schedule-name {
  font-weight: 700;
  color: var(--red2);
}
.schedule-show.show-on-air .schedule-time {
  color: var(--red);
  font-weight: 700;
}
.schedule-show.show-on-air::after {
  content: '● AL AIRE';
  display: inline-block;
  font-size: 8px;
  font-family: var(--font-mono);
  background: var(--red);
  color: white;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  letter-spacing: .06em;
  vertical-align: middle;
  animation: livePulse 2s infinite;
}


/* ============================================================
   MOBILE KEYBOARD FIX — el chat se ajusta al viewport visible
   Usa visualViewport API + CSS variables dinámicas
   ============================================================ */

/* Float chat — se adapta al viewport visible cuando hay teclado */
body.keyboard-open #floatChat {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  height: var(--vp-height, 100dvh) !important;
  max-height: var(--vp-height, 100dvh) !important;
  transform: translateY(0) !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 9999 !important;
  overflow: hidden !important;
}
body.keyboard-open #floatChatMessages {
  flex: 1 !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
}
body.keyboard-open #floatChatInputArea {
  flex-shrink: 0 !important;
  padding-bottom: 4px !important;
  background: var(--bg3) !important;
}

/* Chat modal — se ajusta al viewport visible */
body.keyboard-open #chatModal {
  align-items: flex-start !important;
  padding: 0 !important;
}
body.keyboard-open .chat-modal-card {
  height: var(--vp-height, 100vh) !important;
  max-height: var(--vp-height, 100vh) !important;
  border-radius: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
body.keyboard-open #chatModalMessages {
  flex: 1 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}
body.keyboard-open #chatModalInputArea {
  flex-shrink: 0 !important;
  background: var(--bg3) !important;
}

/* Chat inline (sección live) */
body.keyboard-open .chat-box {
  max-height: calc(var(--vp-height, 60vh) - 60px) !important;
}
body.keyboard-open .chat-messages {
  flex: 1 !important;
  min-height: 0 !important;
}

/* Ocultar elementos fijos para ganar espacio */
body.keyboard-open #mobileStickyPlayer {
  display: none !important;
}
body.keyboard-open .topnav {
  position: relative !important;
}
body.keyboard-open .promo-bar-sticky-wrap {
  display: none !important;
}

/* El input de chat siempre visible sobre el teclado */
body.keyboard-open .chat-input-wrap,
body.keyboard-open .chat-input {
  font-size: 16px !important; /* Previene zoom en iOS */
}

/* ============================================================
   ULTRA-COMPACT MOBILE FOOTER
   ============================================================ */
@media (max-width:600px) {
  #siteFooter {
    margin-top: 24px !important;
  }
  #siteFooter .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 16px 12px !important;
  }
  #siteFooter .footer-grid > div:first-child {
    grid-column: 1/-1;
    text-align: center;
  }
  #siteFooter .footer-brand-name { font-size: 17px; margin-bottom: 4px; }
  #siteFooter .footer-brand-desc { font-size: 10px; line-height: 1.3; margin-bottom: 6px; max-width: none; }
  #siteFooter .footer-social { justify-content: center; gap: 4px; }
  #siteFooter .footer-social a { width: 28px; height: 28px; font-size: 12px; border-radius: 5px; }
  #siteFooter .footer-col-title { font-size: 8px; margin-bottom: 4px; }
  #siteFooter .footer-links { gap: 2px; }
  #siteFooter .footer-links a { font-size: 11px; min-height: 24px; padding: 2px 0; }
  #siteFooter .footer-bottom { padding: 8px 12px; font-size: 9px; gap: 2px; }
}

/* ============================================================
   CONTACT MODAL
   ============================================================ */
#contactModal {
  display: none; position: fixed; inset: 0; z-index: 650;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(12px);
  align-items: center; justify-content: center; padding: 20px;
}
#contactModal.open { display: flex; }
.contact-modal-card {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 20px; padding: 32px 28px; max-width: 360px;
  width: 100%; text-align: center; position: relative;
  animation: slideUpModal .3s cubic-bezier(.22,1,.36,1);
}
.contact-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 18px; border-radius: 12px; font-size: 15px;
  font-weight: 600; font-family: var(--font-head); cursor: pointer;
  transition: all 0.15s; text-decoration: none; margin-bottom: 10px;
  border: 1px solid var(--border);
}
.contact-btn:hover { transform: translateY(-2px); }
.contact-btn.fb { background: rgba(24,119,242,0.12); color: #4a90d9; border-color: rgba(24,119,242,0.3); }
.contact-btn.fb:hover { background: rgba(24,119,242,0.2); }
.contact-btn.ig { background: rgba(225,48,108,0.12); color: #e1306c; border-color: rgba(225,48,108,0.3); }
.contact-btn.ig:hover { background: rgba(225,48,108,0.2); }
.contact-btn.wa { background: rgba(37,211,102,0.12); color: #25d366; border-color: rgba(37,211,102,0.3); }
.contact-btn.wa:hover { background: rgba(37,211,102,0.2); }
.contact-btn i { font-size: 20px; width: 24px; text-align: center; }

/* ============================================================
   FULLSCREEN VIDEO — mobile fix
   ============================================================ */
#floatVideo video,
#floatHlsVideo {
  -webkit-playsinline: true;
}
#floatVideo:-webkit-full-screen,
#floatVideo:fullscreen {
  width: 100vw !important; height: 100vh !important;
  max-height: none !important; border-radius: 0 !important;
}
#floatVideo:-webkit-full-screen video,
#floatVideo:fullscreen video {
  width: 100% !important; height: 100% !important;
  object-fit: contain !important;
}
/* Landscape orientation hint */
@media screen and (orientation: landscape) {
  #floatVideo:-webkit-full-screen,
  #floatVideo:fullscreen {
    border-radius: 0 !important;
  }
}

/* ============================================================
   CUSTOM DYNAMIC SECTIONS
   ============================================================ */
.custom-section {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.custom-section .section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
}
@media(max-width:600px){
  .custom-section .section-inner { padding: 32px 14px; }
}

/* ── CAROUSEL IMAGE ── */
.cs-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r2);
}
.cs-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.cs-carousel-slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}
.cs-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-carousel-slide .cs-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.75));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.cs-carousel-slide .cs-slide-title {
  font-family: var(--font-head);
  font-size: clamp(18px, 4vw, 32px);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 6px;
}
.cs-carousel-slide .cs-slide-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}
.cs-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background 0.15s;
}
.cs-carousel-nav:hover { background: rgba(0,0,0,0.7); }
.cs-carousel-nav.prev { left: 10px; }
.cs-carousel-nav.next { right: 10px; }
.cs-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
}
.cs-carousel-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border2);
  cursor: pointer;
  transition: all 0.2s;
  border: none; padding: 0;
}
.cs-carousel-dots .dot.active {
  background: var(--red);
  width: 20px;
  border-radius: 4px;
}

/* Animations */
.cs-anim-fade .cs-carousel-track { transition: none; }
.cs-anim-fade .cs-carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.cs-anim-fade .cs-carousel-slide.active { position: relative; opacity: 1; }
.cs-anim-zoom .cs-carousel-slide img { transition: transform 6s ease; }
.cs-anim-zoom .cs-carousel-slide.active img { transform: scale(1.08); }

/* ── GALLERY ── */
.cs-gallery {
  display: grid;
  gap: 8px;
}
.cs-gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cs-gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cs-gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media(max-width:600px) {
  .cs-gallery.cols-3, .cs-gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
.cs-gallery-item {
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1;
}
.cs-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.cs-gallery-item:hover img { transform: scale(1.06); }

/* ── BANNER ── */
.cs-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r2);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cs-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 32px 24px;
}
.cs-banner-title {
  font-family: var(--font-head);
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.cs-banner-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.cs-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 24px;
  background: var(--red);
  color: white;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-head);
  transition: all 0.2s;
  text-decoration: none;
}
.cs-banner-btn:hover { background: var(--red2); transform: translateY(-2px); }

/* Banner animations */
.cs-banner.anim-pulse img { animation: csBannerPulse 4s ease-in-out infinite; }
@keyframes csBannerPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04)} }
.cs-banner.anim-slide img { animation: csBannerSlide 15s linear infinite; }
@keyframes csBannerSlide { 0%{transform:translateX(0)} 50%{transform:translateX(-5%)} 100%{transform:translateX(0)} }

/* ── VIDEO BAR ── */
.cs-videobar {
  display: grid;
  gap: 16px;
}
.cs-videobar.cols-1 { grid-template-columns: 1fr; }
.cs-videobar.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cs-videobar.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media(max-width:600px) {
  .cs-videobar.cols-2, .cs-videobar.cols-3 { grid-template-columns: 1fr; }
}
.cs-video-item {
  border-radius: var(--r2);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.cs-video-item iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}
.cs-video-item .cs-video-info {
  padding: 12px 14px;
}
.cs-video-item .cs-video-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

/* ── TEXT + IMAGE ── */
.cs-textimg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.cs-textimg.reverse { direction: rtl; }
.cs-textimg.reverse > * { direction: ltr; }
@media(max-width:768px) {
  .cs-textimg { grid-template-columns: 1fr; gap: 20px; }
}
.cs-textimg-text h3 {
  font-family: var(--font-head);
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}
.cs-textimg-text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.cs-textimg-img {
  border-radius: var(--r2);
  overflow: hidden;
}
.cs-textimg-img img {
  width: 100%; display: block;
  border-radius: var(--r2);
}

/* ── SPONSORS / LOGOS ── */
.cs-sponsors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  align-items: center;
}
.cs-sponsor-item {
  height: 48px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s;
}
.cs-sponsor-item:hover {
  opacity: 1;
  filter: none;
}
.cs-sponsor-item img { height: 100%; width: auto; }

/* ── COUNTERS / STATS ── */
.cs-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
@media(max-width:600px) { .cs-counters { grid-template-columns: repeat(2, 1fr); } }
.cs-counter-item {
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
}
.cs-counter-num {
  font-family: var(--font-head);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  color: var(--red2);
  line-height: 1;
  margin-bottom: 6px;
}
.cs-counter-label {
  font-size: 13px;
  color: var(--muted);
}

/* ── CTA (Call to Action) ── */
.cs-cta {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, rgba(232,39,61,0.12), rgba(255,124,42,0.08));
  border: 1px solid rgba(232,39,61,0.2);
  border-radius: 20px;
}
.cs-cta h3 {
  font-family: var(--font-head);
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 900;
  margin-bottom: 10px;
}
.cs-cta p {
  font-size: 15px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 20px;
  line-height: 1.6;
}


/* ============================================================
   HIDE FOOTER ON MOBILE — show compact version only
   ============================================================ */
@media (max-width:768px) {
  .hide-mobile-footer .footer-grid {
    display: none !important;
  }
  .hide-mobile-footer .footer-bottom {
    padding: 12px 16px !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 4px !important;
    font-size: 10px !important;
  }
}

/* ============================================================
   VIDEO FULLSCREEN — better mobile support
   ============================================================ */
#floatVideo video,
#floatVideo iframe {
  -webkit-playsinline: true;
}
#floatVideo:-webkit-full-screen,
#floatVideo:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 99999 !important;
  background: #000 !important;
}
#floatVideo:-webkit-full-screen video,
#floatVideo:fullscreen video,
#floatVideo:-webkit-full-screen iframe,
#floatVideo:fullscreen iframe {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* Live section — cursor pointer on mobile */
@media (max-width:768px) {
  .live-player-wrap {
    cursor: pointer;
  }
  .live-player-wrap::after {
    content: 'Toca para ver en grande';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-family: var(--font-head);
    pointer-events: none;
    z-index: 3;
  }
}


/* ── HIDE ON MOBILE ── */
@media(max-width:768px){
  .hide-on-mobile,.footer-social{display:none!important;}
}

/* ── SOCIAL OVERLAY ── */
#socOv{display:none;position:fixed;inset:0;z-index:8000;
  background:rgba(0,0,0,.5);backdrop-filter:blur(4px);
  align-items:center;justify-content:center;padding:3vh 3vw;}
#socOv.open{display:flex;}
#socOvCard{width:92%;max-width:460px;max-height:90vh;
  background:var(--bg2);border:1px solid var(--border2);border-radius:18px;
  overflow:hidden;display:flex;flex-direction:column;
  box-shadow:0 16px 50px rgba(0,0,0,.5);animation:slideUpModal .3s cubic-bezier(.22,1,.36,1);}
.sov-hdr{display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;border-bottom:1px solid var(--border);background:var(--bg3);flex-shrink:0;}
.sov-hdr-l{display:flex;align-items:center;gap:10px;}
.sov-hdr-l i{font-size:22px;}
.sov-hdr-l span{font-family:var(--font-head);font-size:16px;font-weight:800;}
.sov-x{width:38px;height:38px;border-radius:50%;background:var(--surface);
  border:1px solid var(--border);color:var(--muted);font-size:18px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;}
.sov-x:hover{background:var(--red);color:#fff;}
.sov-body{flex:1;overflow:auto;padding:28px 20px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:14px;text-align:center;min-height:220px;}
.sov-foot{display:flex;padding:12px 16px;border-top:1px solid var(--border);background:var(--bg3);flex-shrink:0;}
.sov-back{display:flex;align-items:center;gap:8px;padding:12px 24px;width:100%;
  justify-content:center;border-radius:10px;background:var(--surface);border:1px solid var(--border);
  color:var(--text);font-family:var(--font-head);font-size:14px;font-weight:700;cursor:pointer;}
.sov-back:hover{background:var(--border);}
.sov-open{display:inline-flex;align-items:center;gap:10px;
  padding:16px 36px;border-radius:14px;color:#fff;border:none;
  font-family:var(--font-head);font-size:16px;font-weight:700;cursor:pointer;
  text-decoration:none;margin-top:4px;}
.sov-open:active{transform:scale(.97);}
.sov-open i{font-size:20px;}

/* ── FORCE CAROUSEL IMAGES FULL DISPLAY ── */
.ad-carousel-slide,
.ad-carousel-slide.pos-center,
.ad-carousel-slide.pos-side1,
.ad-carousel-slide.pos-side1-neg,
.ad-carousel-slide.pos-side2,
.ad-carousel-slide.pos-side2-neg {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}
.ad-carousel-slide img {
  width: 100% !important;
  height: auto !important;
  max-height: 400px;
  object-fit: contain !important;
  aspect-ratio: unset !important;
}
.ad-carousel-slide > div {
  width: 100% !important;
  overflow: visible !important;
}
.ad-carousel-slide > div > img {
  width: 100% !important;
  height: auto !important;
  max-height: 400px;
  object-fit: contain !important;
  aspect-ratio: unset !important;
}
@media (max-width:768px) {
  .ad-carousel-slide img,
  .ad-carousel-slide > div > img {
    max-height: 300px;
  }
}
