/* Inherit the existing five website themes. */
html body.experience #beat-discovery {
  --discovery-paper: var(--theme-paper, #fffcf6);
  --discovery-ink: var(--theme-text, #2c2a28);
  --discovery-line: var(--theme-input-line, #b7c5c1);
  color: var(--discovery-ink);
  padding-block: 28px 60px !important;
}
html body.experience #beat-discovery h1 { font-size: clamp(30px, 3.4vw, 48px) !important; max-width: none; margin-block: 10px 12px; line-height: 1.12; }
html body.experience #beat-discovery .section-kicker { margin-block: 0 10px; }
html[data-brand] body.experience:has(#beat-discovery) .site-header nav a { color: var(--theme-text, #2c2a28) !important; }
html[data-brand] body.experience:has(#beat-discovery) .site-header { background: var(--theme-paper, #fffcf6) !important; }
#beat-discovery *, #beat-discovery *::before, #beat-discovery *::after { box-sizing: border-box; }
#beat-discovery [hidden] { display: none !important; }
#beat-discovery .discovery-searchbar {
  position: sticky;
  top: 84px;
  z-index: 15;
  padding: 15px;
  background: var(--discovery-paper);
  border: 1px solid var(--discovery-line);
  border-radius: 16px;
  box-shadow: 0 8px 25px color-mix(in srgb, var(--discovery-ink) 8%, transparent);
}
#beat-discovery label { display: block; font-size: 13px; font-weight: 650; }
#beat-discovery input, #beat-discovery select {
  width: 100%;
  min-height: 45px;
  margin-top: 6px;
  padding: 10px 12px;
  color: var(--discovery-ink);
  background: var(--discovery-paper);
  border: 1px solid var(--discovery-line);
  border-radius: 9px;
  font: inherit;
  font-size: 16px;
}
#beat-discovery input[type=search] { font-size: 18px; min-height: 52px; }
#beat-discovery input[type=checkbox] { width: 18px; min-height: 18px; margin: 0 6px 0 0; vertical-align: middle; }
#beat-discovery :is(button, a, input, select):focus-visible { outline: 3px solid var(--theme-accent, #2f5e62); outline-offset: 3px; }
#beat-discovery .discovery-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 14px; }
#beat-discovery .discovery-moods, #beat-discovery .discovery-tools, #beat-discovery .discovery-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 10px; }
#beat-discovery .discovery-chip, #beat-discovery .discovery-save, #beat-discovery .discovery-tool {
  min-height: 44px;
  padding: 8px 13px;
  border-radius: 22px;
  border: 1px solid var(--discovery-line);
  background: var(--discovery-paper);
  color: var(--discovery-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
html[data-brand] body.experience #beat-discovery :is(.discovery-chip, .discovery-save, .discovery-tool) { background: var(--discovery-paper) !important; color: var(--discovery-ink) !important; }
#beat-discovery .discovery-filter-toggle { display: none; }
#beat-discovery [aria-pressed=true] { border-color: var(--theme-accent, #2f5e62); box-shadow: inset 0 0 0 2px var(--theme-accent, #2f5e62); font-weight: 750; }
#beat-discovery .discovery-layout { display: grid; grid-template-columns: minmax(265px, .85fr) minmax(0, 1.65fr); align-items: start; gap: 28px; margin-top: 24px; }
#beat-discovery .discovery-player { position: sticky; top: 215px; padding: 22px; border: 1px solid var(--discovery-line); border-radius: 20px; background: var(--discovery-paper); min-width: 0; }
#beat-discovery .discovery-player img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
#beat-discovery .discovery-player h2 { font-size: clamp(23px, 3vw, 34px); line-height: 1.2; margin-block: 18px 8px; overflow-wrap: anywhere; }
#beat-discovery .discovery-player p { font-size: 14px; line-height: 1.6; }
#beat-discovery audio { display: block; width: 100%; margin-top: 16px; }
#beat-discovery .discovery-transport { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
#beat-discovery .discovery-transport button { min-height: 44px; }
#beat-discovery .discovery-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
#beat-discovery .discovery-result { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 15px; border: 1px solid var(--discovery-line); border-radius: 15px; background: var(--discovery-paper); min-width: 0; }
#beat-discovery .discovery-result.is-current { border-color: var(--theme-accent, #2f5e62); box-shadow: inset 3px 0 var(--theme-accent, #2f5e62); }
#beat-discovery .discovery-result img { width: 160px; height: 90px; object-fit: cover; border-radius: 9px; }
#beat-discovery .discovery-result h3 { margin: 0 0 7px; font-size: 20px; line-height: 1.25; }
#beat-discovery .discovery-result p { margin: 0 0 5px; font-size: 13px; line-height: 1.5; }
#beat-discovery .discovery-result small { display: block; font-size: 12px; line-height: 1.5; }
#beat-discovery .discovery-result-info { min-width: 0; overflow-wrap: anywhere; }
#beat-discovery .discovery-actions { display: flex; flex-wrap: wrap; gap: 9px 14px; align-items: center; margin-top: 12px; }
#beat-discovery .discovery-actions a { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
#beat-discovery .discovery-actions .button { padding: 8px 16px; min-height: 40px; font-size: 13px; }
#beat-discovery .discovery-empty { padding: 28px; border: 1px solid var(--discovery-line); border-radius: 15px; }
#beat-discovery .discovery-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; margin-top: 16px; }
#beat-discovery button:disabled { opacity: .55; cursor: default; }
@media (max-width: 900px) {
  #beat-discovery .discovery-filter-toggle { display: block; margin-top: 12px; width: 100%; }
  #beat-discovery .discovery-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #beat-discovery .discovery-layout { grid-template-columns: minmax(0, 1fr); }
  #beat-discovery .discovery-player { position: sticky; top: 175px; z-index: 12; padding: 14px; box-shadow: 0 8px 25px color-mix(in srgb, var(--discovery-ink) 8%, transparent); }
  #beat-discovery .discovery-player img { float: left; width: 82px; height: 46px; margin-right: 12px; }
  #beat-discovery .discovery-player h2 { margin: 0 0 5px; font-size: 21px; }
  #beat-discovery .discovery-player p { margin: 4px 0; font-size: 12px; }
  #beat-discovery .discovery-player audio { clear: both; margin-top: 10px; }
  #beat-discovery .discovery-player .discovery-actions { margin-top: 8px; }
}
@media (max-width: 520px) {
  #beat-discovery .discovery-searchbar { top: 72px; padding: 10px; }
  #beat-discovery .discovery-searchbar small { font-size: 11px; }
  #beat-discovery .discovery-result { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 11px; }
  #beat-discovery .discovery-result img { width: 96px; height: 54px; }
  #beat-discovery .discovery-result h3 { font-size: 17px; }
  #beat-discovery .discovery-result .discovery-actions { grid-column: 1 / -1; }
  #beat-discovery .discovery-player { top: 184px; }
  #beat-discovery .discovery-transport button { padding: 8px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { #beat-discovery { scroll-behavior: auto; } }

/* BeatStars selection; every website palette uses the same semantic tokens. */
html[data-brand] body.experience #beat-discovery { --discovery-paper:var(--theme-paper); --discovery-ink:var(--theme-text); --discovery-line:var(--theme-input-line); }
html[data-brand] body.experience #beat-discovery :is(h1,h2,h3,p,small,label) { color:var(--theme-text)!important; }
html[data-brand] body.experience #beat-discovery .discovery-layout { grid-template-columns:minmax(360px,1fr) minmax(0,1.35fr); gap:24px; }
html[data-brand] body.experience #beat-discovery .discovery-player { top:240px; padding:16px; }
#beat-discovery .discovery-beatstars { display:block;width:100%;height:640px;border:0;border-radius:12px;background:var(--discovery-paper); }
#beat-discovery .discovery-player h2 { font-size:24px;margin:0 0 8px; }
#beat-discovery .discovery-player .discovery-actions { margin-bottom:12px; }
#beat-discovery .discovery-player { scroll-margin-top:240px; }
html[data-brand] body.experience #beat-discovery a.discovery-youtube { display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid var(--theme-accent);border-radius:10px;background:var(--theme-button)!important;color:var(--theme-button-ink)!important;text-decoration:none;font-size:14px;font-weight:750; }
html[data-brand] body.experience #beat-discovery a.discovery-youtube:hover { background:var(--theme-button)!important; box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 24%,transparent); }
html[data-brand] body.experience #beat-discovery :is(.discovery-license,.discovery-select,.discovery-save) { color:var(--theme-text)!important; }
#beat-discovery .discovery-result img { cursor:default; }
@media(max-width:1000px) {
 html[data-brand] body.experience #beat-discovery .discovery-layout { grid-template-columns:minmax(0,1fr); }
 html[data-brand] body.experience #beat-discovery .discovery-player { position:relative;top:auto;z-index:1; }
 #beat-discovery .discovery-beatstars { height:590px; }
}

/* Uncropped original artwork and artist-first purchase guidance. */
html[data-brand] body.experience .beats-hero { margin:0;background:var(--theme-paper);color:var(--theme-text); }
html[data-brand] body.experience .beats-hero>img { display:block;width:100%;max-width:none;height:auto;aspect-ratio:1672/941;object-fit:contain;border-radius:0; }
html[data-brand] body.experience .beats-hero figcaption { max-width:1080px;margin:0 auto;padding:clamp(28px,5vw,68px) 24px;text-align:center; }
html[data-brand] body.experience .beats-hero :is(h1,p) { color:var(--theme-text)!important; }
html[data-brand] body.experience .beats-hero h1 { max-width:850px;margin:12px auto 20px;font-size:clamp(32px,5vw,62px);line-height:1.08;letter-spacing:-.035em; }
html[data-brand] body.experience .beats-hero .beats-hero-copy { max-width:720px;margin:0 auto 20px;font-size:clamp(17px,2vw,21px);line-height:1.65; }
html[data-brand] body.experience .beats-hero .beats-hero-trust { font-size:14px;line-height:1.7;margin:16px 0 24px; }
html[data-brand] body.experience .beats-hero a.beats-hero-cta { display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:13px 26px;background:var(--theme-button)!important;color:var(--theme-button-ink)!important;border-radius:12px;text-decoration:none;font-weight:750; }
html[data-brand] body.experience .beats-hero .beats-hero-help { margin-top:20px;font-size:14px; }
html[data-brand] body.experience .beats-hero a:focus-visible { outline:3px solid var(--theme-accent);outline-offset:5px; }
html[data-brand] body.experience #beat-discovery .discovery-player { --player-top:240px;top:var(--player-top);padding:12px;scroll-margin-top:calc(var(--player-top) - 100px); }
html[data-brand] body.experience #beat-discovery .discovery-player h2 { font-size:20px!important;line-height:1.2!important;margin:0 0 4px!important; }
#beat-discovery .discovery-player p { margin:4px 0;font-size:12px;line-height:1.4; }
#beat-discovery .discovery-player [data-current-meta] { white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-bottom:8px; }
#beat-discovery .discovery-beatstars { height:clamp(200px,calc(100dvh - 365px),640px);border-radius:8px; }
#beat-discovery [data-player-status] { min-height:2.8em; }
@media(min-width:1001px) and (max-height:760px) {
 #beat-discovery .discovery-searchbar { padding:8px 14px; }
 #beat-discovery .discovery-searchbar small { display:none; }
 html[data-brand] body.experience #beat-discovery .discovery-player { --player-top:195px; }
 #beat-discovery .discovery-beatstars { height:clamp(180px,calc(100dvh - 315px),640px); }
}
@media(max-width:1000px) {
 html[data-brand] body.experience #beat-discovery .discovery-player { position:relative;top:auto;--player-top:130px;scroll-margin-top:130px; }
 #beat-discovery .discovery-beatstars { height:clamp(200px,calc(100svh - 355px),590px); }
}
@media(max-height:600px) { #beat-discovery .discovery-searchbar small { display:none; } }

/* Match the homepage hero spacing and shell while preserving the entire artwork. */
html[data-brand] body.experience .beats-hero { padding-top:64px; }
html[data-brand] body.experience .beats-hero .beats-hero-artwork img { display:block;width:100%;height:auto;max-width:none;aspect-ratio:1672/941;object-fit:contain;border-radius:12px; }
html[data-brand] body.experience #beat-discovery .discovery-selected-badge { display:inline-block;margin:0 0 7px;padding:3px 8px;border:1px solid var(--theme-accent);border-radius:6px;font-size:11px;line-height:1.4;font-weight:750;color:var(--theme-text); }
#beat-discovery .discovery-selected-badge[hidden] { display:none!important; }
@media(max-width:760px) { html[data-brand] body.experience .beats-hero { padding-top:36px; } }

/* Play-first cards: semantic theme colours and generous smartphone artwork. */
html[data-brand] body.experience #beat-discovery button.discovery-select {
 display:inline-flex;align-items:center;justify-content:center;gap:8px;
 min-height:48px;padding:11px 22px;border:1px solid var(--theme-button)!important;
 border-radius:12px;background:var(--theme-button)!important;color:var(--theme-button-ink)!important;
 font-size:14px;font-weight:800;line-height:1.25;
 box-shadow:0 4px 12px color-mix(in srgb,var(--theme-button) 24%,transparent);
}
#beat-discovery button.discovery-select::before { content:'▶';font-size:11px; }
html[data-brand] body.experience #beat-discovery button.discovery-select:hover {
 box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 24%,transparent),0 5px 16px color-mix(in srgb,var(--theme-button) 24%,transparent);
}
html[data-brand] body.experience #beat-discovery button.discovery-select[aria-pressed=true] {
 border-color:var(--theme-button-ink)!important;outline:2px solid var(--theme-accent);outline-offset:2px;
}
html[data-brand] body.experience #beat-discovery a.discovery-youtube {
 min-height:48px;padding:11px 14px;background:var(--discovery-paper)!important;
 color:var(--discovery-ink)!important;border-color:var(--discovery-line);font-size:13px;
}
html[data-brand] body.experience #beat-discovery a.discovery-youtube:hover {
 background:color-mix(in srgb,var(--theme-accent) 10%,var(--discovery-paper))!important;
}
#beat-discovery .discovery-actions { gap:8px; }
#beat-discovery .discovery-actions :is(.discovery-license,.discovery-save) {
 display:inline-flex;align-items:center;justify-content:center;min-height:44px;
}
#beat-discovery .discovery-result h3 { overflow-wrap:anywhere; }
@media(max-width:600px) {
 html[data-brand] body.experience #beat-discovery .discovery-result {
  grid-template-columns:minmax(0,1fr);gap:12px;padding:12px;border-radius:16px;
 }
 html[data-brand] body.experience #beat-discovery .discovery-result>img {
  display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;
  border-radius:10px;float:none;margin:0;
 }
 html[data-brand] body.experience #beat-discovery .discovery-result h3 {
  font-size:19px;line-height:1.2;margin:0 0 6px;
 }
 #beat-discovery .discovery-result p { font-size:13px;line-height:1.45;margin:0 0 4px; }
 #beat-discovery .discovery-result small { font-size:12px;line-height:1.4; }
 #beat-discovery .discovery-selected-badge { margin-bottom:6px; }
 #beat-discovery .discovery-result .discovery-actions {
  display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr);gap:8px;
  margin-top:12px;align-items:stretch;
 }
 #beat-discovery .discovery-actions>:is(button,a) {
  width:100%;min-width:0;text-align:center;white-space:normal;line-height:1.3;
 }
 html[data-brand] body.experience #beat-discovery .discovery-actions button.discovery-select {
  padding:11px 12px;min-height:48px;
 }
 html[data-brand] body.experience #beat-discovery .discovery-actions a.discovery-youtube {
  padding:10px 8px;min-height:48px;font-size:13px;
 }
 #beat-discovery .discovery-actions .discovery-license { font-size:12px; }
 #beat-discovery .discovery-actions .discovery-save { padding:8px 10px;font-size:12px; }
}
