/* ==========================================================================
   Heart FM — Brand CSS for Salient (v1: homepage support)
   Translated from the Lovable wireframe design system (src/index.css)
   Install: Salient child theme stylesheet, OR paste into
   Salient > Theme Options > Custom CSS/JS > CSS.
   ========================================================================== */

:root {
  --hfm-red: #ED1C24;                       /* hsl(357 82% 52%) */
  --hfm-red-dark: #C4151C;                  /* gradient end, hsl(357 70% 45%) */
  --hfm-dark: #141414;                      /* foreground, hsl(0 0% 8%) */
  --hfm-muted-text: #737373;                /* hsl(0 0% 45%) */
  --hfm-border: #e5e5e5;                    /* hsl(0 0% 90%) */
  --hfm-secondary: #f7f7f7;
  --hfm-warm-white: #fdfcfb;                /* hsl(30 20% 99%) */
  --hfm-warm-gray: #f6f5f4;                 /* hsl(30 5% 96%) */
  --hfm-radius-card: 15px;
  --hfm-shadow-soft: 0 4px 20px -4px rgba(0,0,0,.08);
  --hfm-shadow-card: 0 8px 30px -8px rgba(0,0,0,.10);
  --hfm-shadow-elevated: 0 12px 40px -12px rgba(0,0,0,.15);
  --hfm-shadow-glow: 0 0 40px rgba(237,28,36,.15);
}

/* --------------------------------------------------------------------------
   Typography helpers (Inter set in Theme Options; these add the display style)
   -------------------------------------------------------------------------- */
.hfm-eyebrow p {
  color: var(--hfm-red);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.hfm-h2 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--hfm-dark);
}
/* Red gradient text: force Salient's gradient elements to brand stops so
   they render correctly even before Theme Options gradient is configured */
.nectar-gradient-text .nectar-rotating-words-title,
.nectar-gradient-text h1, .nectar-gradient-text h2 {
  background: linear-gradient(135deg, #ED1C24 0%, #A81118 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Buttons — pill everything, red glow on primary CTAs
   -------------------------------------------------------------------------- */
.hfm-btn-pill.nectar-button,
.hfm-btn-pill .nectar-button,
body .hfm-btn-pill {
  border-radius: 100px !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  transition: transform .3s ease, box-shadow .3s ease;
}
.hfm-btn-glow { box-shadow: var(--hfm-shadow-glow); }
.hfm-btn-pill.nectar-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(237,28,36,.25);
}

/* Self-sufficient solid button — for buttons rendered directly in PHP
   templates (not through the nectar_btn shortcode), so styling never
   depends on guessing Salient's internal button markup/classes. */
a.hfm-btn-solid {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--hfm-red); color: #fff !important;
  padding: 14px 30px; font-size: 13px;
  text-decoration: none !important;
}
a.hfm-btn-solid:hover { background: var(--hfm-red-dark); color: #fff !important; }

/* --------------------------------------------------------------------------
   Hero (rounded video panel)
   -------------------------------------------------------------------------- */
.hfm-hero {
  overflow: hidden;
  margin: 16px 24px 0;            /* inset like the wireframe container */
  min-height: 500px;
  max-height: 720px;
  height: 70vh;
}
.hfm-hero, .hfm-hero .row-bg-wrap, .hfm-hero .video-color-overlay,
.hfm-hero video { border-radius: 20px; }
.hfm-hero-title, .hfm-hero .nectar-gradient-text h1 {
  line-height: .95;
  margin-bottom: 0;
}
.hfm-hero-title { color: #fff; font-weight: 900; font-size: clamp(28px, 4vw, 48px); }
.hfm-hero .nectar-gradient-text h1 {
  font-size: clamp(36px, 6vw, 72px);
  filter: drop-shadow(0 2px 20px rgba(237,28,36,.4));
}
.hfm-hero-sub p { color: rgba(255,255,255,.9); font-size: 17px; max-width: 420px; }
@media (max-width: 999px) { .hfm-hero { margin: 12px 12px 0; height: auto; } }

/* --------------------------------------------------------------------------
   Banner ad
   -------------------------------------------------------------------------- */
.hfm-banner-ad-inner { max-width: 576px; margin: 0 auto; float: none; }
.hfm-ad-label p {
  font-size: 10px; font-weight: 600; letter-spacing: .25em;
  text-transform: uppercase; color: rgba(115,115,115,.7);
  text-align: center; margin-bottom: 8px;
}
.hfm-banner-ad img { border: 1px solid rgba(229,229,229,.4); }

/* --------------------------------------------------------------------------
   Cards (Now Playing, competitions, events, shows)
   -------------------------------------------------------------------------- */
.hfm-card {
  border-radius: var(--hfm-radius-card);
  box-shadow: var(--hfm-shadow-card);
  transition: box-shadow .3s ease;
  overflow: hidden;
}
.hfm-card:hover { box-shadow: var(--hfm-shadow-elevated); }
.hfm-card-flush .img-with-aniamtion-wrap { margin: 0; }
.hfm-card-body { padding: 24px 25px 10px; }
.hfm-card-title { font-weight: 800; margin-bottom: 8px; }
.hfm-card-body p { color: var(--hfm-muted-text); font-size: 14px; }

/* Now / Next strip */
.hfm-badge {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 6px;
}
.hfm-badge-live { background: var(--hfm-red); color: #fff; }
.hfm-badge-next { background: #efefef; color: var(--hfm-dark); }

/* Shows grid */
.hfm-show-card .img-with-animation { aspect-ratio: 1/1; object-fit: cover; object-position: top; }
.hfm-show-name a { color: var(--hfm-dark); font-weight: 700; }
.hfm-show-name a:hover { color: var(--hfm-red); }
.hfm-show-host { color: var(--hfm-muted-text); font-size: 13px; margin: 2px 0; }
.hfm-show-time { color: var(--hfm-red); font-size: 13px; font-weight: 500; }
.hfm-show-meta { margin-top: 14px; }

/* Section header "view all" link */
.hfm-viewall { text-align: right; align-self: end; }
.hfm-viewall-link a { color: var(--hfm-dark); font-weight: 600; font-size: 14px; }
.hfm-viewall-link a:hover { color: var(--hfm-red); }
.hfm-event-meta { color: var(--hfm-muted-text); font-size: 14px; line-height: 1.9; }

/* --------------------------------------------------------------------------
   Section backgrounds & textures
   -------------------------------------------------------------------------- */
.hfm-gradient-warm > .row-bg-wrap .row-bg {
  background: linear-gradient(180deg, var(--hfm-warm-white) 0%, var(--hfm-warm-gray) 100%) !important;
}
.hfm-texture-grain { position: relative; }
.hfm-texture-grain::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: .015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Manifesto
   -------------------------------------------------------------------------- */
.hfm-manifesto { position: relative; overflow: hidden; }
.hfm-manifesto::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 600px; height: 600px; transform: translate(-50%, -50%);
  background: rgba(237,28,36,.05); border-radius: 50%; filter: blur(64px);
}
.hfm-manifesto-line1, .hfm-manifesto .nectar-gradient-text h2 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0;
  position: relative; z-index: 2;
}
.hfm-manifesto-line1 { color: var(--hfm-dark); }

/* --------------------------------------------------------------------------
   Header & footer brand touches (site-wide)
   -------------------------------------------------------------------------- */
/* Glass header (pair with Salient transparent header setting) */
#header-outer {
  background: rgba(255,255,255,.8) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,229,229,.5);
}
#header-outer nav .sf-menu li a {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
/* Footer bottom red strip */
/* --------------------------------------------------------------------------
   Footer built as a Global Section (theme location: Above Footer) — v2.0
   -------------------------------------------------------------------------- */

/* Neutralize Salient's real native footer underneath — the Global Section
   is now the only visible footer, so the actual #footer-outer collapses
   to nothing and shows no red strip of its own (the GS supplies its own). */
#footer-outer {
  min-height: 0 !important; padding: 0 !important; margin: 0 !important;
}
#footer-outer::after { content: none; }
#footer-outer .container { display: none !important; }

.hfm-footer-gs { padding-left: 4%; padding-right: 4%; }
.hfm-footer-heading p {
  color: var(--hfm-red); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px;
}
.hfm-footer-contact { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.65); }
.hfm-footer-line { margin: 0 0 16px; }
.hfm-footer-line:last-child { margin-bottom: 0; }
.hfm-footer-line strong {
  display: block; color: rgba(255,255,255,.9);
  font-size: 12px; font-weight: 700; margin-bottom: 4px;
}
.hfm-footer-line a { color: rgba(255,255,255,.65); }
.hfm-footer-line a:hover { color: var(--hfm-red); }

.hfm-footer-links ul { list-style: none; margin: 0; padding: 0; }
.hfm-footer-links li { margin-bottom: 12px; }
.hfm-footer-links a { color: rgba(255,255,255,.65); font-size: 13px; }
.hfm-footer-links a:hover { color: var(--hfm-red); }

.hfm-footer-bottom-row { border-top: 1px solid rgba(255,255,255,.1); }
.hfm-footer-copyright p { color: rgba(255,255,255,.45); font-size: 12px; margin: 0; }
.hfm-footer-social { text-align: right; }
.hfm-footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  margin-left: 10px; transition: all .25s ease;
}
.hfm-footer-social a:hover { background: var(--hfm-red); color: #fff; }
@media (max-width: 690px) { .hfm-footer-social { text-align: left; margin-top: 16px; } }

.hfm-footer-redstrip { height: 12px !important; min-height: 12px !important; }
.hfm-footer-redstrip .wpb_column, .hfm-footer-redstrip .vc_column-inner { padding: 0 !important; }
.hfm-footer-redstrip p { display: none; }

/* --------------------------------------------------------------------------
   Single Show / Presenter templates (v1.1)
   -------------------------------------------------------------------------- */
.hfm-single .main-content { padding-top: 40px; padding-bottom: 90px; }
.hfm-backlink {
  display: inline-block; margin-bottom: 28px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--hfm-muted-text);
}
.hfm-backlink:hover { color: var(--hfm-red); }

.hfm-single-hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  align-items: center; margin-bottom: 0;
}
@media (max-width: 999px) { .hfm-single-hero { grid-template-columns: 1fr; gap: 28px; } }

/* Small kicker above the name (e.g. "« Presenter") — distinct from section eyebrows */
.hfm-kicker {
  display: block; color: var(--hfm-red);
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 10px;
}
.hfm-role-line { margin-top: 2px; margin-bottom: 18px; }

.hfm-eyebrow-inline {
  display: block; color: var(--hfm-red);
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: 10px;
}
.hfm-eyebrow-inline.hfm-center { text-align: center; }
.hfm-single-title {
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em;
  line-height: 1.02; font-size: clamp(32px, 4.6vw, 50px); margin-bottom: 4px;
  color: var(--hfm-dark);
}
.hfm-single-slot { color: var(--hfm-muted-text); font-weight: 600; font-size: 14px; margin-bottom: 20px; }
.hfm-single-slot .hfm-dot { color: var(--hfm-border); margin: 0 8px; }

.hfm-single-lede { font-size: 15px; line-height: 1.7; color: var(--hfm-muted-text); max-width: 520px; margin-bottom: 22px; }

.hfm-single-hero-media { position: relative; }
.hfm-single-hero-media::before {
  content: ''; position: absolute; inset: -16px;
  background: radial-gradient(closest-side, rgba(237,28,36,.12), transparent 70%);
  filter: blur(24px); z-index: 0;
}
.hfm-single-image {
  position: relative; z-index: 1; width: 100%;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: top;
  border-radius: 20px; box-shadow: var(--hfm-shadow-elevated);
  border: 1px solid rgba(229,229,229,.6);
}

/* Section divider — thin rule + consistent top spacing, matching Lovable's
   visual rhythm between Hero / About / Catch The Show */
.hfm-divider-top {
  border-top: 1px solid rgba(229,229,229,.7);
  margin-top: 48px; padding-top: 48px;
}

.hfm-single-about { max-width: 680px; margin-bottom: 0; }
.hfm-single-about h2 { margin-bottom: 16px; }
.hfm-about-heading { font-size: 26px; }
.hfm-single-about p { color: var(--hfm-muted-text); line-height: 1.75; font-size: 14px; margin-bottom: 14px; }

.hfm-h2.hfm-center { text-align: center; }
.hfm-catch-show { text-align: center; }
.hfm-show-card-list {
  max-width: 620px; margin: 32px auto 0; text-align: left;
  display: flex; flex-direction: column; gap: 14px;
}
.hfm-show-card {
  background: #fff; border: 1px solid var(--hfm-border);
  border-radius: var(--hfm-radius-card); box-shadow: var(--hfm-shadow-soft);
  padding: 16px; display: flex; align-items: center; gap: 18px;
}
.hfm-show-card-media { flex: 0 0 64px; }
.hfm-show-card-img {
  display: block; width: 64px; height: 64px; border-radius: 12px;
  object-fit: cover; object-position: top;
}
.hfm-show-card-body { flex: 1; min-width: 0; }
.hfm-show-card-title { font-weight: 800; font-size: 15px; color: var(--hfm-dark); margin-bottom: 4px; }
.hfm-show-card-time { color: var(--hfm-red); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.hfm-show-card-link { color: var(--hfm-red); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.hfm-show-card-link:hover { text-decoration: underline; }

.hfm-segment-list { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.hfm-segment-list li {
  display: flex; gap: 24px; padding: 18px 0;
  border-bottom: 1px solid rgba(229,229,229,.6);
}
.hfm-segment-list li:last-child { border-bottom: none; }
.hfm-seg-time { flex: 0 0 150px; color: var(--hfm-red); font-weight: 700; font-size: 14px; }
.hfm-seg-body strong { display: block; color: var(--hfm-dark); }
.hfm-seg-body strong a { color: var(--hfm-dark); }
.hfm-seg-body strong a:hover { color: var(--hfm-red); }
.hfm-seg-body em { display: block; font-style: normal; color: var(--hfm-muted-text); font-size: 14px; margin-top: 3px; }
.hfm-single-segments { margin-bottom: 60px; }

.hfm-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; max-width: 720px; }
.hfm-team-card { text-align: center; }
.hfm-team-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: top; border-radius: 15px; box-shadow: var(--hfm-shadow-card); margin-bottom: 12px; }
.hfm-team-name a { color: var(--hfm-dark); font-weight: 700; }
.hfm-team-name a:hover { color: var(--hfm-red); }
.hfm-team-role { color: var(--hfm-muted-text); font-size: 13px; }
.hfm-single-team { margin-bottom: 60px; }

.hfm-single-contact { color: var(--hfm-muted-text); font-size: 14px; }
.hfm-single-contact a { color: var(--hfm-red); font-weight: 600; }

/* --------------------------------------------------------------------------
   Page hero (inner pages) — v1.2
   -------------------------------------------------------------------------- */
.hfm-page-hero { border-bottom: 1px solid rgba(229,229,229,.6); }
.hfm-page-title {
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em;
  font-size: clamp(36px, 6vw, 64px); color: var(--hfm-dark); margin-bottom: 12px;
}
.hfm-page-lede p { color: var(--hfm-muted-text); font-size: 17px; max-width: 640px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   Presenter grid — v1.2
   -------------------------------------------------------------------------- */
.hfm-presenter-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
@media (max-width: 999px) { .hfm-presenter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 690px)  { .hfm-presenter-grid { grid-template-columns: 1fr; } }

.hfm-presenter-card {
  display: block; background: #fff; border: 1px solid var(--hfm-border);
  border-radius: var(--hfm-radius-card); overflow: hidden;
  box-shadow: var(--hfm-shadow-card);
  transition: box-shadow .3s ease, transform .3s ease;
}
.hfm-presenter-card:hover { box-shadow: var(--hfm-shadow-elevated); transform: translateY(-4px); }
.hfm-presenter-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top;
  display: block; transition: transform .4s ease;
}
.hfm-presenter-card:hover .hfm-presenter-img { transform: scale(1.03); }
.hfm-presenter-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 4 / 3; background: var(--hfm-secondary);
  color: var(--hfm-red); font-size: 48px; font-weight: 900;
}
.hfm-presenter-name {
  margin: 18px 22px 4px; color: var(--hfm-dark); font-weight: 800;
}
.hfm-presenter-card:hover .hfm-presenter-name { color: var(--hfm-red); }
.hfm-presenter-role {
  margin: 0 22px 8px; color: var(--hfm-red);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.hfm-presenter-bio { margin: 0 22px 22px; color: var(--hfm-muted-text); font-size: 14px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Schedule tabs — v1.2
   -------------------------------------------------------------------------- */
.hfm-day-pills {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 36px;
}
.hfm-day-pill {
  border: 1px solid var(--hfm-border); background: #fff; color: var(--hfm-dark);
  border-radius: 100px; padding: 10px 22px; cursor: pointer;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  transition: all .25s ease;
}
.hfm-day-pill:hover { border-color: var(--hfm-red); color: var(--hfm-red); }
.hfm-day-pill.is-active {
  background: var(--hfm-red); border-color: var(--hfm-red); color: #fff;
  box-shadow: var(--hfm-shadow-glow);
}
.hfm-day-short { display: none; }
@media (max-width: 690px) {
  .hfm-day-full { display: none; }
  .hfm-day-short { display: inline; }
  .hfm-day-pill { padding: 8px 16px; }
}

.hfm-day-panel { display: none; }
.hfm-day-panel.is-active { display: block; animation: hfmFade .35s ease; }
@keyframes hfmFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hfm-slot {
  display: flex; gap: 28px; padding: 22px 26px; margin-bottom: 14px;
  background: #fff; border: 1px solid var(--hfm-border);
  border-radius: var(--hfm-radius-card); box-shadow: var(--hfm-shadow-soft);
  transition: box-shadow .3s ease;
}
.hfm-slot:hover { box-shadow: var(--hfm-shadow-card); }
.hfm-slot-time { flex: 0 0 130px; color: var(--hfm-red); font-weight: 800; font-size: 14px; padding-top: 3px; }
.hfm-slot-show { margin-bottom: 2px; font-weight: 800; }
.hfm-slot-show a { color: var(--hfm-dark); }
.hfm-slot-show a:hover { color: var(--hfm-red); }
.hfm-slot-host { color: var(--hfm-muted-text); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.hfm-slot-desc { color: var(--hfm-muted-text); font-size: 14px; line-height: 1.6; margin: 0; }
@media (max-width: 690px) {
  .hfm-slot { flex-direction: column; gap: 8px; }
  .hfm-slot-time { flex: none; }
}

/* --------------------------------------------------------------------------
   Hub pages: CTA blocks, badges, feature cards — v1.3
   -------------------------------------------------------------------------- */
.hfm-grad {
  background: linear-gradient(135deg, #ED1C24 0%, #A81118 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hfm-page-lede-left p { color: var(--hfm-muted-text); font-size: 17px; max-width: 640px; }
.hfm-red-text { color: var(--hfm-red); font-weight: 600; }

/* Dark + red CTA panels */
.hfm-cta-dark { position: relative; overflow: hidden; }
.hfm-cta-dark::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(237,28,36,.9) 0%, rgba(168,17,24,.9) 100%);
  opacity: .92;
}
.hfm-cta-dark > .vc_column-inner, .hfm-cta-red > .vc_column-inner { position: relative; z-index: 1; }
.hfm-cta-title { color: #fff; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: .95; font-size: clamp(30px, 4.5vw, 48px); margin-bottom: 14px; }
.hfm-cta-lede { color: rgba(255,255,255,.9); font-size: 17px; max-width: 620px; margin-bottom: 26px; }
.hfm-cta-red .hfm-cta-lede { margin-left: auto; margin-right: auto; }

/* Button variants for dark panels */
.hfm-btn-white.nectar-button { background: #fff !important; color: var(--hfm-dark) !important; }
.hfm-btn-white.nectar-button:hover { color: var(--hfm-red) !important; }
.hfm-btn-outline-light.nectar-button { border: 2px solid rgba(255,255,255,.5) !important; color: #fff !important; }
.hfm-btn-outline-light.nectar-button:hover { background: rgba(255,255,255,.12) !important; }
.hfm-btn-outline-dark.nectar-button { border: 2px solid var(--hfm-dark) !important; color: var(--hfm-dark) !important; }
.hfm-btn-outline-dark.nectar-button:hover { border-color: var(--hfm-red) !important; color: var(--hfm-red) !important; }

/* Badges */
.hfm-badge-cat { background: var(--hfm-secondary); color: var(--hfm-dark); border: 1px solid var(--hfm-border); }
.hfm-sponsor-line { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--hfm-muted-text); margin-bottom: 6px !important; }
.hfm-comp-meta { font-size: 13px; color: var(--hfm-dark) !important; margin-top: 12px; }
.hfm-card-title-lg { font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; font-size: 28px; margin: 10px 0 12px; }

/* Featured event split card */
.hfm-featured-event {
  border: 1px solid var(--hfm-border); border-radius: 20px; overflow: hidden;
  box-shadow: var(--hfm-shadow-card);
}
.hfm-featured-media .img-with-aniamtion-wrap, .hfm-featured-media img { height: 100%; object-fit: cover; }

/* Padded cards & icon cards */
.hfm-card-pad { border-radius: var(--hfm-radius-card); }
.hfm-venue-name { font-size: 19px; font-weight: 800; color: var(--hfm-dark); margin-bottom: 4px !important; }
.hfm-date-list { list-style: none; margin: 14px 0 0; padding: 0; }
.hfm-date-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(229,229,229,.7); font-size: 14px;
}
.hfm-date-list li:last-child { border-bottom: none; }

.hfm-icon-card { transition: box-shadow .3s ease, transform .3s ease; }
.hfm-icon-card:hover { box-shadow: var(--hfm-shadow-card); transform: translateY(-3px); }
.hfm-icon-title { font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 10px; position: relative; padding-top: 16px; }
.hfm-icon-title::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 28px; height: 4px; border-radius: 2px; background: var(--hfm-red);
}
.hfm-icon-card p { color: var(--hfm-muted-text); font-size: 14px; line-height: 1.65; }

/* Pilots */
.hfm-avatar-initials {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--hfm-secondary); color: var(--hfm-red);
  font-weight: 900; font-size: 20px; letter-spacing: .02em;
}
.hfm-role-tag { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px !important; }

/* Flight Club: icon circles + pilot header row — v2.2 */
.hfm-icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(237,28,36,.08); font-size: 24px; margin-bottom: 16px;
}
.hfm-pilot-header { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.hfm-no-mb { margin-bottom: 0 !important; }
.hfm-flex-col { display: flex; flex-direction: column; }
.hfm-mt-auto { margin-top: auto; }

/* --------------------------------------------------------------------------
   Content, legal, forms, careers, contact — v1.4
   -------------------------------------------------------------------------- */
/* Legal & prose bodies */
.hfm-legal-body, .hfm-prose { max-width: 820px; }
.hfm-legal-h {
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: 20px; color: var(--hfm-dark); margin: 34px 0 12px;
}
.hfm-legal-body p, .hfm-prose p { color: var(--hfm-muted-text); line-height: 1.8; margin-bottom: 14px; }
.hfm-legal-body ul, .hfm-prose ul { color: var(--hfm-muted-text); line-height: 1.8; margin: 0 0 16px 20px; }
.hfm-legal-body a, .hfm-prose a, .hfm-links-row a { color: var(--hfm-red); font-weight: 600; }

/* Contact cards */
.hfm-contact-card { text-align: left; }
.hfm-contact-value { font-size: 18px; font-weight: 800; margin: 8px 0 4px; }
.hfm-contact-value a { color: var(--hfm-dark); }
.hfm-contact-value a:hover { color: var(--hfm-red); }
.hfm-contact-note { color: var(--hfm-muted-text); font-size: 13px; }
.hfm-links-row { color: var(--hfm-muted-text); line-height: 2.2; }

/* Check lists */
.hfm-check-list { list-style: none; margin: 14px 0 0; padding: 0; }
.hfm-check-list li {
  position: relative; padding: 8px 0 8px 30px; color: var(--hfm-dark);
  border-bottom: 1px solid rgba(229,229,229,.5); font-size: 15px;
}
.hfm-check-list li:last-child { border-bottom: none; }
.hfm-check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 8px;
  color: var(--hfm-red); font-weight: 900;
}

/* Advertise page: plain stats row (not a dark milestone band) — v2.3 */
.hfm-stats-row { border-bottom: 1px solid var(--hfm-border); }
.hfm-stat-plain { display: flex; flex-direction: column; }
.hfm-stat-plain .hfm-stat-num { font-size: 42px; font-weight: 700; color: var(--hfm-red); line-height: 1.1; }
.hfm-stat-plain .hfm-stat-label { color: var(--hfm-muted-text); font-size: 13px; margin-top: 6px; line-height: 1.4; max-width: 180px; }
.hfm-hr { border-top: 1px solid var(--hfm-border); }

.hfm-check-list-icon { list-style: none; margin: 0; padding: 0; }
.hfm-check-list-icon li {
  position: relative; padding: 4px 0 4px 36px; margin-bottom: 14px;
  color: var(--hfm-dark); font-size: 15px;
}
.hfm-check-list-icon li::before {
  content: '\2713'; position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(237,28,36,.1); color: var(--hfm-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900;
}

/* Form zones */
.hfm-form-zone { border-radius: var(--hfm-radius-card); }
.hfm-form-placeholder {
  padding: 40px; text-align: center; color: var(--hfm-muted-text);
  border: 2px dashed var(--hfm-border); border-radius: 12px;
  font-size: 14px; margin: 16px 0;
}
.hfm-form-note { font-size: 13px; color: var(--hfm-muted-text); font-style: italic; margin-top: 12px; }

/* Careers */
.hfm-job-card { transition: box-shadow .3s ease; }
.hfm-job-card:hover { box-shadow: var(--hfm-shadow-elevated); }
.hfm-job-meta { color: var(--hfm-muted-text); font-size: 13px; margin: 10px 0 14px; }
.hfm-perk .hfm-icon-title { padding-top: 16px; }

/* Roundup: style form-plugin fields to match brand once inserted */
.hfm-form-zone input[type=text], .hfm-form-zone input[type=email],
.hfm-form-zone input[type=tel], .hfm-form-zone input[type=url],
.hfm-form-zone textarea, .hfm-form-zone select {
  border: 1px solid var(--hfm-border) !important; border-radius: 10px !important;
  padding: 12px 14px !important; background: #fff !important;
}
.hfm-form-zone input:focus, .hfm-form-zone textarea:focus, .hfm-form-zone select:focus {
  border-color: var(--hfm-red) !important; box-shadow: 0 0 0 3px rgba(237,28,36,.12) !important;
}

/* --------------------------------------------------------------------------
   Dynamic Now/Next strip — v1.6
   -------------------------------------------------------------------------- */
.hfm-now-next {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 1100px; margin: 0 auto;
}
@media (max-width: 690px) { .hfm-now-next { grid-template-columns: 1fr; } }

.hfm-np-card {
  display: flex; flex-wrap: nowrap; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--hfm-border);
  border-radius: var(--hfm-radius-card); box-shadow: var(--hfm-shadow-soft);
  padding: 18px 22px;
  max-width: 100%; overflow: hidden; /* safety net: never let a child force the card wider than its box */
  box-sizing: border-box;
}

/* Badge: fixed-width pill, never stretches, sits inline with image+text */
.hfm-np-card .hfm-badge {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 66px; height: 34px; padding: 0 16px;
  border-radius: 100px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap;
  margin: 0;
}
.hfm-np-card .hfm-badge-live { background: var(--hfm-red); color: #fff; }
.hfm-np-card .hfm-badge-next { background: var(--hfm-secondary); color: var(--hfm-dark); }

/* Image: fixed square, never stretches */
.hfm-np-img-wrap { flex: 0 0 96px; width: 96px; height: 96px; }
.hfm-np-img, .hfm-np-img-placeholder {
  display: block; width: 96px; height: 96px;
  border-radius: 12px; object-fit: cover; object-position: top;
}
.hfm-np-img-placeholder { background: var(--hfm-secondary); }

/* Text: takes remaining space, always left-aligned regardless of parent alignment.
   min-width:0 is what actually allows a flex child to shrink below its content's
   natural width — without it, the title/meta/time can force the card to overflow. */
.hfm-np-body {
  flex: 1 1 auto; min-width: 0; max-width: 100%; text-align: left !important;
}
.hfm-np-body h5.hfm-np-title {
  margin: 0 0 2px; font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .01em; color: var(--hfm-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hfm-np-title a { color: var(--hfm-dark); }
.hfm-np-title a:hover { color: var(--hfm-red); }
.hfm-np-body p.hfm-np-meta {
  margin: 0 0 4px; font-size: 13px; color: var(--hfm-muted-text); text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hfm-np-body p.hfm-np-time {
  margin: 0; font-size: 13px; font-weight: 700; color: var(--hfm-red); text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Small phones: the fixed badge (66px) + image (96px) + gaps eat too much of a
   narrow screen, squeezing the text column to almost nothing. Shrink the fixed
   elements here instead of just letting text truncate harder. */
@media (max-width: 480px) {
  .hfm-np-card { gap: 10px; padding: 12px; }
  .hfm-np-card .hfm-badge { min-width: 46px; height: 26px; padding: 0 10px; font-size: 10px; }
  .hfm-np-img-wrap { flex: 0 0 52px; width: 52px; height: 52px; }
  .hfm-np-img, .hfm-np-img-placeholder { width: 52px; height: 52px; border-radius: 8px; }
  .hfm-np-body h5.hfm-np-title { font-size: 13px; }
  .hfm-np-body p.hfm-np-meta, .hfm-np-body p.hfm-np-time { font-size: 12px; }
}

/* Belt and braces at the container level too — guarantees this section can
   never trigger a page-wide horizontal scrollbar on any screen size. */
.hfm-now-next { overflow-x: hidden; }

/* --------------------------------------------------------------------------
   v2 update: empty states, event detail pages, podcast embed — v1.7
   -------------------------------------------------------------------------- */
.hfm-empty-state { text-align: center; }
.hfm-empty-icon { font-size: 48px; margin-bottom: 18px; }
.hfm-empty-lede { color: var(--hfm-muted-text); font-size: 16px; max-width: 560px; margin: 0 auto 14px; line-height: 1.7; }

.hfm-event-detail-list { list-style: none; margin: 0 0 28px; padding: 0; }
.hfm-event-detail-list li { font-size: 15px; color: var(--hfm-dark); padding: 6px 0; }
.hfm-hits-row { color: var(--hfm-muted-text); line-height: 2; }
.hfm-note-box {
  background: var(--hfm-secondary); border-radius: 12px; padding: 16px 20px;
  font-size: 14px; color: var(--hfm-dark); margin-top: 10px;
}
.hfm-date-chip { text-align: center; }
.hfm-date-chip strong { color: var(--hfm-dark); font-size: 14px; }
.hfm-show-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }

.hfm-podcast-embed iframe { width: 100%; border: 0; display: block; }

/* --------------------------------------------------------------------------
   News index page — v2.4
   -------------------------------------------------------------------------- */
.hfm-news-filters {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hfm-border);
  padding: 16px 4%; margin: 0 -4% 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.hfm-news-pills { display: flex; gap: 8px; flex-wrap: wrap; overflow-x: auto; }
.hfm-news-pill {
  border: none; background: var(--hfm-secondary); color: rgba(20,20,20,.7);
  border-radius: 100px; padding: 8px 18px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; cursor: pointer;
  transition: all .2s ease;
}
.hfm-news-pill:hover { background: #ebebeb; }
.hfm-news-pill.is-active { background: var(--hfm-red); color: #fff; box-shadow: var(--hfm-shadow-glow); }

.hfm-news-search { position: relative; width: 280px; max-width: 100%; }
.hfm-news-search input {
  width: 100%; padding: 10px 16px 10px 38px; border-radius: 100px;
  border: 1px solid var(--hfm-border); background: var(--hfm-secondary);
  font-size: 13px; color: var(--hfm-dark);
}
.hfm-news-search input:focus { outline: none; border-color: var(--hfm-red); background: #fff; }
.hfm-news-search::before {
  content: '\1F50D'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 13px; opacity: .5;
}

.hfm-news-empty { text-align: center; padding: 80px 0; color: var(--hfm-muted-text); }

/* Featured card */
.hfm-news-featured-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--hfm-border); border-radius: 20px;
  overflow: hidden; box-shadow: var(--hfm-shadow-card); margin-bottom: 60px;
  transition: box-shadow .3s ease;
}
.hfm-news-featured-card:hover { box-shadow: var(--hfm-shadow-elevated); }
@media (max-width: 899px) { .hfm-news-featured-card { grid-template-columns: 1fr; } }
.hfm-news-featured-media { aspect-ratio: 16/10; overflow: hidden; background: var(--hfm-secondary); }
.hfm-news-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hfm-news-featured-card:hover .hfm-news-featured-media img { transform: scale(1.05); }
.hfm-news-featured-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.hfm-news-featured-tags { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hfm-news-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--hfm-muted-text); }
.hfm-news-featured-title {
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.05; margin-bottom: 16px; color: var(--hfm-dark);
}
.hfm-news-featured-card:hover .hfm-news-featured-title { color: var(--hfm-red); }
.hfm-news-featured-excerpt { color: var(--hfm-muted-text); line-height: 1.7; margin-bottom: 24px; }
.hfm-news-featured-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hfm-news-date { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--hfm-muted-text); }
.hfm-news-read { font-size: 13px; font-weight: 700; color: var(--hfm-red); }

/* Grid cards */
.hfm-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 999px) { .hfm-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 690px) { .hfm-news-grid { grid-template-columns: 1fr; } }
.hfm-news-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--hfm-border); border-radius: 16px;
  overflow: hidden; box-shadow: var(--hfm-shadow-card); transition: box-shadow .3s ease;
}
.hfm-news-card:hover { box-shadow: var(--hfm-shadow-elevated); }
.hfm-news-card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--hfm-secondary); }
.hfm-news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hfm-news-card:hover .hfm-news-card-media img { transform: scale(1.05); }
.hfm-news-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.hfm-news-card-body .hfm-news-cat { color: var(--hfm-red); margin-bottom: 8px; }
.hfm-news-card-title {
  font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: 16px; line-height: 1.25; margin-bottom: 10px; color: var(--hfm-dark);
}
.hfm-news-card:hover .hfm-news-card-title { color: var(--hfm-red); }
.hfm-news-card-excerpt { color: var(--hfm-muted-text); font-size: 13px; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.hfm-news-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--hfm-border);
}
.hfm-news-card-foot .hfm-news-read { font-size: 11px; }

/* --------------------------------------------------------------------------
   Competition CPT: hub grid + single page — v2.6
   -------------------------------------------------------------------------- */
.hfm-comp-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
}
@media (max-width: 899px) { .hfm-comp-grid { grid-template-columns: 1fr; } }
.hfm-comp-card { display: block; text-decoration: none; }
.hfm-comp-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.hfm-comp-card .hfm-card-title { color: var(--hfm-dark); }
.hfm-comp-card:hover .hfm-card-title { color: var(--hfm-red); }

/* Single competition page */
.hfm-comp-banner {
  height: 340px; background-size: cover; background-position: center;
  border-radius: 0 0 24px 24px;
}
@media (max-width: 690px) { .hfm-comp-banner { height: 200px; } }

.hfm-comp-header { max-width: 720px; padding: 48px 0 30px; }
.hfm-comp-header .hfm-badge { margin-bottom: 14px; }
.hfm-badge-upcoming { background: #fff3cd; color: #8a6500; }
.hfm-badge-ended { background: var(--hfm-secondary); color: var(--hfm-muted-text); }
.hfm-comp-banner-dim { filter: grayscale(0.5) brightness(0.75); }
.hfm-comp-status-note { color: var(--hfm-muted-text); font-size: 14px; margin-top: 4px; }
.hfm-comp-status-note a { color: var(--hfm-red); font-weight: 600; }
.hfm-sponsor-line { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--hfm-muted-text); margin-bottom: 10px !important; }
.hfm-comp-meta-lg { font-size: 15px; color: var(--hfm-dark); margin-bottom: 24px; }
.hfm-comp-body { max-width: 720px; padding-bottom: 90px; color: var(--hfm-muted-text); line-height: 1.8; }
.hfm-comp-body h2, .hfm-comp-body h3 { color: var(--hfm-dark); margin: 28px 0 14px; }
.hfm-comp-body p { margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   Top 40 Chart — v2.8
   -------------------------------------------------------------------------- */
.hfm-top40 { max-width: 820px; margin: 0 auto; }
.hfm-top40-week {
  text-align: center; color: var(--hfm-red); font-weight: 700;
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 24px;
}
.hfm-top40-list { display: flex; flex-direction: column; gap: 10px; }

.hfm-top40-row {
  display: grid; grid-template-columns: 40px 56px 56px 1fr 44px;
  align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--hfm-border);
  border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--hfm-shadow-soft); transition: box-shadow .25s ease;
}
.hfm-top40-row:hover { box-shadow: var(--hfm-shadow-card); }
.hfm-top40-row.is-playing { border-color: var(--hfm-red); box-shadow: var(--hfm-shadow-glow); }

.hfm-top40-rank { font-size: 22px; font-weight: 900; color: var(--hfm-dark); text-align: center; }

.hfm-top40-movement { display: flex; justify-content: center; }
.hfm-top40-move { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 3px; }
.hfm-top40-move-up { color: #1a9c4a; }
.hfm-top40-move-down { color: var(--hfm-red); }
.hfm-top40-move-same { color: var(--hfm-muted-text); font-size: 16px; }
.hfm-top40-badge-new {
  background: var(--hfm-red); color: #fff; font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 100px; letter-spacing: .04em;
}

.hfm-top40-art { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--hfm-secondary); }
.hfm-top40-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hfm-top40-art-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--hfm-muted-text); font-size: 20px;
}

.hfm-top40-info { min-width: 0; }
.hfm-top40-title {
  font-weight: 800; font-size: 15px; color: var(--hfm-dark); margin: 0 0 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hfm-top40-artist {
  font-size: 13px; color: var(--hfm-muted-text); margin: 0 0 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hfm-top40-weeks { font-size: 11px; color: var(--hfm-muted-text); margin: 0; text-transform: uppercase; letter-spacing: .04em; }

.hfm-top40-play-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--hfm-secondary); color: var(--hfm-dark);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.hfm-top40-play-btn:hover { background: var(--hfm-red); color: #fff; }
.hfm-top40-icon-pause { display: none; font-size: 11px; }
.hfm-top40-icon-play { font-size: 13px; margin-left: 2px; }
.hfm-top40-row.is-playing .hfm-top40-icon-play { display: none; }
.hfm-top40-row.is-playing .hfm-top40-icon-pause { display: inline; margin-left: 0; }
.hfm-top40-row.is-playing .hfm-top40-play-btn { background: var(--hfm-red); color: #fff; }

.hfm-top40-empty { text-align: center; color: var(--hfm-muted-text); padding: 60px 0; }

@media (max-width: 600px) {
  .hfm-top40-row { grid-template-columns: 28px 40px 44px 1fr 36px; gap: 10px; padding: 10px 12px; }
  .hfm-top40-rank { font-size: 17px; }
  .hfm-top40-art { width: 44px; height: 44px; }
  .hfm-top40-title { font-size: 13px; }
  .hfm-top40-artist { font-size: 12px; }
  .hfm-top40-weeks { display: none; }
  .hfm-top40-play-btn { width: 32px; height: 32px; }
}
