/* trakd shared styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== Custom Properties ===== */
:root {
  --bg: #EDE8DF;
  --bg-surface: rgba(0, 0, 0, 0.03);
  --bg-surface-hover: rgba(0, 0, 0, 0.06);
  --border: rgba(0, 0, 0, 0.08);
  --text: #1A1A1A;
  --text-secondary: rgba(26, 26, 26, 0.6);
  --text-muted: rgba(26, 26, 26, 0.35);
  --accent: #C41E3A;
  --accent-hover: #a8182f;
  --accent-light: rgba(196, 30, 58, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left { display: flex; align-items: center; gap: 32px; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-logo {
  display: flex;
  align-items: flex-end;
  gap: 0;
  position: relative;
  overflow: visible;
}
.nav-links {
  display: flex;
  gap: 24px;
  position: relative;
  overflow: visible;
}
.nav-links::after {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(196, 30, 58, 0.5) 40%, rgba(255, 60, 80, 0.7) 50%, rgba(196, 30, 58, 0.5) 60%, transparent 100%);
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  animation: navShimmer 4s ease-in-out infinite;
  animation-delay: 1s;
}
@keyframes navShimmer {
  0% { left: -30%; opacity: 0; }
  10% { opacity: 0.6; }
  50% { opacity: 0.4; }
  90% { opacity: 0.6; }
  100% { left: 120%; opacity: 0; }
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
  z-index: 1;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  background: linear-gradient(180deg, rgba(210, 40, 65, 0.92), rgba(170, 20, 45, 0.92));
  border-radius: 8px;
  border: 1px solid rgba(255, 80, 100, 0.2);
  border-top-color: rgba(255, 130, 150, 0.3);
  border-bottom-color: rgba(100, 10, 25, 0.4);
  box-shadow: 0 3px 10px rgba(196, 30, 58, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.nav-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.08) 55%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
}
.nav-cta:hover {
  background: linear-gradient(180deg, rgba(220, 45, 70, 0.97), rgba(180, 25, 50, 0.97));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(196, 30, 58, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.nav-cta:hover::after { animation: btn-shimmer 1.2s ease; }
.nav-cta:active { transform: translateY(0) scale(0.97); transition-duration: 0.05s; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Trakd Logo Animation ===== */
.trakd-letter {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.trakd-letter span {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.3px;
}
.trakd-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  pointer-events: none;
}
.trakd-bar {
  width: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transform-origin: bottom;
  transform: scaleY(0);
}
.trakd-scan {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: var(--text);
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

/* Hero logo (larger) */
.hero-logo .trakd-letter span { font-size: 48px; letter-spacing: -0.5px; }
.hero-logo .trakd-bars { height: 22px; gap: 1.5px; }
.hero-logo .trakd-bar { width: 3px; }
.hero-logo .trakd-scan { width: 3px; top: -4px; bottom: -4px; }

/* ===== Page Layout ===== */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.page-header { margin-bottom: 28px; }
.page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.page-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ===== Tabs ===== */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-surface);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}
.tab-btn {
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(0, 0, 0, 0.12);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  -webkit-tap-highlight-color: transparent;
}
.tab-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.05) 55%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
}
.tab-btn:hover::after { animation: btn-shimmer 1s ease; }
.tab-btn:active { transform: scale(0.96); transition-duration: 0.05s; }
.tab-btn.active {
  background: var(--accent);
  color: var(--text);
  border-top-color: rgba(255, 100, 120, 0.3);
  border-bottom-color: rgba(100, 10, 25, 0.35);
  box-shadow: 0 3px 12px rgba(196, 30, 58, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ===== Controls ===== */
.controls {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--accent); }
.sort-select {
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* ===== Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

/* ===== Set Card ===== */
.set-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.set-card:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(245, 240, 232, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.set-card:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 0.05s;
}
.set-card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(245, 240, 232, 0.02);
  display: block;
}
.set-card-body { padding: 14px 16px; }
.set-card-artist {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.set-card-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.set-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.set-card-meta span { display: flex; align-items: center; gap: 4px; }

/* ===== Artist Card ===== */
.artist-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.artist-card:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(245, 240, 232, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.artist-card:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 0.05s;
}
.artist-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  background: var(--bg-surface-hover);
}
.artist-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 36px;
  font-weight: 800;
}
.artist-card-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.artist-card-genres {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.artist-card-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Load More ===== */
.load-more-wrap { text-align: center; margin-top: 8px; }
.load-more-btn {
  padding: 12px 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.18);
  border-bottom-color: rgba(0, 0, 0, 0.2);
  background: var(--bg-surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-tap-highlight-color: transparent;
}
.load-more-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.05) 55%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
}
.load-more-btn:hover {
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.load-more-btn:hover::after { animation: btn-shimmer 1.2s ease; }
.load-more-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition-duration: 0.05s;
}
.load-more-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ===== Loading / Empty / Error States ===== */
.loading {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
  font-size: 15px;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 15px;
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}
.error-state h2 { font-size: 20px; margin-bottom: 8px; color: var(--text); }

/* ===== Set Detail ===== */
.set-header {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  align-items: flex-start;
}
.set-cover {
  width: 320px;
  min-width: 320px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--bg-surface);
}
.set-info { flex: 1; min-width: 0; }
.set-artist {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}
.set-venue {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.set-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.set-meta span { display: flex; align-items: center; gap: 4px; }

/* Source links */
.source-links { display: flex; flex-wrap: wrap; gap: 8px; }
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.source-link:hover { opacity: 0.85; }
.source-link.youtube { background: #FF0000; color: #fff; }
.source-link.soundcloud { background: #FF5500; color: #fff; }
.source-link.spotify { background: #1DB954; color: #fff; }
.source-link.tracklists { background: var(--bg-surface-hover); color: var(--text); border: 1px solid var(--border); }
.source-link.mixcloud { background: #5000ff; color: #fff; }

/* Tracklist */
.tracklist-section { margin-top: 8px; }
.tracklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.tracklist-title { font-size: 18px; font-weight: 700; }
.tracklist-counts {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
}
.track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}
.track-row:nth-child(even) { background: rgba(245, 240, 232, 0.015); }
.track-row:hover { background: var(--bg-surface-hover); }
.track-num {
  width: 28px;
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.track-time {
  width: 56px;
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.track-art {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-surface);
}
.track-art-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  color: var(--text-muted);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.2);
}
.track-info { flex: 1; min-width: 0; }
.track-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.track-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-artist-name {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-actions { flex-shrink: 0; }
.spotify-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 20px;
  background: #1DB954;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.spotify-btn:hover { opacity: 0.85; }

/* ===== Artist Detail ===== */
.artist-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 40px 0 32px;
}
.artist-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-surface);
}
.artist-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 56px;
  font-weight: 800;
}
.artist-details { flex: 1; min-width: 0; }
.artist-name {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
}
.artist-country {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.artist-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.genre-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.06);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: all 0.15s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.genre-tag:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); }
.genre-tag:active { transform: scale(0.95); transition-duration: 0.05s; }
.genre-tag.active {
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
  border-top-color: rgba(255, 100, 120, 0.2);
}
.artist-stats {
  display: flex;
  gap: 24px;
}
.artist-stat { text-align: center; }
.artist-stat-value {
  font-size: 22px;
  font-weight: 800;
}
.artist-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.artist-spotify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #1DB954;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
  transition: opacity 0.2s;
}
.artist-spotify:hover { opacity: 0.85; }

/* Sets section (on artist detail) */
.sets-section { margin-top: 8px; }
.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.empty-sets {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== Data Table (for tracks browse) ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 10px 12px;
  font-size: 14px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.03);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}
.data-table tr:hover td { background: var(--bg-surface-hover); }
.data-table td a { color: var(--text); transition: color 0.2s; }
.data-table td a:hover { color: var(--accent); }

/* ===== Badge (BPM / Key) ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.badge.accent {
  background: var(--accent-light);
  color: var(--accent);
  border-color: transparent;
}

/* ===== Share Button ===== */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.share-btn:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(245, 240, 232, 0.15);
}

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 24px 20px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer span { font-size: 14px; font-weight: 700; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ===== 3D Glass Button ===== */
.btn-3d {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.2);
  border-bottom-color: rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn-3d::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.06) 55%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
}
.btn-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.8);
}
.btn-3d:hover::after {
  animation: btn-shimmer 1.2s ease;
}
.btn-3d:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45), inset 0 2px 4px rgba(0, 0, 0, 0.15);
  transition-duration: 0.05s;
}
.btn-3d-accent {
  background: linear-gradient(180deg, rgba(210, 40, 65, 0.92), rgba(170, 20, 45, 0.92));
  border-color: rgba(255, 80, 100, 0.2);
  border-top-color: rgba(255, 130, 150, 0.3);
  border-bottom-color: rgba(100, 10, 25, 0.5);
  box-shadow: 0 4px 14px rgba(196, 30, 58, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-3d-accent:hover {
  background: linear-gradient(180deg, rgba(220, 45, 70, 0.97), rgba(180, 25, 50, 0.97));
  box-shadow: 0 8px 28px rgba(196, 30, 58, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-3d-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
@keyframes btn-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== 3D Tilt Interactive ===== */
.tilt-3d {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 40%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 3;
}
.tilt-3d:hover .tilt-glare { opacity: 1; }

/* ===== Mobile Side Drawer ===== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: rgba(245, 240, 232, 0.97);
  backdrop-filter: blur(40px) saturate(1.3);
  -webkit-backdrop-filter: blur(40px) saturate(1.3);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  padding-top: calc(16px + env(safe-area-inset-top));
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
.drawer-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
}
.drawer-close:hover { background: rgba(0, 0, 0, 0.1); }
.drawer-nav {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.drawer-link::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 55%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
}
.drawer-link:active::after { animation: btn-shimmer 0.8s ease; }
.drawer-link:active {
  transform: scale(0.97);
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.drawer-link.active {
  background: rgba(196, 30, 58, 0.12);
  border-color: rgba(196, 30, 58, 0.15);
  color: var(--accent);
}
.drawer-link svg { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.5; }
.drawer-link.active svg { opacity: 1; color: var(--accent); }
.drawer-divider { height: 1px; background: rgba(0, 0, 0, 0.06); margin: 4px 0; }
.drawer-cta-wrap {
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  margin-top: auto;
}

/* ===== Venues Expandable (Drawer) ===== */
.venues-toggle-wrap { position: relative; }
.venues-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.venues-toggle::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 55%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
}
.venues-toggle:active::after { animation: btn-shimmer 0.8s ease; }
.venues-toggle .vt-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.venues-toggle .vt-left svg { width: 20px; height: 20px; opacity: 0.5; }
.venues-chevron {
  transition: transform 0.25s ease;
  opacity: 0.35;
  width: 16px;
  height: 16px;
}
.venues-toggle.open .venues-chevron { transform: rotate(180deg); }
.venues-toggle.open {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}
.venues-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.venues-sub.open { max-height: 320px; }
.venues-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.venues-sub-link:hover, .venues-sub-link:active {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
}
.venues-sub-link svg { width: 16px; height: 16px; opacity: 0.4; flex-shrink: 0; }

/* ===== Desktop Venues Dropdown ===== */
.nav-venues-wrap { position: relative; display: flex; align-items: center; }
.nav-venues-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.nav-venues-btn:hover, .nav-venues-btn.active { color: var(--text); }
.nav-venues-btn svg { transition: transform 0.2s; width: 12px; height: 12px; }
.nav-venues-btn.open svg { transform: rotate(180deg); }
.nav-venues-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  min-width: 240px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 110;
}
.nav-venues-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-venues-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.nav-venues-dropdown a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}
.nav-venues-dropdown a svg { width: 18px; height: 18px; opacity: 0.5; flex-shrink: 0; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .set-header { flex-direction: column; gap: 16px; }
  .set-cover { width: 100%; min-width: 0; }
  .set-artist { font-size: 22px; }
  .track-time { font-size: 10px; width: 44px; }
  .track-art, .track-art-placeholder { width: 36px; height: 36px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .trakd-nav-cta-desktop { font-size: 11px; padding: 6px 12px; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .page-title { font-size: 22px; }
  .controls { flex-direction: column; }
  .sort-select { width: 100%; }

  .artist-header { flex-direction: column; text-align: center; gap: 16px; }
  .artist-img, .artist-placeholder { width: 120px; height: 120px; font-size: 42px; }
  .artist-name { font-size: 24px; }
  .artist-genres { justify-content: center; }
  .artist-stats { justify-content: center; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 8px 8px; }
}
