:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(18, 18, 18, 0.76);
  --glass: rgba(255, 255, 255, 0.075);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --panel-strong: #111;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f4f0e8;
  --muted: #a9a39a;
  --soft: #d9d1c4;
  --accent: #c9a86a;
  --accent-2: #7f9c98;
  --danger: #d58080;
  --shadow: 0 16px 46px rgba(0, 0, 0, 0.38);
  --player-h: 72px;
  --play-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7L8 5Z'/%3E%3C/svg%3E");
  --bars-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='10' width='3.4' height='10'/%3E%3Crect x='10.3' y='4' width='3.4' height='16'/%3E%3Crect x='16.6' y='13' width='3.4' height='7'/%3E%3C/svg%3E");
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 52% -10%, rgba(244, 240, 232, 0.16), transparent 30rem),
    radial-gradient(ellipse at 14% 18%, rgba(201, 168, 106, 0.15), transparent 24rem),
    radial-gradient(ellipse at 86% 32%, rgba(127, 156, 152, 0.12), transparent 26rem),
    linear-gradient(180deg, #0b0b0a 0%, #050505 46%, #080806 100%);
  color: var(--text);
  padding-bottom: 0;
}

/* One subtle texture: faint horizontal staff lines, fading top and bottom. */
body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 26px, rgba(244, 240, 232, 0.04) 26px 27px, transparent 27px 28px);
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.6) 70%, transparent);
  content: "";
}

body.has-player {
  padding-bottom: var(--player-h);
}

body.nav-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.site-shell {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--player-h));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 50px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.13);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: var(--text);
  transition: background 180ms ease, border-color 180ms ease;
}

.nav-toggle:hover,
body.nav-open .nav-toggle {
  border-color: rgba(201, 168, 106, 0.45);
  background: rgba(201, 168, 106, 0.16);
  color: var(--accent);
}

.nav-icon {
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.25, 1);
}

.nav-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

body.nav-open .nav-icon-menu {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}

body.nav-open .nav-icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

main {
  outline: none;
}

.page {
  min-height: calc(100vh - var(--player-h));
  animation: pageIn 360ms ease both;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: clamp(460px, 78vh, 760px);
  padding: 128px clamp(20px, 5vw, 56px) 72px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

/* Decorative hero emblem (replaces the old studio visual / background block) */
.hero-emblem {
  position: relative;
  display: grid;
  width: min(38vw, 360px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
}

.hero-emblem::before {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, rgba(244, 240, 232, 0.09) 0 1px, transparent 1px 13px);
  -webkit-mask: radial-gradient(circle at center, #000 52%, transparent 73%);
  mask: radial-gradient(circle at center, #000 52%, transparent 73%);
  content: "";
}

.hero-emblem::after {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 36%, rgba(201, 168, 106, 0.28), rgba(201, 168, 106, 0.06) 60%, transparent 72%);
  content: "";
}

.hero-ring {
  position: absolute;
  inset: 7%;
  border: 1px dashed rgba(201, 168, 106, 0.5);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

.hero-ring::after {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(201, 168, 106, 0.8);
  content: "";
}

.hero-mark {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(201, 168, 106, 0.35);
}

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

.studio-visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 8px;
  min-height: 230px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 26px),
    rgba(12, 12, 12, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.studio-visual::before {
  position: absolute;
  inset: 18px 18px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 106, 0.85), transparent);
  content: "";
}

.studio-visual span {
  display: block;
  min-height: 42px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgba(244, 240, 232, 0.88), rgba(201, 168, 106, 0.3));
}

.studio-visual span:nth-child(1) {
  height: 42%;
}

.studio-visual span:nth-child(2) {
  height: 72%;
}

.studio-visual span:nth-child(3) {
  height: 56%;
}

.studio-visual span:nth-child(4) {
  height: 86%;
}

.studio-visual span:nth-child(5) {
  height: 48%;
}

.studio-visual i {
  position: absolute;
  bottom: 18px;
  width: 9%;
  height: 44px;
  border-radius: 0 0 4px 4px;
  background: #060606;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.studio-visual i:nth-of-type(1) {
  left: 18%;
}

.studio-visual i:nth-of-type(2) {
  left: 36%;
}

.studio-visual i:nth-of-type(3) {
  left: 58%;
}

.studio-visual i:nth-of-type(4) {
  left: 75%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: block;
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 6.5vw, 5.9rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 590px;
  color: var(--soft);
  font-size: clamp(0.96rem, 1.5vw, 1.08rem);
  line-height: 1.62;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 760;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button svg,
.icon-button svg,
.player svg,
.footer-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.button.primary {
  background: var(--text);
  color: #050505;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px) saturate(1.2);
}

.button:hover,
.icon-button:hover {
  transform: translateY(-2px);
}

.section {
  padding: clamp(42px, 6vw, 72px) clamp(20px, 5vw, 56px);
}

.section.compact {
  padding-top: 104px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-header h2,
.page-title h1 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.5vw, 3.1rem);
  font-weight: 500;
  line-height: 1;
}

.section-header p,
.page-title p,
.bio-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.62;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.track-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    rgba(20, 20, 23, 0.72);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.track-card:hover {
  border-color: rgba(201, 168, 106, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.01)),
    rgba(30, 28, 26, 0.82);
  transform: translateY(-4px);
}

.cover-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #111;
}

.cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.track-card:hover .cover-wrap img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(244, 240, 232, 0.9);
  color: #050505;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, background 160ms ease;
}

.play-overlay:hover {
  background: #fffaf0;
  transform: scale(1.05);
}

.play-overlay svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.track-body {
  padding: 13px;
}

.track-body h3 {
  margin-bottom: 8px;
  font-size: 0.93rem;
}

.track-body p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 0.8rem;
}

.bio-card,
.contact-card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    rgba(20, 20, 23, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), var(--shadow);
}

/* Standout feature band — a deliberate break from the card grids */
.feature-band {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(201, 168, 106, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(201, 168, 106, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    rgba(17, 16, 14, 0.86);
  box-shadow: var(--shadow);
}

.feature-stat strong {
  display: block;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 0.9;
}

.feature-stat span {
  display: block;
  margin-top: 10px;
  max-width: 180px;
  color: var(--muted);
  font-size: 0.86rem;
}

.feature-note {
  margin: 0;
  padding-left: clamp(28px, 5vw, 64px);
  border-left: 1px solid var(--line);
  color: var(--soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-style: italic;
  line-height: 1.5;
}

.page-title {
  max-width: 720px;
  padding: 112px clamp(20px, 5vw, 56px) 24px;
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
}

.bio-card,
.contact-card {
  padding: clamp(18px, 3vw, 28px);
}

.bio-card h2,
.contact-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  font-weight: 500;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding: 16px;
}

.timeline-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.instrument-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.instrument-list span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
}

.contact-methods {
  display: grid;
  gap: 10px;
}

.contact-methods a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    rgba(20, 20, 23, 0.66);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-methods a:hover {
  border-color: rgba(201, 168, 106, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
    rgba(30, 28, 26, 0.78);
  transform: translateY(-2px);
}

.contact-methods span {
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-methods strong {
  color: var(--text);
  font-size: 0.92rem;
  text-align: right;
}

.notice {
  border: 1px solid rgba(201, 168, 106, 0.28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(201, 168, 106, 0.13), rgba(255, 255, 255, 0.04));
  color: var(--soft);
  padding: 16px;
}

.catalog-fallback {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 36px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(14, 14, 14, 0.86);
  padding: clamp(18px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.catalog-fallback h3 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.5vw, 2.35rem);
  font-weight: 500;
}

.catalog-fallback p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.65;
}

.stream-widget {
  width: 100%;
  height: 190px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
}

.fallback-panel .studio-visual {
  min-height: 260px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) 1fr;
  gap: 28px;
  padding: 32px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
  background: #070707;
}

.site-footer p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.88rem;
}

.player {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1fr minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-height: var(--player-h);
  padding: 10px clamp(14px, 3vw, 24px);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.86), rgba(8, 8, 8, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 -18px 58px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px) saturate(1.2);
}

/* player-seek spans full width */
.player > .player-seek {
  grid-column: 1 / -1;
}

/* player-track: left column */
.player-track {
  grid-column: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

/* player-controls: center column */
.player-controls {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* right side: times + volume + queue */
.player-right {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

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

/* Slim seek line pinned to the top edge of the player */
.player-seek {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  height: 14px;
  align-items: center;
  transform: translateY(-50%);
}

.player-seek input[type="range"] {
  margin: 0;
  height: 14px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.player-seek input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--seek, 0%), rgba(255, 255, 255, 0.16) var(--seek, 0%));
}

.player-seek input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.player-seek input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.player-seek input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 150ms ease;
}

.player-seek input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  opacity: 0;
  transition: opacity 150ms ease;
}

.player:hover .player-seek input[type="range"]::-webkit-slider-thumb,
.player-seek input[type="range"]:focus-visible::-webkit-slider-thumb {
  opacity: 1;
}

.player:hover .player-seek input[type="range"]::-moz-range-thumb,
.player-seek input[type="range"]:focus-visible::-moz-range-thumb {
  opacity: 1;
}

@media (max-width: 740px) {
  /* thumb always visible for touch scrubbing */
  .player-seek input[type="range"]::-webkit-slider-thumb { opacity: 1; }
  .player-seek input[type="range"]::-moz-range-thumb { opacity: 1; }
}

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

.player-track img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #171717;
  object-fit: cover;
}

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

.player-track strong,
.player-track small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-track strong {
  font-size: 0.92rem;
}

.player-track small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.player-times {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.player-controls button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.player .play-button {
  width: 44px;
  height: 44px;
  background: var(--text);
  color: #050505;
}

.player .play-button:hover {
  background: #fffaf0;
  transform: scale(1.04);
}

.pause-icon,
.is-playing .play-icon {
  display: none;
}

.is-playing .pause-icon {
  display: block;
}

.player-volume {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--muted);
}

.player-volume-btn {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  flex-shrink: 0;
}

.player-volume-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.player-volume-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.player-volume-slider {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(18, 18, 18, 0.96);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  transform: translateX(-50%) translateY(6px);
}

.player-volume:hover .player-volume-slider,
.player-volume-slider:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.player-volume-slider input[type="range"] {
  width: 80px;
  accent-color: var(--accent);
  cursor: pointer;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 6px;
  height: 80px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.queue-button {
  border: 1px solid var(--line) !important;
}

.queue-button[aria-expanded="true"] {
  border-color: rgba(201, 168, 106, 0.5) !important;
  background: rgba(201, 168, 106, 0.16);
  color: var(--accent);
}

.queue-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  animation: fadeIn 200ms ease;
}

.queue-backdrop[hidden] {
  display: none;
}

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

.queue-panel {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: calc(var(--player-h) + env(safe-area-inset-bottom, 0px) + 12px);
  z-index: 41;
  display: none;
  flex-direction: column;
  width: min(480px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - var(--player-h) - 40px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.97), rgba(10, 10, 10, 0.98));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.queue-panel.open {
  display: flex;
  animation: queuePop 200ms ease;
}

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

.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.queue-head strong {
  font-size: 0.95rem;
}

.queue-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  transition: background 160ms ease;
}

.queue-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.queue-close svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.queue-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}

.queue-item {
  display: grid;
  grid-template-columns: 28px 48px minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  align-items: center;
  margin-bottom: 6px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease;
}

.queue-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.queue-item.active {
  border-color: rgba(201, 168, 106, 0.32);
  background: rgba(201, 168, 106, 0.1);
}

.queue-item img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

.queue-index {
  display: block;
  width: 28px;
  color: rgba(244, 240, 232, 0.45);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.queue-item.active .queue-index {
  color: var(--accent);
}

.queue-copy {
  min-width: 0;
  overflow: hidden;
}

.queue-copy strong {
  display: block;
  overflow: hidden;
  margin: 0 0 3px;
  font-size: 0.9rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-item.active .queue-copy strong {
  color: var(--accent);
}

.queue-copy em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-state {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--soft);
  font-size: 0;
}

.queue-state::before {
  width: 16px;
  height: 16px;
  background: currentColor;
  content: "";
  -webkit-mask: var(--play-mask) center / contain no-repeat;
  mask: var(--play-mask) center / contain no-repeat;
}

.queue-item:not(.active) .queue-state {
  opacity: 0;
  transition: opacity 160ms ease;
}

.queue-item:hover .queue-state {
  opacity: 1;
}

.queue-item.active .queue-state {
  color: var(--accent);
}

.queue-item.active .queue-state::before {
  -webkit-mask-image: var(--bars-mask);
  mask-image: var(--bars-mask);
}

.skeleton {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  background-size: 240% 100%;
  animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -240% 0;
  }
}

/* ── Player listen button ───────────────────────────────────── */
.player-listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.player-listen-btn:hover {
  border-color: rgba(201, 168, 106, 0.5);
  background: rgba(201, 168, 106, 0.12);
  color: var(--accent);
}

.player-listen-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Platform popup ─────────────────────────────────────────── */
.platform-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 200ms ease;
}

.platform-backdrop[hidden] {
  display: none;
}

.platform-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 51;
  width: min(380px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.98), rgba(10, 10, 10, 0.99));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: popupIn 220ms cubic-bezier(0.2, 0.8, 0.25, 1);
}

.platform-popup[hidden] {
  display: none;
}

@keyframes popupIn {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.platform-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.platform-popup-label {
  margin: 0;
  color: var(--soft);
  font-size: 0.84rem;
  line-height: 1.4;
}

.platform-close {
  display: grid;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  transition: background 160ms ease;
}

.platform-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.platform-close svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.platform-list {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.platform-item:hover {
  border-color: rgba(201, 168, 106, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.01));
  color: var(--accent);
  transform: translateY(-2px);
}

.platform-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}

@media (max-width: 980px) {
  :root {
    --player-h: 64px;
  }

  .player {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
  }

  .player-times,
  .player-volume {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: clamp(28px, 6vw, 48px);
    min-height: auto;
    padding: 116px clamp(20px, 5vw, 56px) 56px;
  }

  .hero-emblem {
    width: min(56vw, 240px);
    justify-self: center;
  }

  .about-layout,
  .contact-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 740px) {
  :root {
    --player-h: 62px;
  }

  .site-header {
    padding: 10px 14px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 0.68rem;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .nav-toggle {
    display: grid;
  }

  .main-nav {
    position: fixed;
    inset: 58px 10px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(10, 10, 10, 0.96);
    box-shadow: var(--shadow);
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    border-radius: 8px;
  }

  .hero {
    min-height: auto;
    padding: 96px 16px 40px;
    gap: 28px;
  }

  .hero-emblem {
    width: min(58vw, 200px);
  }

  .catalog-fallback {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.35rem, 15vw, 4.2rem);
  }

  .hero-copy {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-actions,
  .section-actions {
    gap: 9px;
  }

  .button {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 0.84rem;
  }

  .section {
    padding: 34px 14px;
  }

  .section-header {
    display: block;
  }

  .section-header h2,
  .page-title h1 {
    font-size: clamp(1.65rem, 9vw, 2.45rem);
  }

  .section-header p,
  .page-title p {
    font-size: 0.92rem;
  }

  .feature-band {
    grid-template-columns: 1fr 1fr;
    gap: 20px clamp(20px, 6vw, 32px);
    border-radius: 14px;
  }

  .feature-note {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .track-body {
    padding: 10px;
  }

  .track-body h3 {
    font-size: 0.86rem;
    line-height: 1.25;
  }

  .track-body p {
    margin-bottom: 0;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .play-overlay {
    right: 8px;
    bottom: 8px;
    width: 34px;
    height: 34px;
  }

  .page-title {
    padding: 82px 14px 18px;
  }

  .player {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .player-right {
    gap: 6px;
  }

  .player-times {
    display: none;
  }

  .player-volume {
    display: none;
  }

  .player-listen-btn span {
    display: none;
  }

  .player-listen-btn {
    padding: 5px 7px;
  }

  .player-track img {
    width: 42px;
    height: 42px;
  }

  .player-track strong {
    font-size: 0.85rem;
  }

  .player-track small {
    font-size: 0.72rem;
  }

  /* Keep play + queue on the bar; drop prev/next to save space */
  .player-controls button:not(.play-button) {
    display: none;
  }

  .player .play-button {
    width: 40px;
    height: 40px;
  }

  /* Queue becomes a bottom sheet */
  .queue-panel {
    position: fixed;
    inset: auto 0 0 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 78vh;
    border-width: 1px 0 0;
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .queue-panel.open {
    animation: sheetUp 260ms cubic-bezier(0.2, 0.8, 0.25, 1);
  }

  @keyframes sheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .queue-head {
    padding: 14px 18px;
  }

  .queue-list {
    padding: 8px 8px 14px;
  }

  .queue-item {
    grid-template-columns: 26px 46px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px;
  }

  .queue-item img {
    width: 46px;
    height: 46px;
  }

  /* Always show the now-playing/play indicator on touch */
  .queue-item:not(.active) .queue-state {
    opacity: 0.55;
  }

  .about-layout,
  .contact-layout {
    gap: 12px;
  }

  .bio-card,
  .contact-card,
  .timeline-item {
    padding: 16px;
  }

  .feature-band {
    padding: 22px;
  }

  .contact-methods a {
    display: grid;
    gap: 4px;
    padding: 13px;
  }

  .contact-methods strong {
    overflow-wrap: anywhere;
    text-align: left;
  }

  .site-footer {
    gap: 18px;
    padding: 26px 14px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    padding: 8px 10px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
