/* =========================================================
   dbcel.com — style.css
   ========================================================= */

/* --- Variables ------------------------------------------ */
:root {
  --bg-base:        #080809;
  --bg-alt:         #0B0B0C;

  --text-primary:   #FFFFFF;
  --text-secondary: #F5F5F5;
  --text-muted:     #B5B5B5;
  --text-dim:       #858585;

  --accent:         #00D4FF;
  --accent-soft:    rgba(0, 212, 255, 0.5);
  --sc-orange:      #FF5500;
  --sc-orange-hi:   #FF7700;
  --orb-cyan:       rgba(0, 212, 255, 0.9);
  --orb-violet:     rgba(140, 0, 255, 0.9);
  --orb-spark:      rgba(120, 220, 255, 0.9);

  --font-brand:     'Unbounded', sans-serif;
  --font-ui:        'Inter', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  --border:         rgba(240, 240, 240, 0.10);
  --border-strong:  rgba(240, 240, 240, 0.20);

  --radius-btn:     999px;
  --radius-input:   14px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

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

html, body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Grain overlay (pseudo-element, Safari-safe) -------- */
body::before {
  content: '';
  position: fixed;
  inset: -20px;
  z-index: 10;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.09;
  animation: grainDrift 14s ease-in-out infinite;
}

@keyframes grainDrift {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(-8px, 4px); }
  50%      { transform: translate(6px, -6px); }
  75%      { transform: translate(-3px, 8px); }
}

/* --- Background orb layer ------------------------------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  contain: layout paint;
}

/* Wrapper: handles mouse-driven translate */
.orb-wrap {
  position: absolute;
  transition: transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.orb-wrap--1 {
  width: 75vmax;
  height: 75vmax;
  top: -30%;
  left: -25%;
}

.orb-wrap--2 {
  width: 70vmax;
  height: 70vmax;
  bottom: -30%;
  right: -25%;
}

.orb-wrap--3 {
  width: 35vmax;
  height: 35vmax;
  top: 25%;
  left: 45%;
}

/* Orb: handles continuous breathing animation */
.orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  filter: blur(100px);
}

.orb--cyan {
  background: radial-gradient(circle,
    rgba(0, 212, 255, 0.95) 0%,
    rgba(0, 212, 255, 0.6) 22%,
    rgba(0, 212, 255, 0.28) 44%,
    rgba(0, 212, 255, 0.09) 62%,
    transparent 80%);
  opacity: 0.22;
  animation: orbBreathe 18s ease-in-out infinite;
}

.orb--violet {
  background: radial-gradient(circle,
    rgba(140, 0, 255, 0.95) 0%,
    rgba(140, 0, 255, 0.6) 22%,
    rgba(140, 0, 255, 0.28) 44%,
    rgba(140, 0, 255, 0.09) 62%,
    transparent 80%);
  opacity: 0.18;
  animation: orbBreathe 24s ease-in-out infinite reverse;
}

.orb--spark {
  background: radial-gradient(circle,
    rgba(120, 220, 255, 0.95) 0%,
    rgba(120, 220, 255, 0.55) 20%,
    rgba(120, 220, 255, 0.22) 42%,
    rgba(120, 220, 255, 0.07) 60%,
    transparent 78%);
  opacity: 0.11;
  filter: blur(60px);
  animation: orbBreathe 14s ease-in-out infinite;
}

@keyframes orbBreathe {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(6%, -7%); }
  66%       { transform: translate(-7%, 5%); }
}

/* --- Main content layer --------------------------------- */
.site-main {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  gap: var(--space-lg);
}

/* Staggered entrance — blur-dissolve on top of fadeUp, tight asymmetric beats */
.site-main > * {
  animation:
    fadeUp 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) backwards,
    materialize 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.site-main > *:nth-child(1) { animation-delay: 0s, 0s; }
.site-main > *:nth-child(2) { animation-delay: 0.15s, 0.15s; }
.site-main > *:nth-child(3) { animation-delay: 0.3s, 0.3s; }
.site-main > *:nth-child(4) { animation-delay: 0.48s, 0.48s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes materialize {
  0%   { opacity: 0; filter: blur(20px); transform: translateY(28px) scale(0.985); }
  60%  { opacity: 0.6; filter: blur(4px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

/* Brand mark gets a heavier signature intro (runs in addition to the above) */
.brand-header {
  animation: brandIntro 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0s backwards;
}

@keyframes brandIntro {
  0%   { opacity: 0; filter: blur(40px); transform: scale(1.08); letter-spacing: 0.08em; }
  70%  { opacity: 1; filter: blur(2px); transform: scale(0.995); letter-spacing: -0.015em; }
  100% { opacity: 1; filter: blur(0);   transform: scale(1);     letter-spacing: -0.02em; }
}

/* --- Brand header --------------------------------------- */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.brand-mark {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(4.5rem, 17vw, 15rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  cursor: default;
  user-select: none;
  text-transform: lowercase;
  animation: brandBreathe 12s ease-in-out infinite;
  transition: text-shadow 0.35s ease-out, transform 0.35s ease-out;
  display: inline-block;
  position: relative;
  isolation: isolate;
}

.brand-mark::before,
.brand-mark::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
  mix-blend-mode: screen;
  will-change: transform, clip-path;
  z-index: -1;
}

.brand-mark::before {
  color: rgba(0, 220, 255, 0.32);
  animation: brandGhostCyan 16s ease-in-out infinite;
}

.brand-mark::after {
  color: rgba(255, 70, 180, 0.26);
  animation: brandGhostMagenta 22s ease-in-out infinite;
}

@keyframes brandGhostCyan {
  0%, 100% { transform: translate(-2px,   0px); }
  25%      { transform: translate(-3.5px, -1px); }
  50%      { transform: translate(-1.5px,  1px); }
  75%      { transform: translate(-2.5px,  0.5px); }
}

@keyframes brandGhostMagenta {
  0%, 100% { transform: translate( 2px,   0px); }
  30%      { transform: translate( 1.2px, 1px); }
  60%      { transform: translate( 3px,  -1px); }
  85%      { transform: translate( 2.2px, 0.5px); }
}

.brand-mark.is-sliced::before {
  animation: brandSliceCyan 140ms steps(4, end) 1;
  clip-path: polygon(0 35%, 100% 35%, 100% 62%, 0 62%);
}

.brand-mark.is-sliced::after {
  animation: brandSliceMagenta 140ms steps(4, end) 1;
  clip-path: polygon(0 20%, 100% 20%, 100% 48%, 0 48%);
}

@keyframes brandSliceCyan {
  0%   { transform: translate(-14px,  0); }
  25%  { transform: translate( 10px, -2px); }
  50%  { transform: translate(-18px,  1px); }
  75%  { transform: translate(  6px,  0); }
  100% { transform: translate( -2px,  0); }
}

@keyframes brandSliceMagenta {
  0%   { transform: translate( 16px,  0); }
  25%  { transform: translate( -8px,  2px); }
  50%  { transform: translate( 20px, -1px); }
  75%  { transform: translate( -4px,  0); }
  100% { transform: translate(  2px,  0); }
}

.brand-mark:hover {
  text-shadow:
    0 0 30px rgba(0, 212, 255, 0.5),
    0 0 70px rgba(0, 212, 255, 0.3),
    0 0 140px rgba(0, 212, 255, 0.15);
  transform: scale(1.015);
}

@keyframes brandBreathe {
  0%, 100% {
    text-shadow:
      0 0 20px rgba(0, 212, 255, 0.08),
      0 0 50px rgba(0, 212, 255, 0.04);
    transform: scale(0.997);
  }
  50% {
    text-shadow:
      0 0 35px rgba(0, 212, 255, 0.18),
      0 0 80px rgba(0, 212, 255, 0.08);
    transform: scale(1.004);
  }
}

.brand-location {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --- Shared button base --------------------------------- */
.btn {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid rgba(245, 245, 245, 0.5);
  border-radius: var(--radius-btn);
  padding: 0.85rem 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 0.08s ease,
    border-color 0.08s ease,
    background-color 0.08s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.btn > * { position: relative; z-index: 1; }

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.35) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(120%);
}

.btn:hover,
.btn:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent-soft),
    0 0 30px rgba(0, 212, 255, 0.25);
  outline: none;
}

.btn:active {
  transform: scale(0.98);
}

/* Icon-only pill button — same height as .btn, square-ish */
.btn--icon {
  padding: 0.85rem 1.1rem;
}

.btn--icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

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

.btn--primary:hover {
  color: var(--bg-base);
  background: #66E5FF;
  border-color: #66E5FF;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
}

/* CTA row: contact + icon buttons inline */
.cta-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.contact-toggle[aria-expanded="true"] {
  color: var(--accent);
  border-color: var(--accent);
}

/* --- Contact form --------------------------------------- */
.contact-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-section {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-section.is-open {
  max-height: 800px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: var(--space-md);
  text-align: left;
}

.contact-section.is-open .contact-form > *:not(.bot-field):not([type="hidden"]) {
  animation: fieldReveal 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.contact-section.is-open .contact-form > *:nth-child(3) { animation-delay: 0.08s; }
.contact-section.is-open .contact-form > *:nth-child(4) { animation-delay: 0.16s; }
.contact-section.is-open .contact-form > *:nth-child(5) { animation-delay: 0.24s; }
.contact-section.is-open .contact-form > *:nth-child(6) { animation-delay: 0.32s; }
.contact-section.is-open .contact-form > *:nth-child(7) { animation-delay: 0.44s; }

@keyframes fieldReveal {
  from { opacity: 0; filter: blur(8px); transform: translateY(8px); }
  to   { opacity: 1; filter: blur(0);   transform: translateY(0); }
}

.contact-form .bot-field {
  display: none;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 0.95rem 1.15rem;
  width: 100%;
  outline: none;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.1s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  text-transform: lowercase;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.03);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}

.contact-form textarea {
  min-height: 140px;
}

.contact-form button[type="submit"] {
  align-self: flex-start;
  margin-top: var(--space-xs);
}

.contact-success {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding-top: var(--space-md);
  text-align: center;
  text-transform: uppercase;
}

.contact-success.is-visible {
  display: block;
  animation: fadeUp 0.5s ease-out;
}

/* --- Mixes section -------------------------------------- */
.mixes-section {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* SoundCloud CTA in the top-right of the player bar */
.player-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: none;
  color: var(--sc-orange);
  background: transparent;
  border: 1px solid var(--sc-orange);
  border-radius: var(--radius-input);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.2s ease;
}

.player-action > * { position: relative; z-index: 1; }

.player-action::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 180, 120, 0.4) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.player-action:hover::before,
.player-action:focus-visible::before {
  transform: translateX(120%);
}

.player-action:hover,
.player-action:focus-visible {
  color: #FFFFFF;
  background: var(--sc-orange);
  border-color: var(--sc-orange);
  box-shadow:
    0 0 0 1px rgba(255, 85, 0, 0.4),
    0 0 28px rgba(255, 85, 0, 0.35);
  outline: none;
}

.player-action:active {
  background: var(--sc-orange-hi);
  border-color: var(--sc-orange-hi);
}

.player-action-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .player-action { padding: 0.4rem 0.65rem; font-size: 0.78rem; }
}

/* --- Custom SoundCloud Player --------------------------- */
.custom-player {
  width: 100%;
  background: #0e0e10;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  overflow: hidden;
  position: relative;
}

.sc-iframe-hidden {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  border: 0;
  pointer-events: none;
  visibility: hidden;
}

.player-bar {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  transition: padding 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.player-artwork {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background-color: var(--bg-base);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
  transition:
    width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-radius 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease;
}

.custom-player.is-playing .player-artwork {
  width: 96px;
  height: 96px;
  box-shadow:
    0 0 0 1px var(--border),
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(0, 212, 255, 0.12);
}

.player-artwork::after {
  content: '';
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at 30% 30%, rgba(0,212,255,0.12), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform-origin: 50% 50%;
}

.custom-player.is-playing .player-artwork::after {
  opacity: 1;
  animation:
    artworkPulse 2.5s ease-in-out infinite,
    artworkSheen 60s linear infinite;
}

@keyframes artworkPulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

@keyframes artworkSheen {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.player-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.player-title {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  transition: font-size 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-player.is-playing .player-title {
  font-size: 1.15rem;
}

.player-progress-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.player-time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  text-transform: uppercase;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* Scrubber: 20px tall hit zone, 2px visual track via pseudo-element */
.player-progress {
  flex: 1;
  min-width: 0;
  height: 20px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
}

.player-progress::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  border-radius: 999px;
  pointer-events: none;
  transition: height 0.15s ease;
}

.player-progress:hover::before,
.player-progress.is-scrubbing::before {
  height: 3px;
}

.player-progress-bar {
  position: absolute;
  left: 0;
  height: 2px;
  background: var(--accent);
  width: 0%;
  border-radius: 999px;
  box-shadow: 0 0 12px var(--accent-soft);
  pointer-events: none;
  transition: width 0.15s linear, height 0.15s ease;
}

.player-progress:hover .player-progress-bar,
.player-progress.is-scrubbing .player-progress-bar {
  height: 3px;
}

/* Play/pause overlay living inside .player-artwork */
.player-toggle {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.38);
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 1;
  transition:
    background-color 0.25s ease,
    opacity 0.25s ease,
    transform 0.15s ease;
}

.player-artwork:hover .player-toggle,
.player-toggle:focus-visible {
  background: rgba(0, 0, 0, 0.52);
  outline: none;
}

/* Once playing, let the artwork breathe — dim the scrim until hover */
.custom-player.is-playing .player-toggle {
  background: rgba(0, 0, 0, 0.18);
}
.custom-player.is-playing .player-artwork:hover .player-toggle {
  background: rgba(0, 0, 0, 0.5);
}

.player-toggle:active { transform: scale(0.94); }

.player-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-player.is-playing .player-toggle svg {
  width: 28px;
  height: 28px;
}

.player-toggle .icon-pause { display: none; }
.custom-player.is-playing .player-toggle .icon-play { display: none; }
.custom-player.is-playing .player-toggle .icon-pause { display: block; }

/* --- Idle state (no track selected yet) ----------------- */
.custom-player:not(.has-track) .player-toggle,
.custom-player:not(.has-track) .player-progress-row {
  display: none;
}

.custom-player:not(.has-track) .player-artwork {
  cursor: default;
}

.custom-player:not(.has-track) .player-artwork::after {
  opacity: 0.35;
  background: radial-gradient(circle at 30% 30%, rgba(0,212,255,0.28), transparent 72%);
}

.custom-player:not(.has-track) .player-title {
  color: var(--text-secondary);
  font-weight: 400;
}

.player-placeholder-hint {
  display: inline-block;
  margin-left: 0.45em;
  color: var(--accent);
  animation: placeholderBounce 1.8s ease-in-out infinite;
}

.custom-player.has-track .player-placeholder-hint {
  display: none;
}

@keyframes placeholderBounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(4px); opacity: 1; }
}

/* Reveal animation: title/progress fade in when a track loads */
.custom-player.has-track .player-title,
.custom-player.has-track .player-progress-row,
.custom-player.has-track .player-toggle {
  animation: playerReveal 0.25s ease-out both;
}

@keyframes playerReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.player-tracks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.player-tracks::-webkit-scrollbar { width: 6px; }
.player-tracks::-webkit-scrollbar-track { background: transparent; }
.player-tracks::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

.player-track {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-secondary);
  text-align: left;
  transition: background-color 0.1s, color 0.1s, padding-left 0.2s;
}

.player-track:last-child { border-bottom: 0; }

.player-track:hover {
  background: rgba(0, 212, 255, 0.03);
  color: var(--accent);
  padding-left: 1.25rem;
}

.player-track.is-active {
  color: var(--accent);
  background: rgba(0, 212, 255, 0.05);
  border-left: 2px solid var(--accent);
  padding-left: calc(1rem - 2px);
}

.player-track.is-active:hover {
  padding-left: calc(1.25rem - 2px);
}

.player-track-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-width: 2em;
  letter-spacing: 0.1em;
}

.player-track.is-active .player-track-index { color: var(--accent); }

.player-track-art {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
  background-color: var(--bg-base);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px var(--border);
  transition: box-shadow 0.15s ease;
}

.player-track:hover .player-track-art {
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.player-track.is-active .player-track-art {
  box-shadow: 0 0 0 1px var(--accent), 0 0 12px rgba(0, 212, 255, 0.25);
}

.player-track-title {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 400;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.player-track.is-active .player-track-title {
  color: var(--accent);
  font-weight: 500;
}

.player-track-duration {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

.player-track.is-active .player-track-duration { color: var(--accent); }

.player-loading {
  padding: 1.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
}

/* --- Player groups (DJ Mixes / Edits & Mini Mixes) ----- */
.player-group {
  border-bottom: 1px solid var(--border);
}
.player-group:last-child { border-bottom: 0; }

.player-group-header {
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding: 0.9rem 1rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.player-group-label {
  font-weight: 500;
}

.player-group-count {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.player-group-tracks {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- Footer / social icons ------------------------------ */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: auto;
  padding-top: var(--space-lg);
}

.social-links {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 245, 245, 0.5);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  transition:
    color 0.08s ease,
    border-color 0.08s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent-soft),
    0 0 24px rgba(0, 212, 255, 0.25);
  transform: translateY(-1px);
  outline: none;
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.copyright {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --- Responsive ---------------------------------------- */
@media (min-width: 768px) {
  .site-main {
    padding: var(--space-xl);
    gap: var(--space-xl);
  }
}

@media (max-width: 540px) {
  .custom-player.is-playing .player-artwork {
    width: 78px;
    height: 78px;
  }
}

/* --- Reduced motion ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .orb,
  .orb-wrap,
  .brand-mark,
  .brand-mark::before,
  .brand-mark::after,
  .brand-header,
  .contact-section,
  body::before,
  .custom-player.is-playing .player-artwork::after,
  .player-artwork,
  .player-title,
  .player-toggle svg,
  .player-placeholder-hint,
  .custom-player.has-track .player-title,
  .custom-player.has-track .player-progress-row,
  .custom-player.has-track .player-toggle,
  .btn::before,
  .player-action::before,
  .contact-section.is-open .contact-form > * {
    animation: none !important;
    transition: none !important;
  }
  .orb--cyan, .orb--violet { opacity: 0.08; }
  .site-main > * {
    animation: fadeUp 0.4s ease-out backwards !important;
  }
}
