:root {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --muted: #8a8a8a;
  --border: #262626;
  --border-strong: #f5f5f5;
  --surface: #141414;
  --surface-accent: #1a1a1a;
  --accent: #f5f5f5;
  --card-bg: rgba(10, 10, 10, 0.72);
  --glow: 0 0 30px rgba(255,255,255,0.04);
  --glow-strong: 0 0 60px rgba(255,255,255,0.08);
  --danger: #ff6b5b;
  --success: #4ade80;
  --radius: 2px;
  --player-h: 88px;
}

html[data-theme="light"] {
  --bg: #f0fdf4;
  --fg: #064e3b;
  --muted: #52796f;
  --border: #a7d7c0;
  --border-strong: #047857;
  --surface: #ecfdf5;
  --surface-accent: #d1fae5;
  --accent: #047857;
  --card-bg: rgba(255, 255, 255, 0.72);
  --glow: 0 0 30px rgba(4,120,87,0.12);
  --glow-strong: 0 0 60px rgba(4,120,87,0.20);
  --danger: #c0392b;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--player-h);
}

.mono { font-family: 'JetBrains Mono', monospace; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ═════════ TOP SCROLL PROGRESS BAR ═════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--fg), var(--accent));
  background-size: 200% auto;
  box-shadow: 0 0 12px var(--accent),
              0 0 24px var(--accent);
  transition: width 0.1s linear;
  animation: progressShine 3s linear infinite;
}

@keyframes progressShine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* BACKGROUND GRID */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

/* TOPBAR */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.brand-name { font-size: 13px; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.nav { display: flex; gap: 8px; }

.nav-link {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  border-radius: 2px;
  color: var(--muted);
}

.nav-link:hover { color: var(--fg); border-color: var(--border); }
.nav-link.active {
  color: var(--fg);
  border-color: var(--border-strong);
  background: var(--surface);
}

.theme-toggle {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  border-radius: 2px;
}

.theme-toggle:hover {
  background: var(--fg);
  color: var(--bg);
  box-shadow: var(--glow);
}

.theme-toggle .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 60px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(20%) brightness(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.30) 0%,
    rgba(10,10,10,0.65) 60%,
    var(--bg) 100%
  );
  z-index: 1;
}

html[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(240,253,244,0.35) 0%,
    rgba(240,253,244,0.70) 60%,
    var(--bg) 100%
  );
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(255,255,255,0.02) 3px,
    transparent 4px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
}

.profile-card {
  display: flex;
  gap: 40px;
  align-items: center;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 48px 48px;
  max-width: 800px;
  position: relative;
  box-shadow: var(--glow-strong), 0 20px 60px rgba(0,0,0,0.4);
  border-radius: 2px;
}

.profile-card::before,
.profile-card::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--border-strong);
}

.profile-card::before {
  top: -1px; left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.profile-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 6px;
  border: 2px solid var(--border-strong);
  box-shadow: var(--glow-strong);
}

.avatar-img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
}

.avatar-status {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 18px; height: 18px;
  background: var(--success);
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

.profile-info { flex: 1; min-width: 0; }

.profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 14px;
  color: var(--muted);
}

.live-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: pulse 1.5s ease-in-out infinite;
}

.profile-name {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.profile-role {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.profile-bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 480px;
}

.profile-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.stat-sep {
  width: 1px;
  height: 30px;
  background: var(--border);
}

.socials { display: flex; gap: 10px; flex-wrap: wrap; }

.social-btn {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 2px;
  color: var(--muted);
  transition: all 0.25s ease;
  font-size: 15px;
}

.social-btn:hover {
  color: var(--fg);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.scroll-hint {
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
  animation: floatY 2s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* MARQUEE */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 22px 0;
  background: var(--surface);
  position: relative;
  z-index: 2;
}

.marquee {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scrollX 40s linear infinite;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.marquee-item { display: inline-flex; align-items: center; gap: 12px; }
.marquee-item i { font-size: 8px; color: var(--accent); }

@keyframes scrollX {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* SECTION */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0 8px;
}

.section-index {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.eq i {
  width: 2px;
  background: var(--accent);
  animation: eqBounce 0.9s ease-in-out infinite;
}

.eq i:nth-child(1) { height: 6px; animation-delay: 0s; }
.eq i:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.eq i:nth-child(3) { height: 8px; animation-delay: 0.3s; }
.eq i:nth-child(4) { height: 14px; animation-delay: 0.45s; }

@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface);
  box-shadow: var(--glow);
  gap: 14px;
}

/* PROJECTS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--glow-strong), 0 20px 50px rgba(0,0,0,0.3);
}

.project-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface-accent);
}

.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-thumb img { transform: scale(1.06); }

.project-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

.project-status {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
}

.status-live { color: var(--success); border-color: var(--success); }
.status-beta { color: #fbbf24; border-color: #fbbf24; }
.status-archived { color: var(--muted); }

.project-body { padding: 30px 28px; }

.project-meta {
  display: flex;
  gap: 8px;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.dot-sep { color: var(--accent); }

.project-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 16px;
}

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

.tag {
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  background: var(--surface-accent);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 2px;
}

.corner {
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--border-strong);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.corner.tl { top: 6px; left: 6px; border-top: 2px solid; border-left: 2px solid; }
.corner.br { bottom: 6px; right: 6px; border-bottom: 2px solid; border-right: 2px solid; }

.project-card:hover .corner { opacity: 1; }

/* PLAYLIST */
.playlist-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}

.playlist-hero {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 26px;
  border-radius: 2px;
}

.playlist-cover-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 20px;
  box-shadow: var(--glow-strong);
}

.playlist-cover {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.playlist-hero:hover .playlist-cover { transform: scale(1.04); }

.playlist-cover-badge {
  position: absolute;
  bottom: 10px; left: 10px;
  font-size: 9.5px;
  letter-spacing: 0.15em;
  padding: 5px 10px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--success);
  border-radius: 2px;
}

.playlist-hero-info {
  margin-bottom: 18px;
  padding: 0 4px;
}

.playlist-hero-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-hero-artist {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  border-radius: 2px;
}

.btn-primary:hover {
  background: transparent;
  color: var(--fg);
  box-shadow: var(--glow);
}

.playlist {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
}

.playlist-head {
  display: grid;
  grid-template-columns: 48px 1fr 180px 60px;
  gap: 16px;
  padding: 18px 28px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: var(--surface-accent);
}

.track {
  display: grid;
  grid-template-columns: 48px 48px 1fr 180px 60px;
  gap: 16px;
  align-items: center;
  padding: 16px 28px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.track:last-child { border-bottom: none; }

.track:hover { background: var(--surface-accent); }

.track.active {
  background: var(--surface-accent);
}

.track.active::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}

.track-num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  position: relative;
  height: 20px;
}

.track-num .num { transition: opacity 0.2s ease; }
.track-num .num-play { display: none; font-size: 11px; }
.track-num .num-bars {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.track-num .num-bars i {
  width: 2px;
  background: var(--accent);
  animation: eqBounce 0.9s ease-in-out infinite;
}

.track-num .num-bars i:nth-child(1) { height: 5px; }
.track-num .num-bars i:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.track-num .num-bars i:nth-child(3) { height: 8px; animation-delay: 0.3s; }
.track-num .num-bars i:nth-child(4) { height: 14px; animation-delay: 0.45s; }

.track:hover .num { display: none; }
.track:hover .num-play { display: block; color: var(--fg); }

.track.active .num { display: none; }
.track.active .num-play { display: none; }
.track.active .num-bars { display: flex; }

.track-cover {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--border);
}

.track-meta { min-width: 0; }

.track-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.track.active .track-title { color: var(--accent); }

.track-artist {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-album, .track-dur {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 26px 0;
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left, .footer-right {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

/* PLAYER BAR */
.player-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--player-h);
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  z-index: 200;
  transition: transform 0.35s ease;
}

.player-bar.hidden { transform: translateY(100%); }

/* ═════════ PROGRESS BAR (ENHANCED) ═════════ */
.player-progress-top {
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
  padding: 0 24px;
  z-index: 10;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: var(--border);
  cursor: pointer;
  border-radius: 3px;
  transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.25s ease;
  overflow: visible;
}

.progress-track:hover {
  height: 6px;
  background: var(--surface-accent);
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.progress-buffer {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--surface-accent);
  border-radius: 3px;
  transition: width 0.3s ease;
  opacity: 0.6;
}

.progress-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--fg));
  border-radius: 3px;
  transition: width 0.08s linear;
  overflow: visible;
  box-shadow: 0 0 12px var(--accent);
}

.progress-knob {
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 14px;
  height: 14px;
  background: var(--fg);
  border: 2px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--accent),
              0 0 4px var(--fg);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 2;
}

.progress-track:hover .progress-knob,
.player-bar.playing .progress-knob {
  transform: translateY(-50%) scale(1);
}

.progress-track:hover .progress-knob {
  transform: translateY(-50%) scale(1.15);
}

.player-bar.playing .progress-fill {
  box-shadow: 0 0 20px var(--accent),
              0 0 40px rgba(255,255,255,0.15);
}

html[data-theme="light"] .progress-fill {
  background: linear-gradient(90deg, var(--accent), var(--border-strong));
  box-shadow: 0 0 12px var(--accent);
}

.player-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.player-cover {
  width: 54px; height: 54px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.player-bar.playing .player-cover {
  animation: spinCover 8s linear infinite;
}

@keyframes spinCover {
  to { transform: rotate(360deg); }
}

.player-meta { min-width: 0; }

.player-title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.player-artist {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pc-btn {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  border-radius: 2px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.pc-btn:hover { color: var(--fg); border-color: var(--border); }

.pc-btn.active { color: var(--accent); }

.pc-btn.play-btn {
  width: 48px; height: 48px;
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  font-size: 16px;
  margin: 0 4px;
}

.pc-btn.play-btn:hover {
  background: transparent;
  color: var(--fg);
  box-shadow: var(--glow-strong);
}

.player-right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

.player-time {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

#volumeSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

#volumeSlider::-moz-range-thumb {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: none;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: calc(var(--player-h) + 20px);
  right: 30px;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--border-strong);
  padding: 14px 22px;
  font-size: 12px;
  z-index: 300;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 2px;
  box-shadow: var(--glow-strong);
  max-width: 90%;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast i { color: var(--success); font-size: 15px; }

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--d, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
  .playlist-layout { grid-template-columns: 1fr; gap: 24px; }
  .playlist-hero { position: static; padding: 24px 22px; }
  .playlist-cover-wrap { aspect-ratio: 16/9; }
  .pl-album { display: none; }
  .playlist-head { grid-template-columns: 48px 1fr 60px; }
  .track { grid-template-columns: 48px 48px 1fr 60px; }
  .player-inner { grid-template-columns: 1fr auto; }
  .player-right { display: none; }

  .section { padding: 80px 0; }
  .section-head { margin-bottom: 36px; }
}

/* Mobile */
@media (max-width: 700px) {
  .container { padding: 0 28px; }

  .hero {
    min-height: 90vh;
    padding: 90px 0 40px;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 36px 26px;
    gap: 22px;
  }
  .profile-card::before,
  .profile-card::after { width: 14px; height: 14px; }

  .avatar-wrapper { width: 100px; height: 100px; padding: 4px; }
  .avatar-status { width: 14px; height: 14px; bottom: 6px; right: 6px; }

  .profile-name { font-size: 26px; }
  .profile-role { font-size: 11px; }
  .profile-bio { font-size: 13px; margin-bottom: 18px; }

  .profile-stats {
    justify-content: center;
    gap: 18px;
    margin-bottom: 18px;
  }
  .stat-num { font-size: 17px; }
  .stat-sep { height: 24px; }

  .socials { justify-content: center; }
  .social-btn { width: 38px; height: 38px; font-size: 14px; }

  .scroll-hint { margin-top: 36px; font-size: 10px; }

  .nav { display: none; }
  .topbar-inner { height: 58px; }

  .section { padding: 60px 0; }
  .section-head { margin-bottom: 28px; padding: 0 4px; }
  .section-title { font-size: 24px; }
  .section-index { font-size: 10px; }

  .project-grid { gap: 16px; }
  .project-body { padding: 24px 22px; }
  .project-title { font-size: 17px; }
  .project-desc { font-size: 12.5px; }

  .playlist-hero { padding: 22px 20px; }
  .playlist-cover-wrap { aspect-ratio: 16/9; margin-bottom: 14px; }
  .playlist-hero-title { font-size: 15px; }
  .playlist-hero-info { padding: 0 2px; }

  .playlist-head {
    grid-template-columns: 32px 1fr 44px;
    gap: 10px;
    padding: 14px 22px;
    font-size: 10px;
  }

  .track {
    grid-template-columns: 32px 40px 1fr 44px;
    gap: 10px;
    padding: 14px 22px;
  }
  .track-cover { width: 40px; height: 40px; }
  .track-title { font-size: 13px; }
  .track-artist { font-size: 10.5px; }

  .player-inner { padding: 0 22px; gap: 12px; }
  .player-controls { gap: 2px; }
  .pc-btn { width: 32px; height: 32px; font-size: 12px; }
  .pc-btn.play-btn { width: 42px; height: 42px; font-size: 14px; margin: 0 2px; }
  .player-info .player-cover { width: 44px; height: 44px; }
  .player-title { font-size: 12px; }
  .player-artist { font-size: 10px; }

  .footer { padding: 20px 0; }
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
  .footer-left, .footer-right { font-size: 10.5px; }

  .toast {
    right: 14px;
    left: 14px;
    max-width: none;
    bottom: calc(var(--player-h) + 14px);
  }

  .marquee { font-size: 11.5px; gap: 40px; }
  .marquee-wrap { padding: 16px 0; }

  /* Progress bar mobile */
  .player-progress-top {
    padding: 0 16px;
    top: -5px;
    height: 5px;
  }
  .progress-track { height: 2.5px; }
  .progress-track:hover { height: 5px; }
  .progress-knob {
    width: 12px;
    height: 12px;
    right: -6px;
  }
}

/* Extra small */
@media (max-width: 380px) {
  .container { padding: 0 22px; }
  .profile-card { padding: 32px 20px; }
  .profile-name { font-size: 22px; }
  .profile-stats { gap: 14px; }
  .stat-num { font-size: 15px; }
  .stat-label { font-size: 9px; }
  .social-btn { width: 34px; height: 34px; font-size: 13px; }
}

/* ═══════════════════════════════════════
   CUSTOM SCROLLBAR
   ═══════════════════════════════════════ */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
  border-left: 1px solid var(--border);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--muted));
  border-radius: 0;
  border: 2px solid var(--bg);
  background-clip: padding-box;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--fg), var(--accent));
  background-clip: padding-box;
  box-shadow: inset 0 0 20px var(--accent);
}

::-webkit-scrollbar-thumb:active {
  background: var(--fg);
  background-clip: padding-box;
}

::-webkit-scrollbar-corner {
  background: var(--bg);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

@media (max-width: 700px) {
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-thumb { border: 1px solid var(--bg); }
}
