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

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: Arial, sans-serif;
  color: white;
  background: #1b0d08;
}

.hidden {
  display: none !important;
}

.page {
  min-height: 100vh;
  width: 100%;
}

/* INTRO PAGE */
.intro-page {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(10, 4, 2, 0.36), rgba(10, 4, 2, 0.72)),
    url("naomi-bg.png.png") no-repeat center center;
  background-size: cover;
  background-color: #1b0d08;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.intro-box {
  background: rgba(24, 12, 8, 0.78);
  padding: 36px;
  border-radius: 28px;
  text-align: center;
  max-width: 430px;
  width: 92%;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
  animation: fadeUp 0.8s ease both;
}

.intro-box h1 {
  font-family: Arial, sans-serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 14px;
  color: white;
}

.intro-box p {
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 22px;
  color: white;
}

.intro-box button {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 14px auto;
  background: linear-gradient(135deg, #ff5a6e, #d9485f);
  color: white;
  padding: 17px 22px;
  border-radius: 999px;
  border: none;
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(217, 72, 95, 0.32);
}

.intro-box small {
  display: block;
  margin-top: 18px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: white;
  opacity: 0.92;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* LANDING PAGE */
.home-page {
  background:
    linear-gradient(rgba(20, 8, 4, 0.22), rgba(20, 8, 4, 0.62)),
    url("naomi-bg.png.png") no-repeat center center;
  background-size: cover;
  background-color: #1b0d08;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: rgba(24, 12, 8, 0.78);
  padding: 34px;
  border-radius: 26px;
  text-align: center;
  backdrop-filter: blur(9px);
  max-width: 430px;
  width: 92%;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.48);
}

.home-card h1 {
  font-family: Arial, sans-serif;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.15;
  color: white;
}

.home-card p {
  font-family: Arial, sans-serif;
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.45;
  color: white;
}

.home-card small {
  display: block;
  margin-top: 18px;
  opacity: 0.9;
  letter-spacing: 1px;
  color: white;
}

.home-card button,
.home-card a {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 10px auto;
  text-align: center;
}

/* APP PAGE */
.app-page {
  color: #333;
  padding: 32px 18px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.song-bg {
  background:
    linear-gradient(rgba(35, 16, 8, 0.54), rgba(35, 16, 8, 0.76)),
    url("https://images.unsplash.com/photo-1511379938547-c1f69419868d?q=80&w=2070&auto=format&fit=crop") no-repeat center center / cover;
}

.app-card {
  background: rgba(255, 250, 243, 0.97);
  color: #333;
  padding: 32px;
  border-radius: 26px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.app-card h2 {
  font-family: Arial, sans-serif;
  font-size: 36px;
  color: #6b241f;
  margin: 16px 0 8px;
}

.subtitle {
  color: #7a5a50;
  margin-bottom: 24px;
  line-height: 1.45;
}

.panel {
  background: #fff;
  border: 1px solid #f0dfd2;
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 22px;
}

.panel h3 {
  color: #6b241f;
  margin-bottom: 10px;
}

.panel-text {
  color: #7a5a50;
  margin-bottom: 16px;
  line-height: 1.5;
}

.mini-heading {
  color: #6b241f;
  margin: 16px 0 8px;
  font-size: 15px;
}

.daily-panel {
  background: linear-gradient(135deg, #fffaf3, #f8e4df);
}

.daily-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

.daily-text {
  color: #4a2018;
  line-height: 1.5;
}

.input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.input-row input {
  flex: 1;
  border: 1px solid #d8c3b0;
  border-radius: 999px;
  padding: 13px 16px;
  font-size: 15px;
  outline: none;
  font-family: Arial, sans-serif;
}

.input-row input:focus {
  border-color: #d9485f;
}

.mood-row,
.quick-song-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-row button,
.quick-song-row button {
  background: #f7e8e4;
  color: #6b241f;
  border: 1px solid #efd0c8;
  padding: 9px 12px;
  font-size: 13px;
}

.song-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.song-header h3 {
  color: #6b241f;
  font-size: 24px;
  margin-bottom: 6px;
}

#songMeta,
.song-structure {
  color: #7a5a50;
  font-size: 14px;
  line-height: 1.4;
}

.song-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

pre {
  background: #fffaf3;
  color: #20110d;
  padding: 22px;
  border-radius: 16px;
  line-height: 1.75;
  font-size: 16px;
  white-space: pre-wrap;
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid #f0dfd2;
}

/* LINKS */
.link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.link-grid a,
.playlist-btn,
.spotify-home-btn,
.youtube-home-btn {
  text-decoration: none;
  text-align: center;
  font-weight: 800;
}

.link-grid a {
  background: #f7e8e4;
  color: #6b241f;
  border: 1px solid #efd0c8;
  padding: 13px;
  border-radius: 16px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.favourites-list {
  color: #6b241f;
  line-height: 1.5;
}

.favourite-item {
  background: #fffaf3;
  border: 1px solid #f0dfd2;
  padding: 12px;
  border-radius: 14px;
  margin-top: 10px;
}

/* BUTTONS */
button,
.playlist-btn,
.spotify-home-btn,
.youtube-home-btn {
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, opacity 0.18s ease;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

button:hover,
.playlist-btn:hover,
.spotify-home-btn:hover,
.youtube-home-btn:hover,
.link-grid a:hover {
  transform: scale(1.02);
  opacity: 0.92;
}

.primary-btn,
.spotify-home-btn {
  background: linear-gradient(135deg, #ff5a6e, #d9485f);
  color: white;
}

.youtube-home-btn,
.music-toggle {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.secondary-btn {
  background: transparent;
  border: 1px solid white;
  color: white;
}

.dark-btn {
  background: #6b241f;
  color: white;
}

.soft-btn {
  background: #6b241f;
  color: white;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.full {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: inline-block;
}

.back-btn {
  background: #6b241f;
  color: white;
  margin-left: 0;
}

.small-btn {
  background: #f7e8e4;
  color: #6b241f;
  border: 1px solid #efd0c8;
  padding: 9px 14px;
  white-space: nowrap;
}

.create-btn {
  margin: 0;
}

.practice-message {
  background: #f7e8e4;
  color: #6b241f;
  border-radius: 16px;
  padding: 14px;
  margin-top: 12px;
  line-height: 1.5;
}

.app-footer {
  text-align: center;
  color: #7a5a50;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 0 0;
  line-height: 1.5;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}

.modal-content {
  background: white;
  color: black;
  padding: 32px;
  border-radius: 22px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.modal-content h2 {
  font-size: 28px;
  margin-bottom: 18px;
  color: #d9485f;
}

.modal-content p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* MOBILE */
@media (max-width: 800px) {
  .intro-page {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    min-height: 100vh;
    background:
      linear-gradient(rgba(20, 8, 4, 0.05), rgba(20, 8, 4, 0.38)),
      url("naomi-bg.png.png") no-repeat center top;
    background-size: 100% auto;
    background-color: #1b0d08;
    align-items: flex-start;
    justify-content: center;
    padding: 315px 16px 28px;
  }

  .intro-box {
    width: 92%;
    max-width: 430px;
    padding: 28px 20px;
    border-radius: 28px;
    background: rgba(24, 12, 8, 0.82);
    backdrop-filter: blur(10px);
  }

  .intro-box h1 {
    font-size: 36px;
    line-height: 1.12;
    margin-bottom: 14px;
  }

  .intro-box p {
    font-size: 19px;
    line-height: 1.35;
    margin-bottom: 22px;
  }

  .intro-box button {
    max-width: 100%;
    padding: 18px 20px;
    font-size: 20px;
  }

  .intro-box small {
    font-size: 17px;
    margin-top: 20px;
  }

  .home-page {
    min-height: 100vh;
    overflow-y: auto;
    background:
      linear-gradient(rgba(20, 8, 4, 0.05), rgba(20, 8, 4, 0.38)),
      url("naomi-bg.png.png") no-repeat center top;
    background-size: 100% auto;
    background-color: #1b0d08;
    align-items: flex-start;
    justify-content: center;
    padding: 315px 16px 28px;
  }

  .card {
    padding: 26px 18px;
    border-radius: 28px;
    background: rgba(24, 12, 8, 0.82);
  }

  .home-card {
    max-width: 92%;
  }

  .home-card h1 {
    font-size: 36px;
    line-height: 1.12;
    margin-bottom: 14px;
  }

  .home-card p {
    font-size: 19px;
    line-height: 1.35;
    margin-bottom: 18px;
  }

  .home-card button,
  .home-card a {
    max-width: 100%;
    padding: 16px 18px;
    font-size: 17px;
    margin: 10px auto;
  }

  .home-card small {
    font-size: 16px;
    margin-top: 18px;
  }

  .app-page {
    padding: 18px;
    background-attachment: scroll;
  }

  .app-card {
    padding: 22px 16px;
  }

  .app-card h2 {
    font-size: 30px;
  }

  .daily-grid {
    grid-template-columns: 1fr;
  }

  .input-row {
    flex-direction: column;
  }

  .create-btn {
    width: 100%;
  }

  .song-header,
  .song-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .playlist-btn,
  .spotify-home-btn,
  .youtube-home-btn,
  .soft-btn,
  .dark-btn,
  .music-toggle {
    width: 100%;
    margin: 8px 0;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  pre {
    font-size: 14px;
  }
}
