/* HJPlay (25/10/2026): app e diretório de rádios. CSS próprio (não depende do build da Tailwind). */
:root {
  --bg: #0b0f1c;
  --surface: #131a2c;
  --surface-2: #1a2238;
  --line: #252f4b;
  --text: #eef1f8;
  --muted: #9aa4c0;
  --accent: #facc15;
  --accent-ink: #0b0f1c;
  --client: #34d399;
  --radius: 14px;
  --wrap: 1180px;
  --player-h: 76px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom) + 8px);
}
h1, h2, h3 { font-family: Outfit, Inter, system-ui, sans-serif; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { fill: currentColor; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.hp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp-skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.hp-skip:focus { left: 8px; }
.hp-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Cabeçalho */
.hp-header { position: sticky; top: 0; z-index: 30; background: rgba(11, 15, 28, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hp-header-row { display: flex; align-items: center; gap: 12px; height: 64px; }
.hp-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 800 21px/1 Outfit, sans-serif; flex-shrink: 0; }
.hp-brand svg { width: 34px; height: 34px; }
.hp-brand b { color: var(--accent); font-weight: 800; }
.hp-search { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.hp-search > svg { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.hp-search input { width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.hp-search input::placeholder { color: var(--muted); }
.hp-search input:focus { outline: none; border-color: var(--accent); }
.hp-nav { display: none; align-items: center; gap: 4px; }
.hp-nav a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.hp-nav a:hover { color: var(--text); background: var(--surface); }
.hp-install { border: 1px solid var(--accent); background: transparent; color: var(--accent); border-radius: 999px; padding: 7px 14px; font-weight: 700; cursor: pointer; margin-left: 6px; }
@media (min-width: 860px) { .hp-nav { display: flex; } .hp-search { max-width: 420px; } }
@media (max-width: 859px) {
  /* celular: menu numa segunda linha, rolando de lado */
  .hp-header-row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 6px; row-gap: 6px; }
  .hp-nav { display: flex; order: 3; width: 100%; overflow-x: auto; gap: 2px; margin: 0 -8px; }
  .hp-nav a { padding: 8px 10px; font-size: 14px; white-space: nowrap; }
  .hp-install { margin-left: auto; flex-shrink: 0; }
}

/* Botões */
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap; }
.hp-btn:hover { filter: brightness(1.06); }
.hp-btn svg { width: 20px; height: 20px; }
.hp-btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); font-weight: 700; }
.hp-btn-ghost:hover { border-color: var(--muted); filter: none; }
.hp-btn-play { min-height: 52px; padding: 0 26px; font-size: 16px; }

/* Herói */
.hp-hero { padding: 40px 0 8px; max-width: 760px; }
.hp-hero h1 { font-size: clamp(30px, 6vw, 48px); font-weight: 800; }
.hp-hero p { color: var(--muted); font-size: 17px; margin: 12px 0 22px; }
.hp-search-lg input { height: 54px; font-size: 16px; padding-right: 120px; }
.hp-search-lg .hp-btn { position: absolute; right: 6px; min-height: 42px; }

/* Seções */
.hp-section { margin-top: 36px; }
.hp-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hp-section-head h2 { font-size: 21px; font-weight: 700; }
.hp-section-head a { color: var(--muted); font-size: 14px; }
.hp-page-head { margin: 8px 0 18px; }
.hp-page-head h1 { font-size: clamp(26px, 5vw, 36px); font-weight: 800; }
.hp-page-head p { color: var(--muted); margin: 6px 0 0; }
.hp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; margin: 18px 0 6px; }
.hp-crumbs a { text-decoration: none; }
.hp-crumbs a:hover { color: var(--text); text-decoration: underline; }

/* Grade de rádios */
.hp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
@media (max-width: 420px) { .hp-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; } }
.hp-card { position: relative; min-width: 0; }
.hp-card-link { display: flex; flex-direction: column; gap: 3px; text-decoration: none; }
.hp-card-name { font-weight: 700; font-size: 14px; line-height: 1.3; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-card-place { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-card-link:hover .hp-card-name { text-decoration: underline; }
.hp-logo { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.hp-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.hp-ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 800 clamp(22px, 4vw, 34px)/1 Outfit, sans-serif; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 55% 38%), hsl(calc(var(--h) + 40) 60% 26%)); }
.is-client .hp-logo { border-color: var(--client); box-shadow: 0 0 0 1px var(--client); }
.is-client .hp-logo img, .hp-station.is-client .hp-logo img { object-fit: cover; }
.hp-badge { position: absolute; top: 8px; left: 8px; background: var(--client); color: #04261a; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.hp-badge-inline { position: static; display: inline-block; margin-bottom: 8px; }
/* botão de tocar no canto de baixo da logo (a logo é quadrada: largura do cartão = altura da logo) */
.hp-card { container-type: inline-size; }
.hp-card .hp-play { position: absolute; right: 8px; top: calc(100cqw - 52px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.hp-card .hp-play svg { width: 22px; height: 22px; }
.hp-card .hp-play:hover { transform: scale(1.06); }
.hp-play .i-pause, .hp-play.is-playing .i-play { display: none; }
.hp-play.is-playing .i-pause { display: block; }
.hp-play .t-pause, .hp-play.is-playing .t-play { display: none; }
.hp-play.is-playing .t-pause { display: inline; }
.hp-play.is-loading { opacity: .75; }

/* Fichas e chips */
.hp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; }
.hp-chip small { color: var(--muted); font-weight: 500; }
.hp-chip:hover { border-color: var(--muted); }
.hp-chip.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hp-chip.is-on small { color: inherit; }
.hp-chips-lg .hp-chip { min-height: 44px; font-size: 15px; }
.hp-filter { margin-bottom: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.hp-filter .hp-chip { flex-shrink: 0; }
.hp-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.hp-state { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.hp-state b { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font: 800 14px Outfit, sans-serif; color: var(--accent); }
.hp-state span { font-weight: 600; font-size: 14px; }
.hp-state small { color: var(--muted); font-size: 12px; }
.hp-state:hover { border-color: var(--muted); }
.hp-state.is-empty { opacity: .55; }

/* Página da rádio */
.hp-station { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.hp-logo-xl { width: 180px; flex-shrink: 0; border-radius: 18px; }
.hp-logo-xl .hp-ini { font-size: 54px; }
.hp-station-body { flex: 1 1 300px; min-width: 0; }
.hp-station h1 { font-size: clamp(26px, 5vw, 38px); font-weight: 800; }
.hp-station-place { color: var(--muted); margin: 6px 0 12px; font-size: 16px; }
.hp-now { margin: 14px 0 0; color: var(--text); font-size: 15px; }
.hp-now::before { content: "Tocando agora: "; color: var(--muted); }
.hp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hp-fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.hp-fav[aria-pressed="true"] svg { fill: #fb7185; stroke: #fb7185; }
.hp-fav .t-on, .hp-fav[aria-pressed="true"] .t-off { display: none; }
.hp-fav[aria-pressed="true"] .t-on { display: inline; }
.hp-station-desc { color: var(--muted); margin: 18px 0 0; max-width: 640px; }
.hp-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.hp-links a { color: var(--accent); font-weight: 600; }
.hp-owner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 16px 18px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); }
.hp-owner p { margin: 0; flex: 1 1 320px; }
.hp-owner strong { color: var(--text); }
@media (max-width: 560px) { .hp-station { padding: 16px; } .hp-logo-xl { width: 120px; } }

/* Paginação, vazio */
.hp-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 28px 0 8px; color: var(--muted); }
.hp-pager a { color: var(--text); font-weight: 700; text-decoration: none; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; }
.hp-empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; margin-top: 18px; }
.hp-empty p { margin: 0 0 16px; }
.hp-empty-page { margin-top: 40px; }
.hp-empty-page h1 { color: var(--text); font-size: 28px; margin-bottom: 8px; }

/* Rodapé */
.hp-footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 13px; }
.hp-footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 18px; }
.hp-footer-cta strong { display: block; color: var(--text); font: 700 18px Outfit, sans-serif; }
.hp-footer-small { line-height: 1.7; margin: 0; }
.hp-footer-small a { color: var(--text); }

/* Player fixo */
.hp-player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(19, 26, 44, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.hp-player[hidden] { display: none; }
.hp-player-row { display: flex; align-items: center; gap: 10px; height: var(--player-h); }
.hp-player-info { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; text-decoration: none; }
.hp-logo-sm { width: 52px; flex-shrink: 0; border-radius: 10px; }
.hp-logo-sm .hp-ini { font-size: 18px; }
.hp-player-text { display: flex; flex-direction: column; min-width: 0; }
.hp-player-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-player-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.hp-icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.hp-icon-btn[aria-pressed="true"] svg { fill: #fb7185; stroke: #fb7185; }
.hp-main-btn { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.hp-main-btn svg { width: 26px; height: 26px; }
.hp-main-btn .i-pause, .hp-main-btn.is-playing .i-play { display: none; }
.hp-main-btn.is-playing .i-pause { display: block; }
.hp-spin { display: none; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--accent); animation: hpspin .9s linear infinite; }
.hp-main-btn.is-loading .hp-spin { display: block; }
@keyframes hpspin { to { transform: rotate(360deg); } }
.hp-vol { display: none; width: 110px; }
.hp-vol input { width: 100%; accent-color: var(--accent); }
@media (min-width: 720px) { .hp-vol { display: block; } }
@media (prefers-reduced-motion: reduce) { .hp-spin { animation-duration: 3s; } }

/* Aviso */
.hp-toast { position: fixed; left: 50%; bottom: calc(var(--player-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: #fff; color: #0b0f1c; padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; max-width: calc(100% - 32px); text-align: center; }
.hp-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
