/* ==============================================
   SONG REQUEST PAGE
   ============================================== */

* { box-sizing: border-box; }

.sr-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #0a1929 0%, #0f1729 100%);
}

/* ========== HERO ========== */

.sr-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a4d2a 0%, #0f2f1c 50%, #0a1929 100%);
  padding: 4rem 1rem 3rem;
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
  background: radial-gradient(circle, #1db954 0%, transparent 70%);
  top: -10%;
  right: -5%;
}

.orb-2 {
  background: radial-gradient(circle, #1ed760 0%, transparent 70%);
  bottom: -10%;
  left: -5%;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.5rem 1rem;
  background: rgba(29, 185, 84, 0.15);
  border: 1px solid rgba(29, 185, 84, 0.3);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin: 0;
}

.hero-highlight {
  background: linear-gradient(135deg, #1db954, #1ed760);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 400px;
}

.hero-balance {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.balance-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.balance-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.balance-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
}

.balance-symbol { color: #1db954; }

.price-tag {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* ========== NOW PLAYING ========== */

.now-playing {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(29, 185, 84, 0.08);
  border: 1px solid rgba(29, 185, 84, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
}

.np-icon { font-size: 1.3rem; }

.np-cover {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

.np-info { flex: 1; min-width: 0; }

.np-label {
  font-size: 0.75rem;
  color: #1db954;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.np-track {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-artist {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-skip-btn {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 59, 59, 0.35);
  border-radius: 999px;
  background: rgba(255, 59, 59, 0.1);
  color: #ff6b6b;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
}

.np-skip-label {
  display: block;
}

.np-skip-btn:hover {
  background: rgba(255, 59, 59, 0.2);
  border-color: rgba(255, 59, 59, 0.6);
}

.np-skip-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.np-skip-price {
  opacity: 0.75;
  font-size: 0.8em;
}

/* ========== SEARCH ========== */

.sr-search {
  position: relative;
  margin: 1.5rem 0;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
}

.sr-search input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.sr-search input:focus {
  border-color: #1db954;
}

.sr-search input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* ========== RESULTS ========== */

.sr-results {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 4rem;
}

.track-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: background 0.15s, border-color 0.15s;
  cursor: default;
}

.track-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(29, 185, 84, 0.3);
}

.track-cover {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.track-info {
  flex: 1;
  min-width: 0;
}

.track-name {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-album {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-duration {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.track-queue-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 999px;
  background: #1db954;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}

.track-queue-btn:hover {
  background: #1ed760;
}

.track-queue-btn:active {
  transform: scale(0.96);
}

.track-queue-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

/* ========== EMPTY STATE ========== */

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: rgba(255, 255, 255, 0.4);
}

.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-text { font-size: 1.1rem; }
.hidden { display: none !important; }

/* ========== CONFIRM DIALOG ========== */

.confirm-dialog {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: linear-gradient(135deg, #132f1c, #0f1729);
  color: #fff;
  padding: 0;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  animation: dialogIn 0.2s ease-out;
}

.confirm-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

@keyframes dialogIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.confirm-dialog-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 0.75rem;
}

.confirm-cover {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
}

.confirm-dialog-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.confirm-dialog-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

.confirm-dialog-text .muted {
  color: rgba(255, 255, 255, 0.5);
}

.confirm-dialog-price {
  margin: 0;
  font-size: 1rem;
  color: #1db954;
}

.price-symbol { color: #1db954; }

.confirm-dialog-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  width: 100%;
}

.confirm-dialog-btn {
  flex: 1;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.confirm-dialog-btn:active { transform: scale(0.97); }

.confirm-dialog-btn.cancel {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.confirm-dialog-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}

.confirm-dialog-btn.confirm {
  background: #1db954;
  color: #fff;
}

.confirm-dialog-btn.confirm:hover {
  background: #1ed760;
}

.confirm-dialog-btn.confirm.skip {
  background: #e05c2a;
}

.confirm-dialog-btn.confirm.skip:hover {
  background: #f06a34;
}

.confirm-dialog-icon {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 640px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-balance { align-items: center; }
  .hero-subtitle { max-width: 100%; }
  .balance-value { font-size: 2rem; }

  .track-card {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .track-queue-btn {
    width: 100%;
    text-align: center;
  }

  .track-duration { display: none; }

  .queue-item { gap: 0.6rem; }
  .queue-cover, .queue-cover-placeholder { width: 36px; height: 36px; }
}

/* ========== QUEUE ========== */

.sr-queue-section {
  margin: 2.5rem 0 4rem;
}

.queue-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
}

.queue-pos {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  min-width: 1.25rem;
  text-align: center;
}

.queue-cover {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.queue-cover-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.queue-info {
  flex: 1;
  min-width: 0;
}

.queue-track {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-artist {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-duration {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.queue-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.queue-added-by {
  font-size: 0.72rem;
  color: #1db954;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
