/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background: #0b1f2a;
  color: #f2f2f2;
  line-height: 1.6;
}

/* Typography */
h1, h2 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

p {
  opacity: 0.9;
}

.lead {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Layout helpers */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

/* Header */
.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
  background: rgba(11, 31, 42, 0.75);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

.main-nav a {
  margin-left: 2rem;
  color: #f2f2f2;
  text-decoration: none;
  font-weight: 400;
}

.main-nav a:hover {
  opacity: 0.7;
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  background-image: url("/assets/img/hero-studio.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  max-width: 700px;
  padding: 0 1.5rem;
}

.hero-subtitle {
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Entry grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.entry-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.entry-card:hover {
  transform: translateY(-6px);
}

.entry-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.entry-card h2,
.entry-card p,
.entry-link {
  padding: 1rem 1.5rem;
}

.entry-link {
  display: block;
  font-weight: 500;
  color: #7dd3c7;
  padding-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  padding: 3rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav a {
    margin-left: 1.2rem;
  }
}
/* Kai Mana specific */

.hero-kai-mana {
  background-image: url("//assets/img/hero-kai-mana.png");
}

.artist-logo {
  max-width: 160px;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 2.2rem;
  background: #7dd3c7;
  color: #0b1f2a;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}

.btn-primary:hover {
  opacity: 0.85;
}

/* 3-column grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
}
/* Music page */

.hero-music {
  background-image: url("/assets/img/hero-music.webp");
}

.container.narrow {
  max-width: 720px;
}

/* Player */
.player-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  background: rgba(255,255,255,0.04);
  padding: 1.5rem;
  border-radius: 16px;
}

.player-art {
  width: 160px;
  border-radius: 12px;
}

.player-meta audio {
  width: 100%;
  margin-top: 1rem;
}

.player-note {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-top: 1rem;
}

/* Albums */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.album-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.album-card h3 {
  margin-bottom: 0.5rem;
}

.text-link {
  color: #7dd3c7;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Tracklist */
.tracklist {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.tracklist li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* ===============================
   PLAYER SECTION
   =============================== */

.km-player {
  padding: 5rem 1.5rem;
  text-align: center;
}

.km-player-heading {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
}

.km-player-intro {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0.75;
  font-size: 1rem;
}
.km-player-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
#current-artwork {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 2rem;
  display: block;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.km-track-meta {
  margin-bottom: 1.6rem;
}

#track-title {
  margin: 0;
  font-size: 1.8rem;
  color: #d4af37;
  letter-spacing: 0.05em;
}

#track-album {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
}
.tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

.tab {
  padding: 0.45rem 1.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab:hover {
  background: rgba(255,255,255,0.16);
}

.tab.active {
  background: #d4af37;
  color: #000;
}
.player-controls {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.player-controls button {
  padding: 0.55rem 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #f5f5f5;
  cursor: pointer;
  transition: all 0.25s ease;
}

.player-controls button:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
}

.player-controls button:active {
  transform: scale(0.96);
}

.player-controls button.primary {
  background: #ffffff;
  color: #000;
  border: none;
}

.player-controls button.primary:hover {
  background: #eaeaea;
}
@media (max-width: 600px) {
  .km-player-card {
    padding: 1.6rem 1.2rem;
  }

  #track-title {
    font-size: 1.4rem;
  }

  .player-controls button {
    padding: 0.5rem 1.2rem;
  }
}
/* Core Plyr control reset */
.plyr {
  --plyr-color-main: #008080;
  --plyr-control-radius: 12px;
  --plyr-control-spacing: 12px;
  --plyr-audio-controls-background: transparent;
  --plyr-audio-control-color: #0b1f2a;
  --plyr-audio-control-color-hover: #008080;
}

/* Fix oversized icons */
.plyr__control svg {
  width: 20px;
  height: 20px;
}

/* Play button */
.plyr__control--overlaid {
  background: #ffffff;
  border-radius: 50%;
  padding: 18px;
}
.plyr__controls {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.plyr__sr-only {
  display: none;
}
.plyr__progress input[type=range] {
  color: #008080;
}

.plyr__progress__container {
  margin: 0 0.5rem;
}

/* Ensure a single continuous progress bar (buffer sits under the range) */
.plyr__progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
}

.plyr__progress__container {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 0.5rem;
  height: 18px;
}

.plyr__progress__container input[type=range],
.plyr__progress__container input[data-plyr-range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: transparent;
  position: relative;
  z-index: 3;
  accent-color: #1e90ff; /* prevent browser default green tint */
}

.plyr__progress__buffer {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 6px;
  border-radius: 999px;
  z-index: 1;
  background: rgba(255,255,255,0.12);
}

.plyr__progress__container input[type=range]::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.35) 100%);
  border-radius: 999px;
}

/* Firefox: style both track and the progressed portion */
.plyr__progress__container input[type=range]::-moz-range-track {
  height: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.12) 100%);
  border-radius: 999px;
}
.plyr__progress__container input[type=range]::-moz-range-progress {
  height: 6px;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.35) 100%);
  border-radius: 999px;
}

/* IE / Edge legacy */
.plyr__progress__container input[type=range]::-ms-fill-lower {
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.35) 100%);
  border-radius: 999px;
}
.plyr__progress__container input[type=range]::-ms-fill-upper {
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
}

.plyr__progress__container input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -4px;
  background: #1e90ff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  z-index: 4;
}

.plyr__time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Ensure time labels don't sit under the progress bar */
.plyr__time {
  position: relative;
  z-index: 6;
  padding: 0 0.5rem;
  color: #f5f5f5;
}

/* Make buffer visually subtle and avoid any unexpected tint */
.plyr__progress__buffer,
.plyr__progress__played {
  background: rgba(255,255,255,0.12) !important;
}
.km-player-card {
  background: radial-gradient(
    circle at top,
    rgba(255,255,255,0.05),
    rgba(0,0,0,0.25)
  );
  backdrop-filter: blur(6px);
  border-radius: 24px;
}

/* Plyr control fixes for play/pause and mute */
.plyr__controls {
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.plyr__control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #f5f5f5;
  padding: 0.55rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.plyr__control svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

.plyr__control--overlaid {
  background: #ffffff;
  color: #000;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.plyr__control:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
}

/* Lyrics overlay styles */
#lyrics-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  color: #f2f2f2;
  z-index: 1200;
  padding: 2.5rem 1.5rem;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#lyrics-overlay #close-lyrics {
  position: fixed;
  right: 1.25rem;
  top: 1.25rem;
  background: #d4af37;
  color: #000;
  border: none;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  z-index: 1210;
}

#lyrics-overlay #lyrics-text {
  max-width: 900px;
  margin: 3rem auto 6rem;
  white-space: pre-wrap;
  font-size: 1.05rem;
  line-height: 1.8;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  padding: 0 1rem;
}

/* Make sure overlay content is readable on small screens */
@media (max-width: 700px) {
  #lyrics-overlay { padding: 1.25rem; }
  #lyrics-overlay #lyrics-text { margin: 4rem 0 4rem; font-size: 1rem; }
  #lyrics-overlay #close-lyrics { top: 0.9rem; right: 0.9rem; }
}
.album-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s ease;
  text-align: center;
}

.album-card:hover {
  transform: translateY(-8px);
}

.album-card img {
  width: 100%;
  height: auto;
  display: block;
}

.album-info {
  padding: 1.8rem 1.5rem;
}

.album-info h3 {
  color: #d4af37;
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
}

.album-info p {
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.album-buy {
  margin-top: 1rem;
}

.buy-note {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.buy-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.buy-btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border: 2px solid #d4af37;
  border-radius: 50px;
  color: #d4af37;
  background: transparent;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 180px;
}

.buy-btn:hover {
  background: #d4af37;
  color: #0b0f11;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
}

.buy-btn-premium {
  border-color: #e6c757;
  color: #e6c757;
}

.buy-btn-premium:hover {
  background: #e6c757;
}

.buy-btn-standard {
  opacity: 0.9;
  font-size: 0.95rem;
}

.buy-secure {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 1rem;
}

/* Mobile */
@media (max-width: 768px) {
  .buy-buttons {
    flex-direction: column;
    align-items: center;
  }
  .buy-btn {
    min-width: 200px;
  }
}