:root {
  /* Dark Theme Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a25;
  --bg-card: rgba(25, 25, 35, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);

  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6a6a7a;

  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);

  --highlight-youtube: #ff0000;
  --highlight-spotify: #1db954;
  --highlight-instagram: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --highlight-tiktok: #fe2c55;
  --highlight-twitter: #1da1f2;
  --highlight-twitch: #9146ff;

  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --glow-primary: rgba(99, 102, 241, 0.4);
  --glow-secondary: rgba(139, 92, 246, 0.3);

  /* Legacy support */
  --primary-color: #ffffff;
  --secondary-color: #ffffff;
  --highlight-color: #6366f1;
  --highlight-color-spotify: #1db954;
  --highlight-color--hover: #8b5cf6;
  --highlight-color-spotify--hover: #1ed760;
}

/* Global Animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px var(--glow-primary);
  }

  50% {
    box-shadow: 0 0 40px var(--glow-secondary), 0 0 60px var(--glow-primary);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes borderGlow {

  0%,
  100% {
    border-color: var(--accent-primary);
  }

  50% {
    border-color: var(--accent-secondary);
  }
}

@keyframes flash {
  0% {
    color: white;
  }

  50% {
    color: #1db954;
  }

  100% {
    color: white;
  }
}

.flash-update {
  animation: flash 1s;
}

/* Loader */
.loader {
  width: 60px;
  height: 60px;
  border: 4px solid var(--bg-tertiary);
  border-top: 4px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
  margin-top: 15%;
  box-shadow: 0 0 30px var(--glow-primary);
}

.twitchLoader {
  border-top-color: var(--highlight-twitch);
  box-shadow: 0 0 30px rgba(145, 70, 255, 0.4);
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at top, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Header Container */
.header-container {
  display: flex;
  align-items: center;
  padding: 14px 30px;
  justify-content: flex-end;
  margin-bottom: -37px;
  position: relative;
  z-index: 100;
}

.logreg .header-container {
  width: 97%;
  margin-top: 5px;
}

/* Header Links */
.header-link {
  margin-left: 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.header-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: 8px;
}

.header-link:hover {
  color: var(--text-primary);
}

.header-link:hover::before {
  opacity: 0.15;
}

/* Admin Link - Special Style */
.header-link-admin {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  padding: 8px 16px !important;
  color: #a5b4fc !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-link-admin::before {
  display: none;
}

.header-link-admin:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
  border-color: rgba(99, 102, 241, 0.5);
  color: #c7d2fe !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.header-link-admin i {
  font-size: 12px;
}

/* Logout Button - Subtle Style */
.logout-button {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  margin: 4px 2px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logout-button:hover {
  transform: translateY(-2px);
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 40px;
  animation: fadeIn 0.6s ease-out;
}

/* Channel Info */
.channel-info {
  margin-bottom: 50px;
  animation: slideUp 0.6s ease-out;
}

.channel-info h1 {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: var(--text-primary);
  margin-top: 8px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Back Link */
a.backToOverview {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 2px 34px;
  font-size: 1.1em;
  color: var(--accent-primary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

a.backToOverview:hover {
  color: var(--accent-secondary);
  transform: translateX(-5px);
}

/* Statistics Grid */
.statistics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.statistics p {
  font-size: 1.15em;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px;
  border-radius: 16px;
  color: var(--text-primary);
  text-align: center;
  line-height: 50px;
  cursor: default;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.statistics p::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.statistics p:hover::before {
  opacity: 1;
}

.spotify {
  grid-template-columns: repeat(2, 1fr);
}

.spotify p {
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.15) 0%, rgba(29, 185, 84, 0.05) 100%);
  border-color: rgba(29, 185, 84, 0.3);
}

.spotify p::before {
  background: var(--highlight-spotify);
}

.statistics p:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
  border-color: var(--accent-primary);
}

.spotify p:hover,
#topSongs li:hover,
#nfinderlist li:hover {
  box-shadow: 0 15px 40px rgba(29, 185, 84, 0.25);
  border-color: var(--highlight-spotify);
}

#topSongs li:hover {
  transform: translateY(-8px) scale(1.02);
}

.statistics p strong {
  font-weight: 600;
}

/* ===============================================
   PLATFORM STATS GRID - User Statistics Page
   =============================================== */

.channel-title {
  font-size: 2.5em;
  font-weight: 800;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--text-primary) -43%, var(--accent-primary) 93%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.platform-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.platform-stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 24px 28px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  gap: 24px;
  align-items: center;
  min-height: 130px;
}

.platform-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
  transition: all 0.3s ease;
}

.platform-stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.platform-stat-card:hover::after {
  opacity: 1;
}

.platform-stat-card:hover {
  transform: translateY(-5px);
}

.platform-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.platform-icon svg {
  width: 26px;
  height: 26px;
}

.platform-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

.platform-stat-card:hover .platform-icon::before {
  opacity: 0.4;
}

.platform-stats-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.platform-stats-content h3 {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.stat-items {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  align-items: flex-start;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 80px;
  flex: 0 0 auto;
}

.stat-item i {
  display: none;
  /* Icon wird jetzt in small angezeigt */
}

.stat-item span {
  font-size: 1.4em;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--text-primary);
}

/* Growth badge should not inherit stat-item span styles */
.stat-item span .growth-badge,
.stat-item .growth-badge {
  font-size: 0.45em;
  font-weight: 600;
  padding: 2px 5px;
  vertical-align: middle;
}

.stat-item .stat-name {
  font-size: 1em !important;
  font-weight: 600 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.stat-item small {
  font-size: 0.9em;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-item small i {
  display: inline-block;
  font-size: 0.9em;
  opacity: 0.8;
}

/* Top Songs Container */
#topSongs {
  padding: 20px;
}

#topSongs h2 {
  margin-bottom: 15px;
}

#topSongs ol {
  padding-left: 25px;
  margin: 0;
}

#topSongs li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

#topSongs li:last-child {
  border-bottom: none;
}

#topSongs li a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

#topSongs li a:hover {
  color: #1db954;
}

/* Live Badge for Twitch */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 0, 0, 0.2);
  color: #ff4444;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7em;
  font-weight: 700;
  margin-left: 8px;
  animation: pulse 2s infinite;
}

/* YouTube Card */
.youtube-card {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.08) 0%, var(--bg-card) 100%);
  border-color: rgba(255, 0, 0, 0.2);
}

.youtube-card::before {
  background: linear-gradient(90deg, #ff0000, #ff4444);
}

.youtube-card:hover {
  box-shadow: 0 20px 50px rgba(255, 0, 0, 0.15), 0 0 30px rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.4);
}

.youtube-card .platform-icon {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.3) 0%, rgba(255, 0, 0, 0.1) 100%);
  color: #ff0000;
}

.youtube-card .platform-icon::before {
  background: radial-gradient(circle, #ff0000 0%, transparent 70%);
}

.youtube-card .stat-item i,
.youtube-card .platform-stats-content h3 {
  color: #ff4444;
}

/* Spotify Card */
.spotify-card {
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.08) 0%, var(--bg-card) 100%);
  border-color: rgba(29, 185, 84, 0.2);
}

.spotify-card::before {
  background: linear-gradient(90deg, #1db954, #1ed760);
}

.spotify-card:hover {
  box-shadow: 0 20px 50px rgba(29, 185, 84, 0.15), 0 0 30px rgba(29, 185, 84, 0.1);
  border-color: rgba(29, 185, 84, 0.4);
}

.spotify-card .platform-icon {
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.3) 0%, rgba(29, 185, 84, 0.1) 100%);
  color: #1db954;
}

.spotify-card .platform-icon::before {
  background: radial-gradient(circle, #1db954 0%, transparent 70%);
}

.spotify-card .stat-item i,
.spotify-card .platform-stats-content h3 {
  color: #1db954;
}

/* Instagram Card */
.instagram-card {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.08) 0%, rgba(131, 58, 180, 0.05) 50%, var(--bg-card) 100%);
  border-color: rgba(225, 48, 108, 0.2);
}

.instagram-card::before {
  background: linear-gradient(90deg, #833ab4, #fd1d1d, #fcb045);
}

.instagram-card:hover {
  box-shadow: 0 20px 50px rgba(225, 48, 108, 0.15), 0 0 30px rgba(131, 58, 180, 0.1);
  border-color: rgba(225, 48, 108, 0.4);
}

.instagram-card .platform-icon {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.3) 0%, rgba(225, 48, 108, 0.2) 50%, rgba(252, 176, 69, 0.1) 100%);
  color: #e1306c;
}

.instagram-card .platform-icon::before {
  background: radial-gradient(circle, #e1306c 0%, transparent 70%);
}

.instagram-card .stat-item i,
.instagram-card .platform-stats-content h3 {
  color: #e1306c;
}

/* TikTok Card */
.tiktok-card {
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.08) 0%, rgba(0, 242, 234, 0.03) 100%);
  border-color: rgba(254, 44, 85, 0.2);
}

.tiktok-card::before {
  background: linear-gradient(90deg, #fe2c55, #00f2ea);
}

.tiktok-card:hover {
  box-shadow: 0 20px 50px rgba(254, 44, 85, 0.15), 0 0 30px rgba(0, 242, 234, 0.1);
  border-color: rgba(254, 44, 85, 0.4);
}

.tiktok-card .platform-icon {
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.3) 0%, rgba(0, 242, 234, 0.1) 100%);
  color: #fe2c55;
}

.tiktok-card .platform-icon::before {
  background: radial-gradient(circle, #fe2c55 0%, transparent 70%);
}

.tiktok-card .stat-item i,
.tiktok-card .platform-stats-content h3 {
  color: #fe2c55;
}

/* Twitch Card */
.twitch-card {
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.08) 0%, var(--bg-card) 100%);
  border-color: rgba(145, 70, 255, 0.2);
}

.twitch-card::before {
  background: linear-gradient(90deg, #9146ff, #772ce8);
}

.twitch-card:hover {
  box-shadow: 0 20px 50px rgba(145, 70, 255, 0.15), 0 0 30px rgba(145, 70, 255, 0.1);
  border-color: rgba(145, 70, 255, 0.4);
}

.twitch-card .platform-icon {
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.3) 0%, rgba(145, 70, 255, 0.1) 100%);
  color: #9146ff;
}

.twitch-card .platform-icon::before {
  background: radial-gradient(circle, #9146ff 0%, transparent 70%);
}

.twitch-card .stat-item i,
.twitch-card .platform-stats-content h3 {
  color: #9146ff;
}

/* Twitter/X Card */
.twitter-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, var(--bg-card) 100%);
  border-color: rgba(255, 255, 255, 0.15);
}

.twitter-card::before {
  background: linear-gradient(90deg, #fff, #aaa);
}

.twitter-card:hover {
  box-shadow: 0 20px 50px rgba(255, 255, 255, 0.08), 0 0 30px rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.twitter-card .platform-icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: #fff;
}

.twitter-card .platform-icon::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
}

.twitter-card .stat-item i,
.twitter-card .platform-stats-content h3 {
  color: #fff;
}

/* Top Songs Section - Enhanced */
.top-songs-section {
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.1) 0%, var(--bg-card) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 35px;
  margin: 40px 0;
  border: 1px solid rgba(29, 185, 84, 0.2);
  position: relative;
  overflow: hidden;
}

.top-songs-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1db954, #1ed760);
}

.top-songs-section h2 {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1db954;
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-songs-section h2::before {
  content: '';
  font-family: 'Font Awesome 6 Brands';
  font-size: 1.2em;
}

/* Descriptions Section */
.descriptions-section {
  margin-top: 50px;
}

.section-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-title i {
  color: var(--accent-primary);
  opacity: 0.8;
}

/* ===============================================
   DESCRIPTION CARDS
   =============================================== */
.descriptions-section {
  margin-top: 40px;
}

.description-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.description-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.description-card:hover {
  transform: translateY(-2px);
}

/* YouTube Description */
.description-card.youtube-desc {
  border-color: rgba(255, 0, 0, 0.2);
}

.description-card.youtube-desc:hover {
  border-color: rgba(255, 0, 0, 0.4);
}

.youtube-desc .description-header {
  background: rgba(255, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 0, 0, 0.2);
}

.youtube-desc .description-header i {
  color: #ff0000;
}

/* Instagram Description */
.description-card.instagram-desc {
  border-color: rgba(225, 48, 108, 0.2);
}

.description-card.instagram-desc:hover {
  border-color: rgba(225, 48, 108, 0.4);
}

.instagram-desc .description-header {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.15) 0%, rgba(225, 48, 108, 0.1) 100%);
  border-bottom: 1px solid rgba(225, 48, 108, 0.2);
}

.instagram-desc .description-header i {
  color: #e1306c;
}

/* TikTok Description */
.description-card.tiktok-desc {
  border-color: rgba(254, 44, 85, 0.2);
}

.description-card.tiktok-desc:hover {
  border-color: rgba(254, 44, 85, 0.4);
}

.tiktok-desc .description-header {
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.15) 0%, rgba(0, 242, 234, 0.05) 100%);
  border-bottom: 1px solid rgba(254, 44, 85, 0.2);
}

.tiktok-desc .description-header i {
  color: #fe2c55;
}

/* Twitter Description */
.description-card.twitter-desc {
  border-color: rgba(255, 255, 255, 0.1);
}

.description-card.twitter-desc:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.twitter-desc .description-header {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.twitter-desc .description-header i {
  color: #fff;
}

.description-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
}

.description-header i {
  font-size: 1.3em;
}

.description-header span {
  font-weight: 600;
  font-size: 1.1em;
  color: var(--text-primary);
}

.description-body {
  position: relative;
  flex: 1;
  overflow: hidden;
  max-height: 130px;
  transition: max-height 0.4s ease-out;
  padding: 1rem;
}

.description-content {
  padding: 20px 28px 25px;
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.8;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* Expanded state - large max-height for animation */
.description-card.expanded .description-body {
  max-height: 2000px;
  transition: max-height 0.6s ease-in-out;
}

.description-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.description-card.expanded .description-fade,
.description-card.no-expand .description-fade {
  opacity: 0;
}

.expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.02);
  border: none;
  border-top: 1px solid var(--border-color);
  color: var(--accent-primary);
  font-size: 0.9em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.expand-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-secondary);
}

.expand-btn i {
  font-size: 0.85em;
  transition: transform 0.3s ease;
}

.description-card.expanded .expand-btn i {
  transform: rotate(180deg);
}

/* Remove responsive grid since we use full width now */

/* ===============================================
   DETAILS VIEW - Single Full-Width Platform Card
   =============================================== */

/* In details view, show only one card at full width */
.details-view .platform-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 50px;
}

.details-view .platform-stat-card {
  width: 100%;
  padding: 35px 45px;
  min-height: auto;
  border-radius: 24px;
  flex-direction: row;
  align-items: flex-start;
  gap: 35px;
}

.details-view .platform-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  font-size: 36px;
  flex-shrink: 0;
  margin-top: 5px;
}

.details-view .platform-icon svg {
  width: 36px;
  height: 36px;
}

.details-view .platform-stats-content {
  flex: 1;
  min-width: 0;
}

.details-view .platform-stats-content h3 {
  font-size: 1.4em;
  margin-bottom: 20px;
}

.details-view .stat-items {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 45px;
  align-items: flex-start;
}

.details-view .stat-item {
  min-width: 100px;
  flex: 0 0 auto;
}

.details-view .stat-item span {
  font-size: 1.8em;
  font-weight: 700;
}

/* Growth badge in details view */
.details-view .stat-item span .growth-badge,
.details-view .stat-item .growth-badge {
  font-size: 0.4em;
  font-weight: 600;
  padding: 2px 5px;
  vertical-align: middle;
}

.details-view .stat-item .stat-name {
  font-size: 1.1em !important;
  max-width: 250px;
  white-space: normal;
  word-wrap: break-word;
}

.details-view .stat-item small {
  font-size: 1em;
}

/* Stat item with bio text (longer content) */
.details-view .stat-item.stat-item-bio {
  min-width: 200px;
  max-width: 400px;
  flex: 1 1 auto;
}

.details-view .stat-item.stat-item-bio span {
  font-size: 1em;
  font-weight: 500;
  white-space: pre-line;
  line-height: 1.5;
}

/* Back to Overview Link */
.backToOverview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-primary);
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.backToOverview:hover {
  color: var(--accent-secondary);
  transform: translateX(-5px);
}

.backToOverview::before {
  content: '\f053';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.85em;
}

/* Stats Days Header */
.statsDays {
  font-size: 2em;
  font-weight: 700;
  margin: 50px 0 30px;
  color: var(--text-primary);
  text-align: center;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Details View Responsive */
@media (max-width: 768px) {
  .details-view .platform-stat-card {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
    min-height: auto;
  }

  .details-view .platform-icon {
    width: 64px;
    height: 64px;
    font-size: 30px;
    margin: 0 auto;
  }

  .details-view .stat-items {
    justify-content: center;
    gap: 30px;
  }

  .details-view .stat-item {
    min-width: 100px;
    text-align: center;
  }

  .details-view .stat-item span {
    font-size: 1.5em;
  }
}

/* Responsive for Platform Stats */
@media (max-width: 900px) {
  .platform-stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .platform-stat-card {
    padding: 20px;
    min-height: auto;
  }

  .stat-items {
    gap: 18px;
  }

  .stat-item span {
    font-size: 1.3em;
  }

  .platform-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .platform-icon svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 600px) {
  .channel-title {
    font-size: 1.8em;
  }

  .platform-stat-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
  }

  .stat-items {
    justify-content: center;
    gap: 15px;
  }

  .stat-item {
    min-width: 70px;
  }

  .stat-item span {
    font-size: 1.2em;
  }

  .platform-icon {
    margin: 0 auto 10px;
  }

  .platform-stats-content h3 {
    font-size: 1em;
    margin-bottom: 10px;
  }
}

/* Descriptions */
#description,
#descriptionInstagram,
#descriptionTikTok,
#descriptionTwitter {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  padding: 25px;
  border-radius: 16px;
  font-size: 1.1em;
  line-height: 1.7;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  word-wrap: break-word;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#description:after {
  content: attr(data-content);
  font-size: 0.85em;
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 8px 20px;
  background: linear-gradient(to left, var(--bg-card) 70%, transparent);
  color: var(--accent-primary);
  font-weight: 500;
}

#descriptionInstagram {
  cursor: auto;
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.2) 0%, rgba(253, 29, 29, 0.1) 50%, rgba(252, 176, 69, 0.1) 100%);
  border-color: rgba(131, 58, 180, 0.4);
  height: auto !important;
  max-height: none;
}

#descriptionTikTok {
  cursor: auto;
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
  border-color: rgba(254, 44, 85, 0.4);
  height: auto !important;
  max-height: none;
}

#descriptionTwitter {
  cursor: auto;
  background: linear-gradient(135deg, rgba(29, 161, 242, 0.2) 0%, rgba(0, 0, 0, 0.1) 100%);
  border-color: rgba(29, 161, 242, 0.4);
  height: auto !important;
  max-height: none;
}

/* Footer */
footer {
  width: 100%;
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
}

footer p {
  color: var(--text-muted);
  font-size: 0.9em;
}

/* Forms */
form {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 15px;
  position: relative;
}

/* Video Info */
.video-info {
  margin-bottom: 30px;
  animation: slideUp 0.6s ease-out;
}

.video-info h2 {
  font-size: 2em;
  margin-bottom: 25px;
  color: var(--text-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 15px;
}

.video-info h2::before {
  content: '';
  font-family: 'Font Awesome 6 Brands';
  color: #ff0000;
}

/* Video Tiles - Enhanced YouTube Style */
.video-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.video-tiles div {
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.05) 0%, var(--bg-card) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 0, 0, 0.15);
  padding: 18px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.video-tiles div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff0000, #ff4444);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-tiles div:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 0.3);
}

.video-tiles div:hover::before {
  opacity: 1;
}

.video-tiles img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.video-tiles div:hover img {
  transform: scale(1.03);
}

.video-tiles p.video-title {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-tiles a {
  color: #ff4444;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95em;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.video-tiles a:hover {
  color: #ff0000;
  text-decoration: underline;
}

/* Top Songs & NFinder List - Enhanced */
#topSongs,
#nfinderlist {
  padding: 15px 0;
}

#nfinderlist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#topSongs h2 {
  font-size: 1.6em;
  font-weight: 700;
  color: #1db954;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0.5rem;
}

#topSongs h2 i {
  font-size: 1.2em;
}

#topSongs ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  list-style: none;
  padding: 1rem;
  margin: 0;
  counter-reset: song-counter;
}

#topSongs li,
#nfinderlist li {
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.12) 0%, rgba(29, 185, 84, 0.03) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  padding: 22px 18px;
  border-radius: 18px;
  font-size: 0.95em;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(29, 185, 84, 0.25);
  margin-bottom: 0;
  line-height: 1.5;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  word-break: break-word;
  position: relative;
  overflow: hidden;
  counter-increment: song-counter;
}

#topSongs li::before {
  content: counter(song-counter);
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 0.75em;
  font-weight: 800;
  color: #1db954;
  opacity: 0.6;
}

#topSongs li::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1db954, #1ed760);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#topSongs li:hover::after {
  opacity: 1;
}

#topSongs li a,
#nfinderlist li a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

#topSongs li:hover a {
  color: #1db954;
}

/* Search Input */
.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
}

#search-input {
  font-size: 1.1rem;
  padding: 16px 24px;
  width: 100%;
  border-radius: 14px;
  border: 2px solid var(--border-color);
  outline: none;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

#search-input::placeholder {
  color: var(--text-muted);
}

#search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 30px var(--glow-primary);
}

/* Results Container - Suggestions Dropdown */
#results-container {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--accent-primary);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 14px 14px;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px var(--glow-primary);
  overflow-y: auto;
  max-height: 320px;
  display: none;
  z-index: 1000;
  animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Search Button - Subtle Style */
#search-button {
  font-size: 0.95rem;
  padding: 16px 28px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  outline: none;
  background: rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

#search-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

#search-button:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

#search-button:hover::before {
  left: 100%;
}

#search-button:active {
  transform: translateY(0);
}

#noVideos img {
  width: 70%;
  margin: 25px 0;
  border-radius: 16px;
  opacity: 0.8;
}

/* Header */
.header {
  display: flex;
  padding: 30px 40px;
  margin-top: 20px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

#logo {
  max-height: 80px;
  max-width: 80px;
  cursor: pointer;
  width: 100%;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 2px var(--glow-primary));
}

#logo:hover {
  transform: scale(1.1) rotate(-5deg);
  filter: drop-shadow(0 0 20px var(--glow-primary));
}

#channel-name img {
  width: 36px;
  margin-left: 20px;
  position: absolute;
  margin-top: 4px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.link {
  color: var(--text-primary);
}

.link:visited,
.link:hover,
.link:active {
  color: var(--text-primary);
}

/* Results Container */
#results-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  max-height: 320px;
  display: none;
  z-index: 1000;
  animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* NFinder Item */
#nfinderlist a {
  text-decoration: none;
}

.nfinder-item {
  list-style-type: none;
  padding: 20px;
  margin-bottom: 0;
  border-radius: 16px;
  display: flex;
  align-items: start;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.nfinder-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
  border-color: var(--accent-primary);
  z-index: 999;
}

.nfinder-icon {
  font-size: 28px;
  margin-right: 15px;
  color: var(--accent-primary);
}

.nfinder-desc {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nfinder-desc div {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.nfinder-desc div i {
  margin-right: 10px;
  color: var(--accent-primary);
}

i.nfinder-icon.fab {
  padding-top: 25px;
  padding-left: 11px;
  padding-right: 30px;
}

#channel-name i {
  color: var(--accent-primary);
}

/* Platform-specific Statistics */
.twitter p {
  background: linear-gradient(135deg, rgba(29, 161, 242, 0.15) 0%, rgba(0, 0, 0, 0.1) 100%);
  border-color: rgba(29, 161, 242, 0.3);
}

.twitter p::before {
  background: var(--highlight-twitter);
}

.twitch p {
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.15) 0%, rgba(0, 0, 0, 0.1) 100%);
  border-color: rgba(145, 70, 255, 0.3);
}

.twitch p::before {
  background: var(--highlight-twitch);
}

.twitch {
  grid-template-columns: repeat(2, 1fr);
}

.tiktok {
  grid-template-columns: repeat(3, 1fr);
}

.statistics i.fas {
  margin-right: 12px;
  color: var(--accent-primary);
}

#tiktok_data p {
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.15) 0%, rgba(0, 0, 0, 0.1) 100%);
  border-color: rgba(254, 44, 85, 0.3);
}

#tiktok_data p::before {
  background: var(--highlight-tiktok);
}

#instagram_data p {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.15) 0%, rgba(253, 29, 29, 0.08) 50%, rgba(252, 176, 69, 0.08) 100%);
  border-color: rgba(131, 58, 180, 0.3);
}

#instagram_data p::before {
  background: var(--highlight-instagram);
}

/* Stats Days Headers - Enhanced */
h1.statsDays {
  margin-top: 80px;
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 50px;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
  width: 100%;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p.statsDays {
  margin-top: 50px;
  text-align: center;
  font-size: 1.2em;
  margin-bottom: -40px;
  color: var(--text-secondary);
}

section#noVideos {
  margin: 80px 0;
  text-align: center;
}

section#noVideos .error-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 60px 40px;
  border: 1px solid var(--border-color);
  max-width: 600px;
  margin: 0 auto;
  animation: slideUp 0.6s ease-out;
}

section#noVideos .error-icon {
  font-size: 4em;
  margin-bottom: 25px;
  display: block;
}

section#noVideos h1 {
  color: var(--text-primary);
  font-size: 1.8em;
  margin-bottom: 20px;
}

section#noVideos p {
  margin-bottom: 10px;
}

/* Banner */
.banner {
  position: relative;
  width: calc(100% - 40px);
  min-height: 420px;
  overflow: hidden;
  margin: 30px 20px;
  border-radius: 24px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/Analyse.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  z-index: 1;
  filter: blur(2px);
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(18, 18, 26, 0.9) 50%, rgba(26, 26, 37, 0.95) 100%);
  z-index: 2;
}

.banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.15) 0%, transparent 40%);
  z-index: 3;
}

/* Flying Logos */
.flying-logos {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.flying-logo {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.12;
  color: var(--text-primary);
  left: var(--start-x);
  top: var(--start-y);
  animation: flyAround var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  filter: blur(1px);
  transition: all 0.3s ease;
}

.flying-logo:nth-child(1) {
  color: #ff0000;
}

.flying-logo:nth-child(2) {
  color: #e1306c;
}

.flying-logo:nth-child(3) {
  color: #1da1f2;
}

.flying-logo:nth-child(4) {
  color: #fe2c55;
}

.flying-logo:nth-child(5) {
  color: #1db954;
}

.flying-logo:nth-child(6) {
  color: #9146ff;
}

.flying-logo:nth-child(7) {
  color: #ff0000;
  opacity: 0.08;
}

.flying-logo:nth-child(8) {
  color: #e1306c;
  opacity: 0.08;
}

@keyframes flyAround {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  25% {
    transform: translate(50px, -30px) rotate(15deg) scale(1.1);
  }

  50% {
    transform: translate(20px, 40px) rotate(-10deg) scale(0.9);
  }

  75% {
    transform: translate(-40px, 20px) rotate(20deg) scale(1.05);
  }

  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

.banner-content {
  position: relative;
  padding: 80px 50px;
  text-align: center;
  color: white;
  z-index: 5;
}

.banner-content h1 {
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  animation: slideUp 0.8s ease-out;
}

.banner-content h5 {
  font-size: 1.3em;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0 0 35px 0;
  animation: slideUp 0.8s ease-out 0.1s backwards;
}

/* Subtle Button Style */
.btn-subtle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-size: 0.95em;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slideUp 0.8s ease-out 0.2s backwards;
  position: relative;
  overflow: hidden;
}

.btn-subtle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.btn-subtle:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.btn-subtle:hover::before {
  opacity: 0.15;
}

.btn-subtle i {
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

.btn-subtle:hover i {
  transform: translateX(4px);
}

/* Legacy banner button override */
.banner-content button:not(.btn-subtle) {
  padding: 18px 40px;
  background: var(--accent-gradient);
  border: none;
  color: white;
  font-size: 1em;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px var(--glow-primary);
  animation: slideUp 0.8s ease-out 0.2s backwards;
}

.banner-content button:not(.btn-subtle):hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 50px var(--glow-primary);
}

/* Badges */
a.badges {
  max-width: fit-content;
  padding: 8px 14px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  display: inline-block;
  margin: 0 10px 15px 0;
  line-height: 1;
  transition: all 0.3s ease;
}

a.verifiziert {
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.1);
}

a.verifiziert:hover {
  background: rgba(34, 197, 94, 0.2);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

a.userverifiziert {
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.1);
}

a.userverifiziert:hover {
  background: rgba(99, 102, 241, 0.2);
  box-shadow: 0 0 20px var(--glow-primary);
}

a.badges.unverifiziert {
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
}

a.badges.unverifiziert:hover {
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Show All Section - Enhanced Platform Chart Cards */
.showAll {
  overflow: auto;
  margin-bottom: 30px;
  padding: 30px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  animation: slideUp 0.6s ease-out;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.showAll::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 24px 24px 0 0;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.showAll:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.showAll:hover::before {
  opacity: 1;
}

/* Platform-specific chart card colors */
#youtube-show {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.05) 0%, var(--bg-card) 100%);
  border-color: rgba(255, 0, 0, 0.15);
}

#youtube-show::before {
  background: linear-gradient(90deg, #ff0000, #ff4444);
}

#youtube-show:hover {
  border-color: rgba(255, 0, 0, 0.3);
  box-shadow: 0 15px 40px rgba(255, 0, 0, 0.1);
}

#tiktok-show {
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.05) 0%, var(--bg-card) 100%);
  border-color: rgba(254, 44, 85, 0.15);
}

#tiktok-show::before {
  background: linear-gradient(90deg, #fe2c55, #00f2ea);
}

#tiktok-show:hover {
  border-color: rgba(254, 44, 85, 0.3);
  box-shadow: 0 15px 40px rgba(254, 44, 85, 0.1);
}

#instagram-show {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.05) 0%, rgba(131, 58, 180, 0.03) 50%, var(--bg-card) 100%);
  border-color: rgba(225, 48, 108, 0.15);
}

#instagram-show::before {
  background: linear-gradient(90deg, #833ab4, #fd1d1d, #fcb045);
}

#instagram-show:hover {
  border-color: rgba(225, 48, 108, 0.3);
  box-shadow: 0 15px 40px rgba(225, 48, 108, 0.1);
}

#spotify-show,
.showAll:has(#spotify_follower) {
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.05) 0%, var(--bg-card) 100%);
  border-color: rgba(29, 185, 84, 0.15);
}

#spotify-show::before,
.showAll:has(#spotify_follower)::before {
  background: linear-gradient(90deg, #1db954, #1ed760);
}

#spotify-show:hover,
.showAll:has(#spotify_follower):hover {
  border-color: rgba(29, 185, 84, 0.3);
  box-shadow: 0 15px 40px rgba(29, 185, 84, 0.1);
}

#twitter-show {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, var(--bg-card) 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

#twitter-show::before {
  background: linear-gradient(90deg, #fff, #aaa);
}

#twitter-show:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.05);
}

.linkContainer {
  float: right;
  margin-top: 20px;
}

.linkContainer a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.linkContainer a:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

/* Media Queries */
@media screen and (max-width: 1460px) {
  .nfinder-item:hover {
    transform: translateY(-5px) scale(1.01);
  }

  .banner {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media screen and (max-width: 1024px) {
  .container {
    padding: 30px 20px;
  }

  .statistics {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .channel-info h1,
  .video-info h2 {
    font-size: 1.8em;
  }

  .statistics p {
    font-size: 1em;
    padding: 15px;
    line-height: 45px;
  }

  .video-tiles {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .video-tiles img {
    height: auto;
  }

  #topSongs ol,
  #nfinderlist {
    grid-template-columns: 1fr 1fr;
  }

  #logo {
    max-height: 70px;
  }

  #channel-name img {
    margin-top: -4px;
  }

  h1#channel-name {
    margin: 30px 0;
  }

  #noVideos img {
    width: 100%;
  }

  .header {
    padding: 20px;
  }

  .search-input-wrapper {
    max-width: 280px;
  }
}

@media screen and (max-width: 768px) {
  .header-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    margin-bottom: 0px;
    margin-top: 10px !important;
    padding: 14px 15px;
  }

  .header-link {
    margin: 5px 8px;
    font-size: 0.9em;
    padding: 6px 12px;
  }

  .banner {
    min-height: 300px;
    border-radius: 16px;
    margin: 20px 15px;
  }

  .banner-content {
    padding: 50px 25px;
  }

  .banner-content h1 {
    font-size: 2em;
  }

  .banner-content h5 {
    font-size: 1em;
  }

  .btn-subtle {
    padding: 12px 22px;
    font-size: 0.85em;
  }

  .flying-logo {
    font-size: 1.8rem;
    opacity: 0.08;
  }

  .flying-logo:nth-child(7),
  .flying-logo:nth-child(8) {
    display: none;
  }

  .video-tiles {
    grid-template-columns: 1fr;
  }

  #topSongs ol,
  #nfinderlist {
    grid-template-columns: 1fr;
  }

  #logo {
    max-height: 100px;
    margin-bottom: 30px;
  }

  .header {
    display: flex;
    padding: 20px;
    margin-top: 20px;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  #search-input {
    font-size: 1rem;
    width: 100%;
    margin-bottom: 0px;
  }

  .search-input-wrapper {
    flex: 1;
    max-width: none;
    width: 100%;
  }

  .statistics {
    grid-template-columns: 1fr;
  }

  .statistics p {
    font-size: 1em;
    padding: 15px;
    line-height: 40px;
  }

  form {
    flex-direction: row;
    width: 90%;
  }

  #search-button {
    width: auto;
    padding: 16px 24px;
  }

  .search-bar {
    width: 100%;
    margin: 0 0 20px 0;
  }

  a.badges {
    margin: 0 8px 8px 0;
  }

  h1.statsDays {
    font-size: 2em;
  }

  .showAll {
    padding: 15px;
    margin-bottom: 20px;
  }
}

@media screen and (orientation: landscape) and (max-width: 768px) {
  .artist_box {
    font-size: 1.0em;
  }

  .stream-card {
    width: 40%;
    min-height: 255px;
  }
}

@media screen and (max-width: 377px) {
  .banner {
    min-height: 350px;
  }

  .banner-content h5 {
    margin: 20px 0;
  }

  .banner-content h1 {
    font-size: 1.6em;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 5px;
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Selection */
::selection {
  background: var(--accent-primary);
  color: white;
}

/* ==========================================
   SITE FOOTER
   ========================================== */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding: 60px 0 40px;
}

/* Footer Brand */
.footer-brand {
  padding-right: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5em;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-logo i {
  color: var(--accent-primary);
}

.footer-tagline {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 0.95em;
  text-align: left;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 1.2em;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  color: white;
  background: var(--accent-gradient);
  border-color: transparent;
  transform: translateY(-3px);
}

/* Footer Links */
.footer-links h4 {
  color: var(--text-primary);
  font-size: 1.1em;
  font-weight: 600;
  margin: 0 0 20px;
  text-align: left;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 0.95em;
}

.footer-links a i {
  font-size: 0.9em;
  width: 18px;
  text-align: center;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-primary);
  transform: translateX(5px);
}

.footer-links a:hover i {
  color: var(--accent-primary);
}

/* Platform-specific link hover colors */
.footer-links a:has(.fa-youtube):hover,
.footer-links a:has(.fa-youtube):hover i {
  color: #ff0000;
}

.footer-links a:has(.fa-tiktok):hover,
.footer-links a:has(.fa-tiktok):hover i {
  color: #fe2c55;
}

.footer-links a:has(.fa-instagram):hover,
.footer-links a:has(.fa-instagram):hover i {
  color: #c13584;
}

.footer-links a:has(.fa-spotify):hover,
.footer-links a:has(.fa-spotify):hover i {
  color: #1db954;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  border-top: 1px solid var(--border-color);
}

/* Footer SEO Text */
.footer-seo-text {
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
}

.footer-seo-text p {
  color: var(--text-muted);
  font-size: 0.85em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.footer-bottom p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9em;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-credit i {
  color: #ef4444;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* Responsive Footer */
@media screen and (max-width: 900px) {
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

@media screen and (max-width: 600px) {
  .footer-container {
    padding: 0 20px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0 30px;
  }

  .footer-links {
    text-align: center;
  }

  .footer-links a {
    justify-content: center;
  }

  .footer-links a:hover {
    transform: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ==========================================
   EXTENDED STATISTICS SECTION (userDetails API)
   ========================================== */

.extended-stats-section {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}

.extended-stats-section .section-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.extended-stats-section .section-title i {
  color: var(--accent-primary);
}

.extended-stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Stats Cards */
.stats-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-primary);
}

.stats-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-bottom: 1px solid var(--border-color);
}

.stats-card-header i {
  font-size: 1.3rem;
  color: var(--accent-primary);
}

.stats-card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.stats-card-content {
  padding: 24px;
}

/* Tracking Info Card */
.tracking-info-card .stats-card-header {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.tracking-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tracking-stat:last-child {
  border-bottom: none;
}

.tracking-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.tracking-value {
  color: var(--text-primary);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

/* Platform Extended Cards */
.youtube-extended-card .stats-card-header i {
  color: var(--highlight-youtube);
}

.tiktok-extended-card .stats-card-header i {
  color: var(--highlight-tiktok);
}

.twitter-extended-card .stats-card-header i {
  color: var(--highlight-twitter);
}

.spotify-extended-card .stats-card-header i {
  color: var(--highlight-spotify);
}

.instagram-extended-card .stats-card-header i {
  color: #e1306c;
}

/* Stats Grid */
.stats-grid-4 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.stats-grid-4 .stat-box {
  flex: 1 1 140px;
  min-width: 120px;
}

.stats-grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.stats-grid-3 .stat-box {
  flex: 1 1 160px;
  min-width: 140px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-primary);
}

.stat-box.small {
  padding: 12px 10px;
}

.stat-box-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 8px;
  word-break: break-word;
}

.stat-box.small .stat-box-value {
  font-size: 1.1rem;
}

.stat-box-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.stat-box-label i {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Verified Icons */
.verified {
  color: #1da1f2 !important;
}

.not-verified {
  color: var(--text-muted) !important;
}

/* Bio Section */
.bio-section {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bio-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bio-content {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
}

/* Genres Section (Spotify) */
.genres-section {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.genres-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.genres-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-tag {
  background: linear-gradient(135deg, rgba(29, 185, 84, 0.2) 0%, rgba(29, 185, 84, 0.1) 100%);
  color: var(--highlight-spotify);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(29, 185, 84, 0.3);
}

.no-data {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
}

/* Popularity Bar (Spotify) */
.popularity-score {
  color: var(--highlight-spotify) !important;
}

.popularity-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.popularity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--highlight-spotify) 0%, #1ed760 100%);
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* Growth Stats Card */
.growth-stats-card .stats-card-header {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.growth-stats-card .stats-card-header i {
  color: #10b981;
}

.growth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.growth-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.growth-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
}

.growth-info {
  flex: 1;
}

.growth-value {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.growth-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Growth Colors */
.growth-positive {
  color: #10b981;
}

.growth-negative {
  color: #ef4444;
}

.growth-neutral {
  color: var(--text-muted);
}

/* ==========================================
   HISTORY SECTION (Name & Description History)
   ========================================== */

.history-section {
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 20px;
}

.history-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.history-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-bottom: 1px solid var(--border-color);
}

.history-card-header i {
  font-size: 1.2rem;
  color: var(--accent-primary);
}

.history-card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.history-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 12px;
}

.history-timeline {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.history-timeline::-webkit-scrollbar {
  width: 6px;
}

.history-timeline::-webkit-scrollbar-track {
  background: transparent;
}

.history-timeline::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 3px;
}

.history-item {
  display: flex;
  gap: 15px;
  position: relative;
}

.history-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
}

.history-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--accent-primary);
  z-index: 1;
}

.history-item.current .history-dot {
  background: #10b981;
  box-shadow: 0 0 0 2px #10b981, 0 0 12px rgba(16, 185, 129, 0.4);
}

.history-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  margin: 4px 0;
}

.history-content {
  flex: 1;
  padding-bottom: 20px;
}

.history-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.history-description {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.history-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.current-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  margin-left: auto;
  align-self: flex-start;
}

/* Description History specific */
.description-history .history-content {
  padding-bottom: 25px;
}

/* Legacy Notice */
.legacy-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 10px;
  margin-bottom: 20px;
  color: #fbbf24;
  font-size: 0.9rem;
}

.legacy-notice i {
  font-size: 1.2rem;
}

/* Responsive Extended Stats */
@media screen and (max-width: 900px) {
  .stats-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .growth-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .extended-stats-container {
    grid-template-columns: 1fr;
  }

  .stats-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid-3 {
    grid-template-columns: 1fr;
  }

  .growth-grid {
    grid-template-columns: 1fr;
  }

  .stat-box-value {
    font-size: 1.2rem;
  }

  .history-timeline {
    max-height: 300px;
  }
}

@media screen and (max-width: 400px) {
  .stats-grid-4 {
    grid-template-columns: 1fr;
  }

  .stat-box-value {
    font-size: 1rem;
  }

  .growth-item {
    padding: 10px;
  }

  .growth-value {
    font-size: 0.95rem;
  }
}

/* ========================================
   SEO & Marketing Improvements
   ======================================== */

/* Screen Reader Only - for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Banner Improvements */
.banner-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0.5rem auto 1.5rem;
  line-height: 1.6;
  animation: slideUp 0.8s ease-out;
}

.banner-content h5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.platform-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.platform-tag .fa-youtube {
  color: var(--highlight-youtube);
}

.platform-tag .fa-instagram {
  color: #e1306c;
}

.platform-tag .fa-twitter {
  color: var(--highlight-twitter);
}

.platform-tag .fa-tiktok {
  color: var(--highlight-tiktok);
}

.platform-tag .fa-spotify {
  color: var(--highlight-spotify);
}

.platform-tag .fa-twitch {
  color: var(--highlight-twitch);
}

.banner-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-gradient);
  border: none;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
}

/* Features Section */
.features-section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Mobile Responsive for Features */
@media screen and (max-width: 768px) {
  .banner-description {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .banner-content h5 {
    gap: 0.3rem;
  }

  .platform-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .banner-cta {
    flex-direction: column;
    align-items: center;
  }

  .features-section {
    padding: 2rem 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .platform-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* ========================================
   Extended Stats Section (Instagram, etc.)
   ======================================== */

/* Profile Picture in Stats */
.stat-item-profile {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
}

.stat-profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.stat-profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-profile-info small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Verified, Private, Business Badges */
.verified-badge {
  color: #3897f0;
  margin-left: 4px;
  font-size: 0.9em;
}

.private-badge {
  color: var(--text-muted);
  margin-left: 4px;
  font-size: 0.85em;
}

.business-badge {
  color: var(--highlight-spotify);
  margin-left: 4px;
  font-size: 0.85em;
}

/* Growth Badge */
.growth-badge {
  font-size: 0.6rem;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: 4px;
  font-weight: 600;
  vertical-align: middle;
}

.growth-badge.positive {
  background: rgba(29, 185, 84, 0.15);
  color: #1db954;
}

.growth-badge.negative {
  background: rgba(255, 0, 0, 0.15);
  color: #ff4444;
}

/* Wide stat item for category */
.stat-item-wide {
  grid-column: span 2;
}

.stat-category {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Extended Stats Section */
.extended-stats-section {
  margin: 30px 0;
  padding: 0 20px;
}

.extended-stats-section.instagram-extended {
  border-left: 3px solid #c13584;
  padding-left: 25px;
}

.extended-title {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.extended-title i {
  color: #c13584;
}

.extended-stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.extended-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  backdrop-filter: blur(10px);
  flex: 1;
  min-width: 200px;
  max-width: 100%;
}

.extended-card h4 {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.extended-card h4 i {
  color: var(--accent-primary);
  font-size: 0.85rem;
}

.extended-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Inline Items Layout (horizontal flow) */
.extended-items-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.extended-inline-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.extended-inline-item i {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.extended-inline-item strong {
  color: var(--text-primary);
}

.extended-inline-item.positive {
  background: rgba(29, 185, 84, 0.1);
}

.extended-inline-item.positive strong {
  color: #1db954;
}

.extended-inline-item.negative {
  background: rgba(255, 68, 68, 0.1);
}

.extended-inline-item.negative strong {
  color: #ff4444;
}

.extended-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.extended-item i {
  color: var(--text-muted);
  width: 16px;
  text-align: center;
  font-size: 0.8rem;
}

.extended-item a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
  word-break: break-all;
}

.extended-item a:hover {
  color: var(--accent-secondary);
}

/* Bio Links List */
.bio-links-list {
  gap: 8px;
}

.bio-link-item {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  transition: background 0.3s ease;
}

.bio-link-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.bio-link-item a {
  line-height: 1.3;
  font-size: 0.85rem;
}

.bio-link-item a strong {
  color: var(--text-primary);
  display: block;
  font-size: 0.85rem;
}

.bio-link-item a small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Stats Grid for mini stats - Deprecated, using inline now */
.stats-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px !important;
}

.stat-mini {
  text-align: center;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  min-width: 80px;
}

.stat-mini-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.stat-mini-value.positive {
  color: #1db954;
}

.stat-mini-value.negative {
  color: #ff4444;
}

.stat-mini-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Responsive for Extended Stats */
@media screen and (max-width: 992px) {
  .extended-stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .extended-stats-container {
    grid-template-columns: 1fr;
  }

  .extended-card {
    min-width: 100%;
  }

  .extended-items-inline {
    gap: 8px;
  }

  .extended-inline-item {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .stats-grid {
    gap: 8px !important;
  }

  .stat-mini {
    padding: 8px 12px;
    min-width: 70px;
  }

  .stat-profile-pic {
    width: 40px;
    height: 40px;
  }
}

@media screen and (max-width: 400px) {
  .extended-inline-item {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .stat-mini {
    min-width: 60px;
  }
}

/* Search - No Results Message */
.search-no-result {
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
}

.search-no-result::before {
  content: '🔍';
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
  font-style: normal;
}

/* Search Result Item - Enhanced */
.search-result {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-secondary);
  border-radius: 10px;
  transition: all 0.2s ease;
  margin: 2px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-result-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.search-result-name::before {
  content: '\f002';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.5;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.search-result-name-text {
  display: inline;
}

.search-result-match {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 24px;
}

.search-result-match i {
  font-size: 10px;
  width: 12px;
  text-align: center;
}

.search-result-match i.fa-youtube { color: var(--highlight-youtube); }
.search-result-match i.fa-instagram { color: #c13584; }
.search-result-match i.fa-tiktok { color: var(--highlight-tiktok); }
.search-result-match i.fa-spotify { color: var(--highlight-spotify); }
.search-result-match i.fa-x-twitter { color: var(--highlight-twitter); }
.search-result-match i.fa-twitch { color: var(--highlight-twitch); }

/* Search Highlight */
.search-highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
  color: var(--accent-primary);
  padding: 0px 2px;
  border-radius: 3px;
  font-weight: 600;
}

.search-result:hover {
  background: var(--bg-tertiary);
  padding-left: 20px;
}

.search-result:hover .search-result-name::before {
  color: var(--accent-primary);
  opacity: 1;
}

.search-result:hover .search-highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.5));
  color: white;
}

/* Search Error Modal */
.search-error-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.search-error-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  margin: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 40px var(--glow-primary);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.search-error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.search-error-content h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.search-error-content p {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.search-error-content #not-found-username {
  color: var(--accent-primary);
  font-weight: 600;
}

.search-error-hint {
  font-size: 0.85rem;
  color: var(--text-muted) !important;
  margin-top: 16px !important;
}

.search-error-close {
  margin-top: 24px;
  padding: 12px 40px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-error-close:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}