/* streamingbeats.com — static site styles */
/* Colors: teal #0d9488, petrol #1a4b5c, dark bg #0a0a0f */
/* Fonts: DM Sans (headings), Inter (body) */

:root {
  --bg: #0a0a0f;
  --surface: #14141e;
  --surface2: #1e1e2e;
  --surface3: #2a2a3e;
  --border: #2a2a3e;
  --text: #e0e0f0;
  --text-dim: #8888aa;
  --text-muted: #5a5a7a;
  --accent: #0d9488;
  --accent-hover: #14b8a6;
  --accent2: #1a4b5c;
  --accent2-hover: #256e83;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
  --font-heading: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

/* ========== MIX NUMBER BADGE ========== */
.mix-number-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* ========== HEADER / HERO ========== */
.site-header {
  position: relative;
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero background — layered for contrast + depth */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Dark gradient at top (95% opacity) so nav buttons are crisp against it */
    linear-gradient(
      180deg,
      rgba(10, 10, 15, 0.95) 0%,
      rgba(10, 10, 15, 0.75) 25%,
      rgba(13, 148, 136, 0.20) 50%,
      rgba(26, 75, 92, 0.40) 80%,
      rgba(10, 10, 15, 0.85) 100%
    ),
    /* Vignette — draws eye to center */
    radial-gradient(ellipse at center, transparent 35%, rgba(10, 10, 15, 0.65) 100%),
    /* The hero image */
    url('/img/djmixer.jpg') center 40% / cover no-repeat;
  pointer-events: none;
}

/* Parallax layer (fixed attachment) */
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/img/djmixer.jpg') center 40% / cover no-repeat fixed;
  opacity: 0;
  pointer-events: none;
}

.site-header .header-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.site-header h1 {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(135deg, #f0fdfa 0%, var(--accent) 50%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.12);
  text-stroke: 0.5px rgba(255, 255, 255, 0.12);
}

/* Waveform icon prepended to site title */
.site-header .title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.site-header .title-wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 2.4rem;
  flex-shrink: 0;
}
.site-header .title-wave .bar {
  width: 5px;
  border-radius: 3px 3px 0 0;
}
.site-header .title-wave .bar:nth-child(1){height:35%;background:linear-gradient(to top,#0d9488,#20b09e)}
.site-header .title-wave .bar:nth-child(2){height:80%;background:linear-gradient(to top,#0d9488,#20b09e)}
.site-header .title-wave .bar:nth-child(3){height:55%;background:linear-gradient(to top,#0d9488,#1a4b5c)}
.site-header .title-wave .bar:nth-child(4){height:95%;background:linear-gradient(to top,#0d9488,#1a4b5c)}
.site-header .title-wave .bar:nth-child(5){height:65%;background:linear-gradient(to top,#1a4b5c,#256e83)}

.site-header .tagline {
  font-family: var(--font-body);
  color: rgba(224, 224, 240, 0.85);
  margin-top: 0.8rem;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.site-header .nav-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
}

.site-header .nav-links a {
  color: #fff;
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.site-header .nav-links a:hover,
.site-header .nav-links a.active {
  color: #fff;
  background: rgba(13, 148, 136, 0.40);
  border-color: rgba(13, 148, 136, 0.50);
}

/* ========== HEADER GRADIENT SEPARATOR ========== */
.header-separator {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), transparent);
  opacity: 0.6;
}

/* ========== CONTENT AREA WITH SUBTLE HERO BACKDROP ========== */
main {
  position: relative;
}

main::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/img/djmixer.jpg') center 40% / cover no-repeat fixed;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ========== MIX GRID ========== */
.mix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.mix-grid-title {
  grid-column: 1 / -1;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ========== A+E CARD STYLE ========== */
.mix-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--surface);
}

.mix-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(13, 148, 136, 0.12);
}

/* Visual cover area — maintains 1:1 aspect ratio */
.mix-card .card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

/* Gradient background base */
.mix-card .card-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #0d9488 0%, #1a4b5c 100%);
  opacity: 0.50;
}

/* Waveform bars */
.mix-card .card-waveform {
  position: absolute; inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding: 0 1rem 35%;
  pointer-events: none;
}
.mix-card .card-waveform .bar {
  width: 8px;
  background: linear-gradient(to top, var(--accent), var(--accent2));
  border-radius: 4px 4px 0 0;
  opacity: 0.12;
}
.mix-card .card-waveform .bar:nth-child(1) { height: 40%; }
.mix-card .card-waveform .bar:nth-child(2) { height: 75%; }
.mix-card .card-waveform .bar:nth-child(3) { height: 30%; }
.mix-card .card-waveform .bar:nth-child(4) { height: 90%; }
.mix-card .card-waveform .bar:nth-child(5) { height: 55%; }
.mix-card .card-waveform .bar:nth-child(6) { height: 45%; }
.mix-card .card-waveform .bar:nth-child(7) { height: 80%; }
.mix-card .card-waveform .bar:nth-child(8) { height: 25%; }
.mix-card .card-waveform .bar:nth-child(9) { height: 95%; }
.mix-card .card-waveform .bar:nth-child(10) { height: 60%; }
.mix-card .card-waveform .bar:nth-child(11) { height: 70%; }
.mix-card .card-waveform .bar:nth-child(12) { height: 35%; }
.mix-card .card-waveform .bar:nth-child(13) { height: 85%; }
.mix-card .card-waveform .bar:nth-child(14) { height: 50%; }
.mix-card .card-waveform .bar:nth-child(15) { height: 65%; }

/* Big number — thin weight, 1px outline, overflows on single digits */
.mix-card .card-bignum {
  position: absolute;
  font-family: var(--font-heading);
  font-size: min(28vw, 12rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.06);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.10);
  text-stroke: 1px rgba(255, 255, 255, 0.10);
  line-height: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* Content overlay at bottom of cover */
.mix-card .card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 1rem 1.2rem 0.7rem;
  background: linear-gradient(transparent, rgba(10, 10, 15, 0.85) 35%);
}

.mix-card .card-content .num-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.40);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

.mix-card .card-content .card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15rem;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.mix-card .card-content .card-meta {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Track count badge */
.mix-card .card-content .track-badge {
  display: inline-block;
  background: rgba(13, 148, 136, 0.20);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.4;
  cursor: pointer;
  transition: all var(--transition);
  pointer-events: auto;
}
.mix-card .card-content .track-badge:hover {
  background: rgba(13, 148, 136, 0.35);
  border-color: var(--accent);
}

/* Play button — positioned on the cover */
.mix-card .card-play-btn {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 3;
}

/* ========== PLAY BUTTON ========== */
.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  min-width: 82px;
}

.btn-play:hover {
  background: var(--accent-hover);
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25);
}

.btn-play.playing {
  background: var(--red);
}

.btn-play.playing:hover {
  box-shadow: 0 4px 16px rgba(248, 113, 113, 0.25);
}

.btn-play .icon {
  font-size: 0.9rem;
  line-height: 1;
}

/* ========== TRACKLIST (expandable) ========== */
.tracklist-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease, opacity 0.3s ease;
  padding: 0 1rem;
  opacity: 0;
}

/* Hover peek: show first line on hover */
.mix-card:hover .tracklist-wrapper {
  max-height: 40px;
  padding: 0.3rem 1rem;
  opacity: 0.5;
}

.tracklist-wrapper.open,
.mix-card:hover .tracklist-wrapper.open {
  max-height: 3000px;
  padding: 0 1rem 1rem;
  opacity: 1;
}

.tracklist-wrapper ol {
  list-style: decimal;
  padding-left: 1.3rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.tracklist-wrapper ol li {
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.tracklist-wrapper ol li:last-child {
  border-bottom: none;
}

.tracklist-wrapper .no-tracks {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* ========== NOW PLAYING BAR (sticky) ========== */
.now-playing {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 30, 0.92);
  border-top: 1px solid var(--border);
  padding: 0.7rem 1.5rem;
  display: none;
  align-items: center;
  gap: 1rem;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.now-playing.active {
  display: flex;
}

.now-playing .np-cover {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.now-playing .np-info {
  flex: 1;
  min-width: 0;
}

.now-playing .np-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.now-playing .np-meta {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.now-playing .np-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.now-playing .np-progress {
  width: 120px;
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.now-playing .np-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 2px;
}

.now-playing .np-time {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--text-dim);
  min-width: 75px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ========== MIX DETAIL PAGE ========== */
.mix-detail {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.mix-detail .hero {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.mix-detail .hero-cover {
  width: 300px;
  height: 300px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.mix-detail .hero-info {
  flex: 1;
}

.mix-detail .hero-info .mix-number-badge {
  font-size: 0.75rem;
}

.mix-detail .hero-info h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.mix-detail .hero-info .meta {
  font-family: var(--font-heading);
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.mix-detail .hero-info .description {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.mix-detail .player-section {
  margin-bottom: 2.5rem;
}

.mix-detail .player-section audio {
  width: 100%;
  border-radius: var(--radius-sm);
}

.mix-detail .tracklist-section h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.mix-detail .tracklist-section ol {
  list-style: decimal;
  padding-left: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text-dim);
}

.mix-detail .tracklist-section ol li {
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.mix-detail .nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.mix-detail .nav-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.3rem 0;
}

/* ========== ABOUT / CONTACT PAGES ========== */
.page-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-content h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-content p {
  font-family: var(--font-body);
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text);
  font-size: 1rem;
}

.page-content .contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.2rem;
  margin-top: 0.5rem;
  transition: border-color var(--transition);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.page-content .contact-email:hover {
  border-color: var(--accent);
}

/* ========== FOOTER ========== */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 1.5rem 4rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: var(--font-body);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  letter-spacing: 0.02em;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .site-header { padding: 3rem 1.5rem 2.5rem; min-height: 300px; }
  .site-header h1 { font-size: 2.4rem; }
  .site-header .tagline { font-size: 1rem; }
  .site-header .nav-links a { padding: 0.4rem 1rem; font-size: 0.82rem; }
  .mix-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
  .mix-detail .hero { flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
  .mix-detail .hero-cover { width: 100%; max-width: 280px; height: auto; aspect-ratio: 1; }
  .mix-detail .hero-info h1 { font-size: 1.8rem; }
  .now-playing { padding: 0.5rem 1rem; }
  .now-playing .np-progress { width: 80px; }
}

@media (max-width: 480px) {
  .site-header h1 { font-size: 1.9rem; }
  .mix-grid { grid-template-columns: 1fr; }
  .site-header .nav-links { gap: 0.75rem; flex-wrap: wrap; }
  .page-content h1 { font-size: 1.7rem; }
}