/* Search & Controls Area */
.interaction-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.search-skip-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.search-box {
  position: relative;
  flex: 7 1 0%;
  width: 70%;
  min-width: 0;
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  fill: var(--text-sub);
  pointer-events: none;
  transition: fill 0.25s ease;
}

.search-input {
  width: 100%;
  height: 44px;
  background: var(--surface-elevated);
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 10px 40px 10px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 16px;
  transition: all 0.2s ease;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  background: #242424;
  border-color: var(--text-main);
}

.search-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.suggestions-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  left: 0;
  background: #242424;
  border: 1px solid #333;
  border-radius: 12px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.85);
  animation: fadeUp 0.18s ease-out;
}

.suggestion-row {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid #2e2e2e;
  border-right: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.suggestion-row:last-child {
  border-bottom: none;
}

.suggestion-row:hover,
.suggestion-row.highlighted,
.suggestion-row.kb-active {
  background: #333333;
  border-right-color: var(--spotify-green);
}

.suggestion-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.suggestion-artist {
  font-size: 12px;
  color: var(--text-sub);
  white-space: nowrap;
}

.buttons-row {
  display: flex;
  gap: 10px;
}

.btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  border: none;
}

.btn:active:not(:disabled) {
  transform: scale(0.96);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-primary {
  width: 100%;
  background: var(--spotify-green);
  color: #000000;
  display: none;
  padding: 12px 18px;
}

.btn-primary.visible {
  display: block;
}

.btn-primary:hover:not(:disabled) {
  background: var(--spotify-green-hover);
  transform: scale(1.02);
}

.btn-secondary {
  flex: 3 0 0%;
  width: 30%;
  height: 44px;
  padding: 0 6px;
  font-size: 12.5px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-main);
  border: 1px solid #535353;
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

/* Full-Screen Song Reveal Overlay */
.result-banner.reveal-fullscreen {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 280;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(28px + env(safe-area-inset-bottom, 0px));
  background: rgba(9, 6, 22, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: fadeInOverlay 0.28s ease-out;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.reveal-bg-blur {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(42px) brightness(0.32) saturate(1.3);
  transform: scale(1.1);
  z-index: 0;
  pointer-events: none;
}

.reveal-fullscreen-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  animation: fadeUp 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-outcome-badge {
  font-size: 13px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: -0.1px;
}

.reveal-outcome-badge.is-win {
  background: rgba(29, 185, 84, 0.18);
  color: var(--spotify-green);
  border: 1px solid rgba(29, 185, 84, 0.45);
}

.reveal-outcome-badge.is-loss {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-sub);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.reveal-cover-wrap {
  width: min(68vw, 256px);
  height: min(68vw, 256px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #181818;
  margin: 4px 0;
}

.reveal-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.song-reveal-title {
  font-size: 24px;
  font-weight: 800;
  margin: 2px 0 0;
  text-align: center;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.song-reveal-artist {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  margin: -4px 0 2px;
  text-align: center;
}

.points-earned-notice {
  font-size: 13px;
  font-weight: 800;
  color: #8bf0ff;
  background: rgba(56, 217, 255, 0.16);
  border: 1px solid rgba(56, 217, 255, 0.48);
  box-shadow: 0 0 18px rgba(56, 217, 255, 0.25);
  padding: 6px 15px;
  border-radius: 999px;
  display: none;
  align-items: center;
  gap: 5px;
}

.points-earned-notice.is-muted {
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.level-up-notice {
  font-size: 12px;
  font-weight: 700;
  color: var(--medium-color);
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  display: none;
}

.reveal-media-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.reveal-action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: transform 0.15s ease, background 0.18s ease;
}

.reveal-action-chip:active {
  transform: scale(0.95);
}

.reveal-action-chip.spotify {
  background: rgba(30, 215, 96, 0.18);
  border-color: rgba(30, 215, 96, 0.5);
  color: #86efac;
}

.reveal-action-chip.apple {
  background: rgba(250, 45, 72, 0.18);
  border-color: rgba(250, 45, 72, 0.5);
  color: #fda4af;
}

.reveal-action-chip.replay {
  background: rgba(192, 132, 252, 0.2);
  border-color: rgba(192, 132, 252, 0.5);
  color: #e9d5ff;
}

.btn-next {
  width: 100%;
  max-width: 280px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
  color: #ffffff;
  margin-top: 8px;
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.5);
}

.btn-next:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
}
