/* ============================================================
   RÁDIO GOSPEL — TEMA EVANGÉLICO MODERNO
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #7c3aed;
  --secondary: #f59e0b;
  --bg-dark: #0d0520;
  --bg-mid: #1a0840;
  --bg-card: rgba(255,255,255,0.06);
  --gold: #f59e0b;
  --gold-light: #fde68a;
  --white: #ffffff;
  --text-muted: rgba(255,255,255,0.6);
  --border: rgba(255,255,255,0.1);
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --glow-primary: 0 0 40px rgba(124,58,237,0.5);
  --glow-gold: 0 0 30px rgba(245,158,11,0.4);
  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(245,158,11,0.15) 0%, transparent 60%),
    linear-gradient(180deg, #0d0520 0%, #1a0840 50%, #0a0318 100%);
}
.bg-rays {
  position: absolute; inset: 0;
  background-image: repeating-conic-gradient(from 0deg at 50% 20%, rgba(245,158,11,0.03) 0deg 2deg, transparent 2deg 15deg);
}
.particles { position: absolute; inset: 0; }

.site-wrapper { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 0 16px 80px; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,5,32,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245,158,11,0.2);
  padding: 12px 0;
}
.header-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 0 16px; flex-wrap: wrap; }
.logo-img { height: 56px; width: auto; max-width: 140px; object-fit: contain; border-radius: 8px; filter: drop-shadow(0 0 12px rgba(245,158,11,0.4)); }
.header-onair { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.onair-badge { display: flex; align-items: center; gap: 6px; background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.4); border-radius: 20px; padding: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #f87171; white-space: nowrap; flex-shrink: 0; }
.onair-dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: pulse-dot 1.5s ease-in-out infinite; box-shadow: 0 0 8px #ef4444; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }
.onair-info strong { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onair-info small { display: block; font-size: 11px; color: var(--text-muted); }
.header-social { margin-left: auto; flex-shrink: 0; }
.social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: var(--white); text-decoration: none; font-size: 14px; transition: all 0.2s; }
.social-links a:hover { background: var(--secondary); border-color: var(--secondary); color: #1a0840; transform: translateY(-2px); box-shadow: var(--glow-gold); }

/* HERO */
.hero-section { padding: 48px 0 32px; }
.hero-content { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; }
.verse-ref { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.hero-verse p { font-family: var(--font-display); font-size: clamp(13px, 2vw, 16px); color: rgba(255,255,255,0.75); line-height: 1.6; font-style: italic; }
.hero-logo-wrap { position: relative; display: flex; justify-content: center; }
.logo-halo { position: absolute; inset: -20px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,0.2) 0%, transparent 70%); animation: halo-pulse 3s ease-in-out infinite; }
@keyframes halo-pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.1);opacity:0.6} }
.logo-locutor-card { position: relative; width: 180px; height: 180px; border-radius: 50%; background: linear-gradient(135deg, rgba(124,58,237,0.4), rgba(245,158,11,0.3)); border: 3px solid rgba(245,158,11,0.5); overflow: hidden; box-shadow: 0 0 0 6px rgba(245,158,11,0.1), var(--shadow); display: flex; align-items: center; justify-content: center; }
.locutor-glow { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 60%); }
.locutor-foto { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hero-prize { text-align: center; }
.prize-icon { font-size: 40px; margin-bottom: 8px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.hero-prize h3 { font-family: var(--font-display); font-size: 13px; letter-spacing: 2px; color: var(--gold); margin-bottom: 8px; }
.hero-prize p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.4; }
.btn-share { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--secondary), #d97706); color: #1a0840; border: none; cursor: pointer; padding: 10px 20px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: 1px; transition: all 0.2s; box-shadow: var(--glow-gold); font-family: var(--font-body); }
.btn-share:hover { transform: translateY(-2px) scale(1.03); }

/* PLAYER */
.player-section { padding: 24px 0; }
.player-card { background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid rgba(245,158,11,0.25); border-radius: var(--radius); padding: 20px 24px; display: flex; align-items: center; gap: 16px; position: relative; overflow: hidden; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08); }
.player-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(124,58,237,0.08) 0%, transparent 50%, rgba(245,158,11,0.08) 100%); pointer-events: none; }
.player-cross { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 64px; color: rgba(245,158,11,0.05); font-family: var(--font-display); pointer-events: none; user-select: none; }
.play-btn { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #5b21b6); border: 2px solid rgba(245,158,11,0.4); color: var(--white); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; box-shadow: 0 4px 20px rgba(124,58,237,0.5); position: relative; z-index: 1; }
.play-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(124,58,237,0.7); }
body.playing .play-btn { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 4px 20px rgba(239,68,68,0.5); }
.player-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.player-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; }
.player-info strong { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 4px 0 2px; }
.player-info small { display: block; font-size: 12px; color: var(--text-muted); }
.player-eq { display: flex; gap: 3px; align-items: flex-end; height: 24px; }
.player-eq i { display: block; width: 4px; border-radius: 2px; background: linear-gradient(to top, var(--secondary), var(--primary)); height: 8px; opacity: 0.4; }
body.playing .player-eq i { opacity: 1; animation: eq-bar 0.6s ease-in-out infinite alternate; }
.player-eq i:nth-child(1) { animation-delay: 0s; --h: 0.6; }
.player-eq i:nth-child(2) { animation-delay: 0.1s; --h: 1.0; }
.player-eq i:nth-child(3) { animation-delay: 0.2s; --h: 0.7; }
.player-eq i:nth-child(4) { animation-delay: 0.15s; --h: 0.9; }
.player-eq i:nth-child(5) { animation-delay: 0.05s; --h: 0.5; }
.player-eq i:nth-child(6) { animation-delay: 0.25s; --h: 0.8; }
@keyframes eq-bar { 0%{height:4px} 100%{height:calc(6px + 14px * var(--h,1))} }
.vol-ctrl { display: flex; align-items: center; gap: 8px; font-size: 16px; flex-shrink: 0; position: relative; z-index: 1; }
.vol-ctrl input[type=range] { width: 80px; accent-color: var(--secondary); cursor: pointer; }
.qual-badge { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.4); color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 3px 8px; border-radius: 4px; flex-shrink: 0; position: relative; z-index: 1; }
.action-btns { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.action-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 20px; color: var(--white); cursor: pointer; font-family: var(--font-body); transition: all 0.2s; flex: 1; max-width: 120px; }
.action-btn span { font-size: 22px; }
.action-btn small { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--text-muted); }
.action-btn:hover { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.4); transform: translateY(-2px); }

/* WEBTV */
.webtv-section { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.9); backdrop-filter: blur(8px); align-items: center; justify-content: center; }
.webtv-section.show { display: flex; }
.webtv-inner { position: relative; width: 90%; max-width: 900px; background: var(--bg-mid); border-radius: var(--radius); border: 1px solid rgba(245,158,11,0.3); overflow: hidden; }
.webtv-close { position: absolute; top: 12px; right: 12px; z-index: 10; background: rgba(255,255,255,0.1); border: none; color: var(--white); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: background 0.2s; }
.webtv-close:hover { background: rgba(239,68,68,0.5); }
#webtvContent { padding: 16px; }
#webtvContent iframe { width: 100%; min-height: 400px; border: none; border-radius: 8px; }

/* BANNERS */
.banners-section { padding: 24px 0; overflow: hidden; }
.banner-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: rgba(245,158,11,0.3) transparent; }
.banner-track img { height: 100px; width: auto; min-width: 200px; border-radius: var(--radius-sm); scroll-snap-align: start; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); transition: transform 0.2s; }
.banner-track img:hover { transform: scale(1.02); }

/* FOOTER */
.site-footer { text-align: center; padding: 40px 16px 16px; border-top: 1px solid var(--border); }
.footer-cross { font-size: 32px; color: rgba(245,158,11,0.4); margin-bottom: 12px; }
.footer-verse { font-family: var(--font-display); font-size: 14px; font-style: italic; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }

/* WHATSAPP */
.wa-float { display: none; position: fixed; bottom: 24px; right: 24px; z-index: 300; align-items: center; gap: 10px; background: #25d366; color: #fff; text-decoration: none; border-radius: 50px; padding: 12px 20px 12px 14px; box-shadow: 0 4px 20px rgba(37,211,102,0.4); font-size: 14px; font-weight: 600; transition: all 0.3s; }
.wa-float.show { display: flex; }
.wa-float:hover { transform: scale(1.05); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
.wa-pulse { position: absolute; inset: -4px; border-radius: 50px; border: 2px solid rgba(37,211,102,0.5); animation: wa-pulse 2s ease-in-out infinite; }
@keyframes wa-pulse { 0%,100%{transform:scale(1);opacity:0.5} 50%{transform:scale(1.08);opacity:0} }
.wa-icon { font-size: 20px; }
.wa-float em { font-style: normal; }

/* RESPONSIVE */
@media (max-width: 700px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-logo-wrap { order: -1; }
  .logo-locutor-card { width: 140px; height: 140px; }
  .header-inner { flex-wrap: wrap; justify-content: space-between; }
  .header-social { order: 3; width: 100%; }
  .social-links { justify-content: center; }
  .player-card { flex-wrap: wrap; }
  .vol-ctrl input[type=range] { width: 60px; }
  .action-btn { padding: 10px 12px; }
  .wa-float em { display: none; }
  .wa-float { padding: 12px; border-radius: 50%; }
}
@media (max-width: 480px) {
  .site-wrapper { padding: 0 12px 80px; }
  .player-card { padding: 16px; }
  .logo-img { height: 44px; }
}

.star { position: absolute; border-radius: 50%; background: var(--gold-light); animation: twinkle var(--d, 3s) ease-in-out infinite; opacity: 0; }
@keyframes twinkle { 0%,100%{opacity:0;transform:scale(0.8)} 50%{opacity:var(--op,0.5);transform:scale(1)} }
