@font-face {
  font-family: "Beautique Display";
  src: url("assets/BeautiqueDisplay-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Beautique Display";
  src: url("assets/BeautiqueDisplay-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Beautique Display";
  src: url("assets/BeautiqueDisplay-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

body {
  background: #F2F0EB;
  color: #1a1a1a;
  font-family: "Beautique Display", Georgia, serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Embroidery canvas */
#embroidery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Nav */
nav {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid #e0ddd6;
  background: #F8FAF7;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

nav a {
  font-family: "Beautique Display", Georgia, serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

nav a:hover {
  color: #C69F68;
}

/* Content container */
#content {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
  background: #F8FAF7;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}

/* Home hero */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-weight: 700;
  font-size: 4rem;
  letter-spacing: 0.08em;
  color: #C69F68;
}

/* Links page */
.links-page {
  flex: 1;
  padding: 3rem;
  width: 100%;
}

.links-page h1 {
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  color: #C69F68;
  margin-bottom: 2rem;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  display: block;
  text-decoration: none;
  color: #1a1a1a;
  border: 1px solid #e0ddd6;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: #C69F68;
  box-shadow: 0 2px 12px rgba(198, 159, 104, 0.15);
}

.card h2 {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  color: #C69F68;
  margin-bottom: 0.75rem;
}

.card p {
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

/* Utility */
.hidden {
  display: none !important;
}

/* Splash overlay */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #F8FAF7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.splash h1 {
  font-weight: 700;
  font-size: 4rem;
  letter-spacing: 0.08em;
  color: #C69F68;
}

.enter-btn {
  font-family: "Beautique Display", Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  padding: 0.6rem 2.5rem;
  border: 1px solid #C69F68;
  background: transparent;
  color: #C69F68;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.enter-btn:hover {
  background: #C69F68;
  color: #F8FAF7;
}

/* Player widget */
.player-widget {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-btn {
  font-family: "Beautique Display", Georgia, serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #e0ddd6;
  background: transparent;
  color: #666;
  font-size: 0.65rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.player-btn:hover {
  border-color: #C69F68;
  color: #C69F68;
}

a.track-name {
  color: #C69F68;
  text-decoration: none;
  font-size: 0.85rem;
  max-width: 350px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  cursor: pointer;
}

a.track-name:hover {
  text-decoration: underline;
}

.track-name-inner {
  display: inline-block;
  white-space: nowrap;
}

.track-name-inner.scrolling {
  animation: ticker 12s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  10% { transform: translateX(0); }
  90% { transform: translateX(var(--scroll-distance)); }
  100% { transform: translateX(var(--scroll-distance)); }
}

/* Playlist page */
.playlist-page {
  flex: 1;
  padding: 3rem;
  width: 100%;
}

.playlist-page h1 {
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  color: #C69F68;
  margin-bottom: 2rem;
}

.song-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.song-card {
  display: flex;
  align-items: stretch;
  border: 1px solid #e0ddd6;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.song-card:hover {
  border-color: #C69F68;
  box-shadow: 0 2px 12px rgba(198, 159, 104, 0.15);
}

.song-card.now-playing {
  border-color: #C69F68;
  background: rgba(198, 159, 104, 0.06);
}

.song-card-thumb {
  width: 120px;
  flex-shrink: 0;
  overflow: hidden;
}

.song-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.song-card-info {
  flex: 1;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.song-card-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #C69F68;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
  word-break: break-word;
  min-width: 0;
}

.song-card-artist {
  font-family: Georgia, serif;
  font-size: 0.9rem;
  color: #666;
}

.song-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.2rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.song-card-btn {
  font-family: "Beautique Display", Georgia, serif;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid #C69F68;
  background: transparent;
  color: #C69F68;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s;
}

.song-card-btn:hover {
  background: #C69F68;
  color: #F8FAF7;
}

.song-card-btn.yt-link {
  color: #999;
  border-color: #ccc;
}

.song-card-btn.yt-link:hover {
  background: #999;
  color: #F8FAF7;
  border-color: #999;
}

/* Responsive */
@media (max-width: 600px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .player-widget {
    margin-left: 0;
    width: 100%;
  }

  .track-name {
    max-width: 200px;
  }

  .song-card {
    flex-direction: column;
  }

  .song-card-thumb {
    width: 100%;
    height: 160px;
  }

  .song-card-actions {
    padding: 0.75rem 1.2rem;
    justify-content: flex-start;
  }
}

/* Hidden YouTube player */
#yt-player {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
