/* ── Reset & tokens ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #ffffff;
  --bg-muted:     #f7f7f7;
  --border:       #e0e0e0;
  --text:         #111111;
  --text-muted:   #666666;
  --sans:         'Outfit', system-ui, sans-serif;
  --radius:       4px;
  --transition:   0.15s ease;
  --container:    920px;
  --embed-h:      280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 0.94rem;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 37px;
}

body.is-audio-on {
  background: transparent;
}

body.is-audio-on .site-header {
  background: rgba(255, 255, 255, 0.84);
}

body.is-audio-on .hero,
body.is-audio-on .workspace {
  background: rgba(255, 255, 255, 0.72);
}

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ── Audio start hint (header) ─────────────────────────────── */
.header-player-audio-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: center;
  transform: translateY(-5px);
}

.audio-start-hint {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  margin: 0;
  font-size: 0.54rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.header-player.is-on .audio-start-hint {
  display: none;
}

.header-player-ticker[hidden] {
  display: none !important;
}

.audio-start-hint.is-visible {
  opacity: 1;
  animation: audio-hint-flash 1.5s ease-in-out infinite;
}

.audio-start-hint-arrow {
  display: block;
  font-size: 0.46rem;
  line-height: 1;
  margin-bottom: 1px;
  color: var(--text);
}

@keyframes audio-hint-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .audio-start-hint.is-visible {
    animation: none;
    opacity: 1;
  }
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 8px 0;
}

.logo {
  display: block;
  line-height: 0;
}

.header-logo-wrap {
  position: relative;
  display: block;
  width: 59px;
  height: 52px;
}

#contact-btn-header {
  justify-self: end;
}

.header-player {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-player-audio {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition);
}

.header-player-audio:hover,
.header-player.is-on .header-player-audio {
  color: var(--text);
}

.header-player-ticker {
  justify-self: center;
  width: min(50%, 280px);
  min-width: 0;
  overflow: hidden;
  font-size: 0.58rem;
  line-height: 1.2;
  color: var(--text-muted);
  white-space: nowrap;
  contain: layout style;
}

.header-player-ticker.is-scrolling {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.header-player-ticker-inner {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.header-player-ticker.is-scrolling .header-player-ticker-inner {
  animation: header-ticker-marquee var(--ticker-duration, 20s) linear infinite;
  animation-fill-mode: none;
}

@keyframes header-ticker-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--ticker-distance, 0px)), 0, 0); }
}

.header-player-ticker-text {
  flex: 0 0 auto;
  padding-right: 3rem;
}

.header-player-audio-el {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.logo-img {
  display: block;
  height: 52px;
  width: auto;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--border);
}

.hero-content { width: min(var(--container), 92vw); margin-inline: auto; }

.hero h1 {
  font-size: clamp(0.95rem, 1.1rem + 1.35vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ── Tabs ─────────────────────────────────────────────────── */
.workspace {
  padding: 28px 0 64px;
}

.main-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-tabs::-webkit-scrollbar { display: none; }

.main-tab {
  flex-shrink: 0;
  padding: 10px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.main-tab:hover { color: var(--text); }

.main-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
  font-weight: 600;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.panel-intro {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.panel-foot {
  margin-top: 20px;
  font-size: 0.85rem;
}

.panel-toolbar { margin-bottom: 20px; }

.panel-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* ── Forms & filters ──────────────────────────────────────── */
.search-input {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 0.88rem;
  outline: none;
}

.search-input:focus { border-color: var(--text); }

.store-links { display: flex; gap: 6px; flex-wrap: wrap; }

.filter-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.filter-btn {
  padding: 5px 11px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.76rem;
  cursor: pointer;
}

.filter-btn:hover { border-color: var(--text); color: var(--text); }

.filter-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 500;
  font-family: var(--sans);
  border: 1px solid var(--text);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn-sm { padding: 7px 12px; font-size: 0.8rem; }

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover { background: #333; border-color: #333; }

.btn-ghost {
  background: var(--bg);
  color: var(--text);
}

.btn-ghost:hover { background: var(--bg-muted); }

.store-chip {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  transition: border-color var(--transition);
}

.store-chip:hover { border-color: var(--text); }

.text-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-link:hover { color: var(--text-muted); }

/* ── Free strip ───────────────────────────────────────────── */
.free-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-muted);
}

.free-strip-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.free-strip .label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.free-strip .muted {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Sound packs list ─────────────────────────────────────── */
.pack-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pack-card {
  border-bottom: 1px solid var(--border);
}

.pack-card:last-child { border-bottom: none; }

.pack-card:hover { background: var(--bg-muted); }

.pack-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 12px 16px;
}

.pack-art-wrap {
  width: 72px;
  height: 72px;
  align-self: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-muted);
}

.pack-art-link {
  display: block;
  color: inherit;
  transition: opacity var(--transition);
}

.pack-art-link:hover { opacity: 0.85; }

.pack-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pack-body {
  flex: 1;
  min-width: 0;
}

.pack-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.pack-device {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.pack-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}

.pack-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.pack-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
  justify-self: end;
  min-width: 76px;
}

.pack-link {
  display: inline-flex;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  white-space: nowrap;
  transition: border-color var(--transition);
  background: var(--bg);
  font-family: var(--sans);
  cursor: pointer;
  color: inherit;
}

.pack-link:hover { border-color: var(--text); }

.pack-link-demo {
  border-color: var(--text);
  font-weight: 500;
}

.pack-preview {
  padding: 0 16px 0 102px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    max-height 0.5s ease,
    padding-bottom 0.5s ease;
}

.pack-preview.is-open {
  max-height: 290px;
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 14px;
}

.pack-preview iframe {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: #000;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease 0.12s, transform 0.4s ease 0.12s;
}

.pack-preview.is-open iframe {
  opacity: 1;
  transform: translateY(0);
}

.pack-preview-bandcamp {
  padding-left: 16px;
  padding-right: 16px;
}

.pack-preview-bandcamp.is-open {
  max-height: 500px;
}

.pack-preview-bandcamp iframe {
  display: block;
  width: 100%;
  height: 472px;
  min-height: 472px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-muted);
}

.pack-preview-bandcamp-compact.is-open {
  max-height: 64px;
  padding-bottom: 8px;
}

.pack-preview-bandcamp-compact iframe {
  height: 48px;
  min-height: 48px;
}

@media (prefers-reduced-motion: reduce) {
  .pack-preview,
  .pack-preview iframe {
    transition: none;
    transform: none;
  }
}

.pack-card.hidden { display: none; }

/* ── Performances ─────────────────────────────────────────── */
.player-layout {
  display: block;
}

.tv-player {
  width: 100%;
}

.tv-set {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 509px;
}

.tv-body {
  width: 100%;
  padding: 14px;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(165deg, #3a3a3a 0%, #1e1e1e 55%, #141414 100%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.tv-nameplate {
  height: 28px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-logo {
  display: block;
  width: 26px;
  height: auto;
  filter: invert(1) brightness(0.9);
  opacity: 0.55;
  pointer-events: none;
}

.tv-bezel {
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, #0a0a0a 0%, #171717 100%);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55);
}

.tv-screen {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.tv-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: tv-static-flicker 0.3s steps(1) infinite;
}

.tv-screen.is-playing::before {
  opacity: 0.32;
}

.tv-static {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 48%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0.22) 52%,
    transparent 100%
  );
  background-size: 100% 26px;
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
  animation: tv-tracking-glitch 6.5s linear infinite;
}

.tv-screen.is-playing .tv-static {
  opacity: 0.18;
}

.tv-noise2 {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n2)'/%3E%3C/svg%3E");
  background-size: 95px 95px;
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: tv-static-flicker-2 0.22s steps(1) infinite;
}

.tv-screen.is-playing .tv-noise2 {
  opacity: 0.22;
}

@keyframes tv-static-flicker-2 {
  0%   { background-position: 0 0; }
  17%  { background-position: 61px -47px; }
  33%  { background-position: -38px 82px; }
  50%  { background-position: 74px 29px; }
  67%  { background-position: -19px -63px; }
  84%  { background-position: 43px 51px; }
  100% { background-position: 0 0; }
}

@keyframes tv-static-flicker {
  0%   { background-position: 0 0; }
  12%  { background-position: -73px 121px; }
  27%  { background-position: 54px -38px; }
  41%  { background-position: -112px 67px; }
  56%  { background-position: 91px 105px; }
  68%  { background-position: -29px -84px; }
  79%  { background-position: 117px 19px; }
  90%  { background-position: -66px 44px; }
  100% { background-position: 0 0; }
}

@keyframes tv-tracking-glitch {
  0% { background-position: 0 -100%; }
  100% { background-position: 0 220%; }
}

@media (prefers-reduced-motion: reduce) {
  .tv-screen::before,
  .tv-static,
  .tv-noise2 {
    animation: none;
  }
}

.tv-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.03) 0,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.35;
}

.tv-stand {
  align-self: center;
  width: 42%;
  height: 10px;
  margin-top: 6px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #2a2a2a, #111);
}

.tv-screen .embed-frame {
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
  background: #000;
}

.tv-screen .embed-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: sepia(0.55) contrast(1.05) brightness(0.95);
}

.embed-frame {
  width: 100%;
  height: var(--embed-h);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.embed-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame { background: #000; }

/* ── About ────────────────────────────────────────────────── */
#panel-about .about-intro,
#panel-about .about-quotes-section,
#panel-about .about-support-section,
#panel-about .about-socials-section {
  width: 100%;
}

.about-intro {
  margin-bottom: 36px;
}

.about-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.about-intro p {
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 12px;
}

.about-intro p:last-child {
  margin-bottom: 0;
}

.about-intro em {
  font-style: italic;
}

.about-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.about-quotes-section {
  margin-bottom: 36px;
}

.about-support-section {
  margin-bottom: 36px;
}

.about-support-lead {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.about-quote {
  min-height: 120px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-muted);
}

.about-quote-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  transition: opacity 0.6s ease;
}

.about-quote-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-top: 14px;
  transition: opacity 0.6s ease;
}

.about-quote-author {
  font-size: 0.84rem;
  font-weight: 600;
  font-style: normal;
}

.about-quote-source {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.about-quote-source::before {
  content: '\00b7';
  margin-right: 10px;
}

.about-quote.is-fading .about-quote-text,
.about-quote.is-fading .about-quote-meta {
  opacity: 0;
}

.about-socials-section {
  margin-bottom: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .about-quote-text,
  .about-quote-meta {
    transition: none;
  }
}

/* ── Social banners ───────────────────────────────────────── */
.social-banners {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.social-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.social-banner:hover {
  border-color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.social-banner-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--bg-muted);
}

.social-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.social-banner-name {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
}

.social-banner-handle {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-banner--youtube { border-left: 3px solid #ff0000; }
.social-banner--youtube .social-banner-icon { color: #ff0000; }

.social-banner--instagram { border-left: 3px solid #e4405f; }
.social-banner--instagram .social-banner-icon { color: #e4405f; }

.social-banner--facebook { border-left: 3px solid #1877f2; }
.social-banner--facebook .social-banner-icon { color: #1877f2; }

.social-banner--bandcamp { border-left: 3px solid #1da0c3; }
.social-banner--bandcamp .social-banner-icon { color: #1da0c3; }

.social-banner--soundcloud { border-left: 3px solid #ff5500; }
.social-banner--soundcloud .social-banner-icon { color: #ff5500; }

.social-banner--gumroad { border-left: 3px solid #ff90e8; }
.social-banner--gumroad .social-banner-icon { color: #c25eb5; }

.social-banner--payhip { border-left: 3px solid #6c5ce7; }
.social-banner--payhip .social-banner-icon { color: #6c5ce7; }

.social-banner--paypal { border-left: 3px solid #0070ba; }
.social-banner--paypal .social-banner-icon { color: #0070ba; }

/* ── Page bottom (logo + signature — end of content) ─────── */
.page-bottom {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}

.page-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* ── Ticker bar (pinned like header, ticker only) ─────────── */
.ticker-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: 36px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}

body.music-playing .ticker-bar {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-bar {
    transition: none;
  }
}

.ticker-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

/* Decorative greyscale equalizer — not audio-reactive, just plays while music is on */
.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  flex-shrink: 0;
}

.eq-bars span {
  width: 3px;
  height: 100%;
  background: var(--text-muted);
  border-radius: 1px;
  animation: eq-bounce 1.1s ease-in-out infinite;
  animation-play-state: paused;
}

body.music-playing .eq-bars span {
  animation-play-state: running;
}

.eq-bars span:nth-child(1) { animation-duration: 0.9s; animation-delay: -0.6s; }
.eq-bars span:nth-child(2) { animation-duration: 1.2s; animation-delay: -0.2s; }
.eq-bars span:nth-child(3) { animation-duration: 0.8s; animation-delay: -0.9s; }
.eq-bars span:nth-child(4) { animation-duration: 1.3s; animation-delay: -0.4s; }
.eq-bars span:nth-child(5) { animation-duration: 1s; animation-delay: -0.1s; }

@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .eq-bars span {
    animation: none;
    transform: scaleY(0.6);
  }
}

.footer-signature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-wrap {
  position: relative;
  width: 59px;
  height: 52px;
  flex-shrink: 0;
}

.footer-logo-img {
  display: block;
  width: 59px;
  height: 52px;
  opacity: 0.9;
}

/* Reels spin in place while music plays — each is the same artwork, clipped
   to one reel window and rotated around that window's own center. */
.tape-reel {
  position: absolute;
  inset: 0;
  width: 59px;
  height: 52px;
  opacity: 0.9;
  animation: tape-reel-spin 1.6s linear infinite;
  animation-play-state: paused;
}

.tape-reel-left {
  clip-path: circle(4.6px at 18.8px 19.2px);
  transform-origin: 18.8px 19.2px;
}

.tape-reel-right {
  clip-path: circle(4.6px at 40.9px 19.2px);
  transform-origin: 40.9px 19.2px;
}

body.music-playing .tape-reel {
  animation-play-state: running;
}

@keyframes tape-reel-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .tape-reel { animation: none; }
}

.footer-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.footer-tagline {
  font-size: 0.82rem;
  line-height: 1.35;
}

.footer-legal {
  font-size: 0.62rem;
  color: #999;
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 0;
}

.no-results.hidden { display: none; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 32px 0 24px; }

  .header-player-ticker {
    width: min(38%, 168px);
    font-size: 0.52rem;
  }

  .hero h1 {
    font-size: clamp(0.72rem, 2.8vw + 0.45rem, 1.75rem);
    letter-spacing: -0.025em;
  }

  .workspace { padding: 20px 0 48px; }

  .pack-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: start;
  }

  .pack-art-wrap {
    width: 64px;
    height: 64px;
  }

  .pack-actions {
    grid-column: auto;
    justify-self: end;
  }

  .pack-preview { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 480px) {
  .header-player-ticker {
    width: min(32%, 128px);
    font-size: 0.5rem;
  }
}

@media (max-width: 380px) {
  .pack-actions { padding-left: 0; }

  .header-player-ticker {
    width: min(28%, 96px);
    font-size: 0.48rem;
  }

  #contact-btn-header {
    padding-left: 8px;
    padding-right: 8px;
  }
}
