/* ==========================================================
   Jovem Pan FM Vale Taquari 91,1
   Cores oficiais (Manual Afiliadas 2026): #DD0510 / #000 / #FFF
   ========================================================== */
:root {
  --red: #dd0510;
  --red-hot: #ff2a33;
  --red-deep: #8e0309;
  --black: #000;
  --ink: #070707;
  --ink-2: #111;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.1);
  --f-sans: "Gotham", "Montserrat", system-ui, sans-serif;
  --f-cond: "Barlow Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --level: 0; /* 0..1 — nível de áudio, atualizado via JS */
  --gutter: clamp(16px, 4vw, 56px);
}

@property --fill { syntax: "<percentage>"; inherits: true; initial-value: 0%; }

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

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
em { font-style: normal; color: var(--red); }
::selection { background: var(--red); color: #fff; }

/* ---------- Fundo ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg__blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.55; mix-blend-mode: screen;
  will-change: transform;
}
.bg__blob--1 { width: 60vmax; height: 60vmax; background: radial-gradient(circle, var(--red) 0%, transparent 65%); top: -25vmax; right: -18vmax; animation: drift1 22s ease-in-out infinite; }
.bg__blob--2 { width: 45vmax; height: 45vmax; background: radial-gradient(circle, var(--red-deep) 0%, transparent 65%); bottom: -20vmax; left: -15vmax; animation: drift2 28s ease-in-out infinite; }
.bg__blob--3 { width: 30vmax; height: 30vmax; background: radial-gradient(circle, #ff3b2f 0%, transparent 60%); top: 40%; left: 45%; opacity: calc(0.15 + var(--level) * 0.5); animation: drift3 18s ease-in-out infinite; }
.bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
  opacity: 0.35;
}
.bg__grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.07; animation: grain 1.2s steps(6) infinite;
}
@keyframes drift1 { 50% { transform: translate(-8vw, 10vh) scale(1.1); } }
@keyframes drift2 { 50% { transform: translate(10vw, -8vh) scale(1.15); } }
@keyframes drift3 { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-30%, -70%) scale(1.3); } }
@keyframes grain { to { transform: translate(8%, -6%); } }

.cursor-glow {
  position: fixed; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(221, 5, 16, 0.18), transparent 60%);
  transform: translate3d(var(--mx, -999px), var(--my, -999px), 0);
  transition: opacity 0.4s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--red);
  display: grid; place-items: center;
  animation: introOut 0.9s var(--ease-out) 1.25s forwards;
}
.intro__sym { width: min(42vw, 260px); aspect-ratio: 390 / 208; color: #fff; animation: introSym 1.3s var(--ease-out) both; }
@keyframes introSym {
  0% { transform: scale(0.6); opacity: 0; filter: blur(12px); }
  45% { transform: scale(1); opacity: 1; filter: blur(0); }
  100% { transform: scale(1.06); }
}
@keyframes introOut { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.intro { clip-path: inset(0 0 0 0); }

/* ---------- Header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 16px var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}
.top.is-scrolled { background: rgba(7, 7, 7, 0.72); backdrop-filter: blur(14px); padding-block: 10px; border-bottom: 1px solid var(--line); }
.top__logo svg { display: block; width: 104px; aspect-ratio: 456 / 296; color: #fff; }
.top__nav { display: flex; gap: 28px; margin-left: auto; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.top__nav a { position: relative; opacity: 0.75; transition: opacity 0.2s; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease-out); }
.top__nav a:hover { opacity: 1; }
.top__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; background: var(--red);
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em;
}
.live-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: 120px var(--gutter) 160px;
  max-width: 1400px; margin: 0 auto;
}
.eyebrow {
  margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero__title {
  margin: 0; font-family: var(--f-cond); font-weight: 800;
  font-size: clamp(4.5rem, 13vw, 11.5rem); line-height: 0.84; letter-spacing: -0.01em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.hero__title .line:nth-child(2) > span { transition-delay: 0.1s; }
.is-ready .hero__title .line > span { transform: none; }

.dial { display: flex; align-items: flex-end; gap: 14px; margin-top: 18px; }
.dial__num {
  font-family: var(--f-cond); font-weight: 800; line-height: 0.8;
  font-size: clamp(4rem, 10vw, 8.5rem);
  color: transparent; -webkit-text-stroke: 2px var(--red);
  background: linear-gradient(90deg, var(--red) 0 var(--fill, 0%), transparent var(--fill, 0%));
  -webkit-background-clip: text; background-clip: text;
  transition: --fill 1s;
}
.dial__fm { font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 2.2rem); padding-bottom: 0.3em; letter-spacing: 0.02em; }

/* Deck (player) */
.deck { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.deck__stage {
  --size: min(78vw, 440px);
  position: relative; width: var(--size); height: var(--size);
  display: grid; place-items: center;
}
.rings, .rings span { position: absolute; inset: 0; border-radius: 50%; }
.rings span {
  border: 1px solid rgba(221, 5, 16, 0.5);
  animation: ring 3.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; opacity: 0;
  animation-play-state: paused;
}
.rings span:nth-child(2) { animation-delay: 1.2s; }
.rings span:nth-child(3) { animation-delay: 2.4s; }
.is-playing .rings span { animation-play-state: running; }
@keyframes ring { 0% { transform: scale(0.45); opacity: 0.9; } 100% { transform: scale(1.15); opacity: 0; } }

.orbit { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite; }
.orbit text { font-family: var(--f-sans); font-weight: 700; font-size: 11.5px; letter-spacing: 0.32em; fill: rgba(255, 255, 255, 0.55); }
.is-playing .orbit { animation-duration: 14s; }
@keyframes spin { to { transform: rotate(360deg); } }

.radial { position: absolute; inset: 0; width: 100%; height: 100%; }

.play {
  position: relative; z-index: 2;
  width: 48%; aspect-ratio: 1; border-radius: 50%; border: 0;
  background: radial-gradient(circle at 30% 25%, var(--red-hot), var(--red) 45%, var(--red-deep) 100%);
  box-shadow: 0 0 0 10px rgba(221, 5, 16, 0.12), 0 30px 80px -10px rgba(221, 5, 16, 0.65), inset 0 2px 0 rgba(255, 255, 255, 0.25);
  display: grid; place-items: center; overflow: hidden;
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(calc(1 + var(--level) * 0.06));
  transition: box-shadow 0.4s;
}
.play:hover { box-shadow: 0 0 0 16px rgba(221, 5, 16, 0.16), 0 30px 90px -6px rgba(221, 5, 16, 0.85), inset 0 2px 0 rgba(255, 255, 255, 0.25); }
.play:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
.play__sym { position: absolute; width: 130%; aspect-ratio: 390 / 208; color: #fff; opacity: 0.1; transform: rotate(-12deg); transition: transform 0.8s var(--ease-out); }
.play:hover .play__sym { transform: rotate(-4deg) scale(1.05); }
.play__icon { position: relative; width: 34%; aspect-ratio: 1; display: grid; place-items: center; }
.play__icon svg { position: absolute; width: 100%; height: 100%; fill: #fff; transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.i-pause, .is-playing .i-play { opacity: 0; transform: scale(0.5) rotate(-30deg); }
.is-playing .i-pause { opacity: 1; transform: none; }
.i-load { position: absolute; inset: -18%; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; opacity: 0; }
.is-loading .i-load { opacity: 1; animation: spin 0.8s linear infinite; }
.is-loading .i-play { opacity: 0.4; }

/* Now playing */
.now {
  display: flex; align-items: center; gap: 16px; width: min(100%, 440px);
  padding: 14px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); backdrop-filter: blur(10px);
}
.now__text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.now__label { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }
.now__title { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now__sub { font-size: 13px; color: var(--muted); }
.now__eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; flex: none; width: 26px; }
.now__eq i { flex: 1; height: 20%; background: var(--red); border-radius: 2px; transition: height 0.3s; }
.is-playing .now__eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.is-playing .now__eq i:nth-child(2) { animation-delay: -0.3s; animation-duration: 0.7s; }
.is-playing .now__eq i:nth-child(3) { animation-delay: -0.6s; animation-duration: 1.1s; }
.is-playing .now__eq i:nth-child(4) { animation-delay: -0.15s; animation-duration: 0.8s; }
@keyframes eq { 0% { height: 15%; } 100% { height: 100%; } }

.controls { display: flex; align-items: center; gap: 14px; width: min(100%, 440px); }
.icon-btn {
  width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04); display: grid; place-items: center; transition: background 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: rgba(221, 5, 16, 0.2); border-color: var(--red); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn .i-mute { display: none; }
.is-muted .icon-btn .i-mute { display: block; }
.is-muted .icon-btn .i-vol { display: none; }
.volume {
  flex: 1; height: 4px; -webkit-appearance: none; appearance: none; border-radius: 4px; cursor: pointer;
  background: linear-gradient(90deg, var(--red) 0 var(--v, 80%), rgba(255, 255, 255, 0.15) var(--v, 80%));
}
.volume::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(221, 5, 16, 0.4); }
.volume::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(221, 5, 16, 0.4); }

.wave { position: absolute; left: 0; right: 0; bottom: 40px; width: 100%; height: 140px; pointer-events: none; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; margin-left: -12px; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollHint 1.8s ease-in-out infinite; }
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--red); transform: rotate(-2deg) scale(1.04); margin: 40px 0 0; padding: 18px 0; box-shadow: 0 20px 60px -20px rgba(221, 5, 16, 0.7); }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 30s linear infinite; }
.marquee span { font-family: var(--f-cond); font-weight: 800; font-size: clamp(1.8rem, 4vw, 3rem); text-transform: uppercase; white-space: nowrap; line-height: 1; }
.marquee svg { width: 64px; aspect-ratio: 390 / 208; color: var(--ink); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { max-width: 1400px; margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter) 0; }
.section__head { margin-bottom: 48px; }
.section__head h2, .cta h2 {
  margin: 0; font-family: var(--f-cond); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem); line-height: 0.9;
}

/* Programação */
.schedule { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: s; }
.slot {
  position: relative; display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 24px;
  padding: 28px 8px; border-bottom: 1px solid var(--line); overflow: hidden;
  transition: padding 0.5s var(--ease-out);
}
.slot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease-out);
}
.slot:hover { padding-left: 24px; }
.slot:hover::before { transform: scaleY(1); }
.slot__time { font-family: var(--f-cond); font-weight: 700; font-size: 26px; color: var(--muted); transition: color 0.3s; }
.slot:hover .slot__time { color: #fff; }
.slot__name { font-weight: 800; font-size: clamp(1.15rem, 2.2vw, 1.7rem); }
.slot__desc { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--muted); }
.slot:hover .slot__desc { color: rgba(255, 255, 255, 0.85); }
.slot__tag { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.slot.is-live .slot__tag { background: #fff; color: var(--red); border-color: #fff; }
.slot.is-live .slot__time { color: var(--red); }
.slot.is-live:hover .slot__time { color: #fff; }

/* Plataformas */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard {
  position: relative; padding: 32px 26px 30px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line); overflow: hidden;
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.3s ease-out, border-color 0.3s;
}
.pcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--px, 50%) var(--py, 50%), rgba(221, 5, 16, 0.28), transparent 45%);
  opacity: 0; transition: opacity 0.3s;
}
.pcard:hover { border-color: rgba(221, 5, 16, 0.6); }
.pcard:hover::after { opacity: 1; }
.pcard svg { width: 52px; height: 52px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 28px; }
.pcard svg :is(circle:last-child, path:last-child) { stroke: var(--red); }
.pcard h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.pcard p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.pcard strong { color: #fff; }

/* CTA */
.cta {
  position: relative; max-width: 1400px; margin: clamp(80px, 12vw, 160px) auto 0; padding: clamp(60px, 9vw, 120px) var(--gutter);
  text-align: center; overflow: hidden; isolation: isolate;
}
.cta__sym { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(120vw, 1100px); aspect-ratio: 390 / 208; color: var(--red); opacity: 0.12; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); }
.cta h2 { font-size: clamp(3rem, 9vw, 8rem); margin-bottom: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; border: 0; border-radius: 999px;
  padding: 20px 36px; background: #fff; color: var(--ink); font-weight: 800; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s;
}
.btn:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.btn__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: blink 1.4s infinite; }
.btn:hover .btn__dot { background: #fff; }

/* Footer */
.foot { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 80px var(--gutter) 120px; border-top: 1px solid var(--line); margin-top: 80px; }
.foot__logo { width: 180px; aspect-ratio: 456 / 296; color: #fff; }
.foot__social { display: flex; gap: 12px; }
.foot__social a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background 0.25s, transform 0.25s var(--ease-out), border-color 0.25s; }
.foot__social a:hover { background: var(--red); border-color: var(--red); transform: translateY(-4px); }
.foot__social svg { width: 20px; height: 20px; }
.foot__copy { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }

/* Mini player */
.mini {
  position: fixed; z-index: 60; left: 50%; bottom: 18px;
  display: flex; align-items: center; gap: 14px; padding: 8px 20px 8px 8px; border-radius: 999px;
  background: rgba(17, 17, 17, 0.85); border: 1px solid var(--line); backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
  transform: translate(-50%, 140%); transition: transform 0.6s var(--ease-out);
}
.mini.is-visible { transform: translate(-50%, 0); }
.mini__btn { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--red); position: relative; }
.mini__btn svg { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px; fill: #fff; transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.mini__text { display: flex; flex-direction: column; font-size: 13px; line-height: 1.25; }
.mini__text span { color: var(--muted); font-size: 12px; }
.mini__eq { width: 22px; height: 20px; }

/* Toast */
.toast {
  position: fixed; z-index: 90; left: 50%; top: 84px; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500;
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none; transition: 0.4s var(--ease-out);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* Reveal ao rolar */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .platforms { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .top__nav { display: none; }
  .live-pill { margin-left: auto; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 104px; gap: 40px; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .eyebrow { justify-content: center; }
  .hero__title { font-size: clamp(4rem, 20vw, 7rem); }
  .dial { justify-content: center; }
  .slot { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 22px 4px; }
  .slot__time { grid-column: 1 / -1; font-size: 20px; }
}
@media (max-width: 520px) {
  .platforms { grid-template-columns: 1fr; }
  .top__logo svg { width: 84px; }
  .slot__tag { padding: 5px 9px; font-size: 10px; }
  .marquee svg { width: 44px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: 0.14em; }
  .hero .eyebrow::before { display: none; }
  .deck__stage { --size: min(84vw, 340px); }
}
.mini__text { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .intro { display: none; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
}
