@font-face {
  font-family: "Gangitem";
  src: url("Gangitem.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* =========================
   VARIABLES
========================= */
:root {
  --violet: #5b4b8a;
  --rose: #b07a8c;
  --fond: #f4f1f6;
  --texte: #2b2b2b;
  --actif: #8e6aa8;
  --violet-fonce: #3b2f5b;
  --rose-vieux: #a8647a;
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

/* =========================
   BODY
========================= */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #53255f, #f3dded);
  color: var(--fond);
}

/* =========================
   HEADER
========================= */
.site-header {
  width: 100%;
  max-width: 1600px;
  padding: 18px 5% 8px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
}

.site-logo {
  width: 180px;
  height: auto;
  display: block;
}

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

.main-nav a {
  color: var(--fond);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: opacity 0.3s ease;
}

.main-nav a:hover {
  opacity: 0.75;
}

/* =========================
   PAGE
========================= */
.landing-page {
  width: 100%;
  max-width: 1600px;
  padding: 10px 5% 60px;
  margin: 0 auto;
}

/* =========================
   HERO
========================= */
.hero {
  width: 100%;
  max-width: 1400px;

  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  align-items: flex-start;
  justify-content: center;

  gap: 40px;
}

.hero img {
  max-width: 100%;
}

/* =========================
   HERO CONTENT
========================= */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.preorder-label {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.85rem;
  opacity: 0.85;
  text-align: center;
}

.hero-content .main-title,
.hero-content h1 {
  font-family: "Gangitem", serif;

  font-size: clamp(4rem, 10vw, 7rem);

  line-height: 0.95;
  letter-spacing: 0.30em;

  color: white;

  text-align: center;

  width: 100%;
}

.artist-name {
  font-family: "Lora", serif;

  color: #f3d3de;

  font-size: clamp(1.8rem, 4vw, 3rem);

  text-align: center;
}

.description {
  max-width: 580px;

  line-height: 1.8;
  font-size: 1.1rem;

  text-align: left;

  margin: 0 auto;
}

/* =========================
   CTA BUTTONS
========================= */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;

  justify-content: center;

  width: 100%;
}

.cta-buttons a {
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn,
.secondary-btn {
  padding: 16px 32px;

  border: none;
  border-radius: 999px;

  cursor: pointer;

  font-size: 1rem;

  transition: all 0.3s ease;
}

.primary-btn {
  background: var(--fond);
  color: var(--violet-fonce);

  font-weight: 600;
}

.primary-btn:hover {
  transform: translateY(-3px);
}

.secondary-btn {
  background: transparent;

  border: 1px solid rgba(255,255,255,0.4);

  color: white;
}

.secondary-btn:hover {
  background: rgba(255,255,255,0.08);
}

/* =========================
   FEATURES
========================= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));

  gap: 16px;

  margin-top: 8px;
}

.feature-card {
  padding: 20px;

  border-radius: 18px;

  text-align: center;

  background: rgba(255,255,255,0.12);

  backdrop-filter: blur(14px);
}

.feature-card span {
  display: block;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 6px;
}

.feature-card h3 {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

.feature-card small {
  opacity: 0.8;
  margin-top: 6px;
}

/* =========================
   PLAYER
========================= */
.player {
  width: 100%;
  max-width: 460px;

  justify-self: center;

  background: var(--fond);

  color: var(--texte);

  padding: 30px;

  border-radius: 26px;

  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

/* =========================
   COVER ART
========================= */
.cover-art {
  width: 100%;

  aspect-ratio: 1;

  margin-bottom: 20px;

  border-radius: 22px;

  background:
    linear-gradient(rgba(59,47,91,0.35), rgba(168,100,122,0.35)),
    linear-gradient(135deg, var(--violet), var(--rose));

  box-shadow: inset 0 0 30px rgba(255,255,255,0.08);
}

.cover-art img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  border-radius: 22px;
}

/* =========================
   PLAYER HEADER
========================= */
.header {
  text-align: center;

  margin-bottom: 18px;
}

.ep-title,
.artist {
  font-family: "Lora", serif;
}

.ep-title {
  font-size: 1.4rem;
  color: var(--violet-fonce);
}

.artist {
  color: var(--rose-vieux);
}

/* =========================
   NOW PLAYING
========================= */
.now-playing {
  text-align: center;
  margin-bottom: 14px;
}

.now-playing .label {
  font-size: 0.7rem;
  opacity: 0.6;
}

.now-playing .title {
  display: block;
  font-weight: 500;
}

/* =========================
   TIMELINE
========================= */
.timeline {
  display: flex;
  align-items: center;

  gap: 8px;

  margin-bottom: 14px;
}

.timeline span {
  width: 38px;

  text-align: center;

  font-size: 0.7rem;
}

#progress {
  flex: 1;
  accent-color: var(--violet);
}

/* =========================
   CONTROLS
========================= */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin: 20px 0 28px;
}

.controls {
  display: flex;
  gap: 22px;
}

.control-btn {
  background: none;
  border: none;

  font-size: 1.5rem;

  cursor: pointer;

  color: var(--violet);
}

.volume-wrapper {
  display: flex;
  align-items: center;

  gap: 6px;
}

.volume {
  width: 70px;
}

/* =========================
   PLAYLIST
========================= */
.playlist {
  margin-top: 24px;

  padding-top: 16px;

  list-style: none;

  border-top: 1px solid rgba(0,0,0,0.08);

  counter-reset: track-counter;
}

.playlist li {
  display: flex;
  gap: 8px;

  padding: 10px 6px;

  border-radius: 8px;

  cursor: pointer;

  counter-increment: track-counter;
}

.playlist li::before {
  content: counter(track-counter) ".";

  width: 20px;

  text-align: right;
}

.playlist li.active {
  background: var(--actif);
  color: white;
}

/* =========================
   COUNTDOWN
========================= */
.countdown-section {
  margin-top: 28px;
  text-align: center;
}

.countdown-label {
  margin-bottom: 16px;

  text-transform: uppercase;
  letter-spacing: 3px;

  font-size: 0.8rem;

  opacity: 0.85;

  color: var(--fond);
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;

  flex-wrap: nowrap; /* IMPORTANT */

  gap: 10px;

  width: 100%;
}

.time-box {
  flex: 1;

  min-width: 0;

  max-width: 90px;

  padding: 16px 10px;

  border-radius: 18px;

  background: rgba(255,255,255,0.12);

  backdrop-filter: blur(14px);

  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.time-box span {
  display: block;

  font-family: "Lora", serif;

  font-size: 2rem;
  font-weight: 600;

  line-height: 1;

  color: white;
}

.time-box small {
  display: block;

  margin-top: 8px;

  font-size: 0.75rem;

  text-transform: uppercase;
  letter-spacing: 1px;

  opacity: 0.8;

  color: var(--fond);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

  .site-header {
    flex-direction: column;

    gap: 16px;

    padding: 24px 5% 4px;
  }

  .site-logo {
    width: 110px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;

    gap: 18px;
  }

  .main-nav a {
    font-size: 0.85rem;
  }

  .landing-page {
    padding-top: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .hero > * {
    min-width: 0;
  }

  .hero img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  .hero-content {
    align-items: center;
  }

  .description {
    max-width: 100%;
  }

  .cta-buttons {
    width: 100%;

    justify-content: center;
    align-items: center;
  }

  .features {
    display: flex;

    flex-wrap: nowrap;

    justify-content: center;

    gap: 12px;

    width: 100%;
  }

  .feature-card {
    flex: 1;

    min-width: 0;

    padding: 14px 10px;
  }

  .feature-card small {
    font-size: 0.7rem;
  }

  /* =========================
   MOBILE COUNTDOWN FIX
========================= */

.countdown {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;

  gap: 10px;

  width: 100%;
}

.time-box {
  min-width: 70px;

  padding: 14px 10px;

  flex-shrink: 1;
}

.time-box span {
  font-size: 1.5rem;
}

.time-box small {
  font-size: 0.65rem;
}