/* ==========================================================
   Radio Web - site publico
   Cores dinamicas: --accent / --c1 / --c2 sao definidas pelo JS
   a partir da capa que esta tocando.
   ========================================================== */
@property --accent { syntax: '<color>'; inherits: true; initial-value: #7c5cff; }
@property --c1 { syntax: '<color>'; inherits: true; initial-value: #3b2a8f; }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: #1b6fa8; }

:root {
  --accent: #7c5cff;
  --c1: #3b2a8f;
  --c2: #1b6fa8;
  --on-accent: #fff;
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);

  --bg: #050507;
  --text: #f5f5f7;
  --muted: #9a9aab;
  --surface: #0d0d12;
  --surface-2: #14141b;
  --border: rgba(255, 255, 255, .09);
  --grid: rgba(255, 255, 255, .035);
  --ambient-op: .5;
  transition: --accent 1.4s ease, --c1 1.4s ease, --c2 1.4s ease;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f4f8; --text: #14141c; --muted: #62627a;
  --surface: #ffffff; --surface-2: #f0f0f6; --border: rgba(20, 20, 40, .1);
  --grid: rgba(20, 20, 40, .045); --ambient-op: .3;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f4f4f8; --text: #14141c; --muted: #62627a;
    --surface: #ffffff; --surface-2: #f0f0f6; --border: rgba(20, 20, 40, .1);
    --grid: rgba(20, 20, 40, .045); --ambient-op: .3; color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); color: var(--text);
  background: var(--bg); line-height: 1.55; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Fundo ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.ambient::before {
  content: ''; position: absolute; inset: -20%;
  background:
    radial-gradient(50% 40% at 12% 0%, color-mix(in srgb, var(--c1) 65%, transparent), transparent 70%),
    radial-gradient(45% 40% at 95% 10%, color-mix(in srgb, var(--c2) 50%, transparent), transparent 70%);
  opacity: var(--ambient-op);
}
.ambient-img {
  position: absolute; inset: -12%; background-size: cover; background-position: center;
  filter: blur(100px) saturate(1.4); opacity: 0; transition: opacity 1.4s ease; transform: scale(1.1);
}
.ambient-img.on { opacity: calc(var(--ambient-op) * .55); }
.ambient-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.ambient-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--bg) 95%); }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px;
  padding: 10px clamp(16px, 4vw, 40px); padding-top: calc(10px + env(safe-area-inset-top));
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  background: color-mix(in srgb, var(--bg) 62%, transparent); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; flex: none; }
.brand-logo { height: 42px; width: auto; max-width: 150px; object-fit: contain; border-radius: 10px; }
.brand-text { display: grid; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small:empty { display: none; }
.brand-text small { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cta {
  display: inline-flex; align-items: center; gap: 12px; min-width: 0; padding: 9px 16px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border); text-decoration: none; font-size: .82rem; color: var(--text);
  transition: border-color .2s, transform .2s var(--ease);
}
.cta:hover { border-color: var(--accent); transform: translateY(-1px); }
.cta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cta em { font-style: normal; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); flex: none; }

.nav { margin-left: auto; display: flex; gap: 6px; }
.nav a { text-decoration: none; padding: 8px 12px; font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text); opacity: .8; transition: .2s; }
.nav a:hover { opacity: 1; color: var(--accent); }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface-2); transition: .2s; flex: none;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn.plain { border: 0; background: transparent; }

main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 60px; }

/* ---------- Hero / player ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: clamp(24px, 5vw, 72px);
  align-items: center; padding: clamp(36px, 7vw, 84px) 0 clamp(28px, 5vw, 56px);
}
.now { min-width: 0; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 22px; }
.live {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 6px;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: #16a34a; color: #fff;
}
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
.live.off { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.live.off .dot { animation: none; background: var(--muted); }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
.tag { font-size: .74rem; color: var(--muted); letter-spacing: .04em; }

.kicker { margin: 0 0 8px; font-size: .92rem; color: var(--muted); }
.track-title {
  margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: .95; letter-spacing: .01em; overflow-wrap: anywhere;
}
.track-artist { margin: 14px 0 0; font-size: clamp(1.15rem, 2.4vw, 1.7rem); font-weight: 400; color: color-mix(in srgb, var(--text) 82%, transparent); }
.track-title, .track-artist { transition: opacity .4s ease, transform .4s var(--ease); }
.now.changing .track-title, .now.changing .track-artist { opacity: 0; transform: translateY(8px); }
.next { margin: 18px 0 0; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.next b { color: var(--text); font-weight: 600; letter-spacing: .02em; text-transform: none; font-size: .82rem; margin-left: 6px; }

.controls { display: flex; align-items: center; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.play-btn {
  position: relative; width: 84px; height: 84px; border-radius: 50%; border: 0; flex: none;
  background: var(--text); color: var(--bg); display: grid; place-items: center;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--text) 10%, transparent), 0 0 0 8px var(--border), 0 18px 46px -12px color-mix(in srgb, var(--accent) 60%, transparent);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.play-btn:hover { transform: scale(1.06); }
.play-btn:active { transform: scale(.96); }
.play-btn svg { grid-area: 1 / 1; transition: opacity .2s, transform .3s var(--ease); }
.play-btn .i-pause, .play-btn .i-load { opacity: 0; transform: scale(.6); }
body.is-playing .play-btn .i-play { opacity: 0; transform: scale(.6); }
body.is-playing .play-btn .i-pause { opacity: 1; transform: none; }
body.is-loading .play-btn .i-play, body.is-loading .play-btn .i-pause { opacity: 0; }
body.is-loading .play-btn .i-load { opacity: 1; transform: none; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.play-btn:focus-visible, .icon-btn:focus-visible, .btn:focus-visible, .input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.volume { display: flex; align-items: center; gap: 10px; }
.volume input[type=range] { width: clamp(100px, 16vw, 170px); accent-color: var(--accent); }
.vol-num { font-size: .8rem; color: var(--muted); min-width: 3ch; font-variant-numeric: tabular-nums; }
.muted-on .vol-wave { display: none; }
.status { margin: 14px 0 0; min-height: 1.4em; font-size: .88rem; color: var(--muted); }

/* capa + metadados */
.cover-col { min-width: 0; }
.cover {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 0 1px var(--border);
  transition: transform .6s var(--ease);
}
.cover:hover { transform: translateY(-3px); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform .8s var(--ease); }
.cover img.swap { opacity: 0; transform: scale(1.06); }
.cover img[src=""], .cover img:not([src]) { display: none; }
.cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .8); }
.cover.playing { animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.012); } }

.meta { margin: 18px 0 0; display: grid; gap: 12px; text-align: right; }
.meta dt { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: 2px 0 0; font-weight: 500; font-size: .98rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.listen-on { display: block; margin-top: 14px; text-align: right; font-size: .82rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.listen-on:hover { text-decoration: underline; }

/* ---------- Conteudo ---------- */
.content { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
.col-main, .col-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; min-width: 0; }
.col-side { gap: 24px; position: sticky; top: 84px; }
section[id] { scroll-margin-top: 90px; }
.sec-title {
  margin: 0 0 20px; padding-left: 14px; border-left: 4px solid var(--accent); transition: border-color 1.4s;
  font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1;
}
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.muted { color: var(--muted); }
.about { margin: 0; color: var(--muted); white-space: pre-line; }

.history { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.history li.muted { grid-column: 1 / -1; }
.history li:not(.muted) {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s, transform .2s var(--ease);
}
.history li:not(.muted):hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-2px); }
.history img, .history .ph { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: linear-gradient(135deg, var(--c1), var(--c2)); flex: none; }
.history .t { min-width: 0; }
.history strong { display: block; font-weight: 600; font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history span { display: block; font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history time { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: .74rem; color: var(--muted); }

/* formularios */
.form, .field-row { display: grid; gap: 10px; }
.field-row { margin-bottom: 10px; }
.input {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea.input { resize: vertical; min-height: 84px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn {
  padding: 12px 24px; border-radius: 12px; border: 0; font-weight: 700; letter-spacing: .02em; background: var(--accent); color: var(--on-accent);
  transition: transform .2s var(--ease), filter .2s; justify-self: start;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn.small { padding: 8px 16px; font-size: .82rem; border-radius: 999px; }
.live-note { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: .9rem; background: color-mix(in srgb, #16a34a 14%, transparent); border: 1px solid color-mix(in srgb, #16a34a 40%, transparent); }
.feedback { margin: 12px 0 0; min-height: 1.3em; font-size: .9rem; font-weight: 600; }
.feedback.ok { color: #2bb673; } .feedback.err { color: #e5484d; }

.songs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; max-height: 380px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.songs li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.songs li:hover { background: var(--surface-2); }
.songs img, .songs .ph { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: linear-gradient(135deg, var(--c1), var(--c2)); flex: none; }
.songs .t { flex: 1; min-width: 0; }
.songs strong { display: block; font-weight: 600; overflow-wrap: anywhere; line-height: 1.25; }
.songs span { display: block; font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.songs .btn { flex: none; }
.songs li { min-width: 0; }

.wall { display: grid; gap: 12px; margin-top: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.note { padding: 16px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.note p { margin: 0 0 10px; overflow-wrap: anywhere; }
.note small { color: var(--muted); font-weight: 600; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.photo.is-extra { display: none; }
.photo.reveal { animation: photoIn .5s var(--ease) both; }
@keyframes photoIn { from { opacity: 0; transform: scale(.94); } }
.more-wrap { display: flex; justify-content: center; margin-top: 18px; }
.more-btn { justify-self: center; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.more-btn:hover { border-color: var(--accent); filter: none; }
.photo { padding: 0; border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo:hover img { transform: scale(1.07); }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.video { margin: 0; }
.video.is-extra { display: none; }
.video.reveal { animation: photoIn .5s var(--ease) both; }
.video-thumb, .video iframe, .video video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; overflow: hidden;
  background: #000 center / cover no-repeat;
}
.video-play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-play svg { width: 60px; height: 60px; padding: 16px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(6px); transition: transform .25s var(--ease), background .25s; }
.video-thumb:hover .video-play svg { transform: scale(1.12); background: var(--accent); }
.video figcaption { margin-top: 8px; font-weight: 600; font-size: .92rem; }

.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.social {
  --brand: var(--accent); display: flex; align-items: center; gap: 12px; padding: 7px 16px 7px 7px; border-radius: 999px; min-width: 0;
  background: var(--surface-2); border: 1px solid var(--border); text-decoration: none; font-weight: 600; font-size: .9rem;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.social i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; color: #fff; background: var(--brand); }
.social span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 10px 24px -14px var(--brand); }
.s-whatsapp { --brand: #25d366; }
.s-facebook { --brand: #1877f2; }
.s-youtube { --brand: #ff0033; }
.s-tiktok { --brand: #ee1d52; }
.s-x { --brand: #444; }
.s-email { --brand: var(--accent); }
.s-instagram i { background: linear-gradient(45deg, #f9a03f, #e1306c 55%, #7b3fe4); }
.s-instagram { --brand: #e1306c; }
.foot-social { display: flex !important; align-items: center; gap: 10px; }
.foot-social svg { width: 16px; height: 16px; flex: none; opacity: .8; }
.chip { padding: 8px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); text-decoration: none; font-weight: 600; font-size: .86rem; transition: .2s; }
.chip:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; }

/* anuncios */
.ads { display: grid; gap: 14px; justify-items: center; margin: 18px 0; }
.ads--sidebar, .ads--sidebar2 { margin: 0; }
/* Espaco de tamanho fixo por local: todos os anuncios ficam identicos em desktop e celular */
.carousel { position: relative; width: 100%; aspect-ratio: var(--ratio, 1 / 1); max-width: var(--maxw, 400px); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.ads--sidebar .carousel, .ads--sidebar2 .carousel { --ratio: 1 / 1; --maxw: 400px; }
.ads--header .carousel, .ads--content .carousel, .ads--footer .carousel { --ratio: 728 / 90; --maxw: 728px; }
.carousel .ad { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s; }
.carousel .ad.on { opacity: 1; visibility: visible; transition: opacity .7s ease; z-index: 1; }
.carousel .ad a { display: block; width: 100%; height: 100%; }
.carousel .ad img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.carousel-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #fff; opacity: .5; box-shadow: 0 0 4px rgba(0, 0, 0, .5); transition: .3s; }
.carousel-dots button.on { opacity: 1; background: var(--accent); width: 18px; border-radius: 4px; }
.ad { position: relative; max-width: 100%; border-radius: 12px; overflow: hidden; line-height: 0; }
.ad img { max-width: 100%; height: auto; border-radius: 12px; }
.ad-tag { position: absolute; top: 6px; right: 8px; font-size: .62rem; line-height: 1; letter-spacing: .06em; text-transform: uppercase; padding: 3px 6px; border-radius: 6px; background: rgba(0, 0, 0, .5); color: #fff; }

/* rodape */
.footer { border-top: 1px solid var(--border); padding: 48px clamp(16px, 4vw, 40px) 120px; background: color-mix(in srgb, var(--bg) 80%, transparent); }
.footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand { font-family: var(--display); font-size: 1.6rem; letter-spacing: .03em; text-transform: uppercase; }
.footer p { color: var(--muted); font-size: .9rem; margin: 8px 0 0; max-width: 42ch; }
.footer h3 { margin: 0 0 12px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.footer-grid a { display: block; text-decoration: none; padding: 4px 0; font-size: .92rem; opacity: .85; }
.footer-grid a:hover { color: var(--accent); opacity: 1; }
.footer .copy { max-width: 1240px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; max-width: 1240px; }

/* ---------- Mini player fixo ---------- */
.dock {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 12px; width: min(560px, calc(100% - 24px)); padding: 8px 10px 8px 8px;
  border-radius: 999px; background: color-mix(in srgb, var(--bg) 72%, transparent); border: 1px solid var(--border);
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .5s var(--ease), opacity .4s; pointer-events: none;
}
.dock.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.dock img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--c1), var(--c2)); flex: none; }
body.is-playing .dock img { animation: spin 14s linear infinite; }
.dock-text { flex: 1; min-width: 0; display: grid; }
.dock-text strong { font-size: .93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-text span { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); display: grid; place-items: center; flex: none; transition: transform .2s; }
.dock-btn:hover { transform: scale(1.08); }
.dock-btn svg { grid-area: 1 / 1; }
.dock-btn .i-pause { display: none; }
body.is-playing .dock-btn .i-play { display: none; }
body.is-playing .dock-btn .i-pause { display: block; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0, 0, 0, .9); backdrop-filter: blur(6px); padding: 20px; }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: #ddd; margin-top: 12px; }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .cta em { display: none; }
}
@media (max-width: 980px) {
  .content { grid-template-columns: minmax(0, 1fr); }
  .col-side { position: static; }
  .cta { display: none; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 24px; gap: 28px; }
  .cover-col { order: -1; width: min(100%, 300px); margin-left: auto; margin-right: auto; }
  .controls { justify-content: center; }
  .volume { width: 100%; justify-content: center; }
  .status { text-align: center; }
  .meta { text-align: left; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
  .listen-on { text-align: left; }
  .nav { display: none; }
  .topbar .icon-btn { margin-left: auto; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .play-btn { width: 74px; height: 74px; }
  .controls { gap: 20px; }
  .volume input[type=range] { width: 100px; }
}
@media (min-width: 1500px) {
  main { max-width: 1400px; }
  .footer-grid, .footer .copy { max-width: 1400px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Aviso de cookies (LGPD) ---------- */
.cookie {
  position: fixed; z-index: 90; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: min(460px, calc(100% - 32px));
  padding: 18px 20px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  animation: cookieIn .5s var(--ease) both;
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } }
.cookie p { margin: 0 0 14px; font-size: .86rem; color: color-mix(in srgb, var(--text) 85%, transparent); }
.cookie p a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { flex: 1; min-width: 140px; padding: 11px 16px; font-size: .86rem; text-align: center; }
.btn.ghost-btn { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.ghost-btn:hover { border-color: var(--accent); filter: none; }
.legal { max-width: 1240px; margin: 28px auto 0; font-size: .8rem; color: var(--muted); }
.legal a, .legal button { color: var(--muted); background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.legal a:hover, .legal button:hover { color: var(--accent); }
.policy { max-width: 820px; margin: 40px auto 80px; }
.policy h2 { margin: 26px 0 8px; font-size: 1.15rem; }
.policy p { color: color-mix(in srgb, var(--text) 85%, transparent); }
@media (max-width: 560px) {
  .cookie { left: 10px; right: 10px; width: auto; bottom: calc(10px + env(safe-area-inset-bottom)); }
}

/* ---------- Modal (politica de privacidade) ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .25s ease both; }
.modal-box { position: relative; width: min(760px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column; padding: 28px clamp(20px, 4vw, 36px) 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); animation: modalIn .35s var(--ease) both; }
.modal-box .sec-title { margin-right: 40px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); font-size: 1.4rem; line-height: 1; }
.modal-close:hover { border-color: var(--accent); }
.policy-body { overflow-y: auto; padding-right: 8px; overscroll-behavior: contain; }
.policy-body h2 { margin: 22px 0 6px; font-size: 1.05rem; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p { margin: 0 0 10px; font-size: .92rem; color: color-mix(in srgb, var(--text) 85%, transparent); }
.modal-foot { margin-top: 16px; display: flex; justify-content: flex-end; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.footer .copy .credit { text-transform: none; letter-spacing: .02em; margin-left: 6px; }
.footer .copy .credit a { color: var(--text); font-weight: 600; text-decoration: none; }
.footer .copy .credit a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Multi radio (canais) ---------- */
.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.channel {
  --ch: var(--accent); position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px 14px; text-align: left;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .2s var(--ease), background .2s;
}
.channel:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--ch) 70%, transparent); }
.channel.is-active { border-color: var(--ch); background: color-mix(in srgb, var(--ch) 12%, var(--surface)); }
.ch-logo { position: relative; display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 12px; overflow: hidden; background: var(--ch); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.ch-logo img { width: 100%; height: 100%; object-fit: cover; }
.ch-logo .ch-cover { position: absolute; inset: 0; animation: fadeIn .5s ease both; }
.channel .ch-logo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }
.ch-text { min-width: 0; display: grid; flex: 1; }
.ch-text strong { font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-text small { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-eq { display: none; align-items: flex-end; gap: 2px; height: 14px; color: var(--ch); flex: none; }
.ch-eq b { width: 3px; height: 30%; background: currentColor; border-radius: 2px; }
body.is-playing .channel.is-active .ch-eq { display: inline-flex; }
body.is-playing .channel.is-active .ch-eq b { animation: eq 1s ease-in-out infinite; }
body.is-playing .channel.is-active .ch-eq b:nth-child(2) { animation-delay: -.3s; }
body.is-playing .channel.is-active .ch-eq b:nth-child(3) { animation-delay: -.6s; }
.chan-nav { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); font-size: 1.6rem; line-height: 1; display: grid; place-items: center; padding-bottom: 3px; transition: .2s; }
.chan-nav:hover { border-color: var(--accent); color: var(--accent); }
.channel-tag { padding: 3px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
@media (max-width: 760px) { .controls { gap: 14px; } }

/* Rodape: linha de direitos e links centralizados */
.footer .copy, .footer .legal { text-align: center; }
.footer .legal { margin-left: auto; margin-right: auto; }
