/* ========== COMMENTS BOTTOM SHEET ========== */
/* ---- Reel inline comment panel (replaces bottom-sheet overlay) ---- */
#reelInlineCommentPanel {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #1a2e3b;
  border-radius: 1.4rem 1.4rem 0 0;
  display: flex;
  flex-direction: column;
  max-height: 72vh;
  min-height: 300px;
  z-index: 60;
  box-shadow: 0 -6px 32px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
}
#reelInlineCommentPanel.ricp-open {
  transform: translateY(0);
}
#reelInlineCommentPanel .ricp-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  margin: 0.7rem auto 0 auto;
  flex-shrink: 0;
}
#reelInlineCommentPanel .ricp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem 0.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
#reelInlineCommentPanel .ricp-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
#reelInlineCommentPanel .ricp-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.7);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s;
}
#reelInlineCommentPanel .ricp-close:hover { background: rgba(255,255,255,0.2); }
#reelInlineCommentPanel .ricp-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
#reelInlineCommentPanel .ricp-list::-webkit-scrollbar { width: 3px; }
#reelInlineCommentPanel .ricp-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }
#reelInlineCommentPanel .ricp-input-area {
  position: relative;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  background: #1a2e3b;
}
#reelInlineCommentPanel .ricp-tag-sug {
  position: absolute;
  bottom: 100%;
  left: 0; right: 0;
  background: #162533;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.9rem 0.9rem 0 0;
  overflow: hidden;
  display: none;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  max-height: 180px;
  overflow-y: auto;
}
#reelInlineCommentPanel .ricp-tag-sug.show { display: block; }
#reelInlineCommentPanel .ricp-emoji-panel {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0; right: 0;
  background: rgba(18,38,33,0.97);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 0.7rem 0.4rem;
  z-index: 199;
}
#reelInlineCommentPanel .ricp-emoji-grid {
  display: flex; gap: 0.25rem; flex-wrap: wrap;
  max-height: 140px; overflow-y: auto;
}
#reelInlineCommentPanel .ricp-reply-indicator {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
#reelInlineCommentPanel .ricp-reply-indicator.show { display: flex; }
#reelInlineCommentPanel .ricp-reply-name { color: #FFE0A3; font-weight: 600; }
#reelInlineCommentPanel .ricp-reply-cancel {
  background: none; border: none; color: rgba(255,255,255,0.4);
  cursor: pointer; margin-left: auto; font-size: 0.75rem; padding: 0.1rem 0.3rem;
}
#reelInlineCommentPanel .ricp-input-row {
  display: flex; gap: 0.5rem; align-items: center;
  padding: 0.65rem 1rem 0.9rem 1rem;
}

.comments-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.comments-sheet-overlay.show {
  opacity: 1;
  visibility: visible;
}
.comments-sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #1a2e3b;
  border-radius: 1.4rem 1.4rem 0 0;
  display: flex;
  flex-direction: column;
  max-height: 72vh;
  min-height: 300px;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
  box-shadow: 0 -6px 32px rgba(0,0,0,0.45);
}
.comments-sheet-overlay.show .comments-sheet {
  transform: translateY(0);
}
.comments-sheet-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  margin: 0.7rem auto 0 auto;
  flex-shrink: 0;
}
.comments-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem 0.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.comments-sheet-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.comments-sheet-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.7);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.comments-sheet-close:hover { background: rgba(255,255,255,0.2); }
.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.comments-list::-webkit-scrollbar { width: 3px; }
.comments-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }
.comment-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.comment-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B5E4F, #0F3D34);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFE0A3;
  flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-username {
  font-size: 0.72rem;
  font-weight: 700;
  color: #FFE0A3;
  margin-bottom: 0.18rem;
}
.comment-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.4;
  word-break: break-word;
}
.comment-time {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.2rem;
}
.comments-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  text-align: center;
  color: rgba(255,255,255,0.3);
}
.comments-empty i { font-size: 2.2rem; margin-bottom: 0.5rem; opacity: 0.4; }
.comments-empty p { font-size: 0.78rem; }
.comments-input-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.65rem 1rem 0.9rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  background: #1a2e3b;
}
.comments-input {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 2rem;
  padding: 0.45rem 0.9rem;
  color: white;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.comments-input::placeholder { color: rgba(255,255,255,0.3); }
.comments-input:focus { border-color: rgba(27,94,79,0.8); }
.comments-send-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B5E4F, #0F3D34);
  border: none;
  color: #FFE0A3;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, opacity 0.15s;
}
.comments-send-btn:active { transform: scale(0.9); }
.comments-send-btn:disabled { opacity: 0.4; cursor: default; }

/* ---- @ Tag Suggestion Dropdown ---- */
.tag-suggestions {
  position: absolute;
  bottom: 100%;
  left: 0; right: 0;
  background: #162533;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.9rem 0.9rem 0 0;
  overflow: hidden;
  display: none;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  max-height: 180px;
  overflow-y: auto;
}
.tag-suggestions.show { display: block; }
.tag-suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tag-suggestion-item:last-child { border-bottom: none; }
.tag-suggestion-item:hover, .tag-suggestion-item:active {
  background: rgba(255,255,255,0.07);
}
.tag-suggestion-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B5E4F, #0F3D34);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: #FFE0A3;
  flex-shrink: 0;
}
.tag-suggestion-name {
  font-size: 0.8rem; font-weight: 600;
  color: rgba(255,255,255,0.88);
}
.tag-suggestion-handle {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  margin-left: 0.2rem;
}

/* ========== PWA INSTALL BANNER ========== */
.rupia-install-banner {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
  transform: translateX(-50%) translateY(0);
  width: min(92vw, 420px);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, #143F36, #0B2B26);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 0.75rem 0.85rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 9000;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.rupia-install-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(16px);
}
.rib-icon img { width: 100%; height: 100%; display: block; object-fit: contain; }
.rib-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 0.7rem;
  background: transparent;
  border: 0;
  overflow: hidden;
  color: #00e05a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.rib-text { flex: 1; min-width: 0; }
.rib-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}
.rib-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.1rem;
  line-height: 1.25;
}
.rib-install-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #1B5E4F, #0F3D34);
  color: #FFE0A3;
  border: none;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.rib-close-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  padding: 0.3rem;
  cursor: pointer;
}



/* ========== LOADING / SPLASH SCREEN ========== */
#rupiaLoadingScreen {
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, #0B2B26 0%, #1A4A3F 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#rupiaLoadingScreen.fade-out {
  opacity: 0;
  visibility: hidden;
}
.rls-icon img { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: 1.4rem; }
.rls-icon {
  width: 72px;
  height: 72px;
  background: transparent;
  border-radius: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #FFE0A3;
  margin-bottom: 1rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  animation: rls-pulse 1.8s ease-in-out infinite;
}
@keyframes rls-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
  50% { transform: scale(1.07); box-shadow: 0 12px 40px rgba(27,94,79,0.5); }
}
.rls-name {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}
.rls-tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.rls-spinner {
  margin-top: 2.5rem;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #FFE0A3;
  border-radius: 50%;
  animation: rls-spin 0.8s linear infinite;
}
@keyframes rls-spin {
  to { transform: rotate(360deg); }
}
.rls-dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 2rem;
}
.rls-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  animation: rls-dot-blink 1.2s ease-in-out infinite;
}
.rls-dot:nth-child(2) { animation-delay: 0.2s; }
.rls-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes rls-dot-blink {
  0%, 80%, 100% { background: rgba(255,255,255,0.25); transform: scale(1); }
  40% { background: #FFE0A3; transform: scale(1.3); }
}

/* ---- Reply button on comments ---- */
.comment-reply-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.38);
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  border-radius: 0.4rem;
  margin-top: 0.22rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.01em;
}
.comment-reply-btn:hover,
.comment-reply-btn:active {
  color: #FFE0A3;
  background: rgba(255,224,163,0.08);
}
/* ---- Reply-to indicator bar ---- */
.reply-indicator {
  display: none;
  align-items: center;
  gap: 0.45rem;
  background: rgba(27,94,79,0.18);
  border-left: 3px solid #1B5E4F;
  padding: 0.35rem 0.75rem 0.35rem 0.6rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  width: 100%;
}
.reply-indicator.show { display: flex; }
.reply-indicator-name {
  color: #FFE0A3;
  font-weight: 700;
}
.reply-indicator-cancel {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0 0.1rem;
  line-height: 1;
  transition: color 0.15s;
}
.reply-indicator-cancel:hover { color: rgba(255,255,255,0.8); }

/* ---- Long-press copy feedback ---- */
.comment-text.copying {
  background: rgba(255,224,163,0.12);
  border-radius: 0.4rem;
  transition: background 0.2s;
}
.comment-copy-toast {
  position: fixed;
  bottom: 280px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(27,94,79,0.97);
  color: #FFE0A3;
  padding: 0.38rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 600;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.comment-copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ===== PROFILE FULL-SCREEN MODE ===== */
.profile-page.profile-fullscreen-mode .profile-back-btn,
.profile-page.profile-fullscreen-mode .profile-menu-btn {
  display: none !important;
}
.profile-page.profile-fullscreen-mode {
  z-index: 10000;
}
#profileFullscreenExitBtn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 18px;
  z-index: 10001;
  background: rgba(15, 61, 52, 0.92);
  color: #FFE0A3;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  cursor: pointer;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.15s;
}
#profileFullscreenExitBtn:active {
  background: rgba(27, 94, 79, 0.98);
  transform: scale(0.96);
}
#profileFullscreenExitBtn.pfb-visible {
  display: flex !important;
}
/* Long-press ripple on profile nav btn */
#profileNavBtn.nav-btn-longpress-active {
  background: rgba(255, 224, 163, 0.18) !important;
  transform: scale(0.93) !important;
}
/* Tap-orbit animation: microscope circles around the profile button */
@keyframes profileNavOrbit {
  from { transform: rotate(0deg)   translateX(27px) rotate(0deg);   }
  to   { transform: rotate(360deg) translateX(27px) rotate(-360deg); }
}
.profile-orbit-icon {
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  margin-top: -8px; margin-left: -8px;
  pointer-events: none;
  z-index: 201;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  color: #FFE0A3;
  text-shadow: 0 0 8px rgba(255,224,163,0.7);
  animation: profileNavOrbit 0.72s cubic-bezier(0.4, 0, 0.2, 1) 1 forwards;
}
/* ===== CONTRACT MODAL BLACK THEME ===== */
.contract-status-banner.unsigned { background:rgba(255,215,0,0.1)!important;border-color:rgba(255,215,0,0.4)!important;color:#FFD700!important; }
.contract-status-banner.signed { background:rgba(110,232,154,0.1)!important;border-color:rgba(110,232,154,0.4)!important;color:#6ee89a!important; }
.contract-document { background:#1e1e1e!important;border-color:rgba(255,255,255,0.1)!important;color:rgba(255,255,255,0.75)!important; }
.contract-document h4 { color:#fff!important; }
.contract-document .clause-num { color:#6ee89a!important; }
.contract-body { color:rgba(255,255,255,0.8); }
.contract-sign-area { background:#1e1e1e!important;border-color:rgba(110,232,154,0.5)!important; }
.contract-sign-label { color:#6ee89a!important; }
#signatureCanvas { background:#ffffff!important;border-color:rgba(255,255,255,0.3)!important; }
.contract-clear-btn { color:rgba(255,255,255,0.5)!important;border-color:rgba(255,255,255,0.15)!important; }
.contract-sign-hint { color:rgba(255,255,255,0.4)!important; }
.contract-check-row { color:rgba(255,255,255,0.8)!important; }
.contract-signed-display h4 { color:#fff!important; }
.contract-signed-display p { color:rgba(255,255,255,0.5)!important; }
.contract-signed-display i { color:#6ee89a!important; }
.contract-signed-sig { color:#6ee89a!important;border-bottom-color:#6ee89a!important; }
.contract-signed-date { color:rgba(255,255,255,0.4)!important; }

/* ========== ARTIST MUSIC SHEET ========== */
.artist-sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 9000;
  opacity: 0; visibility: hidden;
  transition: all 0.28s;
}
.artist-sheet-backdrop.show { opacity: 1; visibility: visible; }

.artist-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #0F2A22;
  border-radius: 1.5rem 1.5rem 0 0;
  z-index: 9001;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.34, 1.05, 0.64, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
}
.artist-sheet.show { transform: translateY(0); }

.artist-sheet-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 0.7rem auto 0 auto;
  flex-shrink: 0;
}

.artist-sheet-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem 0.7rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.artist-sheet-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1B5E4F, #0F3D34);
  display: flex; align-items: center; justify-content: center;
  color: #FFE0A3; font-size: 1.1rem;
  flex-shrink: 0; overflow: hidden;
}
.artist-sheet-avatar img { width: 100%; height: 100%; object-fit: cover; display: none; border-radius: 50%; opacity: 0; transition: opacity 0.2s; }
.artist-sheet-avatar img.show { display: block; }
.artist-sheet-avatar img.show.loaded { opacity: 1; }
.artist-sheet-avatar img.show + i { display: none; }
.artist-sheet-info { flex: 1; min-width: 0; }
.artist-sheet-name {
  font-size: 0.95rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 4px;
  min-width: 0; overflow: hidden;
}
.artist-sheet-name .artist-name-text {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.artist-sheet-name span.verified-badge,
.artist-sheet-name .tsc-paid-tick {
  flex-shrink: 0;
}
.artist-sheet-username {
  font-size: 0.72rem; font-weight: 500;
  color: rgba(255, 224, 163, 0.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.artist-sheet-sub {
  font-size: 0.62rem; color: rgba(255,255,255,0.45);
  margin-top: 0.1rem;
}
.artist-sheet-close {
  background: rgba(255,255,255,0.1);
  border: none; color: rgba(255,255,255,0.7);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.9rem; flex-shrink: 0;
}

/* Action row — quick actions */
.artist-sheet-actions {
  display: flex; gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.artist-action-btn {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.9rem;
  padding: 0.55rem 0.4rem;
  color: #fff; font-size: 0.62rem; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  cursor: pointer; transition: background 0.15s;
}
.artist-action-btn i { font-size: 0.95rem; color: #FFE0A3; }
.artist-action-btn:active { background: rgba(255,255,255,0.14); }

/* Track list */
.artist-sheet-tracks {
  flex: 1; overflow-y: auto;
  padding: 0.5rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px)) 0;
}
.artist-sheet-section-label {
  font-size: 0.62rem; font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.6px;
  padding: 0.4rem 1.1rem 0.3rem 1.1rem;
}
.artist-track-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 1.1rem;
  cursor: pointer; transition: background 0.15s;
  border-radius: 0.6rem; margin: 0 0.4rem;
}
.artist-track-row:active { background: rgba(255,255,255,0.08); }
.artist-track-row.now-playing { background: rgba(255,224,163,0.08); }
.artist-track-cover {
  width: 42px; height: 42px; border-radius: 0.55rem;
  background: linear-gradient(135deg, #1B5E4F, #0F3D34);
  display: flex; align-items: center; justify-content: center;
  color: #FFE0A3; font-size: 0.95rem; flex-shrink: 0; overflow: hidden; position: relative;
}
.artist-track-cover img { width: 100%; height: 100%; object-fit: cover; display: none; position: absolute; inset: 0; border-radius: 0.55rem; }
.artist-track-cover img.show { display: block; }
.artist-track-cover img.show + i { display: none; }
.artist-track-info { flex: 1; min-width: 0; }
.artist-track-title {
  font-size: 0.82rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.artist-track-row.now-playing .artist-track-title { color: #FFE0A3; }
.artist-track-meta {
  font-size: 0.6rem; color: rgba(255,255,255,0.4);
  margin-top: 0.1rem;
}
.artist-track-play-btn {
  background: rgba(255,255,255,0.08);
  border: none; color: rgba(255,255,255,0.7);
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.75rem; flex-shrink: 0;
  transition: background 0.15s;
}
.artist-track-play-btn:active { background: rgba(255,255,255,0.18); }
.artist-track-row.now-playing .artist-track-play-btn { color: #FFE0A3; background: rgba(255,224,163,0.15); }

/* Empty state */
.artist-sheet-empty {
  text-align: center;
  padding: 2.5rem 1rem calc(2.5rem + env(safe-area-inset-bottom, 0px)) 1rem;
  color: rgba(255,255,255,0.35);
}
.artist-sheet-empty i { font-size: 2rem; display: block; margin-bottom: 0.6rem; }
.artist-sheet-empty p { font-size: 0.75rem; line-height: 1.5; }

/* ========== CREATE PLAYLIST MODAL ========== */
.playlist-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9100;
  opacity: 0; visibility: hidden;
  transition: all 0.22s;
  display: flex; align-items: flex-end;
}
.playlist-modal-backdrop.show { opacity: 1; visibility: visible; }

.playlist-modal {
  width: 100%;
  background: #132D24;
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 1.2rem 1.2rem 2rem 1.2rem;
  transform: translateY(30px); opacity: 0;
  transition: all 0.28s cubic-bezier(0.34, 1.05, 0.64, 1);
}
.playlist-modal-backdrop.show .playlist-modal { transform: translateY(0); opacity: 1; }

.playlist-modal-title {
  font-size: 1rem; font-weight: 700; color: #fff;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.playlist-modal-title i { color: #FFE0A3; }

.playlist-name-input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 0.9rem;
  padding: 0.65rem 0.9rem;
  color: #fff;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 0.75rem;
}
.playlist-name-input::placeholder { color: rgba(255,255,255,0.3); }
.playlist-name-input:focus { border-color: #FFE0A3; }

.playlist-track-picker {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 1rem;
}
.playlist-pick-label {
  font-size: 0.62rem; font-weight: 700; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.playlist-pick-row {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.45rem 0.2rem;
  cursor: pointer;
}
.playlist-pick-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s;
}
.playlist-pick-check i { font-size: 0.6rem; color: #0F3D34; display: none; }
.playlist-pick-row.selected .playlist-pick-check {
  background: #FFE0A3; border-color: #FFE0A3;
}
.playlist-pick-row.selected .playlist-pick-check i { display: block; }
.playlist-pick-cover {
  width: 36px; height: 36px; border-radius: 0.45rem;
  background: linear-gradient(135deg, #1B5E4F, #0F3D34);
  display: flex; align-items: center; justify-content: center;
  color: #FFE0A3; font-size: 0.8rem; flex-shrink: 0; overflow: hidden; position: relative;
}
.playlist-pick-cover img { width:100%; height:100%; object-fit:cover; display:none; position:absolute; inset:0; border-radius:0.45rem; }
.playlist-pick-cover img.show { display: block; }
.playlist-pick-cover img.show + i { display: none; }
.playlist-pick-name {
  font-size: 0.78rem; font-weight: 500; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}

.playlist-modal-btns { display: flex; gap: 0.6rem; }
.playlist-cancel-btn {
  flex: 1; background: rgba(255,255,255,0.08);
  border: none; color: rgba(255,255,255,0.7);
  border-radius: 1.5rem; padding: 0.6rem;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.playlist-create-btn {
  flex: 2;
  background: linear-gradient(100deg, #0F3D34, #1B5E4F);
  border: none; color: #fff;
  border-radius: 1.5rem; padding: 0.6rem;
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.playlist-create-btn i { color: #FFE0A3; }

/* ========== PLAYLIST CARDS IN MUSIC LIB ========== */
.pl-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.1rem;
  overflow: hidden;
  transition: background 0.15s;
}
.pl-card-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
}
.pl-card:active .pl-card-header { background: rgba(255,255,255,0.06); }
.pl-card-art {
  width: 48px; height: 48px; border-radius: 0.65rem;
  background: linear-gradient(135deg, #1B5E4F, #0F3D34);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  overflow: hidden; flex-shrink: 0; position: relative;
}
.pl-card-art-cell {
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pl-card-art-cell img { width: 100%; height: 100%; object-fit: cover; display: none; }
.pl-card-art-cell img.show { display: block; }
.pl-card-art-solo {
  grid-column: span 2; grid-row: span 2;
  display: flex; align-items: center; justify-content: center;
  color: #FFE0A3; font-size: 1.3rem;
}
.pl-card-info { flex: 1; min-width: 0; }
.pl-card-name {
  font-size: 0.88rem; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-card-meta {
  font-size: 0.6rem; color: rgba(255,255,255,0.4); margin-top: 0.1rem;
}
.pl-card-chevron {
  color: rgba(255,255,255,0.3); font-size: 0.75rem;
  flex-shrink: 0; transition: transform 0.22s;
}
.pl-card.open .pl-card-chevron { transform: rotate(90deg); }
.pl-card-play-all {
  background: rgba(255,224,163,0.12);
  border: none; color: #FFE0A3;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.8rem; flex-shrink: 0;
}
.pl-card-tracks {
  display: none; flex-direction: column; gap: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.pl-card.open .pl-card-tracks { display: flex; }
.pl-card-track-row {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer; transition: background 0.12s;
}
.pl-card-track-row:active { background: rgba(255,255,255,0.07); }
.pl-card-track-cover {
  width: 36px; height: 36px; border-radius: 0.45rem;
  background: linear-gradient(135deg, #1B5E4F, #0F3D34);
  display: flex; align-items: center; justify-content: center;
  color: #FFE0A3; font-size: 0.8rem; flex-shrink: 0;
  overflow: hidden; position: relative;
}
.pl-card-track-cover img { width:100%; height:100%; object-fit:cover; display:none; position:absolute; inset:0; border-radius:0.45rem; }
.pl-card-track-cover img.show { display: block; }
.pl-card-track-cover img.show + i { display: none; }
.pl-card-track-info { flex: 1; min-width: 0; }
.pl-card-track-name {
  font-size: 0.78rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-card-track-artist {
  font-size: 0.6rem; color: rgba(255,255,255,0.4); margin-top: 0.05rem;
}
.pl-card-track-username {
  font-size: 0.56rem; color: rgba(255,224,163,0.6); margin-top: 0.05rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-card-track-play {
  background: none; border: none;
  color: rgba(255,255,255,0.5); font-size: 0.75rem;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}

/* Delete button on playlist card */
.pl-card-delete-btn {
  background: rgba(220,53,69,0.12);
  border: 1px solid rgba(220,53,69,0.25);
  color: #ff6b7a;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.72rem; flex-shrink: 0;
  transition: background 0.15s;
}
.pl-card-delete-btn:active { background: rgba(220,53,69,0.28); }

/* Confirm-delete bar */
.pl-card-confirm-delete {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  background: rgba(220,53,69,0.1);
  border-top: 1px solid rgba(220,53,69,0.2);
  animation: plConfirmIn 0.18s ease;
}
@keyframes plConfirmIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pl-card.confirming .pl-card-confirm-delete { display: flex; }
.pl-card-confirm-delete span {
  font-size: 0.72rem; color: rgba(255,255,255,0.75); flex: 1;
}
.pl-card-confirm-delete strong { color: #fff; }
.pl-card-confirm-btns { display: flex; gap: 0.4rem; flex-shrink: 0; }
.pl-card-confirm-cancel {
  background: rgba(255,255,255,0.1); border: none;
  color: rgba(255,255,255,0.7); border-radius: 1.5rem;
  padding: 0.3rem 0.7rem; font-size: 0.7rem; font-weight: 600;
  cursor: pointer;
}
.pl-card-confirm-yes {
  background: #dc3545; border: none;
  color: #fff; border-radius: 1.5rem;
  padding: 0.3rem 0.8rem; font-size: 0.7rem; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 0.3rem;
}

/* Rupianii branding on playlist art */
.pl-card-art-branded {
  background: linear-gradient(135deg, #0F3D34 0%, #1B5E4F 60%, #0F3D34 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.pl-rupia-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.pl-rupia-logo i {
  font-size: 1.35rem;
  color: #FFE0A3;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.pl-rupia-logo span {
  font-size: 0.45rem;
  font-weight: 800;
  color: #FFE0A3;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.9;
}
/* Rupianii badge overlay on cover-art cards */
.pl-rupia-badge {
  position: absolute;
  bottom: 3px; right: 3px;
  background: linear-gradient(135deg, rgba(15,61,52,0.92), rgba(27,94,79,0.92));
  color: #FFE0A3;
  font-size: 0.38rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 4px;
  border-radius: 3px;
  display: flex; align-items: center; gap: 2px;
  backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 2;
}
.pl-rupia-badge i { font-size: 0.45rem; }

/* ---- Playlist tab: inner tab bar ---- */
.pl-tab-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem 0.2rem 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 0.6rem;
}
.pl-tab-bar::-webkit-scrollbar { display: none; }
.pl-tab-btn {
  flex-shrink: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.32rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.32rem;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.pl-tab-btn i { font-size: 0.65rem; }
.pl-tab-btn:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); }
.pl-tab-btn.active {
  background: linear-gradient(135deg, #1B5E4F, #0F3D34);
  border-color: #2A7A66;
  color: #FFE0A3;
}
/* Lock toggle — pinned to the right corner of the tab bar (matches screenshot) */
.pl-tab-btn.pl-lock-btn {
  margin-left: auto;
}
/* Red when purchased-only mode is ON */
.pl-tab-btn.pl-lock-btn.locked {
  background: linear-gradient(135deg, #c62828, #8e0000);
  border-color: #ef5350;
  color: #fff;
}
.pl-tab-btn.pl-lock-btn.locked i {
  color: #fff;
}
.pl-section-pane { display: none; }
.pl-section-pane.active { display: block; }

/* ---- Playlist tab: section headers (kept for legacy fallback) ---- */
.pl-section-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.2rem 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.4rem;
}
.pl-section-header i { font-size: 0.7rem; color: #FFE0A3; }

/* ---- Paid track rows in Playlist tab ---- */
.pl-paid-track {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.5rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
}
.pl-paid-track:active, .pl-paid-track:hover { background: rgba(255,255,255,0.07); }
.pl-paid-cover {
  width: 44px; height: 44px;
  border-radius: 0.55rem;
  background: rgba(255,224,163,0.1);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  font-size: 1.1rem; color: rgba(255,224,163,0.6);
}
.pl-paid-cover img { width:100%; height:100%; object-fit:cover; display:none; position:absolute; inset:0; border-radius:0.55rem; }
.pl-paid-cover img.show { display:block; }
.pl-paid-cover img.show + i { display:none; }
.pl-paid-info { flex: 1; min-width: 0; }
.pl-paid-name {
  font-size: 0.8rem; font-weight: 600;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-paid-artist {
  font-size: 0.65rem; color: rgba(255,255,255,0.45);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.pl-paid-username {
  font-size: 0.6rem; color: rgba(255,224,163,0.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.pl-paid-badge {
  font-size: 0.55rem; font-weight: 700;
  color: #4ade80; background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 1rem; padding: 1px 6px;
  white-space: nowrap; flex-shrink: 0;
}
.pl-paid-countdown {
  font-size: 0.58rem; font-weight: 600;
  color: #FFE0A3;
  white-space: nowrap; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
  line-height: 1.2;
}
.pl-paid-countdown .pcd-label {
  font-size: 0.48rem; font-weight: 500;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.pl-paid-countdown .pcd-time {
  font-variant-numeric: tabular-nums;
}
.pl-paid-countdown.pcd-urgent .pcd-time { color: #f87171; }
.pl-paid-countdown.pcd-warn   .pcd-time { color: #fb923c; }
.pl-paid-expiring-flash {
  animation: pcdFlash 0.5s ease-out;
}
@keyframes pcdFlash {
  0%   { background: rgba(248,113,113,0.18); }
  100% { background: transparent; }
}
.pl-paid-play {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,179,65,0.13);
  border: 1.5px solid rgba(0,179,65,0.38);
  color: #00e05a; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.15s;
}
.pl-paid-play:hover { background: rgba(0,179,65,0.25); }
