/* RADIO GRIND — Stage 10 Section/Header Templates SAFE
   Only presentation layer. No JS hooks, player data, API or card markup changes. */

.rg-board-block-new > .new-tracks-head,
.rg-board-block-popular > #popular-tracks,
.board-authors-head,
.rg-board-block-promo > .card,
.rg-board-block-about_panel > .card {
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

body.rg-section-template-premium-bar .rg-board-block-new > .new-tracks-head,
body.rg-section-template-premium-bar .rg-board-block-popular > #popular-tracks,
body.rg-section-template-premium-bar .board-authors-head {
  position: relative;
  padding: 14px 16px;
  border: 1px solid var(--stroke, rgba(255,255,255,.12));
  border-top-color: var(--accent, rgba(255,68,68,.82));
  background: linear-gradient(180deg, var(--glass, rgba(18,18,22,.82)), rgba(0,0,0,.18));
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
}

body.rg-section-template-premium-bar .rg-board-block-new > .new-tracks-head::before,
body.rg-section-template-premium-bar .rg-board-block-popular > #popular-tracks::before,
body.rg-section-template-premium-bar .board-authors-head::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  align-self: center;
  margin-right: 2px;
  border-radius: 2px;
  background: var(--accent, #ff4444);
  box-shadow: 0 0 18px var(--accentSoft, rgba(255,68,68,.35));
}

body.rg-section-template-premium-bar .rg-board-block-new > .new-tracks-head,
body.rg-section-template-premium-bar .rg-board-block-popular > #popular-tracks,
body.rg-section-template-premium-bar .board-authors-head {
  gap: 12px;
}

body.rg-section-template-editorial .rg-board-block-new > .new-tracks-head,
body.rg-section-template-editorial .rg-board-block-popular > #popular-tracks,
body.rg-section-template-editorial .board-authors-head {
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--stroke, rgba(255,255,255,.12));
  margin-bottom: 18px !important;
}

body.rg-section-template-editorial .rg-board-block-new .h5,
body.rg-section-template-editorial .rg-board-block-popular .h5,
body.rg-section-template-editorial .board-authors-title {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: -.04em;
  line-height: 1.02;
}

body.rg-section-template-editorial .rg-board-block-new .text-secondary.small,
body.rg-section-template-editorial .rg-board-block-popular .text-secondary.small,
body.rg-section-template-editorial .board-authors-head .text-secondary.small {
  max-width: 620px;
  font-size: .92rem;
}

body.rg-section-template-neon-badge .rg-board-block-new > .new-tracks-head,
body.rg-section-template-neon-badge .rg-board-block-popular > #popular-tracks,
body.rg-section-template-neon-badge .board-authors-head {
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--accent, #ff4444) 44%, rgba(255,255,255,.12));
  background:
    radial-gradient(420px 90px at 8% 0%, var(--accentSoft, rgba(255,68,68,.28)), transparent 66%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.035), 0 18px 48px rgba(0,0,0,.30), 0 0 32px var(--accentSoft, rgba(255,68,68,.18));
}

body.rg-section-template-neon-badge .rg-board-block-new .h5,
body.rg-section-template-neon-badge .rg-board-block-popular .h5,
body.rg-section-template-neon-badge .board-authors-title {
  text-shadow: 0 0 18px var(--accentSoft, rgba(255,68,68,.28));
}

body.rg-section-template-minimal-line .rg-board-block-new > .new-tracks-head,
body.rg-section-template-minimal-line .rg-board-block-popular > #popular-tracks,
body.rg-section-template-minimal-line .board-authors-head {
  padding: 0 0 10px;
  border-bottom: 1px solid var(--stroke, rgba(255,255,255,.10));
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body.rg-section-template-minimal-line .rg-board-block-new .h5,
body.rg-section-template-minimal-line .rg-board-block-popular .h5,
body.rg-section-template-minimal-line .board-authors-title {
  text-transform: uppercase;
  letter-spacing: .055em;
  font-size: .98rem;
}

body.rg-section-template-minimal-line .rg-board-block-new .text-secondary.small,
body.rg-section-template-minimal-line .rg-board-block-popular .text-secondary.small,
body.rg-section-template-minimal-line .board-authors-head .text-secondary.small {
  font-size: .78rem;
}

body.rg-section-template-premium-bar .rg-board-block-promo > .card,
body.rg-section-template-premium-bar .rg-board-block-about_panel > .card,
body.rg-section-template-editorial .rg-board-block-promo > .card,
body.rg-section-template-editorial .rg-board-block-about_panel > .card,
body.rg-section-template-neon-badge .rg-board-block-promo > .card,
body.rg-section-template-neon-badge .rg-board-block-about_panel > .card,
body.rg-section-template-minimal-line .rg-board-block-promo > .card,
body.rg-section-template-minimal-line .rg-board-block-about_panel > .card {
  border-color: var(--stroke, rgba(255,255,255,.12)) !important;
}

@media (max-width: 575.98px) {
  body.rg-section-template-premium-bar .rg-board-block-new > .new-tracks-head,
  body.rg-section-template-premium-bar .rg-board-block-popular > #popular-tracks,
  body.rg-section-template-premium-bar .board-authors-head,
  body.rg-section-template-neon-badge .rg-board-block-new > .new-tracks-head,
  body.rg-section-template-neon-badge .rg-board-block-popular > #popular-tracks,
  body.rg-section-template-neon-badge .board-authors-head {
    padding: 12px;
    border-radius: 8px;
  }

  body.rg-section-template-editorial .rg-board-block-new .h5,
  body.rg-section-template-editorial .rg-board-block-popular .h5,
  body.rg-section-template-editorial .board-authors-title {
    font-size: 1.35rem;
  }
}
