/* Artist Scout - Premium Design System (Hardgraft Aesthetic) */

/* Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  /* Design Tokens - Light Theme (Default) */
  --bg-color: #f7f6f3;       /* Warm matte cream */
  --text-main: #121212;      /* Off-black carbon */
  --text-muted: #6e6b64;     /* Medium warm grey */
  --border-color: #e2ded5;   /* Fine tactile border */
  --border-muted: #eae7df;   /* Subtler inner borders */
  --accent-color: #9c7c4b;   /* Warm Tuscan leather gold */
  --accent-hover: #7d6136;   /* Darker leather */
  --accent-light: #f1ebd9;   /* Soft warm background highlight */
  --panel-bg: #ffffff;       /* Pure white panels */
  --panel-hover: #faf9f6;    /* Light panel hover */
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.02), 0 2px 6px rgba(0, 0, 0, 0.02);
  --font-sans: 'Courier Prime', Courier, monospace;
  --font-mono: 'Space Mono', monospace;
  --transition-speed: 0.3s;
  --transition-bezier: cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] {
  /* Design Tokens - Dark Theme */
  --bg-color: #0f0f10;       /* Rich carbon black */
  --text-main: #f5f4f0;      /* Warm off-white */
  --text-muted: #8e8b82;     /* Medium carbon grey */
  --border-color: #242426;   /* Fine dark border */
  --border-muted: #1d1d1f;   /* Subtler dark inner borders */
  --accent-color: #c5a880;   /* Light leather gold */
  --accent-hover: #dfc7a6;   /* Pale gold */
  --accent-light: #1c1a16;   /* Dark gold accent glow */
  --panel-bg: #151517;       /* Matte charcoal panels */
  --panel-hover: #1b1b1e;    /* Dark panel hover */
  --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-speed) var(--transition-bezier),
              color var(--transition-speed) var(--transition-bezier);
  position: relative;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  line-height: 1.6;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-bezier);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Layout Framework - Hardgraft Minimalist Grid */
.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.border-bottom {
  border-bottom: 1px solid var(--border-color);
}
.border-top {
  border-top: 1px solid var(--border-color);
}
.border-left {
  border-left: 1px solid var(--border-color);
}
.border-right {
  border-right: 1px solid var(--border-color);
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  background-color: var(--accent-color);
  width: 28px;
  height: 28px;
  border-radius: 2px;
  display: inline-block;
  transition: transform 0.4s var(--transition-bezier);
}
.logo-area:hover .logo-icon {
  transform: rotate(45deg);
}

.logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
}

.logo-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background-color: var(--accent-light);
  color: var(--accent-color);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  border: 1px solid var(--border-color);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--transition-bezier);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--text-main);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-btn {
  background: none;
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  color: var(--text-main);
  transition: all var(--transition-speed) var(--transition-bezier);
}

.theme-btn:hover {
  border-color: var(--accent-color);
  background-color: var(--panel-hover);
  transform: translateY(-1px);
}

.theme-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

html[data-theme="dark"] .sun-icon { display: block; }
html[data-theme="dark"] .moon-icon { display: none; }
html[data-theme="light"] .sun-icon { display: none; }
html[data-theme="light"] .moon-icon { display: block; }

/* Main Content Area */
main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Section Grid Layout */
.section-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 992px) {
  .section-grid {
    grid-template-columns: 1fr;
  }
}

.panel {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 640px) {
  .panel {
    padding: 2rem 1.5rem;
  }
}

/* Editorial Hero Header */
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 1rem;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mono-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  color: var(--text-main);
  font-weight: 700;
}

.hero-headline span {
  display: block;
}

.hero-headline em {
  font-style: italic;
  font-weight: 300;
  font-family: var(--font-sans);
  color: var(--text-muted);
}

.description-box {
  max-width: 550px;
  margin-bottom: 3rem;
}

.description-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-bezier);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

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

.btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  border-color: var(--text-main);
  background-color: var(--panel-hover);
  transform: translateY(-2px);
}

.btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  fill: none;
  stroke: currentColor;
}

/* Feature Showcase Grid (Hardgraft lookbook grid) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 2.5rem;
  background-color: var(--panel-bg);
  transition: all var(--transition-speed) var(--transition-bezier);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.feature-card:not(:last-child) {
  border-right: 1px solid var(--border-color);
}

@media (max-width: 640px) {
  .feature-card:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

.feature-card:hover {
  background-color: var(--panel-hover);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: block;
}

.feature-title {
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Mock Search Demo Panel */
.demo-panel {
  background-color: var(--panel-bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 500px;
}

.demo-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981; /* Green */
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.demo-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Search Bar Component */
.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input-container {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-color);
  transition: all var(--transition-speed) var(--transition-bezier);
  overflow: hidden;
}

.search-input-container:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px var(--accent-color);
}

.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.search-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
}

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

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 50;
  display: none;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.suggestion-item {
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s;
}

.suggestion-item:hover {
  background-color: var(--panel-hover);
}

.suggestion-name {
  font-weight: 600;
  color: var(--text-main);
}

.suggestion-genre {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-color);
  text-transform: uppercase;
}

/* Artist Card result (Hardgraft Product Detail Card style) */
.artist-result-card {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s var(--transition-bezier);
  display: none; /* Controlled by JS */
}

.artist-result-card.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.artist-profile-header {
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  border-bottom: 1px solid var(--border-muted);
  background-color: var(--panel-hover);
}

.artist-avatar-container {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.artist-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-info-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.artist-name {
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.artist-genres {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.genre-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background-color: var(--bg-color);
  color: var(--text-muted);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  border: 1px solid var(--border-muted);
  text-transform: uppercase;
}

/* Stats Details Grid */
.artist-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--border-muted);
}

.stat-box {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.stat-box:first-child {
  border-right: 1px solid var(--border-muted);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-growth {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #10b981; /* green */
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-growth.negative {
  color: #ef4444;
}

/* Chart Container */
.chart-panel {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-muted);
}

.chart-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
}

.chart-placeholder {
  height: 90px;
  width: 100%;
  position: relative;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-line {
  stroke: var(--accent-color);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawLine 2s forwards ease-in-out;
}

.chart-area {
  fill: url(#gradient-accent);
  opacity: 0.1;
  animation: fadeIn 1s 0.5s forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
  to { opacity: 0.15; }
}

/* Contact / Outreach Card Footer */
.outreach-box {
  padding: 1.5rem;
  background-color: var(--bg-color);
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-channel svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.contact-handle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-color);
}

.outreach-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.btn-outreach {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.5rem;
}

/* Empty Demo Placeholder State */
.demo-placeholder-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1.5rem;
  border: 1px dashed var(--border-color);
  border-radius: 4px;
  transition: border-color 0.3s;
}

.demo-placeholder-state:hover {
  border-color: var(--accent-color);
}

.placeholder-icon {
  margin-bottom: 1.25rem;
  color: var(--border-color);
  transition: color 0.3s;
}

.demo-placeholder-state:hover .placeholder-icon {
  color: var(--accent-color);
}

.placeholder-icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.placeholder-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.placeholder-desc {
  font-size: 0.8rem;
  max-width: 280px;
  line-height: 1.5;
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--text-main);
  color: var(--bg-color);
  padding: 0.85rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 100;
  opacity: 0;
  transition: all 0.4s var(--transition-bezier);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast-msg.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-msg svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* Interactive Lookbook Gallery Section */
.lookbook-section {
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
  .lookbook-section {
    grid-template-columns: 1fr;
  }
}

.lookbook-item {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  transition: background-color var(--transition-speed) var(--transition-bezier);
}

.lookbook-item:not(:last-child) {
  border-right: 1px solid var(--border-color);
}

@media (max-width: 992px) {
  .lookbook-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

.lookbook-item:hover {
  background-color: var(--panel-hover);
}

.lookbook-item-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lookbook-art-placeholder {
  width: 100%;
  height: 150px;
  background-color: var(--accent-light);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lookbook-art-svg {
  width: 80%;
  height: 80%;
  opacity: 0.45;
  color: var(--accent-color);
}

.lookbook-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lookbook-item-title {
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--text-main);
}

.lookbook-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-color);
  padding: 3rem 2rem;
  width: 100%;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-column-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-bottom {
  max-width: 1400px;
  margin: 2rem auto 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* Top 10 Artists Styles */
.artist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--panel-bg);
  transition: all var(--transition-speed) var(--transition-bezier);
}

.artist-row:hover {
  background-color: var(--panel-hover);
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

.artist-row-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.artist-rank {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-color);
  font-weight: 700;
  min-width: 18px;
}

.artist-row-avatar {
  width: 28px;
  height: 28px;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid var(--border-muted);
}

.artist-row-name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.artist-row-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.artist-trend-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  padding: 0.15rem 0.35rem;
  border-radius: 2px;
  border: 1px solid var(--border-color);
  min-width: 32px;
  text-align: center;
  font-weight: 700;
}

.trend-up {
  color: #10b981;
  background-color: var(--bg-color);
  border-color: rgba(16, 185, 129, 0.2);
}

.trend-down {
  color: #ef4444;
  background-color: var(--bg-color);
  border-color: rgba(239, 68, 68, 0.2);
}

.trend-same {
  color: var(--text-muted);
  background-color: var(--bg-color);
  border-color: var(--border-muted);
}

/* ============================================
   PREMIUM CHART LEADERBOARD
   ============================================ */

/* Chart Header */
.chart-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 0.25rem;
  width: 100%;
}

.chart-header-left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.5rem;
}

.chart-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  background: #10b981;
  color: #fff;
  line-height: 1;
  animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.chart-update {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.chart-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

/* Chart List Container */
.chart-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px;
  width: 100%;
}

/* ---- Individual Chart Row ---- */
.chart-list > a.chart-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem;
  text-decoration: none !important;
  color: inherit;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  border: 1px solid transparent;
  min-height: 44px;
}

.chart-list > a.chart-row:hover {
  background: var(--panel-hover);
  border-color: var(--border-color);
  transform: translateX(3px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Gold #1 Row */
.chart-list > a.chart-row.chart-row--gold {
  background: linear-gradient(135deg, rgba(197, 168, 128, 0.1) 0%, rgba(197, 168, 128, 0.02) 100%);
  border: 1px solid rgba(197, 168, 128, 0.2);
}

.chart-list > a.chart-row.chart-row--gold:hover {
  background: linear-gradient(135deg, rgba(197, 168, 128, 0.18) 0%, rgba(197, 168, 128, 0.05) 100%);
  border-color: rgba(197, 168, 128, 0.4);
  box-shadow: 0 4px 24px rgba(197, 168, 128, 0.12);
}

.chart-row--gold .chart-rank {
  color: var(--accent-color) !important;
  text-shadow: 0 0 10px rgba(197, 168, 128, 0.35);
}

.chart-row--gold .chart-name {
  color: var(--accent-color) !important;
}

.chart-row--gold .chart-avatar {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.3);
}

.chart-row--gold .chart-bar {
  background: linear-gradient(90deg, var(--accent-color), #e8c87a) !important;
  opacity: 0.6 !important;
}

/* --- Rank Number --- */
.chart-rank {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 22px;
  text-align: right;
  flex-shrink: 0;
  line-height: 1;
}

/* --- Circular Avatar --- */
.chart-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chart-row:hover .chart-avatar {
  border-color: var(--accent-color);
}

/* --- Artist Info Column --- */
.chart-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px;
  min-width: 90px;
  max-width: 130px;
  flex-shrink: 0;
  overflow: hidden;
}

.chart-name {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.chart-row:hover .chart-name {
  color: var(--accent-color);
}

.chart-listeners {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1;
}

/* --- Popularity Bar --- */
.chart-bar-wrap {
  flex: 1 1 auto;
  height: 4px;
  background: var(--border-muted);
  border-radius: 4px;
  overflow: hidden;
  min-width: 30px;
}

.chart-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--text-muted));
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

.chart-row:hover .chart-bar {
  opacity: 0.55;
}

/* --- Trend Arrow --- */
.chart-trend {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.chart-trend.trend-up {
  color: #10b981;
  background: none;
  border: none;
  padding: 0;
}

.chart-trend.trend-down {
  color: #ef4444;
  background: none;
  border: none;
  padding: 0;
}

.chart-trend.trend-same {
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
}


