/* GandiWave — styles for the app home (/app) and Offline (/app-offline) pages */

body:has(.gw-app-home){
  background: #1B1038 linear-gradient(165deg, #7A0F24 0%, #2B1459 50%, #0F2A8F 100%) fixed;
  color: #F3ECE2;
}

.gw-app-home{ max-width: 720px; margin: 0 auto; padding: 8px 0 24px; min-height: 60vh; }
.gw-app-h1{ font: 700 26px/1.2 'Space Grotesk', Arial, sans-serif; margin: 18px 16px 4px; }
.gw-app-sub{ margin: 0 16px 10px; color: #C9B9AE; font-size: 14px; }
.gw-app-note{
  margin: 10px 16px; padding: 10px 14px; border-radius: 12px;
  background: rgba(217, 184, 122, 0.14); color: #F3DDB0; font-size: 14px;
}

.gw-app-section{ margin: 20px 0 6px; }
.gw-app-section h2{
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0 16px 12px;
  font: 700 19px/1.2 'Space Grotesk', Arial, sans-serif;
}
.gw-app-section h2 a{ font-size: 13px; font-weight: 600; color: #D9B87A; }

/* Horizontal row of cards */
.gw-app-row{
  display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 6px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gw-app-row::-webkit-scrollbar{ display: none; }
.gw-app-card{ flex: 0 0 150px; scroll-snap-align: start; }
.gw-app-card .gw-app-play{ display: block; color: inherit; }
.gw-app-card img{ width: 150px; height: 150px; border-radius: 14px; object-fit: cover; background: #2A1A31; }
.gw-app-card strong{
  display: -webkit-box; margin-top: 8px; font-size: 14px; line-height: 1.25;
  overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.gw-app-card span{ display: block; margin-top: 2px; font-size: 12.5px; color: #C9B9AE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Song rows */
.gw-app-list{ list-style: none; margin: 0; padding: 0 8px; }
.gw-app-item{ display: flex; align-items: center; gap: 4px; margin: 6px 0; border-radius: 14px; background: rgba(10, 6, 28, 0.32); }
.gw-app-item .gw-app-play{
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  padding: 8px; border-radius: 12px; color: inherit;
}
.gw-app-item .gw-app-play:active{ background: rgba(243, 236, 226, 0.07); }
.gw-app-item .rank{ width: 22px; text-align: center; color: #D9B87A; font: 700 15px 'Space Grotesk', Arial, sans-serif; }
.gw-app-item img{ width: 54px; height: 54px; flex: 0 0 54px; border-radius: 10px; object-fit: cover; background: #2A1A31; }
.gw-app-item .txt{ flex: 1; min-width: 0; }
.gw-app-item .txt strong{ display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-app-item .txt span{ display: block; font-size: 13px; color: #C9B9AE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-app-item .open,
.gw-app-item .del{
  flex: 0 0 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 0; background: none; color: #B5A4AD; font-size: 26px; line-height: 1; border-radius: 50%; cursor: pointer;
}
.gw-app-item .del{ font-size: 18px; }
.is-playing-now .txt strong,
.is-playing-now.gw-app-card strong{ color: #D9B87A; }

/* Empty state */
.gw-app-empty{ margin: 30px 16px; padding: 22px; border-radius: 16px; background: rgba(10, 6, 28, 0.38); text-align: center; color: #E5D6CB; }
.gw-app-empty p{ margin: 0 0 10px; line-height: 1.45; }
.gw-app-btn{
  display: inline-block; margin-top: 8px; padding: 12px 24px; border-radius: 999px;
  background: linear-gradient(135deg, #2563EB 0%, #1E3A8A 100%); color: #fff; font-weight: 700;
}

/* ---- Welcome / Get Started screen ---- */
.gw-welcome[hidden]{ display: none; }
.gw-welcome{
  position: fixed; inset: 0; z-index: 9000;
  display: flex; flex-direction: column;
  color: #fff;
  background: linear-gradient(100deg, #C8102E 0%, #4A1A8C 50%, #1D3FE0 100%);
}
/* The artists photo fills the screen and melts into the red-blue gradient below it */
.gw-welcome-art{
  flex: 1 1 auto; min-height: 0;
  background-size: cover; background-position: center top; background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.gw-welcome-art.no-photo{
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
}
.gw-welcome-art.no-photo img{ width: 46%; max-width: 220px; height: auto; border-radius: 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.gw-welcome-panel{
  flex: 0 0 auto;
  padding: 6px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to bottom, rgba(10, 4, 24, 0), rgba(10, 4, 24, 0.55) 45%);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.gw-welcome-panel h1{ margin: 0 0 10px; font: 700 34px/1.1 'Space Grotesk', Arial, sans-serif; }
.gw-welcome-panel p{ margin: 0 0 22px; color: #F1E6EE; font-size: 15.5px; line-height: 1.45; }
.gw-welcome-go{
  display: block; width: 100%; border: 0; border-radius: 999px; padding: 16px;
  background: #fff; color: #1B1038; text-shadow: none;
  font: 700 17px 'Space Grotesk', Arial, sans-serif; cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.gw-welcome-go:active{ transform: scale(0.98); }
