:root {
  --bg: #0f172a;
  --bg-alt: #111c34;
  --fg: #e2e8f0;
  --accent: #38bdf8;
  --accent-muted: rgba(56, 189, 248, 0.2);
  --heading: #f8fafc;
  --text: #94a3b8;
  --card-bg: rgba(15, 23, 42, 0.8);
  --shadow: rgba(8, 15, 32, 0.4);
  --container-width: min(1100px, 92vw);
  --transition: 0.3s ease;
  --border-radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: var(--container-width);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

nav {
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: transform var(--transition), opacity var(--transition);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  padding: 120px 0;
  background: radial-gradient(
      circle at top right,
      rgba(56, 189, 248, 0.15),
      transparent 55%
    ),
    var(--bg);
}

.hero-content {
  display: grid;
  gap: 60px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  margin-bottom: 16px;
  color: var(--heading);
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 540px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn.primary {
  background: var(--accent);
  color: #0b1120;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(56, 189, 248, 0.35);
}

.btn.ghost {
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--fg);
  background: transparent;
  padding-left: 30px;
  padding-right: 30px;
}

.btn.ghost:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(148, 163, 184, 0.6);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-image img {
  width: 100%;
  border-radius: calc(var(--border-radius) + 12px);
  box-shadow: 0 20px 50px rgba(8, 15, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 12px 0;
  color: var(--heading);
}

.section-header p {
  color: var(--text);
  margin: 0;
}

.eyebrow {
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.6);
}

.about-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.about-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 12px 30px var(--shadow);
  transition: transform var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
}

.about-card h3 {
  margin-top: 0;
  color: var(--heading);
}

.about-card p {
  color: var(--text);
  margin-bottom: 0;
}

.works-filter {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.filter-btn {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: transparent;
  color: var(--fg);
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: #0b1120;
  border-color: transparent;
}

.works-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.work-card {
  position: relative;
  border-radius: calc(var(--border-radius) + 6px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 12px 30px rgba(8, 15, 32, 0.55);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 240px;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(8, 15, 32, 0.65);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.work-card-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 24px 24px;
  background: linear-gradient(
    180deg,
    rgba(6, 11, 25, 0) 0%,
    rgba(6, 11, 25, 0.7) 50%,
    rgba(6, 11, 25, 0.9) 100%
  );
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-muted);
  color: var(--accent);
  margin-bottom: 12px;
}

.work-card h3 {
  margin: 0 0 12px;
  color: var(--heading);
}

.work-card p {
  color: var(--text);
  margin: 0 0 18px;
}

.work-actions {
  margin-top: 22px;
}

.lyrics-display {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.4) transparent;
}

.lyrics-display::-webkit-scrollbar {
  width: 6px;
}

.lyrics-display::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.4);
  border-radius: 999px;
}

.lyrics-line {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.7);
  line-height: 1.8;
  transition: color var(--transition);
}

.lyrics-line.active {
  color: var(--accent);
  font-weight: 600;
}

.global-player {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 140%);
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  z-index: 200;
  width: min(520px, 92vw);
  pointer-events: none;
}

.global-player.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.player-shell {
  display: flex;
  gap: 18px;
  padding: 18px 22px;
  border-radius: calc(var(--border-radius) + 4px);
  background: linear-gradient(135deg, #111c34, #0b1224);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 48px rgba(8, 15, 32, 0.6);
  align-items: center;
}

.player-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-vinyl {
  position: relative;
  width: 110px;
  height: 110px;
}

.player-vinyl img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 32px rgba(8, 15, 32, 0.45);
}

.player-disc {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(#0f172a 40%, #1f2937 72%, transparent 75%);
  border: 5px solid rgba(56, 189, 248, 0.15);
  z-index: 1;
  opacity: 0.6;
  clip-path: circle(50% at center);
  transform-origin: center;
  transition: filter var(--transition);
}

.global-player.is-playing .player-disc {
  animation: spin 6s linear infinite;
  filter: drop-shadow(0 12px 24px rgba(56, 189, 248, 0.35));
}

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

.player-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.player-header strong {
  display: block;
  color: var(--heading);
  font-size: 1.1rem;
}

.player-header span {
  color: rgba(226, 232, 240, 0.6);
  font-size: 0.9rem;
}

.player-close {
  background: none;
  border: none;
  color: rgba(226, 232, 240, 0.7);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
}

.player-close:hover {
  color: var(--accent);
}

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

.player-controls button {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: var(--fg);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.player-controls button:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.4);
}

.player-progress {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.85rem;
}

.progress-track {
  position: relative;
  height: 6px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #7dd3fc);
  transition: width 0.2s ease;
}

.player-lyrics {
  flex: 1;
}

.global-player .lyrics-display {
  max-height: 110px;
  padding-right: 0;
}

.work-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.work-link:hover {
  text-decoration: underline;
}

.contact-section {
  gap: 36px;
}

.contact-card {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 36px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 12px 30px var(--shadow);
}

.contact-item h3 {
  margin-top: 0;
  color: var(--heading);
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contact-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.contact-item ul a:hover,
.contact-item a:hover {
  text-decoration: underline;
}

.contact-item p {
  margin-bottom: 12px;
  color: var(--text);
}

.contact-item .qr {
  width: 140px;
  border-radius: 12px;
  border: none;
  background: transparent;
  padding: 0;
  display: block;
}

.site-footer {
  padding: 24px 0 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
  color: var(--text);
}

.site-footer .back-to-top {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.site-footer .back-to-top:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-header .container {
    padding: 14px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--border-radius);
    padding: 16px;
    width: 220px;
    box-shadow: 0 20px 40px rgba(8, 15, 32, 0.6);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition);
  }

  .nav-links.open {
    transform: scaleY(1);
  }

  .hero {
    padding: 90px 0 80px;
  }

  .works-filter {
    flex-wrap: wrap;
  }

  .global-player {
    bottom: 12px;
  }

  .player-shell {
    gap: 18px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .player-cover {
    justify-content: center;
  }

  .player-vinyl {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 500px) {
  .hero-text p {
    font-size: 1rem;
  }

  .contact-card {
    padding: 28px;
  }

  .work-card img {
    height: 160px;
  }

  .player-shell {
    padding: 16px;
  }

  .player-controls {
    justify-content: space-between;
  }
}

