/* TRPopRank - Stylesheet (Built on ManiRank animations & dark neon system) */
:root {
  --bg-primary: #0a0b0e;
  --bg-secondary: #12141c;
  --bg-card: rgba(24, 27, 39, 0.76);
  --bg-card-hover: rgba(34, 39, 56, 0.94);

  /* Dynamic Category Accent (overridden per data-category) */
  --accent: #00e5ff;
  --accent-secondary: #8a2be2;
  --accent-glow: rgba(0, 229, 255, 0.35);

  --accent-pink: #ff2a85;
  --accent-cyan: #00e5ff;
  --accent-purple: #8a2be2;
  --accent-gold: #fbbf24;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Category Theme Accents */
body[data-category="vocal"] {
  --accent: #00e5ff;
  --accent-secondary: #7c3aed;
  --accent-glow: rgba(0, 229, 255, 0.35);
}

body[data-category="dance"] {
  --accent: #ff2a85;
  --accent-secondary: #8a2be2;
  --accent-glow: rgba(255, 42, 133, 0.4);
}

body[data-category="visual"] {
  --accent: #fbbf24;
  --accent-secondary: #f43f5e;
  --accent-glow: rgba(251, 191, 36, 0.35);
}

body[data-category="combined"] {
  --accent: #a855f7;
  --accent-secondary: #00e5ff;
  --accent-glow: rgba(168, 85, 247, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: clip;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* Background Ambient Lighting */
.ambient-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(145px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  transition: background 0.5s ease;
}

.glow-top-right {
  top: -160px;
  right: -120px;
  background: var(--accent);
  animation: glowFloatA 18s ease-in-out infinite alternate;
}

.glow-bottom-left {
  bottom: -160px;
  left: -120px;
  background: var(--accent-secondary);
  animation: glowFloatB 22s ease-in-out infinite alternate;
}

@keyframes glowFloatA {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-28px, 24px) scale(1.08); }
}

@keyframes glowFloatB {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(26px, -22px) scale(1.1); }
}

/* Global Pro Motion Keyframes */
@keyframes screenEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rowCascade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawerUnfold {
  from {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

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

@keyframes detailCardExit {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(16px) scale(0.97);
  }
}

@keyframes barGrowX {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.screen-animate-in {
  animation: screenEnter 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hub-cards-grid .hub-card {
  animation: cardReveal 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hub-cards-grid .hub-card:nth-child(1) { animation-delay: 0.04s; }
.hub-cards-grid .hub-card:nth-child(2) { animation-delay: 0.11s; }
.hub-cards-grid .hub-card:nth-child(3) { animation-delay: 0.18s; }

.chart-kpi-card {
  animation: cardReveal 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chart-kpi-card:nth-child(1) { animation-delay: 0.02s; }
.chart-kpi-card:nth-child(2) { animation-delay: 0.06s; }
.chart-kpi-card:nth-child(3) { animation-delay: 0.10s; }
.chart-kpi-card:nth-child(4) { animation-delay: 0.14s; }

.chart-row-animate {
  animation: rowCascade 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.artist-tile-animate {
  animation: cardReveal 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.artist-detail-card.detail-swap {
  animation: detailCardSwap 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.artist-detail-panel.detail-closing {
  animation: detailCardExit 0.18s ease forwards;
  pointer-events: none;
}

/* Layout Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1020px;
  margin: 0 auto;
  width: 100%;
  padding: 22px 16px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  min-height: 36px;
}

.nav-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  touch-action: manipulation;
}

.nav-home-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.nav-home-btn.nav-active {
  background: color-mix(in srgb, var(--accent) 18%, rgba(255, 255, 255, 0.06));
  border-color: var(--accent);
  color: #ffffff;
}

.nav-saved-btn {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent);
}

.header-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-btn {
  display: none;
}

.header-hero-block {
  margin-top: 10px;
}

.app-title-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}

.site-logo {
  display: block;
  width: min(232px, 58vw);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 229, 255, 0.22)) drop-shadow(0 0 14px rgba(255, 42, 133, 0.18));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 10px 28px rgba(0, 229, 255, 0.32)) drop-shadow(0 0 22px rgba(255, 42, 133, 0.28));
}

.start-secondary-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: -6px;
  margin-bottom: 20px;
}

.btn-artists-entry {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: 999px;
}

.btn-charts-entry {
  border-color: rgba(29, 185, 84, 0.35);
}

.btn-charts-entry:hover {
  border-color: #1db954 !important;
  box-shadow: 0 0 18px rgba(29, 185, 84, 0.22);
}

.brand-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 999px;
  transition: var(--transition);
}

.app-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 38%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.app-subtitle {
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 560px;
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* SCREEN: HOME / WELCOME HUB (/) */
.home-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin: 4px auto 28px;
}

.home-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin-bottom: 26px;
}

/* HOME: LATEST RELEASES SECTION */
.home-releases-section {
  width: 100%;
  margin-bottom: 24px;
  text-align: left;
}

.releases-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.releases-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.releases-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff2a85;
  box-shadow: 0 0 10px rgba(255, 42, 133, 0.8);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.releases-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.releases-window-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 42, 133, 0.14);
  border: 1px solid rgba(255, 42, 133, 0.35);
  color: #ff6ba9;
}

.section-see-all-pink {
  color: #ff6ba9;
  background: rgba(255, 42, 133, 0.1);
  border-color: rgba(255, 42, 133, 0.3);
}

.section-see-all-pink:hover {
  background: rgba(255, 42, 133, 0.22);
  border-color: #ff2a85;
}

.releases-count {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dim);
}

.releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.release-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  animation: cardReveal 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.release-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 42, 133, 0.45);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 42, 133, 0.14);
}

.release-cover-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.release-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.release-card:hover .release-cover {
  transform: scale(1.06);
}

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

.release-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.release-type-pill {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.release-new-pill {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(29, 185, 84, 0.18);
  color: #4ade80;
}

.release-upcoming-pill {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(0, 229, 255, 0.16);
  color: #38bdf8;
}

.release-upcoming-card {
  border-color: rgba(0, 229, 255, 0.34);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), var(--bg-card));
}

.release-upcoming-card:hover {
  border-color: rgba(0, 229, 255, 0.7);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 229, 255, 0.18);
}

.release-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.release-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  text-align: left;
}

.hub-card {
  --card-accent: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  overflow: hidden;
}

.hub-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--card-accent), transparent);
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.hub-card-rank { --card-accent: #ff2a85; }
.hub-card-artists { --card-accent: #00e5ff; }
.hub-card-charts { --card-accent: #1db954; }
.hub-card-concerts { --card-accent: #fbbf24; }

.hub-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: color-mix(in srgb, var(--card-accent) 65%, transparent);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--card-accent) 18%, rgba(0, 0, 0, 0.55));
}

.hub-card:hover::before {
  opacity: 1;
}

.hub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.hub-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--card-accent) 14%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--card-accent) 35%, transparent);
  color: var(--card-accent);
}

.hub-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.hub-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.hub-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.hub-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 18px;
}

.hub-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--card-accent);
}

.hub-card:hover .hub-card-cta svg {
  transform: translateX(4px);
}

.hub-card-cta svg {
  transition: transform 0.2s ease;
}

@media (max-width: 820px) {
  .hub-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hub-card {
    padding: 18px;
  }
}

/* SCREEN: START HERO */
.start-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
  margin: 8px auto 32px;
  position: relative;
  width: 100%;
}

/* Fanned Artist Showcase (Continuous Sliding Carousel) */
.album-fan-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 18px;
}

.album-fan {
  --fan-step-1: 82px;
  --fan-step-2: 158px;
  --fan-step-exit: 225px;
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 132px;
  perspective: 900px;
  overflow: visible;
}

.fan-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 102px;
  height: 102px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  object-fit: cover;
  object-position: top center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.16);
  transition:
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease;
  cursor: pointer;
  will-change: transform, opacity;
}

.fan-slot-exit {
  --fan-x: calc(var(--fan-step-exit) * -1);
  transform: translate(-50%, -50%) translateX(var(--fan-x)) translateY(22px) rotate(-20deg) scale(0.72);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.fan-slot-0 {
  --fan-x: calc(var(--fan-step-2) * -1);
  transform: translate(-50%, -50%) translateX(var(--fan-x)) translateY(14px) rotate(-13deg) scale(0.86);
  opacity: 0.88;
  z-index: 1;
}

.fan-slot-1 {
  --fan-x: calc(var(--fan-step-1) * -1);
  transform: translate(-50%, -50%) translateX(var(--fan-x)) translateY(4px) rotate(-6deg) scale(0.95);
  opacity: 0.96;
  z-index: 2;
}

.fan-slot-2 {
  --fan-x: 0px;
  transform: translate(-50%, -50%) translateX(var(--fan-x)) translateY(0px) rotate(0deg) scale(1.1);
  opacity: 1;
  z-index: 5;
  border-color: var(--accent);
  box-shadow: 0 16px 36px var(--accent-glow);
}

.fan-slot-3 {
  --fan-x: var(--fan-step-1);
  transform: translate(-50%, -50%) translateX(var(--fan-x)) translateY(4px) rotate(6deg) scale(0.95);
  opacity: 0.96;
  z-index: 2;
}

.fan-slot-4 {
  --fan-x: var(--fan-step-2);
  transform: translate(-50%, -50%) translateX(var(--fan-x)) translateY(14px) rotate(13deg) scale(0.86);
  opacity: 0.88;
  z-index: 1;
}

.fan-slot-enter {
  --fan-x: var(--fan-step-exit);
  transform: translate(-50%, -50%) translateX(var(--fan-x)) translateY(22px) rotate(20deg) scale(0.72);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.album-fan:hover .fan-cover:hover {
  transform: translate(-50%, -50%) translateX(var(--fan-x, 0px)) translateY(-10px) scale(1.18) rotate(0deg);
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.72);
}

.hero-fan-caption {
  margin-top: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  min-height: 20px;
  letter-spacing: 0.2px;
  transition: opacity 0.25s ease;
}

.hero-fan-caption span {
  color: var(--text-main);
  font-weight: 700;
}

.start-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.editorial-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-headline {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin-bottom: 10px;
}

.hero-subtext {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 520px;
  margin-bottom: 22px;
}

/* Configuration Panel */
.config-panel {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 22px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.config-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.config-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.2px;
}

.config-hint {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-dim);
}

.selector-grid {
  display: grid;
  gap: 10px;
}

.selector-3 {
  grid-template-columns: repeat(3, 1fr);
}

.selector-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-main);
  font-family: inherit;
  transition: var(--transition);
  touch-action: manipulation;
}

.selector-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.selector-pill.active {
  background: color-mix(in srgb, var(--accent) 14%, rgba(255, 255, 255, 0.04));
  border-color: var(--accent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 24%, transparent);
}

.pill-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  margin-bottom: 2px;
  transition: color 0.2s ease;
}

.selector-pill.active .pill-icon {
  color: var(--accent);
}

.pill-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.pill-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.selector-pill.active .pill-sub {
  color: color-mix(in srgb, var(--accent) 85%, #ffffff);
}

/* CTA Buttons */
.start-cta-group {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 520px;
  margin-bottom: 20px;
}

.btn-cta-main {
  flex: 1;
  min-width: 210px;
  padding: 15px 28px;
  font-size: 1.02rem;
  border-radius: var(--radius-md);
}

.btn-cta-resume {
  flex: 1;
  min-width: 200px;
  padding: 15px 20px;
  font-size: 0.92rem;
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

/* Saved Sessions Strip */
.saved-sessions-strip {
  width: 100%;
  margin-bottom: 20px;
  text-align: left;
}

.saved-strip-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-align: center;
}

.saved-sessions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.saved-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.saved-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.saved-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.meta-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.meta-strip-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-dot {
  color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  vertical-align: middle;
  flex-shrink: 0;
  display: inline-block;
}

/* SCREEN: BATTLE */
.battle-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.progress-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  backdrop-filter: blur(12px);
}

.progress-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.battle-mode-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mode-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.mode-badge-cat {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.mode-badge-pool {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.battle-metrics {
  display: flex;
  gap: 8px;
  align-items: center;
}

.metric-chip {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 2px 9px;
  border-radius: 999px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 7px;
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px var(--accent-glow);
}

.battle-question {
  text-align: center;
  font-size: 0.98rem;
  color: var(--text-muted);
  font-weight: 500;
}

.battle-question strong {
  color: var(--accent);
  font-weight: 800;
}

/* Arena: Two Artists Grid */
.matchup-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 20px;
  margin: 4px 0;
  perspective: 1000px;
  position: relative;
}

.vs-badge {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid color-mix(in srgb, var(--accent) 40%, var(--border-color));
  color: var(--accent);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 1px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.55);
  z-index: 2;
  transition: transform 0.3s ease;
}

/* Card Motion Animations (Inherited & refined from ManiRank) */
@keyframes exitWinUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
    box-shadow: 0 0 35px var(--accent-glow);
    z-index: 10;
  }
  100% {
    transform: translateY(-90px) scale(1.06);
    opacity: 0;
    box-shadow: 0 0 55px var(--accent-glow);
  }
}

@keyframes exitLoseLeft {
  0% { transform: translateX(0) scale(1); opacity: 1; }
  100% { transform: translateX(-120px) scale(0.9); opacity: 0; filter: blur(3px); }
}

@keyframes exitLoseRight {
  0% { transform: translateX(0) scale(1); opacity: 1; }
  100% { transform: translateX(120px) scale(0.9); opacity: 0; filter: blur(3px); }
}

@keyframes enterFromBehind {
  0% { transform: scale(0.78) translateY(24px); opacity: 0; filter: blur(6px); }
  60% { transform: scale(1.02) translateY(-2px); opacity: 0.95; filter: blur(0); }
  100% { transform: scale(1) translateY(0); opacity: 1; filter: blur(0); }
}

.card-exit-win-up {
  animation: exitWinUp 0.32s cubic-bezier(0.2, 0.9, 0.3, 1) forwards !important;
  pointer-events: none !important;
}

.card-exit-lose-left {
  animation: exitLoseLeft 0.32s cubic-bezier(0.2, 0.9, 0.3, 1) forwards !important;
  pointer-events: none !important;
}

.card-exit-lose-right {
  animation: exitLoseRight 0.32s cubic-bezier(0.2, 0.9, 0.3, 1) forwards !important;
  pointer-events: none !important;
}

.card-enter-behind {
  animation: enterFromBehind 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Artist Duel Card */
.artist-card {
  --member-color: var(--accent);
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  overflow: hidden;
  touch-action: pan-x;
}

.artist-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--member-color), transparent);
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .artist-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: color-mix(in srgb, var(--member-color) 65%, transparent);
    box-shadow: 0 18px 38px color-mix(in srgb, var(--member-color) 20%, rgba(0, 0, 0, 0.5));
  }

  .artist-card:hover::before {
    opacity: 1;
  }

  .artist-card:hover .artist-art {
    transform: scale(1.04);
  }

  .artist-card:hover .choose-btn-pill {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0b0e;
    box-shadow: 0 0 18px var(--accent-glow);
  }
}

.artist-card:active {
  transform: translateY(-1px) scale(0.99);
}

.artist-card:focus {
  outline: none;
}

.artist-card.dragging {
  transition: none;
}

.card-top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-num-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-group-pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: color-mix(in srgb, var(--member-color) 16%, rgba(0, 0, 0, 0.4));
  border: 1px solid color-mix(in srgb, var(--member-color) 42%, transparent);
  color: #ffffff;
}

.artist-art-wrapper {
  position: relative;
  width: 100%;
  max-width: 245px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.48);
  border: 2px solid color-mix(in srgb, var(--member-color) 35%, rgba(255, 255, 255, 0.08));
}

.artist-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.artist-color-dot {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.artist-info {
  width: 100%;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.artist-name {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.artist-fullname {
  font-size: 0.84rem;
  color: var(--text-muted);
  min-height: 18px;
}

.artist-roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
}

.role-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.choose-btn-pill {
  padding: 9px 24px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transition: var(--transition);
}

/* Battle Controls */
.battle-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #ffffff;
  box-shadow: 0 8px 22px var(--accent-glow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.22);
}

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

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.6);
}

.btn-subtle {
  background: transparent;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 8px 14px;
}

.btn-subtle:hover {
  color: var(--text-muted);
}

.keyboard-hints {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.keyboard-hints kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: inherit;
  color: var(--text-muted);
}

/* SCREEN: RESULT */
.results-header {
  text-align: center;
  margin-bottom: 26px;
}

.result-mode-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.result-tab-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.result-tab-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.result-tab-pill.active {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border-color: var(--accent);
  color: #ffffff;
}

.results-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.trophy-icon {
  width: 28px;
  height: 28px;
  color: #ffd700;
}

.results-header p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Top 3 Podium */
.podium-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 16px;
  align-items: end;
  max-width: 780px;
  margin: 0 auto 30px;
}

.podium-card {
  --member-color: var(--accent);
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
  overflow: hidden;
}

.podium-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--member-color);
}

.podium-card:hover {
  transform: translateY(-4px);
}

.podium-gold {
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 12px 32px rgba(255, 215, 0, 0.16);
  padding-bottom: 26px;
}

.podium-silver { border-color: rgba(224, 224, 224, 0.4); }
.podium-bronze { border-color: rgba(205, 127, 50, 0.42); }

.podium-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.podium-gold .podium-badge { color: #ffd700; }
.podium-silver .podium-badge { color: #e0e0e0; }
.podium-bronze .podium-badge { color: #cd7f32; }

.podium-img-wrapper {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 2px solid color-mix(in srgb, var(--member-color) 65%, transparent);
}

.podium-gold .podium-img-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 20px;
}

.podium-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.podium-num {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  padding: 2px 8px;
  font-size: 0.74rem;
  font-weight: 800;
  border-top-left-radius: 8px;
}

.podium-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 2px;
  color: var(--text-main);
}

.podium-gold .podium-title {
  font-size: 1.18rem;
}

.podium-artist {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.podium-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}

.podium-elo {
  color: var(--accent);
}

/* Result Actions */
.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

/* Analytics Grid */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.analytics-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  backdrop-filter: blur(12px);
}

.analytics-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.summary-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.kpi-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
}

.kpi-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.kpi-lbl {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.tier-distribution {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tier-dist-row {
  display: grid;
  grid-template-columns: 42px 1fr 34px;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}

.tier-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.tier-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.group-power-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 215px;
  overflow-y: auto;
  padding-right: 4px;
}

.group-power-row {
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}

.group-power-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-power-bar-track {
  height: 9px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.group-power-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}

.group-power-val {
  text-align: right;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Tier Badges */
.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.tier-Splus { background: rgba(255, 215, 0, 0.18); color: #ffd700; border: 1px solid rgba(255, 215, 0, 0.45); }
.tier-S { background: rgba(255, 42, 133, 0.18); color: #ff5ca8; border: 1px solid rgba(255, 42, 133, 0.45); }
.tier-A { background: rgba(168, 85, 247, 0.18); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.42); }
.tier-B { background: rgba(0, 229, 255, 0.14); color: #38bdf8; border: 1px solid rgba(0, 229, 255, 0.35); }
.tier-C { background: rgba(148, 163, 184, 0.14); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }

/* Table Toolbar */
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 9px 14px;
  color: var(--text-muted);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.86rem;
  width: 100%;
}

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 9px 14px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.filter-select option {
  background: #141722;
  color: #f8fafc;
}

.tier-filter-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tier-pill {
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.tier-pill.active,
.tier-pill:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: var(--accent);
  color: #ffffff;
}

/* Full Ranking Table */
.ranking-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  backdrop-filter: blur(12px);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-thead-row {
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
}

.ranking-thead-row th {
  padding: 13px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-dim);
  text-align: left;
}

.th-rank, .th-tier, .th-record, .th-winrate {
  text-align: center !important;
}

.ranking-row {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
  cursor: pointer;
}

.ranking-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.col-rank {
  width: 64px;
  padding: 14px 10px;
  text-align: center;
}

.rank-badge {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.rank-badge.rank-1 { background: rgba(255, 215, 0, 0.15); color: #ffd700; border: 1px solid rgba(255, 215, 0, 0.3); }
.rank-badge.rank-2 { background: rgba(224, 224, 224, 0.15); color: #ffffff; border: 1px solid rgba(224, 224, 224, 0.3); }
.rank-badge.rank-3 { background: rgba(205, 127, 50, 0.15); color: #cd7f32; border: 1px solid rgba(205, 127, 50, 0.3); }

.col-tier {
  width: 64px;
  padding: 14px 8px;
  text-align: center;
}

.col-artist {
  padding: 12px 14px;
}

.table-artist-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-art {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  border: 2px solid var(--member-color, rgba(255, 255, 255, 0.15));
}

.table-artist-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.table-artist-title {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text-main);
}

.table-group-chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}

.table-artist-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.col-elo {
  width: 130px;
  padding: 12px 14px;
  font-variant-numeric: tabular-nums;
}

.elo-val {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-main);
}

.elo-bar {
  height: 5px;
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 5px;
}

.elo-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}

.col-record {
  width: 96px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.col-winrate {
  width: 84px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Expandable Head-to-Head Drawer Row */
.h2h-detail-row td {
  padding: 0 18px 14px;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid var(--border-color);
}

.h2h-drawer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 10px;
  font-size: 0.78rem;
}

.h2h-col {
  flex: 1;
  min-width: 180px;
}

.h2h-label {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.h2h-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.h2h-chip {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 600;
}

.h2h-win { background: rgba(34, 197, 94, 0.14); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.h2h-tie { background: rgba(251, 191, 36, 0.14); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.h2h-loss { background: rgba(239, 68, 68, 0.14); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.table-footnote {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 12px;
}

/* SCREEN: ARTISTS DIRECTORY */
.artists-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.artists-page-header {
  text-align: center;
}

.artists-page-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.artists-page-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.artists-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.artists-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.artists-layout.has-selection {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.artists-directory-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.artist-group-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.artist-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.artist-group-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.artist-group-accent {
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
}

.artist-group-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text-main);
}

.artist-group-count {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: 999px;
}

.artist-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 12px;
}

.artist-tile {
  --member-color: var(--accent);
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  color: inherit;
}

.artist-tile:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: color-mix(in srgb, var(--member-color) 65%, transparent);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--member-color) 18%, rgba(0, 0, 0, 0.45));
}

.artist-tile.selected {
  background: color-mix(in srgb, var(--member-color) 14%, var(--bg-card-hover));
  border-color: var(--member-color);
  box-shadow: 0 0 22px color-mix(in srgb, var(--member-color) 32%, transparent);
}

.artist-tile-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 9px;
  border: 1.5px solid color-mix(in srgb, var(--member-color) 35%, rgba(255, 255, 255, 0.08));
}

.artist-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.artist-tile:hover .artist-tile-img {
  transform: scale(1.05);
}

.artist-tile-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.artist-tile-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 2px;
}

.artist-tile-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Sticky Side Detail Card */
.artist-detail-panel {
  position: sticky;
  top: 20px;
  z-index: 20;
  animation: detailSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.artist-detail-backdrop {
  display: none;
}

@keyframes detailSlideIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

.artist-detail-card {
  --member-color: var(--accent);
  position: relative;
  background: rgba(20, 23, 34, 0.92);
  backdrop-filter: blur(20px);
  border: 1.5px solid color-mix(in srgb, var(--member-color) 45%, var(--border-color));
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.artist-detail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--member-color), transparent);
}

.detail-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.detail-group-pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--member-color) 18%, rgba(0, 0, 0, 0.35));
  border: 1px solid color-mix(in srgb, var(--member-color) 45%, transparent);
  color: #ffffff;
}

.detail-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.detail-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.detail-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 270px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  border: 2px solid color-mix(in srgb, var(--member-color) 55%, rgba(255, 255, 255, 0.1));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.detail-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.detail-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.detail-fullname {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 14px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-info-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 10px;
}

.detail-info-item.full-width {
  grid-column: 1 / -1;
}

.detail-info-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  margin-bottom: 3px;
}

.detail-info-value {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.detail-color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: inline-block;
  flex-shrink: 0;
}

.detail-birthdate {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.78rem;
}

.detail-roles-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.detail-rankings-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.detail-rankings-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.detail-rank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.detail-nav-row {
  display: flex;
  gap: 8px;
}

.detail-nav-row .btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.8rem;
}

/* Mobile slide-over for artist detail card */
@media (max-width: 860px) {
  .artists-layout.has-selection {
    grid-template-columns: minmax(0, 1fr);
  }

  .artist-detail-panel {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.18s ease;
  }

  .artist-detail-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(8px);
  }

  .artist-detail-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 370px;
    max-height: 90dvh;
    overflow-y: auto;
    animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* Scroll to Top Button (Artists page — strictly below artist detail card) */
.scroll-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 15;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(20, 23, 34, 0.9);
  backdrop-filter: blur(12px);
  border: 1.5px solid color-mix(in srgb, var(--accent) 48%, rgba(255, 255, 255, 0.16));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 16px color-mix(in srgb, var(--accent) 20%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.92);
  transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
  touch-action: manipulation;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  background: var(--accent);
  color: #0a0b0e;
  transform: translateY(-3px) scale(1.05);
}

.scroll-top-btn .btn-icon {
  width: 22px;
  height: 22px;
}

/* SCREEN: CHARTS TRACKER */
.charts-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.charts-page-header {
  text-align: center;
}

.charts-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chart-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.chart-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.22);
}

.chart-tab.active {
  background: color-mix(in srgb, var(--accent) 16%, var(--bg-card));
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 24%, transparent);
}

.chart-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chart-dot-spotify {
  background: #1db954;
  box-shadow: 0 0 8px rgba(29, 185, 84, 0.7);
}

.chart-dot-youtube {
  background: #ff3b3b;
  box-shadow: 0 0 8px rgba(255, 59, 59, 0.7);
}

.chart-dot-billboard {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.7);
}

.charts-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.chart-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  backdrop-filter: blur(12px);
}

.chart-kpi-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.chart-kpi-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-kpi-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.charts-group-card {
  padding: 15px 18px;
}

.charts-group-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chart-group-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.chart-group-chip:hover,
.chart-group-chip.active {
  background: color-mix(in srgb, var(--accent) 18%, rgba(255, 255, 255, 0.06));
  border-color: var(--accent);
}

.chart-group-chip-count {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 800;
}

/* Chart Table Specifics */
.chart-pos-cell {
  width: 82px;
  padding: 13px 10px;
  text-align: center;
}

.chart-pos-num {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.chart-pos-top {
  color: #ffd700;
}

.chart-change-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}

.chg-up { background: rgba(34, 197, 94, 0.16); color: #4ade80; }
.chg-down { background: rgba(239, 68, 68, 0.16); color: #f87171; }
.chg-new { background: rgba(0, 229, 255, 0.18); color: #38bdf8; }
.chg-same { background: rgba(148, 163, 184, 0.12); color: var(--text-dim); }

.chart-track-cell {
  padding: 12px 14px;
}

.chart-track-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chart-track-title {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text-main);
  transition: color 0.15s ease;
}

.ranking-row:hover .chart-track-title {
  color: var(--accent);
}

.chart-track-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.chart-action-cell {
  width: 118px;
  padding: 10px 14px 10px 6px;
  text-align: right;
}

.chart-platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
  touch-action: manipulation;
}

.chart-platform-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.chart-platform-spotify {
  background: rgba(29, 185, 84, 0.14);
  border: 1px solid rgba(29, 185, 84, 0.42);
  color: #4ade80;
}

.chart-platform-spotify:hover {
  background: #1db954;
  border-color: #1db954;
  color: #08120c;
  box-shadow: 0 0 16px rgba(29, 185, 84, 0.4);
  transform: translateY(-1px);
}

.chart-platform-youtube {
  background: rgba(255, 59, 59, 0.14);
  border: 1px solid rgba(255, 59, 59, 0.42);
  color: #ff6b6b;
}

.chart-platform-youtube:hover {
  background: #ff3b3b;
  border-color: #ff3b3b;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 59, 59, 0.4);
  transform: translateY(-1px);
}

.chart-platform-billboard {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fbbf24;
}

.chart-platform-billboard:hover {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #0a0b0e;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.4);
  transform: translateY(-1px);
}

/* Expandable Chart Row Detail Drawer */
.chart-detail-row td {
  padding: 0 16px 14px;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid var(--border-color);
}

.chart-detail-drawer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 10px;
  padding-top: 12px;
  transform-origin: top center;
  animation: drawerUnfold 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chart-detail-stat,
.chart-detail-action {
  animation: rowCascade 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chart-detail-drawer > *:nth-child(1) { animation-delay: 0.02s; }
.chart-detail-drawer > *:nth-child(2) { animation-delay: 0.05s; }
.chart-detail-drawer > *:nth-child(3) { animation-delay: 0.08s; }
.chart-detail-drawer > *:nth-child(4) { animation-delay: 0.11s; }
.chart-detail-drawer > *:nth-child(5) { animation-delay: 0.14s; }
.chart-detail-drawer > *:nth-child(6) { animation-delay: 0.17s; }

.chart-detail-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 11px;
}

.chart-detail-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 3px;
}

.chart-detail-val {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.chart-detail-action {
  display: none;
  align-items: center;
  justify-content: flex-end;
}

.chart-detail-action .chart-platform-btn {
  width: 100%;
  height: 100%;
  min-height: 44px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.ranking-row.chart-row-expanded {
  background: rgba(255, 255, 255, 0.05);
}

.chart-peak-cell {
  width: 130px;
  padding: 12px 10px;
  text-align: center;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.chart-peak-main {
  font-weight: 700;
  color: var(--text-main);
}

.chart-peak-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.chart-streams-cell {
  width: 140px;
  padding: 12px 14px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.chart-streams-main {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-main);
}

.chart-streams-delta {
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 2px;
}

.delta-pos { color: #4ade80; }
.delta-neg { color: #f87171; }
.delta-flat { color: var(--text-dim); }

.chart-total-cell {
  width: 125px;
  padding: 12px 14px;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.ml-bar-wrap {
  width: 100%;
  max-width: 180px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.ml-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1db954, #4ade80);
  transform-origin: left center;
  animation: barGrowX 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .charts-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chart-total-cell, .th-chart-total {
    display: none;
  }
}

@media (max-width: 540px) {
  .chart-peak-cell, .th-chart-peak,
  .chart-action-cell, .th-chart-action {
    display: none;
  }

  .chart-streams-cell {
    width: 102px;
    padding: 10px 12px 10px 6px;
  }

  .chart-detail-action {
    display: flex;
  }
}

/* HOME: UPCOMING CONCERTS PREVIEW & /KONSERLER PAGE */
.concerts-live-dot {
  background: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
}

.concerts-window-badge {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-see-all-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fbbf24;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  transition: var(--transition);
}

.section-see-all-link .btn-icon {
  width: 14px;
  height: 14px;
}

.section-see-all-link:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: #fbbf24;
  transform: translateY(-1px);
}

.section-see-all-link.section-see-all-pink {
  color: #ff6ba9;
  background: rgba(255, 42, 133, 0.12);
  border-color: rgba(255, 42, 133, 0.36);
}

.section-see-all-link.section-see-all-pink:hover {
  background: rgba(255, 42, 133, 0.24);
  border-color: #ff2a85;
  color: #ff85b8;
}

.concerts-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.concert-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  animation: cardReveal 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.concert-mini-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: rgba(251, 191, 36, 0.48);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45), 0 0 18px rgba(251, 191, 36, 0.14);
}

.concert-date-box {
  width: 54px;
  min-width: 54px;
  padding: 7px 4px;
  border-radius: 11px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.32);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.concert-date-day {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.concert-date-mon {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fbbf24;
  margin-top: 2px;
}

.concert-mini-body {
  flex: 1;
  min-width: 0;
}

.concert-mini-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}

.concert-artist-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.concert-artist-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.concert-venue-line {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.concert-mini-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.concert-price-pill {
  font-size: 0.74rem;
  font-weight: 800;
  color: #fbbf24;
  white-space: nowrap;
}

.concert-countdown-chip {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  white-space: nowrap;
}

/* SCREEN: CONCERTS CALENDAR (/konserler) */
.concerts-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.concerts-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.concerts-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.concert-month-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.concert-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.concert-month-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.concert-row-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
  animation: rowCascade 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.concert-row-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(251, 191, 36, 0.42);
  transform: translateY(-2px);
}

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

.concert-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.concert-row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.concert-ticket-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: #fbbf24;
  white-space: nowrap;
  transition: var(--transition);
}

.concert-ticket-btn:hover {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #0a0b0e;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.38);
  transform: translateY(-1px);
}

.releases-sentinel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 12px 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.releases-load-more-btn {
  padding: 7px 16px;
  font-size: 0.78rem;
  border-radius: 999px;
}

.release-gap-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: -10px 0;
  position: relative;
}

.release-gap-divider::before,
.release-gap-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 42, 133, 0.25), transparent);
}

.release-gap-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 42, 133, 0.1);
  border: 1px dashed rgba(255, 42, 133, 0.38);
  color: #ff85b8;
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
}

.artist-since-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.14), rgba(138, 43, 226, 0.12));
  border: 1px solid rgba(255, 42, 133, 0.35);
  color: var(--text-main);
  animation: cardReveal 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.artist-since-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.artist-since-avatar {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  border: 2px solid rgba(255, 42, 133, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.artist-since-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.artist-since-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
}

.artist-since-sub {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.25;
}

.artist-since-sub strong {
  color: #ff6ba9;
  font-weight: 800;
}

@media (max-width: 720px) {
  .concerts-mini-grid,
  .concerts-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .concert-mini-card {
    gap: 10px;
    padding: 10px 12px;
  }

  .concert-date-box {
    width: 48px;
    min-width: 48px;
  }

  .concert-row-card {
    flex-wrap: wrap;
    gap: 10px;
  }

  .concert-row-actions {
    width: 100%;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
  }
}

/* Footer */
.app-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 34px;
}

.app-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.app-footer a:hover {
  color: var(--accent);
}

/* Custom Confirmation Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.18s ease;
}

.modal-card {
  position: relative;
  z-index: 1;
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop {
  from { transform: scale(0.9) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.modal-icon-wrap.modal-icon-info {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.modal-icon { width: 24px; height: 24px; }
.modal-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; color: var(--text-main); }
.modal-message { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 22px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }
.modal-actions .btn { flex: 1; padding: 10px 16px; font-size: 0.85rem; }

/* Responsive Adjustments */
@media (max-width: 768px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .col-record, .th-record {
    display: none;
  }
}

@media (max-width: 640px) {
  body.battle-active {
    overflow: hidden;
    height: 100dvh;
  }

  body.battle-active .app-container {
    height: 100dvh;
    padding: 8px 12px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  body.battle-active .brand-badge,
  body.battle-active .app-subtitle,
  body.battle-active .app-footer,
  body.battle-active .battle-question {
    display: none !important;
  }

  body.battle-active .header-nav { margin-bottom: 2px; min-height: auto; }
  body.battle-active .nav-home-btn { padding: 4px 10px; font-size: 0.72rem; }
  body.battle-active .nav-placeholder { width: 65px; }
  body.battle-active .app-header { margin-bottom: 4px; }
  body.battle-active .app-title { font-size: 1.15rem; margin-bottom: 0; }

  body.battle-active #screen-battle {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    min-height: 0;
  }

  body.battle-active .progress-panel { padding: 6px 12px; }
  body.battle-active .progress-top-row { margin-bottom: 4px; }
  body.battle-active .progress-header { font-size: 0.72rem; margin-bottom: 3px; }
  body.battle-active .progress-track { height: 5px; }

  body.battle-active .matchup-arena {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    margin: 0;
    min-height: 0;
  }

  body.battle-active .artist-card {
    width: 100%;
    max-width: 340px;
    flex: 1;
    min-height: 0;
    max-height: 235px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
  }

  body.battle-active .card-top-bar { margin-bottom: 4px; }
  body.battle-active .card-num-badge { width: 22px; height: 22px; font-size: 0.68rem; }
  body.battle-active .card-group-pill { font-size: 0.66rem; padding: 2px 9px; }

  body.battle-active .artist-art-wrapper {
    height: clamp(72px, 13.5vh, 110px);
    width: clamp(72px, 13.5vh, 110px);
    border-radius: 12px;
    margin-bottom: 6px;
    flex-shrink: 0;
  }

  body.battle-active .artist-info { margin-bottom: 4px; gap: 1px; }
  body.battle-active .artist-name { font-size: 0.98rem; }
  body.battle-active .artist-fullname { font-size: 0.7rem; min-height: auto; }
  body.battle-active .artist-roles { display: none; }
  body.battle-active .choose-btn-pill { padding: 4px 16px; font-size: 0.72rem; }

  body.battle-active .vs-badge {
    width: 30px;
    height: 30px;
    min-height: 30px;
    font-size: 0.68rem;
    margin: -6px 0;
    z-index: 5;
  }

  body.battle-active .battle-controls { gap: 8px; flex-wrap: nowrap; }
  body.battle-active .battle-controls .btn { padding: 8px 10px; font-size: 0.76rem; flex: 1; white-space: nowrap; }
  body.battle-active .battle-controls .btn-subtle { flex: 0 0 auto; padding: 8px 8px; font-size: 0.74rem; }

  .keyboard-hints { display: none; }

  @keyframes exitWinElevateMobile {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 25px var(--accent-glow); z-index: 50; }
    100% { transform: scale(1.24); opacity: 0; box-shadow: 0 0 65px var(--accent-glow); filter: blur(2.5px); z-index: 50; }
  }

  @keyframes exitLoseFadeMobile {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.88); opacity: 0; filter: blur(4px); }
  }

  body.battle-active .card-exit-win-up { animation: exitWinElevateMobile 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards !important; }
  body.battle-active .card-exit-lose-left,
  body.battle-active .card-exit-lose-right { animation: exitLoseFadeMobile 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important; }

  /* Podium on mobile */
  .podium-section { grid-template-columns: 1fr; gap: 12px; }
  .podium-card { padding: 14px; flex-direction: row; gap: 14px; text-align: left; }
  .podium-gold { order: -1; }
  .podium-img-wrapper, .podium-gold .podium-img-wrapper { width: 62px; height: 62px; margin-bottom: 0; }
  .podium-stats { justify-content: flex-start; }

  .hero-headline { font-size: 1.9rem; }
  .header-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .header-nav-right {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    background: rgba(18, 21, 31, 0.97);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.65);
    z-index: 200;
    animation: modalPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .header-nav-right.menu-open {
    display: flex;
  }
  .header-nav-right .nav-home-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
  }
  .nav-home-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
    gap: 6px;
  }
  .album-fan {
    --fan-step-1: 60px;
    --fan-step-2: 114px;
    --fan-step-exit: 165px;
    height: 102px;
  }
  .fan-cover { width: 76px; height: 76px; border-radius: 12px; }
  .config-panel { padding: 14px; }
  .config-label { flex-direction: column; gap: 2px; }
  .start-cta-group { flex-direction: column; width: 100%; }
  .btn-cta-main, .btn-cta-resume { width: 100%; }
}


/* =========================================
   DAILY ALBUM & EP STREAMS REPORT CARD
   ========================================= */
.release-album-card {
  cursor: pointer;
  border-color: rgba(29, 185, 84, 0.28);
  background: linear-gradient(145deg, rgba(29, 185, 84, 0.08), rgba(16, 18, 24, 0.92));
}

.release-album-card:hover {
  border-color: rgba(30, 215, 96, 0.65);
  box-shadow: 0 10px 28px rgba(29, 185, 84, 0.16);
}

.release-report-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  background: rgba(29, 185, 84, 0.18);
  color: #4ade80;
  border: 1px solid rgba(29, 185, 84, 0.42);
}

.release-album-mini-stat {
  margin-top: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #4ade80;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.release-album-mini-total {
  color: var(--text-dim);
  font-weight: 600;
}

.album-reports-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.album-report-card {
  position: relative;
  background:
    radial-gradient(ellipse 65% 42% at 52% 0%, rgba(29, 185, 84, 0.16), transparent 68%),
    linear-gradient(180deg, #0d1115 0%, #090c10 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.album-report-header {
  display: grid;
  grid-template-columns: 224px 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.album-report-cover-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  align-self: end;
  border-radius: 16px;
  overflow: hidden;
  background: #141920;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

.album-report-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-report-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.album-report-cover-artist {
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.album-report-cover-underline {
  width: 66%;
  height: 3px;
  border-radius: 999px;
  background: #1ed760;
  margin-top: 6px;
  box-shadow: 0 0 10px rgba(30, 215, 96, 0.65);
}

.album-report-summary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.album-report-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.album-report-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.album-report-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.album-report-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  white-space: nowrap;
}

.album-report-title-actions .chart-platform-btn,
.album-report-png-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.album-report-png-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
}

.album-report-png-btn:hover:not(:disabled) {
  background: rgba(255, 42, 133, 0.22);
  border-color: #ff2a85;
  color: #ffffff;
  transform: translateY(-1px);
}

.album-report-png-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.album-report-accent-line {
  width: 150px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1ed760, rgba(30, 215, 96, 0));
  margin-top: 8px;
}

.album-report-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #94a3b8;
}

.album-report-kpis {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
}

.album-kpi-box {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.album-kpi-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}

.album-kpi-num {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 900;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.album-change-box {
  border-radius: 15px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.album-change-box.is-up {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-color: rgba(134, 239, 172, 0.45);
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.28);
}

.album-change-box.is-down {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: rgba(252, 165, 165, 0.45);
  box-shadow: 0 10px 26px rgba(239, 68, 68, 0.28);
}

.album-change-box.is-up .album-kpi-label,
.album-change-box.is-down .album-kpi-label {
  color: rgba(255, 255, 255, 0.88);
}

.album-change-val {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 900;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 5px;
}

.album-change-box.is-pending .album-change-val {
  font-size: 1.05rem;
  color: #94a3b8;
  font-weight: 700;
}

.album-change-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.album-change-box.is-pending .album-change-sub {
  color: #64748b;
  font-weight: 600;
}

.album-total-box {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.album-total-num {
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  font-weight: 900;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.album-total-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(30, 215, 96, 0.55);
  box-shadow: 0 0 22px rgba(30, 215, 96, 0.35);
  flex-shrink: 0;
}

/* Tracklist Table */
.album-report-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.album-report-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.album-report-table thead th {
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #7e8a9a;
  padding: 8px 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.album-report-table thead th.col-num { text-align: center; width: 38px; }
.album-report-table thead th.col-track { text-align: left; }
.album-report-table thead th.col-daily,
.album-report-table thead th.col-chg,
.album-report-table thead th.col-pct,
.album-report-table thead th.col-total { text-align: right; }

.album-report-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  transition: background 0.15s ease;
}

.album-report-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.album-report-table tbody td {
  padding: 11px 10px;
  font-size: 0.92rem;
  vertical-align: middle;
}

.album-report-table td.col-num {
  text-align: center;
  color: #64748b;
  font-weight: 700;
  font-size: 0.84rem;
}

.album-report-table td.col-track {
  font-weight: 700;
  color: #f8fafc;
  min-width: 170px;
}

.album-track-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.album-track-link:hover {
  color: #1ed760;
}

.album-report-table td.col-daily,
.album-report-table td.col-total {
  text-align: right;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
}

.album-report-table td.col-chg {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.album-report-table td.col-pct {
  text-align: right;
  white-space: nowrap;
  min-width: 96px;
}

.album-val-up { color: #22c55e; }
.album-val-down { color: #f87171; }
.album-val-muted { color: #64748b; }

.album-pct-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 78px;
}

.album-pct-text {
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
}

.album-pct-bar {
  width: 68px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.album-pct-fill {
  height: 100%;
  border-radius: 999px;
  background: #22c55e;
}

.album-pct-fill.is-down {
  background: #ef4444;
}

.album-report-table tfoot tr.album-report-total-row {
  background: rgba(255, 255, 255, 0.045);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.album-report-table tfoot td {
  padding: 13px 10px;
  font-size: 0.96rem;
  font-weight: 900;
  color: #ffffff;
}

.album-report-footnote {
  margin-top: 14px;
  font-size: 0.76rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Modal Shell for Album Report */
.album-modal-overlay {
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 16px 14px;
}

.album-modal-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  margin: auto;
}

.album-modal-shell .album-report-card {
  padding: 18px 22px;
  border-radius: 18px;
  max-height: calc(100vh - 34px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.album-modal-shell .album-report-card::-webkit-scrollbar {
  width: 6px;
}

.album-modal-shell .album-report-card::-webkit-scrollbar-track {
  background: transparent;
  margin: 12px 0;
}

.album-modal-shell .album-report-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.album-modal-shell .album-report-card::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

.album-modal-shell .album-report-header {
  grid-template-columns: 214px 1fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 14px;
}

.album-modal-shell .album-report-cover-wrap {
  width: 214px;
  height: 214px;
  aspect-ratio: 1 / 1;
  align-self: end;
  border-radius: 14px;
}

.album-modal-shell .album-report-cover-overlay {
  padding: 10px;
}

.album-modal-shell .album-report-cover-artist {
  font-size: 0.8rem;
}

.album-modal-shell .album-report-summary {
  gap: 9px;
}

.album-modal-shell .album-report-title {
  font-size: clamp(1.18rem, 2vw, 1.52rem);
}

.album-modal-shell .album-report-accent-line {
  width: 110px;
  margin-top: 5px;
}

.album-modal-shell .album-report-date {
  margin-top: 5px;
  font-size: 0.74rem;
}

.album-modal-shell .album-report-kpis {
  gap: 9px;
}

.album-modal-shell .album-kpi-box,
.album-modal-shell .album-change-box,
.album-modal-shell .album-total-box {
  padding: 9px 13px;
  border-radius: 12px;
}

.album-modal-shell .album-kpi-label {
  font-size: 0.64rem;
  margin-bottom: 2px;
}

.album-modal-shell .album-kpi-num {
  font-size: clamp(1.22rem, 2.1vw, 1.65rem);
}

.album-modal-shell .album-change-val {
  font-size: clamp(1.02rem, 1.8vw, 1.38rem);
}

.album-modal-shell .album-change-box.is-pending .album-change-val {
  font-size: 0.92rem;
}

.album-modal-shell .album-change-sub {
  font-size: 0.68rem;
}

.album-modal-shell .album-total-num {
  font-size: clamp(1.12rem, 1.9vw, 1.45rem);
}

.album-modal-shell .album-total-avatar {
  width: 42px;
  height: 42px;
}

.album-modal-shell .album-report-table thead th {
  padding: 6px 8px 8px;
  font-size: 0.64rem;
}

.album-modal-shell .album-report-table tbody td {
  padding: 6.5px 8px;
  font-size: 0.82rem;
}

.album-modal-shell .album-report-table tfoot td {
  padding: 9px 8px;
  font-size: 0.86rem;
}

.album-modal-shell .album-report-footnote {
  margin-top: 10px;
  font-size: 0.72rem;
}

.album-modal-close {
  position: absolute;
  top: 0;
  right: -46px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(14, 17, 22, 0.92);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: var(--transition);
}

@media (max-width: 840px) {
  .album-modal-overlay {
    padding-top: 52px;
  }

  .album-modal-close {
    top: -42px;
    right: 0;
  }
}

.album-modal-close:hover {
  background: rgba(255, 42, 133, 0.28);
  border-color: #ff2a85;
  color: #ffffff;
}

.album-modal-shell .album-report-title-row {
  padding-right: 0;
}

@media (max-width: 720px) {
  .album-report-card {
    padding: 16px;
    border-radius: 18px;
  }

  .album-report-header,
  .album-modal-shell .album-report-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .album-report-cover-wrap,
  .album-modal-shell .album-report-cover-wrap {
    width: 180px;
    height: 180px;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }

  .album-report-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .album-report-title-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .album-report-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .album-kpi-box,
  .album-change-box,
  .album-total-box {
    padding: 11px 13px;
  }

  .album-report-table tbody td,
  .album-report-table tfoot td {
    padding: 9px 7px;
    font-size: 0.82rem;
  }

  .album-report-table td.col-track {
    min-width: 135px;
  }
}


/* =========================================
   ALBUM STREAM REPORTS PAGE (/album-raporlari)
   ========================================= */
.releases-reports-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  background:
    radial-gradient(ellipse 60% 100% at 0% 50%, rgba(29, 185, 84, 0.18), transparent 70%),
    linear-gradient(135deg, rgba(20, 24, 30, 0.94), rgba(13, 17, 21, 0.96));
  border: 1px solid rgba(29, 185, 84, 0.35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  transition: var(--transition);
}

.releases-reports-banner:hover {
  border-color: rgba(30, 215, 96, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(29, 185, 84, 0.18);
}

.releases-reports-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.releases-reports-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(29, 185, 84, 0.16);
  border: 1px solid rgba(29, 185, 84, 0.42);
  color: #1ed760;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.releases-reports-banner-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.releases-reports-banner-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.35;
}

.releases-reports-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #1db954;
  color: #06130b;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.releases-reports-banner:hover .releases-reports-banner-cta {
  background: #1ed760;
  box-shadow: 0 0 18px rgba(30, 215, 96, 0.45);
}

.album-reports-top-bar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.album-back-btn {
  padding: 7px 14px;
  font-size: 0.8rem;
  text-decoration: none;
}

.album-reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 18px;
}

.album-tile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(29, 185, 84, 0.11), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.album-tile-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 215, 96, 0.65);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 22px rgba(29, 185, 84, 0.14);
}

.album-tile-cover-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #12161c;
  overflow: hidden;
}

.album-tile-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.album-tile-card:hover .album-tile-cover {
  transform: scale(1.04);
}

.album-tile-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(10, 12, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.album-tile-pct-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(8px);
}

.album-tile-pct-badge.is-up {
  background: rgba(22, 163, 74, 0.9);
  color: #ffffff;
}

.album-tile-pct-badge.is-down {
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
}

.album-tile-body {
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.album-tile-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-tile-artist {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.album-tile-stats {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.album-tile-stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.album-tile-stat-val {
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 1px;
}

.album-tile-stat-val.is-daily {
  color: #4ade80;
}

@media (max-width: 640px) {
  .releases-reports-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .releases-reports-banner-cta {
    width: 100%;
    justify-content: center;
  }

  .album-reports-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .album-tile-body {
    padding: 11px 12px 12px;
  }

  .album-tile-title {
    font-size: 0.88rem;
  }
}


/* =========================================
   ARTISTS DIRECTORY (GROUPS & SOLO CARDS)
   ========================================= */
.directory-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 18px;
}

.roster-profile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.roster-profile-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 42, 133, 0.6);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 22px rgba(255, 42, 133, 0.14);
}

.roster-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #13161d;
  overflow: hidden;
}

.roster-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.35s ease;
}

.roster-profile-card:hover .roster-card-img {
  transform: scale(1.05);
}

.roster-card-img-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(8, 10, 14, 0.9) 100%);
  pointer-events: none;
}

.roster-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  background: rgba(10, 12, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  backdrop-filter: blur(8px);
}

.roster-card-body {
  padding: 13px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.roster-card-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.roster-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.roster-card-ml {
  margin-top: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #4ade80;
  font-variant-numeric: tabular-nums;
}

/* Global Member Detail Modal (used on Group Profile pages) */
.artist-member-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1200 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  width: 100% !important;
  max-width: none !important;
  top: 0 !important;
}

.artist-member-modal.hidden {
  display: none !important;
}

.artist-member-modal .artist-detail-backdrop {
  display: block !important;
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(8px);
}

.artist-member-modal .artist-detail-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background:
    radial-gradient(ellipse 75% 55% at 18% 8%, color-mix(in srgb, var(--member-color, var(--accent)) 22%, transparent), transparent 68%),
    radial-gradient(ellipse 65% 50% at 88% 92%, color-mix(in srgb, var(--member-color, var(--accent)) 14%, transparent), transparent 70%),
    linear-gradient(170deg, rgba(18, 21, 30, 0.96), rgba(11, 13, 19, 0.98));
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

#profile-members-grid .artist-tile {
  background:
    radial-gradient(ellipse 85% 65% at 50% 0%, color-mix(in srgb, var(--member-color, var(--accent)) 18%, transparent), transparent 72%),
    var(--bg-card);
}

#profile-members-grid .artist-tile:hover {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, color-mix(in srgb, var(--member-color, var(--accent)) 28%, transparent), transparent 75%),
    var(--bg-card-hover);
}

.artist-member-modal .artist-detail-card::-webkit-scrollbar {
  width: 6px;
}

.artist-member-modal .artist-detail-card::-webkit-scrollbar-track {
  background: transparent;
}

.artist-member-modal .artist-detail-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.detail-hero-photo-wrap {
  width: 100%;
  height: 355px;
  border-radius: 16px;
  overflow: hidden;
  background: #14171f;
  border: 1px solid color-mix(in srgb, var(--member-color, var(--accent)) 45%, rgba(255, 255, 255, 0.12));
  margin-bottom: 16px;
}

.detail-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.detail-name-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.detail-name-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-name-left .detail-name {
  margin: 0;
}

.detail-name-left .detail-fullname {
  margin: 3px 0 0;
}

.detail-header-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.detail-header-socials .profile-social-pill {
  height: 32px;
  padding: 0 11px;
  font-size: 0.75rem;
}

.detail-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 14px;
}

.detail-bottom-grid .detail-info-grid {
  margin-bottom: 0;
}

.detail-col-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.detail-about-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 15px 17px;
  flex: 1;
}

.detail-about-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.detail-about-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.detail-about-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.66;
  color: #cbd5e1;
}

@media (max-width: 720px) {
  .artist-member-modal {
    padding: 14px 12px;
  }

  .artist-member-modal .artist-detail-card {
    max-width: 440px;
    max-height: 82vh;
    max-height: 82dvh;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .detail-hero-photo-wrap {
    height: 225px;
    margin-bottom: 12px;
  }

  .detail-header-socials {
    justify-content: flex-start;
  }

  .detail-bottom-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* =========================================
   GROUP & SOLO PROFILE PAGE (/artistler/:slug)
   ========================================= */
.app-header {
  position: relative;
  z-index: 50;
}

#screen-artist-profile {
  position: relative;
  z-index: 1;
}

#screen-artist-profile .album-reports-top-bar {
  position: relative;
  z-index: 3;
}

.profile-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  padding: 12px 0 38px;
  margin-bottom: 24px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.profile-hero-card > * {
  position: relative;
  z-index: 1;
}

.profile-hero-card::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  width: 100vw;
  bottom: 0;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 56% 72% at 22% 42%, rgba(var(--hero-c1, 255, 42, 133), 0.36), transparent 70%),
    radial-gradient(ellipse 52% 68% at 82% 32%, rgba(var(--hero-c2, 0, 229, 255), 0.28), transparent 70%),
    linear-gradient(180deg, rgba(var(--hero-c1, 255, 42, 133), 0.14) 0%, rgba(14, 17, 24, 0.22) 68%, rgba(10, 11, 14, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 68%, transparent 100%);
  transition: opacity 0.35s ease;
}

.profile-hero-avatar-wrap {
  width: 220px;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  background: #14171f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.profile-hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.profile-hero-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.profile-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-hero-name {
  margin: 0;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
}

.profile-stat-box {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  padding: 11px 14px;
}

.profile-stat-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3px;
}

.profile-stat-val {
  font-size: 1.04rem;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-stat-val.is-spotify { color: #4ade80; }
.profile-stat-val.is-youtube { color: #ff6b6b; }

.profile-socials-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #e2e8f0;
  transition: var(--transition);
}

.profile-social-pill:hover {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.profile-social-pill.is-spotify:hover { background: #1db954; border-color: #1db954; color: #06130b; }
.profile-social-pill.is-youtube:hover { background: #ff2e2e; border-color: #ff2e2e; color: #ffffff; }
.profile-social-pill.is-instagram:hover { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); border-color: #dd2a7b; color: #ffffff; }
.profile-social-pill.is-tiktok:hover { background: #00f2ea; border-color: #00f2ea; color: #090b10; }
.profile-social-pill.is-twitter:hover { background: #ffffff; border-color: #ffffff; color: #0a0b0e; }

.profile-section {
  margin-bottom: 30px;
}

.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.profile-bio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 20px 22px;
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1.7;
}

.profile-bio-card p {
  margin: 0 0 12px;
}

.profile-bio-card p:last-child {
  margin-bottom: 0;
}

.profile-bio-source {
  margin-top: 12px;
  font-size: 0.74rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-solo-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.profile-disco-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-disco-report-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.36);
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.profile-disco-report-btn:hover {
  background: #1db954;
  border-color: #1db954;
  color: #06130b;
}

/* Videography Grid */
.profile-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.profile-video-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 59, 59, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.profile-video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #101319;
  overflow: hidden;
}

.profile-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.profile-video-card:hover .profile-video-thumb {
  transform: scale(1.04);
}

.profile-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease;
}

.profile-video-card:hover .profile-video-play {
  background: rgba(0, 0, 0, 0.08);
}

.profile-video-play-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 42, 42, 0.9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}

.profile-video-card:hover .profile-video-play-circle {
  transform: scale(1.1);
}

.profile-video-cat-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: rgba(10, 12, 16, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  backdrop-filter: blur(6px);
}

.profile-video-cat-badge.cat-mv { border-color: rgba(255, 42, 133, 0.6); color: #ff7ab5; }
.profile-video-cat-badge.cat-dance { border-color: rgba(0, 229, 255, 0.55); color: #38bdf8; }
.profile-video-cat-badge.cat-practice { border-color: rgba(251, 191, 36, 0.55); color: #fbbf24; }
.profile-video-cat-badge.cat-live { border-color: rgba(34, 197, 94, 0.55); color: #4ade80; }
.profile-video-cat-badge.cat-vis { border-color: rgba(168, 85, 247, 0.6); color: #c084fc; }

.profile-video-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.profile-video-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-video-meta {
  margin-top: auto;
  font-size: 0.74rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 820px) {
  .profile-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 8px 0 28px;
  }

  .profile-hero-avatar-wrap {
    width: 170px;
    height: 170px;
    margin: 0 auto;
  }

  .profile-hero-badges,
  .profile-socials-row {
    justify-content: center;
  }

  .profile-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-stats-grid .profile-stat-box:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.profile-disco-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-inline-search {
  min-width: 190px;
  max-width: 240px;
  padding: 6px 12px;
}

.profile-inline-search input {
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .profile-inline-search {
    min-width: 0;
    max-width: none;
    width: 100%;
    flex: 1 1 100%;
  }
}

.mobile-view-toggle {
  display: none;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 2px;
  gap: 2px;
}

.view-toggle-btn {
  width: 30px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.view-toggle-btn.active {
  background: rgba(255, 42, 133, 0.22);
  color: #ffffff;
}

@media (max-width: 640px) {
  .mobile-view-toggle {
    display: inline-flex;
  }

  .profile-disco-controls {
    width: 100%;
    justify-content: space-between;
  }

  .directory-roster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .roster-card-body {
    padding: 10px 11px 12px;
  }

  .roster-card-name {
    font-size: 0.94rem;
  }

  #profile-disco-grid.releases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #profile-disco-grid.releases-grid.is-list-view {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #profile-disco-grid:not(.is-list-view) .release-card {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 8px;
  }

  #profile-disco-grid:not(.is-list-view) .release-cover-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  #profile-disco-grid:not(.is-list-view) .release-title {
    font-size: 0.84rem;
  }

  #profile-disco-grid:not(.is-list-view) .release-meta {
    font-size: 0.7rem;
  }

  .profile-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .profile-video-play-circle {
    width: 34px;
    height: 34px;
  }

  .profile-video-play-circle svg {
    width: 15px;
    height: 15px;
  }

  .profile-video-cat-badge {
    top: 6px;
    left: 6px;
    padding: 2px 7px;
    font-size: 0.56rem;
  }

  .profile-video-body {
    padding: 9px 10px 10px;
    gap: 4px;
  }

  .profile-video-title {
    font-size: 0.78rem;
  }

  .profile-video-meta {
    font-size: 0.66rem;
  }
}
