html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #fff;
}

/* =========================
   PAGE BACKGROUNDS
========================= */

.home-page {
  background: url("./Assets/background_home.png") no-repeat center center fixed;
  background-size: cover;
}

.music-page {
  background: url("./Assets/background.png") no-repeat center center fixed;
  background-size: cover;
}

.word-page {
  background: url("./Assets/background2.png") no-repeat center center fixed;
  background-size: cover;
}

/* =========================
   OVERLAY
========================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
  pointer-events: none;
}

/* =========================
   HEADER
========================= */

.header {
  text-align: center;
  padding: 20px 10px;
  position: relative;
  z-index: 2;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  max-width: 900px;
  margin: 0 auto;
  padding: 10px 20px;
  gap: 10px;
}

/* HOME BUTTON */
.home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  opacity: 0.85;
  transition: 0.2s;
}

.home-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.home-btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* TITLE */
.title {
  white-space: nowrap;
  font-family: "Ephesis", cursive;
  font-weight: 400;
  line-height: 1;
}

.music-title,
.word-title {
  font-size: 46px;
}

.home-title {
  font-size: 54px;
}

/* =========================
   NAV LINKS
========================= */

.nav-link {
  font-family: "Tapestry", cursive;
  font-size: 24px;
  color: white;
  text-decoration: none;

  opacity: 0.75;
  padding: 8px 12px;
  border-radius: 8px;

  transition: 0.2s;
}

.nav-link:hover {
  opacity: 1;
  background-color: rgba(255,255,255,0.08);
}

.nav-link:visited,
.nav-link:active {
  color: white;
}

/* =========================
   SUBTITLES / TAGLINES
========================= */

.tagline,
.word-subtitle {
  font-family: "Swanky and Moo Moo", cursive;
  font-size: 25px;
  margin-top: 10px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

/* =========================
   HOME CONTENT
========================= */

.home-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.about-box {
  font-family: "Calligraffitti", cursive;
  font-size: 22px;
  line-height: 1.7;

  background: rgba(0,0,0,0.45);
  padding: 25px;
  border-radius: 12px;

  max-width: 800px;
  margin: 30px auto;
  margin-bottom: 160px;
}

/* =========================
   LIBRARY
========================= */

.library {
  padding: 20px;
  padding-bottom: 200px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* =========================
   SONG ROW (GLASS CARD STYLE)
========================= */
.song {
  display: flex;
  align-items: center;

  gap: 14px;
  padding: 14px 16px;
  margin: 10px auto;

  width: 100%;
  max-width: 800px;

  border-radius: 14px;

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255, 255, 255, 0.15);

  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border 0.15s ease;
}
.song-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.song-middle {
  flex: 1;
  display: flex;
  align-items: center;
}
.song:hover {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}
.song:hover .add-to-queue-btn {
  opacity: 1;
}
.song img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.song-title {
  flex: 1;
  text-align: left;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.song-duration {
  font-size: 12px;
  opacity: 0.75;
  min-width: 60px;
  text-align: right;
}

/* =========================
   ADD TO QUEUE BUTTON 
========================= */

.add-to-queue-btn {
  width: 28px;
  height: 28px;

  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);

  background: rgba(255,255,255,0.12);
  color: white;

  font-size: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  opacity: 0;
  transition: 0.2s;

  flex-shrink: 0;
  pointer-events: auto;
  z-index: 2;
}

.song:hover .add-to-queue-btn {
  opacity: 1;
}

/* =========================
   TOOLTIP
========================= */

.study-tooltip {
  position: fixed;
  max-width: 280px;

  background: rgba(0,0,0,0.85);
  color: white;

  padding: 12px;
  border-radius: 10px;

  font-size: 14px;
  line-height: 1.4;
  white-space: pre-line;

  pointer-events: none;

  opacity: 0;
  transform: translateY(5px);
  transition: 0.15s;

  z-index: 50;
}

.next-study {
  max-width: 800px;
  margin: 0 auto 20px;

  padding: 18px;

  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);

  text-align: center;
}

.next-study-title {
  font-family: "Tapestry", cursive;
  font-size: 22px;
}

.next-study-book {
  font-family: "Ephesis", cursive;
  font-size: 38px;
}

.next-study-date {
  opacity: .8;
  margin-top: 5px;
}
/* =========================
   PLAYER
========================= */

.player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  display: flex;
  justify-content: center;

  background: rgba(10, 10, 10, 0.98);
  border-top: 1px solid rgba(255,255,255,0.08);

  padding: 10px 14px;
  z-index: 10;
}

.mini-player {
  width: 100%;
  max-width: 900px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

#nowCover {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

/* =========================
   SEEK BAR (FIXED)
========================= */

#progressBar {
  -webkit-appearance: none;
  appearance: none;
  width: 60%;
  height: 4px;
  background: #444;
  border-radius: 4px;
  outline: none;
}

/* Chrome / Safari / Edge track */
#progressBar::-webkit-slider-runnable-track {
  height: 4px;
  background: #444;
  border-radius: 4px;
}

/* Chrome / Safari / Edge thumb */
#progressBar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -5px;
}

/* Firefox track */
#progressBar::-moz-range-track {
  height: 4px;
  background: #444;
  border-radius: 4px;
}

/* Firefox thumb */
#progressBar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

/* =========================
   BUTTONS
========================= */

button {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.9;
}

button:hover {
  opacity: 1;
}

/* =========================
   BOTTOM NAV
========================= */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  display: flex;
  justify-content: center;
  gap: 60px;

  padding: 12px;
  background: rgba(10,10,10,0.85);
  border-top: 1px solid rgba(255,255,255,0.08);

  z-index: 20;
}

/* =========================
   MOBILE FIXES
========================= */

@media (max-width: 768px) {

  .top-nav {
    flex-direction: column;
    gap: 10px;
  }

  .nav-link {
    font-size: 18px;
  }

  .title {
    font-size: 32px !important;
    text-align: center;
  }

  .song {
    width: calc(100% - 20px);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .mini-player {
    flex-direction: column;
    gap: 8px;
  }

  .study-tooltip {
    display: none;
  }

  .library {
    padding-bottom: 240px;
  }
}
/* =========================
   APP DOWNLOAD PAGE
========================= */

.app-page {
  min-height: calc(100vh - 120px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px 120px;
}


.app-card {

  max-width: 650px;
  width: 100%;

  background: rgba(0,0,0,0.45);

  border: 1px solid rgba(255,255,255,0.15);

  border-radius: 14px;

  padding: 40px;

  text-align: center;

  color: white;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

}


.app-logo {

  width: 130px;
  height: 130px;

  object-fit: contain;

  margin-bottom: 20px;

}


.app-card h1 {

  font-family: "Ephesis", cursive;

  font-size: 54px;

  font-weight: 400;

  line-height: 1;

  margin: 10px 0 20px;

}


.app-card p {

  font-family: "Inter", sans-serif;

  font-size: 16px;

  line-height: 1.7;

  color: rgba(255,255,255,0.9);

  margin: 15px auto;

  max-width: 520px;

}


.download-button {

  display: inline-block;

  margin-top: 30px;

  padding: 14px 35px;

  border-radius: 30px;

  background: rgba(255,255,255,0.15);

  border: 1px solid rgba(255,255,255,0.3);

  color: white !important;

  text-decoration: none !important;

  font-family: "Tapestry", cursive;

  font-size: 24px;

  transition: 0.2s;

}


.download-button:visited,
.download-button:active {

  color: white !important;

}


.download-button:hover {

  background: rgba(255,255,255,0.3);

}


.coming-soon {

  margin-top: 45px;

  padding-top: 25px;

  border-top: 1px solid rgba(255,255,255,0.15);

}


.coming-soon h2 {

  font-family: "Tapestry", cursive;

  font-size: 26px;

  font-weight: 400;

  margin-bottom: 10px;

}


.coming-soon p {

  font-size: 15px;

}
/* =========================
   APP DOWNLOAD BUTTON
========================= */

.app-download {

  display: flex;
  justify-content: center;

  margin: 40px auto;

  position: relative;
  z-index: 2;

}


.app-download a {

  display: flex;

  align-items: center;

  gap: 15px;

  padding: 12px 22px;

  background: rgba(0,0,0,0.45);

  border: 1px solid rgba(255,255,255,0.15);

  border-radius: 14px;

  color: white;

  text-decoration: none;

  backdrop-filter: blur(8px);

  transition: 0.2s;

}


.app-download a:hover {

  background: rgba(0,0,0,0.65);

  transform: translateY(-2px);

}


.app-download img {

  width: 55px;

  height: 55px;

  object-fit: contain;

}


.app-download-title {

  font-family: "Tapestry", cursive;

  font-size: 24px;

}


.app-download-subtitle {

  font-family: "Inter", sans-serif;

  font-size: 14px;

  opacity: 0.75;

}


.app-download a:visited,
.app-download a:active {

  color: white;

}