:root {
  --bg1: 221, 236, 255;
  --bg2: 247, 226, 255;
  --card: 255, 255, 255;
  --accent: 37, 99, 235;
  --glass: rgba(255, 255, 255, 0.6);
  --text: #243241;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, rgba(var(--bg1), 0.45), transparent 15%),
    radial-gradient(circle at 90% 80%, rgba(var(--bg2), 0.35), transparent 15%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(250, 250, 255, 0.9));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
#bg-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

#bg-wrap svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage {
  width: 100%;
  max-width: 920px;
  background: var(--glass);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(40, 40, 60, 0.12);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--accent), 0.12), rgba(var(--accent), 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Dancing Script', cursive;
  font-size: 22px;
  color: rgba(var(--accent), 0.92);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}
h1 {
  margin: 0;
  font-family: 'Dancing Script', cursive;
  font-size: 28px;
}

p.lead {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
}
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.music-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn {
  background: transparent;
  border: 1px solid rgba(36, 50, 65, 0.06);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px; 
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: rgba(0,0,0,0.05);
}

#volumeSlider {
  width: 80px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.98));
  padding: 14px;
  border-radius: 14px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(30, 40, 60, 0.05);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none; 
  color: inherit;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(30, 40, 60, 0.08);
}
.card .meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--accent), 0.12), rgba(var(--accent), 0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.name {
  font-weight: 700;
}

.desc {
  font-size: 13px;
  color: #58606b;
}
footer {
  margin-top: 18px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}
.heart {
  position: absolute;
  pointer-events: none;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%) scale(0);
  animation: pop 0.9s ease forwards;
}
@keyframes pop {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.9; }
  60% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
@media (max-width: 620px) {
  body {
    padding: 20px;
    display: block; 
  }

  .stage {
    padding: 20px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }
  .controls {
    margin-top: 16px;
    width: 100%; 
    justify-content: space-between;
  }

  .logo {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }
  h1 {
    font-size: 24px;
  }  
  p.lead {
    font-size: 13px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}