/* =============================================
   BIG DUDES MUSIC — THEME.CSS
   Component-level styles, section overrides,
   animations, and responsive tweaks.
   ============================================= */

/* ──────────────────────────────────────────────
   SITE HEADER
   ────────────────────────────────────────────── */
.bdm-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bdm-dark);
    border-bottom: 1px solid var(--bdm-border);
    box-shadow: 0 2px 16px rgba(0,0,0,.6);
}

/* WP Nav override */
.bdm-primary-nav .wp-block-navigation-item a {
    font-family: var(--bdm-font-body);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--bdm-white);
    padding: .25rem 0;
    transition: color var(--bdm-transition);
}
.bdm-primary-nav .wp-block-navigation-item a:hover,
.bdm-primary-nav .wp-block-navigation-item.current-menu-item a { color: var(--bdm-red); }

.bdm-icon-link {
    position: relative;
    line-height: 1;
    transition: color var(--bdm-transition);
}
.bdm-icon-link:hover { color: var(--bdm-red) !important; }

.bdm-logo img,
.bdm-logo-img { display: block; height: 44px; width: auto; max-width: 100%; }

.bdm-logo-link { line-height: 0; }

/* ──────────────────────────────────────────────
   HERO SECTION (home page)
   ────────────────────────────────────────────── */
.bdm-hero {
    background-attachment: fixed;
    background-position: center top;
}
@media (max-width: 768px) {
    .bdm-hero { background-attachment: scroll; }
}
/* On tall viewports (>1080px) the fixed-attachment parallax sizes the
   background to the full viewport, so the hero section only shows a small
   slice near the top. Switching to scroll sizes the background to the hero
   element itself and lets center-center framing work correctly. */
@media (min-height: 1081px) {
    .bdm-hero {
        background-attachment: scroll;
        background-position: center center;
    }
}

.bdm-cr-heading {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}
@media (min-width: 768px) {
    .bdm-cr-heading { max-width: 620px; }
}

/* ──────────────────────────────────────────────
   INTERIOR PAGE — BREADCRUMBS
   ────────────────────────────────────────────── */
.bdm-breadcrumbs {
    background-color: #111111;
    border-bottom: 1px solid var(--bdm-border);
    padding: .55rem 0;
}

.bdm-breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}

.bdm-breadcrumbs__item {
    font-family: var(--bdm-font-body);
    font-size: .78rem;
    color: var(--bdm-muted);
}

.bdm-breadcrumbs__item a {
    color: var(--bdm-muted);
    text-decoration: none;
    transition: color .2s;
}
.bdm-breadcrumbs__item a:hover { color: var(--bdm-red); }

.bdm-breadcrumbs__item:not(.bdm-breadcrumbs__item--current)::after {
    content: '›';
    margin-left: .35rem;
    color: #666666;
    font-size: .9rem;
    line-height: 1;
}

.bdm-breadcrumbs__item--current {
    color: var(--bdm-off-white);
    font-weight: 600;
}

/* ──────────────────────────────────────────────
   INTERIOR PAGE — HERO BANNER
   ────────────────────────────────────────────── */
.bdm-interior-hero {
    min-height: 180px;
    background-color: #111111;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.bdm-interior-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(13,13,13,.88) 40%, rgba(13,13,13,.55) 100%);
    z-index: 1;
}

.bdm-interior-hero__content {
    z-index: 2;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.bdm-interior-hero__title {
    font-family: var(--bdm-font-heading);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.05;
    color: #ffffff;
}

@media (max-width: 768px) {
    .bdm-interior-hero { background-attachment: scroll; }
}

/* ──────────────────────────────────────────────
   SPOTLIGHT BAND PAGE — HERO BANNER
   (Not a reuse of .bdm-interior-hero above — that one's gradient fades
   left-to-right; this needs the same top-to-bottom "darker at the
   bottom" gradient already used by the spotlight cards themselves.)
   ────────────────────────────────────────────── */
.bdm-spotlight-hero {
    /* Content-height, not a fixed banner height — a video-only band (no
       Long Description) should stay short so the Featured Video sits
       high on the page instead of forcing a scroll to reach it. This
       floor just keeps a name-only band from looking like a razor-thin
       sliver. */
    min-height: 200px;
    background-color: var(--bdm-card-2);
    display: flex;
    align-items: flex-start;
}

.bdm-spotlight-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 40%, transparent 75%);
    z-index: 1;
}

.bdm-spotlight-hero__content {
    z-index: 2;
    width: 100%;
    padding: 2rem 1.5rem;
}

/* Long Description panel, when present — a hard-edged text-shadow (used
   on the name above) reads fine for one bold headline, not for multi-
   line paragraph copy, so this gets its own semi-transparent backdrop
   instead, independent of wherever the gradient happens to be. */
.bdm-spotlight-hero__desc {
    margin-top: 1.25rem;
    max-width: 640px;
    background: rgba(0,0,0,.55);
    border-radius: var(--bdm-radius);
    padding: 1.25rem 1.5rem;
}
.bdm-spotlight-hero__desc p:last-child { margin-bottom: 0; }

/* ──────────────────────────────────────────────
   RADIO WAVEFORM ANIMATION
   ────────────────────────────────────────────── */
.bdm-radio-waveform {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
}
.bdm-radio-waveform span {
    display: block;
    width: 3px;
    background-color: var(--bdm-red);
    border-radius: 2px;
    animation: bdmWave 1.2s ease-in-out infinite;
    animation-play-state: paused;
}
.bdm-radio-waveform.bdm-onair span { animation-play-state: running; }
.bdm-radio-waveform span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.bdm-radio-waveform span:nth-child(2) { height: 16px; animation-delay: .15s; }
.bdm-radio-waveform span:nth-child(3) { height: 12px; animation-delay: .3s; }
.bdm-radio-waveform span:nth-child(4) { height: 20px; animation-delay: .45s; }
.bdm-radio-waveform span:nth-child(5) { height: 10px; animation-delay: .6s; }

.bdm-radio-waveform--sm span { width: 2px; }
.bdm-radio-waveform--sm { height: 14px; }
.bdm-radio-waveform--sm span:nth-child(1) { height: 6px; }
.bdm-radio-waveform--sm span:nth-child(2) { height: 12px; }
.bdm-radio-waveform--sm span:nth-child(3) { height: 8px; }

/* In-page radio bar only (not the sticky footer player, which uses
   --sm above) — a self-contained modifier with its own full set of
   overrides, same pattern as --sm, so doubling it can't bleed into the
   footer's waveform via the shared base .bdm-radio-waveform rule. */
.bdm-radio-waveform--lg { height: 40px; }
.bdm-radio-waveform--lg span { width: 6px; }
.bdm-radio-waveform--lg span:nth-child(1) { height: 16px; }
.bdm-radio-waveform--lg span:nth-child(2) { height: 32px; }
.bdm-radio-waveform--lg span:nth-child(3) { height: 24px; }
.bdm-radio-waveform--lg span:nth-child(4) { height: 40px; }
.bdm-radio-waveform--lg span:nth-child(5) { height: 20px; }

/* In-page radio bar — mobile sizing pass (desktop confirmed good, mobile
   still being worked through one element at a time). */
@media (max-width: 768px) {
    .bdm-radio-logo-img { width: 159px; height: 61px; } /* 60% of the 265x102 desktop size */

    /* CTA column (Listen Live / Submit Your Music) wraps onto its own row
       on mobile — Bootstrap's .col-auto sizes it to content width and the
       row's default justify-content (flex-start) pins that narrow box to
       the LEFT edge. The align-items:end on its inner flex-column only
       right-aligns the two lines relative to EACH OTHER within that
       narrow box, not relative to the full bar width — confirmed via
       live inspection (bounding rects), not guessed. Forcing the column
       to the full row width and right-justifying its content within that
       width is what actually pushes it to the right edge of the screen. */
    .bdm-radio-bar-cta {
        flex: 0 0 100%;
        max-width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

@keyframes bdmWave {
    0%, 100% { transform: scaleY(1); }
    50%       { transform: scaleY(.4); }
}

.bdm-paused .bdm-radio-waveform span { animation-play-state: paused; }

/* Radio play button */
.bdm-radio-play-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    transition: transform var(--bdm-transition), opacity var(--bdm-transition);
}
.bdm-radio-play-btn:hover { transform: scale(1.1); opacity: .85; }

/* ──────────────────────────────────────────────
   VIDEO CARDS
   ────────────────────────────────────────────── */
.bdm-video-card { background: var(--bdm-card); }

.bdm-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.25);
    transition: background var(--bdm-transition);
    text-decoration: none;
    /* button reset */
    border: none;
    padding: 0;
    cursor: pointer;
}
.bdm-play-overlay:hover { background: rgba(0,0,0,.5); }

.bdm-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bdm-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    transition: transform var(--bdm-transition), background var(--bdm-transition);
    box-shadow: 0 4px 20px rgba(230,48,48,.4);
}
.bdm-play-overlay:hover .bdm-play-btn {
    transform: scale(1.1);
    background: var(--bdm-red-dark);
}

.bdm-play-btn--sm {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.bdm-video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .75rem;
    background: linear-gradient(to top, rgba(13,13,13,.95) 0%, rgba(13,13,13,0) 100%);
}
.bdm-video-caption--sm { padding: .5rem .6rem; }

/* Caption is bottom-anchored with no fixed height (grows upward to fit its
   content), so an unusually long YouTube title can cover most of the
   thumbnail instead of sitting in a slim caption strip. Clamp so caption
   height stays predictable regardless of title length. */
.bdm-video-caption-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
}

/* ──────────────────────────────────────────────
   PAGE CONTENT TYPOGRAPHY
   ────────────────────────────────────────────── */
.bdm-site-main h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.bdm-site-main h3 {
    margin-top: 2rem;
    margin-bottom: .75rem;
}
.bdm-site-main h4 {
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}
.bdm-site-main blockquote {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
}
.bdm-site-main blockquote cite {
    display: block;
    margin-top: .75rem;
}
.bdm-site-main a,
.bdm-site-main a:visited {
    color: #e63030;
}
.bdm-site-main a:hover {
    color: #ffffff;
}

/* ──────────────────────────────────────────────
   RENTAL PACKAGE CARD
   ────────────────────────────────────────────── */
.bdm-rental-card {
    background: #ffffff;
    border: 2px solid #555555;
    border-radius: 10px;
    padding: 1.75rem 2rem;
    margin: 0 auto 2rem;
    max-width: 860px;
    color: #1a1a1a;
}
.bdm-rental-card h2,
.bdm-rental-card h3,
.bdm-rental-card h4 {
    color: #1a1a1a;
}
.bdm-rental-card p,
.bdm-rental-card li {
    color: #333333;
}

/* Utility: force a heading to the brand red */
.bdm-heading-red { color: #e63030 !important; }

/* Utility: paragraph spacing */
.bdm-mt-sm  { margin-top: 1rem !important; }
.bdm-mt-md  { margin-top: 2rem !important; }
.bdm-mt-lg  { margin-top: 3rem !important; }
.bdm-mb-sm  { margin-bottom: 1rem !important; }
.bdm-mb-md  { margin-bottom: 2rem !important; }
.bdm-mb-lg  { margin-bottom: 3rem !important; }

/* Portrait (tall) image — constrain display width, lightbox still opens full size */
.bdm-img-portrait {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 575.98px) {
    .bdm-img-portrait { max-width: 80%; }
}

/* ──────────────────────────────────────────────
   SECTIONS
   ────────────────────────────────────────────── */
.bdm-section + .bdm-section { border-top: 1px solid var(--bdm-border); }

/* ──────────────────────────────────────────────
   SOCIAL ICONS HOVER
   ────────────────────────────────────────────── */
.bdm-social-icon:hover { color: var(--bdm-red) !important; }

/* ──────────────────────────────────────────────
   STICKY RADIO PLAYER
   ────────────────────────────────────────────── */
.bdm-sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bdm-player-height);
    background-color: var(--bdm-dark);
    border-top: 1px solid var(--bdm-border);
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,.5);
}

.bdm-player-play {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    transition: transform var(--bdm-transition);
}
.bdm-player-play:hover { transform: scale(1.15); }

.bdm-volume-slider {
    -webkit-appearance: none;
    height: 3px;
    border-radius: 2px;
    background: var(--bdm-border-2);
    outline: none;
    cursor: pointer;
}
.bdm-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bdm-red);
    cursor: pointer;
}
.bdm-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bdm-red);
    cursor: pointer;
    border: none;
}

/* ──────────────────────────────────────────────
   MUSICIAN CARDS / BAND CARDS HOVER
   ────────────────────────────────────────────── */
.bdm-card:hover .bdm-card-img { transform: scale(1.03); }

/* ──────────────────────────────────────────────
   LOCAL BAND SPOTLIGHT — whole-card link hover
   (card itself is a stretched-link; :hover on the
   outer .bdm-spotlight-card still fires via this
   descendant overlay, so this "just works")
   ────────────────────────────────────────────── */
.bdm-spotlight-card-img { transition: transform var(--bdm-transition); }
.bdm-spotlight-card:hover .bdm-spotlight-card-img { transform: scale(1.03); }

/* ──────────────────────────────────────────────
   GET CONNECTED — Community Connection logo cards
   ────────────────────────────────────────────── */
.bdm-connection-card-img { transition: transform var(--bdm-transition); }
.bdm-connection-card:hover .bdm-connection-card-img { transform: scale(1.05); }

.bdm-connections-scroller {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.bdm-connections-scroller::-webkit-scrollbar { display: none; }
.bdm-connections-scroller .bdm-connection-card { flex-shrink: 0; }

.bdm-connections-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bdm-card);
    border: 1px solid var(--bdm-border-2);
    color: var(--bdm-red);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    transition: background-color .2s, color .2s, opacity .2s;
}
.bdm-connections-arrow:hover:not(:disabled) {
    background-color: var(--bdm-red);
    border-color: var(--bdm-red);
    color: #ffffff;
}
.bdm-connections-arrow:disabled { cursor: default; }
.bdm-connections-arrow--prev { left: -8px; }
.bdm-connections-arrow--next { right: -8px; }
.bdm-connections-wrap.bdm-connections-no-overflow .bdm-connections-arrow { display: none; }

/* ──────────────────────────────────────────────
   SPOTLIGHT BAND PAGE — Featured Video (oEmbed)
   Overrides whatever fixed width/height the returned
   embed HTML carries (YouTube, Vimeo, etc. all just
   work). Uses aspect-ratio, NOT the padding-bottom:
   56.25%/height:0 percentage trick used elsewhere
   (bdm_video_modal_html()'s iframe) — this element
   sits as a direct child of a WordPress "constrained"
   layout group (<main class="...is-layout-constrained">),
   which caps ITS OWN width (e.g. 1200px) narrower than
   its containing block's width (the unconstrained
   <main>, e.g. 1415px). Percentage padding-bottom
   resolves against the *containing block's* width, not
   the element's own — so the old 56.25% padding-bottom
   was actually rendering at ~66% here, making the video
   box much taller than intended. aspect-ratio sizes
   against the element's own box, sidestepping that
   entirely — confirmed the actual bug via computed
   styles on the live Sylarin page, not guessed.
   ────────────────────────────────────────────── */
.bdm-spotlight-featured-video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--bdm-radius);
}
.bdm-spotlight-featured-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ──────────────────────────────────────────────
   WP BLOCK EDITOR OVERRIDES
   (ensure dark bg in editor)
   ────────────────────────────────────────────── */
.editor-styles-wrapper {
    background-color: var(--bdm-black) !important;
    color: var(--bdm-white) !important;
    font-family: var(--bdm-font-body) !important;
}

/* ──────────────────────────────────────────────
   THE EVENTS CALENDAR OVERRIDES
   ────────────────────────────────────────────── */
.tribe-events-calendar,
.tribe-events-header,
.tribe-events-footer,
.tribe-events-page-title,
.tribe-events-content { color: var(--bdm-white) !important; }

.tribe-events-calendar .tribe_events_cat-community-roots { color: var(--bdm-red); }

.datepicker.tribe-events-widget-countdown { background: var(--bdm-card) !important; }

/* ──────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .bdm-primary-nav { display: none; }
}

@media (max-width: 767.98px) {
    :root { --bdm-section-py: 2.5rem; }
    .bdm-sticky-player .container-xl { padding-left: 1rem; padding-right: 1rem; }
    .bdm-site-main { padding-left: 1.25rem; padding-right: 1.25rem; }
}

@media (max-width: 575.98px) {
    :root { --bdm-player-height: 56px; }
    .bdm-sticky-player { font-size: .8rem; }
}

/* ──────────────────────────────────────────────
   SEARCH RESULTS PAGE
   ────────────────────────────────────────────── */

/* "Search Results for: …" heading */
.search-results .wp-block-query-title {
    font-family: var(--bdm-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #ffffff;
}

/* Mobile: constrain image to 250px, stacked above content */
.search-results .wp-block-post-featured-image {
    max-width: 250px;
}

/* Desktop: 2-col grid — image left, all text content stacked on right.
   grid-row: 1 / span 3 is required (not 1 / -1) because -1 only reaches
   the explicit grid end; with implicit rows it leaves the figure in row 1
   alone, making row 1 as tall as the image and pushing date/excerpt below. */
@media (min-width: 768px) {
    .search-results .bdm-post-card {
        display: grid;
        grid-template-columns: 250px 1fr;
        column-gap: 1.5rem;
    }
    .search-results .bdm-post-card .wp-block-post-featured-image {
        grid-column: 1;
        grid-row: 1 / span 3;
        align-self: start;
        max-width: 100%;
        margin-bottom: 0 !important;
    }
    /* All non-image children stack in the right column */
    .search-results .bdm-post-card > :not(.wp-block-post-featured-image) {
        grid-column: 2;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Pagination — WP injects a unique per-render class with justify-content:
   space-between which can't be targeted by name. Switching to CSS Grid with
   named areas keeps numbers centred whether or not Previous exists. */
.search-results .wp-block-query-pagination {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "prev nums next";
    align-items: center;
    gap: .5rem;
    margin-top: 2rem;
}
.search-results .wp-block-query-pagination-previous {
    grid-area: prev;
    justify-self: start;
}
.search-results .wp-block-query-pagination-numbers {
    grid-area: nums;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    justify-content: center;
}
.search-results .wp-block-query-pagination-next {
    grid-area: next;
    justify-self: end;
}

/* Style all pagination links / current-page indicator */
.search-results .wp-block-query-pagination-previous,
.search-results .wp-block-query-pagination-next,
.search-results .wp-block-query-pagination-numbers a,
.search-results .wp-block-query-pagination-numbers span {
    font-family: var(--bdm-font-body);
    font-size: .85rem;
    color: var(--bdm-off-white);
    text-decoration: none;
    padding: .35rem .7rem;
    border: 1px solid var(--bdm-border-2);
    background-color: var(--bdm-card);
    border-radius: 3px;
    transition: background-color .2s, border-color .2s, color .2s;
    white-space: nowrap;
}
.search-results .wp-block-query-pagination-previous:hover,
.search-results .wp-block-query-pagination-next:hover,
.search-results .wp-block-query-pagination-numbers a:hover {
    background-color: var(--bdm-red);
    border-color: var(--bdm-red);
    color: #ffffff;
}
.search-results .wp-block-query-pagination-numbers .page-numbers.current {
    background-color: var(--bdm-red);
    border-color: var(--bdm-red);
    color: #ffffff;
}

/* ──────────────────────────────────────────────
   HEADER SEARCH FORM
   ────────────────────────────────────────────── */
.bdm-search-input {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-right: none;
    border-radius: 3px 0 0 3px;
    color: #ffffff;
    font-family: 'Nunito Sans', sans-serif;
    font-size: .8rem;
    padding: .3rem .65rem;
    width: 150px;
    outline: none;
    transition: border-color .2s, width .25s;
}
.bdm-search-input::placeholder { color: #888888; }
.bdm-search-input:focus {
    border-color: #e63030;
    width: 200px;
}
.bdm-search-btn {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-left: none;
    border-radius: 0 3px 3px 0;
    color: #ffffff;
    font-size: 1rem;
    padding: .3rem .6rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: background-color .2s, border-color .2s;
}
.bdm-search-btn:hover {
    background-color: #e63030;
    border-color: #e63030;
}
/* Mobile: input fills available width */
@media (max-width: 1199.98px) {
    .bdm-search-input,
    .bdm-search-input:focus { width: 100%; }
}

/* ──────────────────────────────────────────────
   BACK TO TOP BUTTON
   ────────────────────────────────────────────── */
.bdm-back-to-top {
    position: fixed;
    bottom: calc(var(--bdm-player-height) + 1rem);
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bdm-card);
    border: 1px solid var(--bdm-border-2);
    color: var(--bdm-red);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s, visibility .25s, transform .25s, background-color .2s, color .2s;
    z-index: 998;
}
.bdm-back-to-top:hover {
    background-color: var(--bdm-red);
    border-color: var(--bdm-red);
    color: #ffffff;
}
.bdm-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ──────────────────────────────────────────────
   SCROLL ANIMATIONS (Intersection Observer)
   Classes applied by main.js
   ────────────────────────────────────────────── */
.bdm-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}
.bdm-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ──────────────────────────────────────────────
   ACCESSIBILITY
   ────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--bdm-red);
    outline-offset: 3px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ──────────────────────────────────────────────
   GRAVITY FORMS — NEWSLETTER SECTION OVERRIDES
   ────────────────────────────────────────────── */
.bdm-newsletter .gform_wrapper {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}
.bdm-newsletter .gform_heading {
    display: none;
}
.bdm-newsletter .gform-body,
.bdm-newsletter .gform_body {
    padding: 0 !important;
    margin: 0 !important;
}
/* Row: two half-width fields side by side */
.bdm-newsletter .gform_fields {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: .5rem !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin: 0 !important;
    grid-template-columns: unset !important;
}
.bdm-newsletter .gfield {
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}
.bdm-newsletter .gfield--type-email {
    flex: 1 1 auto !important;
}
.bdm-newsletter .gfield--type-submit {
    flex: 0 0 auto !important;
}
.bdm-newsletter .ginput_container {
    margin: 0 !important;
}
/* Email input */
.bdm-newsletter .ginput_container_email input[type="email"] {
    width: 100% !important;
    background: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: .7rem 1.25rem !important;
    font-size: .9rem !important;
    color: #111 !important;
    outline: none !important;
    box-shadow: none !important;
    height: auto !important;
    margin: 0 !important;
}
.bdm-newsletter .ginput_container_email input[type="email"]:focus {
    outline: none !important;
    box-shadow: none !important;
}
/* Submit button */
.bdm-newsletter .gform-button[type="submit"],
.bdm-newsletter input[type="submit"] {
    background: #0d0d0d !important;
    color: #fff !important;
    border: 2px solid #0d0d0d !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    padding: .7rem 1.75rem !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background .2s, color .2s !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    height: auto !important;
    margin: 0 !important;
}
.bdm-newsletter .gform-button[type="submit"]:hover,
.bdm-newsletter input[type="submit"]:hover {
    background: #fff !important;
    color: #111 !important;
    border-color: #fff !important;
}
/* Footer only contains hidden inputs — collapse visual space */
.bdm-newsletter .gform_footer {
    padding: 0 !important;
    margin: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ──────────────────────────────────────────────
   GRAVITY FORMS — INTERIOR PAGE (ORBITAL THEME) OVERRIDES
   Applies to full-length forms embedded in page content
   on the Interior Page (Services) template, e.g. Submit
   Your Music. GF's Orbital theme drives its colors via
   --gf-* custom properties, so reset those first for
   broad coverage, then patch a few elements directly.
   ────────────────────────────────────────────── */
.bdm-site-main .gform_wrapper.gform-theme {
    --gf-color-primary: var(--bdm-red) !important;
    --gf-color-primary-contrast: var(--bdm-white) !important;
    --gf-color-primary-darker: var(--bdm-red-dark) !important;
    --gf-color-primary-lighter: var(--bdm-red-hover) !important;
    --gf-color-in-ctrl: var(--bdm-card) !important;
    --gf-color-in-ctrl-contrast: var(--bdm-off-white) !important;
    --gf-color-in-ctrl-primary: var(--bdm-red) !important;
    --gf-ctrl-border-color: var(--bdm-border-2) !important;
    --gf-ctrl-label-color-primary: var(--bdm-off-white) !important;
    --gf-ctrl-label-color-secondary: var(--bdm-muted) !important;
}
.bdm-site-main .gform_wrapper {
    max-width: 640px;
    margin: 0 auto;
}
.bdm-site-main .gform_title {
    font-family: var(--bdm-font-heading) !important;
    color: var(--bdm-white) !important;
}
.bdm-site-main .gform_description {
    color: var(--bdm-muted) !important;
}
.bdm-site-main .gform-field-label__text,
.bdm-site-main .gfield_label {
    color: var(--bdm-off-white) !important;
}
.bdm-site-main .gfield_required_text {
    color: var(--bdm-red) !important;
}
.bdm-site-main .gfield_description {
    color: var(--bdm-muted) !important;
}
/* Text, email, url, tel, textarea, select inputs */
.bdm-site-main .ginput_container input[type="text"],
.bdm-site-main .ginput_container input[type="email"],
.bdm-site-main .ginput_container input[type="url"],
.bdm-site-main .ginput_container input[type="tel"],
.bdm-site-main .ginput_container textarea,
.bdm-site-main .ginput_container_select select {
    background: var(--bdm-card) !important;
    border: 1px solid var(--bdm-border-2) !important;
    border-radius: var(--bdm-radius) !important;
    color: var(--bdm-off-white) !important;
    padding: .7rem 1rem !important;
    outline: none !important;
    box-shadow: none !important;
}
/* Orbital theme draws selects with appearance:none + its own arrow image;
   the shorthand `background` override above wipes that image out, and the
   native widget then fights our padding and clips the text. Take over the
   arrow and box model completely so it renders like a normal control. */
.bdm-site-main .ginput_container_select select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.4 !important;
    padding-right: 2.5rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e0e0e0' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px 8px !important;
}
/* Dropdown popup list — OS-rendered, but color/background are stylable in
   most browsers; without this the options inherit light text on a white
   popup background from the select's own dark styling above. */
.bdm-site-main .ginput_container_select select option {
    background: var(--bdm-card) !important;
    color: var(--bdm-off-white) !important;
}
.bdm-site-main .ginput_container input[type="text"]::placeholder,
.bdm-site-main .ginput_container input[type="email"]::placeholder,
.bdm-site-main .ginput_container input[type="url"]::placeholder,
.bdm-site-main .ginput_container input[type="tel"]::placeholder,
.bdm-site-main .ginput_container textarea::placeholder {
    color: var(--bdm-muted) !important;
}
.bdm-site-main .ginput_container input[type="text"]:focus,
.bdm-site-main .ginput_container input[type="email"]:focus,
.bdm-site-main .ginput_container input[type="url"]:focus,
.bdm-site-main .ginput_container input[type="tel"]:focus,
.bdm-site-main .ginput_container textarea:focus,
.bdm-site-main .ginput_container_select select:focus {
    border-color: var(--bdm-red) !important;
    box-shadow: 0 0 0 3px rgba(230, 48, 48, .15) !important;
}
/* Submit button (Orbital renders a <button>, not <input type="submit">) */
.bdm-site-main .gform_footer button.gform_button,
.bdm-site-main .gform_page_footer button.gform_button {
    background: var(--bdm-red) !important;
    border: 2px solid var(--bdm-red) !important;
    color: var(--bdm-white) !important;
    font-family: var(--bdm-font-heading) !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    padding: .7rem 1.75rem !important;
    border-radius: var(--bdm-radius) !important;
    box-shadow: none !important;
}
.bdm-site-main .gform_footer button.gform_button:hover {
    background: var(--bdm-red-dark) !important;
    border-color: var(--bdm-red-dark) !important;
}
/* Validation */
.bdm-site-main .gfield_error .ginput_container input,
.bdm-site-main .gfield_error .ginput_container textarea,
.bdm-site-main .gfield_error .ginput_container_select select {
    border-color: var(--bdm-red) !important;
}
.bdm-site-main .validation_message {
    color: var(--bdm-red) !important;
}
.bdm-site-main .gform_validation_errors {
    background: var(--bdm-card) !important;
    border: 1px solid var(--bdm-red) !important;
    border-radius: var(--bdm-radius) !important;
    color: var(--bdm-off-white) !important;
}
.bdm-site-main .gform_confirmation_message {
    color: var(--bdm-off-white) !important;
}

/* ──────────────────────────────────────────────
   LOCAL BAND SPOTLIGHT CAROUSEL
   ────────────────────────────────────────────── */
.bdm-band-spotlight-carousel {
    min-height: 220px;
}
.bdm-band-spotlight-carousel .carousel-control-prev,
.bdm-band-spotlight-carousel .carousel-control-next {
    width: 2rem;
    opacity: .5;
    transition: opacity .2s;
}
.bdm-band-spotlight-carousel .carousel-control-prev:hover,
.bdm-band-spotlight-carousel .carousel-control-next:hover {
    opacity: 1;
}
.bdm-band-spotlight-carousel .carousel-item {
    height: 100%;
}

/* ──────────────────────────────────────────────
   RADIO PLAYER POPUP PAGE
   ────────────────────────────────────────────── */
body.bdm-popup-page {
    padding-bottom: 0;
    overflow: hidden;
    background: #0d0d0d;
}
body.bdm-popup-page #bdmStickyPlayer {
    display: none;
}
body.bdm-popup-page .bdm-radio-bar-cta {
    display: none;
}

.bdm-popup-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0d0d0d;
}
.bdm-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .875rem 1.25rem;
    background: #111111;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
}
.bdm-popup-close {
    background: none;
    border: none;
    color: #888888;
    font-size: 1.1rem;
    cursor: pointer;
    padding: .25rem .5rem;
    line-height: 1;
    border-radius: 4px;
    transition: color .15s, background .15s;
}
.bdm-popup-close:hover {
    color: #ffffff;
    background: rgba(255,255,255,.08);
}
.bdm-popup-player {
    flex: 1;
}
.bdm-popup-player .bdm-radio-bar {
    border-bottom: none !important;
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
}
.bdm-popup-footer {
    padding: .625rem 1.25rem;
    text-align: center;
    border-top: 1px solid #2a2a2a;
    flex-shrink: 0;
}
.bdm-popup-site-link {
    color: #888888;
    font-size: .65rem;
    text-decoration: none;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-family: var(--bdm-font-heading);
    transition: color .15s;
}
.bdm-popup-site-link:hover { color: #ffffff; }

/* ──────────────────────────────────────────────
   PRINT
   ────────────────────────────────────────────── */
@media print {
    .bdm-sticky-player,
    .bdm-site-header { display: none !important; }
    body { padding-bottom: 0; }
}
