/*! Spotify Colour Theme: https://www.color-hex.com/color-palette/53188 */
:root {
  --spotify-green: #1db954;
  --spotify-black: #121212;
  --spotify-gray-dark: #212121;
  --spotify-gray-mid: #535353;
  --spotify-gray-light: #b3b3b3;
  /* --SOLO_COLOR: #FF6961; */
  --SOLO_COLOR: #ff5e7c;
  --SOLO_COLOR-rgb: 255, 94, 124;
  /* --COLLAB_COLOR: #4cc764; */
  --COLLAB_COLOR: #58d17c;
  --COLLAB_COLOR-rgb: 88, 209, 124;
  --SELECTED_NODE_COLOR: #ff8800;
}

/*! Fullpage.js Navigation Colour Change */
#fp-nav ul li a span {
  background: white !important;
}
#fp-nav ul li a.active span {
  background: var(--spotify-green) !important;
}
#fp-nav ul li a:hover span {
  background: gray !important;
}

/*! General Text Styling */
body {
  color: #f1eeee;
  background: 	var(--spotify-black);
  font-size: 20px;
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
}
circle:hover {
  stroke: #4a90e2;
  stroke-width: 3px;
}

/*! Instruction Text Styling */
.top-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.top-text p {
  /* text-align: center; */
  width: 900px;
  flex-shrink: 1;
  font-size: 16px;
  max-width: none;
}

.top-text p strong {
  font-weight: 800;
}

.solo-tag, .collab-tag {
  display: inline-block;
  padding: 2px 5px 4px 5px;
  border-radius: 3px;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  line-height: 1;
  /* color: white !important; */
}

.solo-tag {
  background-color: rgba(var(--SOLO_COLOR-rgb), 0.7); /* Using RGB components with opacity */
  /* color: #000; */
}

.collab-tag {
  background-color: rgba(var(--COLLAB_COLOR-rgb), 0.7); /* Using RGB components with opacity */
  /* color: #000; */
}

/*! Beeswarm plot (Restyling) */
#chart {
  width: 100%;
  max-width: 1800px;
  height: 650px;
  margin: 0 auto;
  padding: 0 15px;
}

#chart .grid-line-upper, #chart .grid-line-lower {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1;
}

@media screen and (max-width: 1800px) {
  #chart {
      max-width: 95%;
  }
}

section h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  /*margin: 1em auto;*/
  /*padding: 0 15px;*/
  line-height: 1.3;
  font-size: 4em;
  text-align: center;
}

section p {
  max-width: 800px;
  margin: 1em auto;
  padding: 0 15px;
  line-height: 1.6;
  font-size: 1em;
}

section h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin: 1em auto;
  padding: 0 15px;
}

/*! Bar Chart Race */
.chart-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100%);
  background-color: var(--spotify-black);
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.8s ease;
}



#bar-chart-race-container {
  width: 100%;
  height: min(600px, 70vh);
  /* height: 800px; */
  position: relative;
  margin-top: 50px;
}

#bar-chart-race-container .date-label {
  font-weight: 100;
  font-size: 40px;
}

#bar-chart-race-container .song-label {
  font-size: 17px;
  font-weight: 500;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

#bar-chart-race-container .stream-label {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.8;
}

#bar-chart-race-container .tick text {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.7;
}

/* Year Slider Styling */
.year-slider {
  width: 180px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  background: none;
  cursor: pointer;
}

.year-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: #666;
  border-radius: 3px;
  border: none;
  margin: 0;
}

.year-slider::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  background: var(--spotify-green);
  border-radius: 50%;
  border: 2px solid #fff;
  margin-top: -4px;
  -webkit-appearance: none;
}

/* Optional: Styling for the year display next to the slider */
.year-value {
  display: inline-block;
  width: 40px;
  text-align: left;
  margin-left: 4px;
  font-family: monospace;
  flex-shrink: 0;
}


#bar-chart-race-container .legend-text {
  fill: white;
  opacity: 0.5;
  font-size: 14px;
}

#bar-chart-race-container .x-axis text {
  fill: white;
  font-size: 13px;
}

#bar-chart-race-container .x-axis path,
#bar-chart-race-container .x-axis line {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1px;
}

/*! Timeline in Bar Chart Race */
#timeline-controls-container {
  width: 100%;
  /* margin-top: 20px; */
  position: relative;
}

#timeline-container {
  margin-top: -20px;
  height: min(150px, 14vh);
  width: 100%;
}

#timeline-container .axis text {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.7;
  fill: #ffffff;
}

#timeline-container .axis line,
#timeline-container .axis path {
  stroke: rgba(255, 255, 255, 0.3);
}

#timeline-container .indicator-line {
  stroke: #a8a8a8;
  stroke-width: 2;
  stroke-dasharray: 4,4;
}

#timeline-container .timeline-path {
  stroke: #4287f5;
  stroke-width: 3;
}

#timeline-container .timeline-dot {
  fill: #4287f5;
  r: 5;
  transition: none;
  stroke: none;
}

#timeline-container .grid-line-x {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 2;
}

#timeline-container .axis text {
  fill: white;
  font-size: 13px;
}

#timeline-container .axis path,
#timeline-container .axis line {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1px;
}

/*! Play/Pause button in Bar Chart Race */
#control-container {
  position: absolute;
  /* top: 10px;
  right: 20px; */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* color: 100; */
  z-index: 10;
}

.play-pause-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  /* background-color: rgba(255, 255, 255, 0.2); */
  color: black;
  font-size: 20px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  /* transition: none; */
}

.play-pause-btn.breathing {
  animation: breathing 2s infinite ease-in-out;
  /* box-shadow: 0 0 20px rgba(76, 199, 100, 0.7); */
  width: 60px;
  height: 60px;
  font-size: 40px;
}

@keyframes breathing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  }
}

.play-pause-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.play-pause-btn.paused {
  background-color: white;
  /* background-color: rgba(76, 199, 100, 1); */
}

.play-pause-btn.playing {
  /* background-color: rgb(255, 69, 69); */
  background-color: white;
}

#visualization-container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 15px;
  overflow: hidden;
}

@media screen and (max-width: 1500px) {
  #visualization-container {
      max-width: 95%;
  }
}

#visualization-container .grid-line {
stroke: rgba(255, 255, 255, 0.15);
stroke-width: 1;
}


/*! Artist Network */
#main-network-svg {
  width: 100%;
  height: 100%;
  background-color: transparent;
}

/*! Specified Artist View*/
.artist-label {
  font-size: 24px;
  fill: #fff;
  pointer-events: auto;
  fill-opacity: 0.7;
}
/*! Special Artist Highlighting */
@keyframes pulsate {
  0% {
    stroke-width: 10px;
    opacity: 1;
  }
  50% {
    stroke-width: 20px;
    opacity: 0.7;
  }
  100% {
    stroke-width: 10px;
    opacity: 1;
  }
}
.special-ring {
  animation: pulsate 2s infinite;
  fill: none;
  stroke: #fff;
  stroke-width: 20px;
  pointer-events: none;
}
/*! Top Panel */
#top-panel {
  background: var(--spotify-gray-dark);
  padding: 20px;
  max-width: 1500px;
  margin: 0 auto;
}
#top-panel-title {
  text-align: center;
  padding-top: 20px;
  margin-bottom: 20px;
  color: #fff;
}
#top-panel-title h2 {
  margin: 0;
  font-size: 24px;
}
#top-panel-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left and right take equal remaining space */
  align-items: center;
  padding: 15px 30px;
  column-gap: 20px;
}

#top-panel-left,
#top-panel-center,
#top-panel-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
#top-panel-left {
  justify-content: flex-start;
  font-size: 16px;
}
#top-panel-right {
  justify-content: flex-end;
  font-size: 16px;
}
#top-panel-center {
  justify-content: center;
  text-align: center;
}
#top-panel-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
#top-panel-left label,
#top-panel-right label {
  position: static;
  margin-right: 6px;
  vertical-align: middle;
}
#year-container,
#search-container {
  display: flex;
  align-items: center;
  gap: 6px;
}
.suggestion-item.active-suggestion {
  background-color: var(--spotify-green);
  color: #fff;
}
#year-container label,
#search-container label {
  color: var(--spotify-gray-light);
  font-weight: 500;
  margin-right: 0.25em;
}
.year-button {
  font-size: 14px;
  line-height: 1.2;
  vertical-align: middle;
  border-radius: 4px;
  border: 1px solid var(--spotify-gray-mid);
  background-color: var(--spotify-gray-dark);
  color: var(--spotify-gray-light);
  padding: 6px 8px;
  transition: background-color 0.2s ease;
}
.year-button:hover {
  background-color: var(--spotify-gray-mid);
}
.year-button.active {
  background-color: var(--spotify-green);
  color: #fff;
  border-color: var(--spotify-green);
}
#search-input {
  background-color: var(--spotify-black);
  color: var(--spotify-gray-light);
  border: 1px solid var(--spotify-gray-mid);
  font-size: 14px;
  line-height: 1.2;
  vertical-align: middle;
  padding: 5px 8px;
  border-radius: 4px;
  margin-left: 5px;
}
#search-input:focus {
  outline: none;
  border-color: var(--spotify-green);
}

/*! Top K Filter */
.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topk-label {
  fill: #fff;
  pointer-events: auto;
}
#topk-input {
  width: 180px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  background: none;
  cursor: pointer;
  vertical-align: middle;
  display: inline-block;
}
#topk-input::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: #666;
  border-radius: 3px;
  border: none;
  margin: 0;
}
#topk-input::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  background: var(--spotify-green);
  border-radius: 50%;
  border: 2px solid #fff;
  margin-top: -5px;
  -webkit-appearance: none;
}
#topk-value {
  display: inline-block;
  width: 40px;
  text-align: left;
  margin-left: 4px;
  font-family: monospace;
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.2;
  vertical-align: middle;
}

/*! Search Suggestions */
#search-content {
  position: relative;
}
#search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  max-height: 200px;
  overflow-y: auto;
  background: var(--spotify-black);
  border: 1px solid var(--spotify-gray-mid);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  z-index: 10;
}
.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.suggestion-item:hover {
  background-color: var(--spotify-gray-mid);
}

/*! Artist Network Graph Region */
#graph-container {
  width: 100%;
  height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}
#artist-network-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #000;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*! Info Panel Styling */
#info-panel {
  position: absolute;
  scrollbar-gutter: stable both-edges;
  top: 20px;
  right: 80px;
  width: 500px;
  max-height: 70vh;
  overflow: auto;
  background-color: var(--spotify-black);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--spotify-gray-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
}
#info-panel::-webkit-scrollbar {
  width: 8px;
}
#info-panel::-webkit-scrollbar-track {
  background: var(--spotify-black);
}
#info-panel::-webkit-scrollbar-thumb {
  background-color: var(--spotify-green);
  border-radius: 4px;
}

/*! Artist Details (Tabular View) */
.artist-details {
  max-height: none;
  overflow: visible;
  position: static;
}
.artist-details h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--spotify-green);
  font-size: 18px;
  border-bottom: 1px solid #444;
  padding-bottom: 4px;
}
.artist-rank {
  margin: 0;
  color: #999;
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
}

.artist-details-table {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--spotify-black);
}

.artist-details-table .info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #555;
}

.artist-details-table .info-table thead tr {
  position: sticky;
  top: -22px;
  background-color: #3a3a3a;
  z-index: 10;
}
.artist-details-table .info-table th {
  background-color: #3a3a3a;
  padding-top: 14px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #555;
}
.sort-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  color: #1DB954;
}
.sort-arrow.asc::before {
  content: "\25B2";
}
.sort-arrow.desc::before {
  content: "\25BC";
}
.artist-details-table .info-table td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #555;
}
.artist-details-table .info-table tbody tr:nth-child(even) {
  background-color: #1b1b1b;
}
.artist-details-table .info-table tbody tr:hover {
  background-color: #2c2c2c;
}
.artist-details h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 18px;
  color: #fff;
  border-bottom: 1px solid #444;
  padding-bottom: 4px;
  background-color: var(--spotify-black);
}
.artist-details hr {
  border-top: 1px solid #444;
  margin: 16px 0;
}


.artist-details-table tbody tr:nth-child(odd) {
  background-color: var(--spotify-black);
}


.card-wrapper {
  position: relative;
  width: 550px;
  margin: 0 auto;
}
.back-button {
  left: -50px;
}
.forward-button {
  right: -50px;
}
/*! Top Streamed Artist Halo Effect */
.overlay {
  fill: none;
  stroke: gold;
  stroke-width: 2px;
  opacity: 0;
}

/*! Artist Card */
.artist-card .years-on-chart {
  margin: 4px 0 0 0;
  color: #ccc;
  font-size: 11px;
}
.artist-card {
  background-color: #212121;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 16px;
  margin-top: 36px;
  margin-bottom: 20px;
}
.artist-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 16px;
  border: 2px solid #fff;
}
.artist-card hr {
  border-top: 1px solid #444;
  margin: 16px 0;
}
.artist-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.artist-card-header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 16px;
  object-fit: cover;
  border: 2px solid #fff;
}
.artist-card-header h2 {
  margin: 0 0 4px 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}
.artist-card-header p {
  margin: 0;
  color: #ccc;
  font-size: 14px;
  line-height: 1.4;
}
.artist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px; 
  margin-bottom: 16px;
}

.artist-meta .meta-field {
  background: #222;
  color: #fff;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 6px 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 10px;
}


/*! Tooltip */
.network-tooltip {
  position: absolute;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 10px;
  border-radius: 5px;
  line-height: 1.3;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  max-width: 250px;
}
.network-tooltip-header {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.network-tooltip-row {
  font-size: 10px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.network-tooltip-label {
  font-weight: bold;
  margin-right: 4px;
}

/*! Insturction page */
.instruction-content {
  position: relative;
  padding-bottom: 20px;
}

/*! Minimize Button */
#instruction-toggle-icon {
  position: absolute;
  top: 12px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background-color: var(--spotify-gray-mid);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

/*! Instruction & Info Panel Toggle Styling */
#instruction-toggle-icon.instruction-toggle-icon {
  position: absolute;
  top: 32px;
  right: 17px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--spotify-gray-mid);
  background-color: var(--spotify-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#instruction-toggle-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
#instruction-toggle-icon.hidden {
  display: none;
}
#instruction-toggle-icon.artist-mode {
  border-color: #fff;
  background: var(--toggle-img) center/cover no-repeat;
}
#instruction-toggle-icon.instructions-mode {
  border-color: var(--spotify-green);
}
#instruction-toggle-icon.instruction-toggle-icon i {
  color: var(--spotify-green);
}

#info-panel .info-header {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 8px;
}
#minimize-info-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--spotify-gray-light);
}
#info-panel .nav-button {
  position: absolute;
  top: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background-color: var(--spotify-gray-mid);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  transition: background-color 0.2s, transform 0.1s;
}
#info-panel .nav-button:hover { background-color: var(--spotify-green); transform: scale(1.1); }
#info-panel .nav-button:active { transform: scale(0.95); }
#info-panel #back-button {
  position: absolute;
  left: 12px;
}
#info-panel #forward-button {
  position: absolute;
  left: 52px;
}
#info-panel .nav-button:disabled {
  background-color: var(--spotify-gray-dark);
  color: var(--spotify-gray-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
#overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 900;
}
#info-panel #info-panel-minimize-btn {
  right: 52px;
}
#info-panel #info-panel-close-btn {
  right: 12px;
}
#info-panel.instruction-view {
  display: block;
}
.instruction-legend {
  margin-top: 20px;
}
#info-panel.instruction-view button#instruction-minimize-btn {
  right: 12px;
}

/*! Introduction Page */
/* Set the intro section as the positioning context */
#intro {
  position: relative;
  overflow: hidden;
  text-align: center;
}
/* Use a pseudo-element for the background image */
#intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../img/spotify.png") no-repeat center center;
  background-size: contain  ;
  opacity: 0.2;
  z-index: -1;
}
/* Container for floating images positioned behind text */
#floating-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
#intro h1,
#intro p {
  position: relative;
  z-index: 2;
  /*background-color: rgba(0, 0, 0, 0.8);*/
  padding: 0.3em;
  border-radius: 15px;
  text-align: center;
}
/* Style for the floating images */
#floating-images img {
  position: absolute;
  width: 170px;
  transition: transform 0.3s ease;
  pointer-events: auto;
  /*opacity: 0.8;*/
  filter: brightness(50%);
}
#intro h1
{
  position: relative;
  z-index: 10;
  color: white;
  -webkit-text-stroke: 0.8px white;
  text-shadow: 0 0 2px white, 0 0 4px white;
  text-align: center;
}

/*! Genre Bar Chart*/
/* The container for the bar chart */
#bar-chart-custom-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 100px;
  height: calc(100vh - 100px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: hidden;
}
/* The dark horizontal bar that holds the filters */
.chart-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 600px;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: var(--spotify-gray-dark);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  gap: 20px;
}
/* Filter groups (left and right) */
.filter-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
/* The vertical divider in the middle column */
.filter-divider {
  justify-self: center;
  width: 1px;
  height: 24px;
  background-color: #666;
}
.filter-group label {
  font-size: 14px;
  font-weight: 500;
  color: #ccc;
}
/* Year slider styling  */
.year-slider {
  width: 150px;
  -webkit-appearance: none;
  background: none;
  cursor: pointer;
}
.year-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: #666;
  border-radius: 3px;
}
.year-slider::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  background: var(--spotify-green);
  border-radius: 50%;
  border: 2px solid #fff;
  margin-top: -4px;
  -webkit-appearance: none;
}
/* The numeric year display */
.year-value {
  width: 35px;
  text-align: left;
  font-family: monospace;
  color: #fff;
}
/* Dropdown styling */
.view-selector {
  background-color: var(--spotify-black);
  color: var(--spotify-gray-light);
  border: 1px solid var(--spotify-gray-mid);
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
}
.view-selector:focus {
  outline: none;
  border-color: var(--spotify-green);
}
.genre-solo-tag {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 600;
  background-color: #333;  /* darker background for solo */
  color: #fff;
  text-shadow: 0 0 2px rgba(0,0,0,0.3);
}
.genre-collab-tag {
  display: inline-block;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 600;
  background-color: #ddd;  /* lighter background for collaborative */
  color: #000;
  text-shadow: 0 0 2px rgba(0,0,0,0.3);
}
#bar-chart p strong {
  color: #ffffff;
  font-weight: 800;
  font-style: italic;
}
.hiphop-tag {
  display: inline-block;
  padding: 2px 3px;
  border-radius: 3px;
  background-color: #d62728;
  color: #fff;
  text-shadow: 0 0 2px rgba(0,0,0,0.3);
}
@media (max-height: 700px) {
  #bar-chart .top-text {
    position: relative;
    height: auto;
  }
  #bar-chart-custom-container {
    padding-top: 0;
    height: auto;
  }
}
.electronic-tag {
  display: inline-block;
  padding: 2px 3px;
  border-radius: 3px;
  background-color: #7f7f7f;
  color: #fff;
  text-shadow: 0 0 2px rgba(0,0,0,0.3);
}
.tooltip {
  font-size: 12px;
  padding: 4px 6px;
  max-width: 150px;
  border-radius: 5px;
  line-height: 1.3;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  position: absolute;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
}

/*! Outro Page */
#ending h1 {
  font-size: 2.5em;
}