/* -----------------------------------------
   1) RESET BODY MARGINS/PADDING
------------------------------------------ */
body {
  font-family: 'Open Sans', sans-serif;
  background-color: #121212;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  color: #FFFFFF;
}

/* -----------------------------------------
   2) CONTAINER
------------------------------------------ */
.container {
  width: 85%;
  max-width: 1200px;
  margin: 20px auto;
  background-color: #181818;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-align: center;
  overflow: hidden;
  padding: 20px;
}

/* H1: Always the same text, just styling */
h1 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-align: center;
}

/* -----------------------------------------
   3) TABLE
------------------------------------------ */
table {
  margin: 0 auto; 
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  border-radius: 15px;
  overflow: hidden;
  table-layout: fixed;
}

/* -----------------------------------------
   4) TABLE HEADERS & CELLS
------------------------------------------ */
th, td {
  padding: 10px;
  vertical-align: middle;
  border: 1px solid #333;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  font-size: 1em;
}


/* -----------------------------------------
   4) TABLE HEADERS & CELLS
------------------------------------------ */
th, td {
  padding: 10px;
  vertical-align: middle;
  border: 1px solid #333;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  font-size: 1em;
}


#tableHeader th.listeners {
  background-color: #14833b !important; /* Darker green shade */
  color: white !important; /* White text for readability */
}

/* Monthly Listeners Column Cells */
td.listeners {
  background-color: rgba(30, 215, 96, 0.05); /* Light green hue */
}



/* NOTE: Remove any default color in 'th' so we can rely on .spotify or .radioJavan classes */
th {
  /* background-color: #1DB954;  <-- Removed to avoid overriding .radioJavan */
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1em;
}

/* Even and odd row background */
tr:nth-child(even) {
  background-color: #282828;
}
tr:nth-child(odd) {
  background-color: #181818;
}

/* -----------------------------------------
   5) COLUMN WIDTHS
------------------------------------------ */
th.rank, td.rank {
  width: 35px; 
  font-weight: bold;
}

th.artist {
  width: 90px;
}
td.artist {
  width: 90px;
  text-align: left !important;
}

th.listeners, td.listeners {
  width: 80px; 
  font-weight: 600;
}

th.followers, td.followers {
  width: 80px;
  font-weight: 600;  
}

/* -----------------------------------------
   6) LAST UPDATED
------------------------------------------ */
#lastUpdated {
  margin-top: 20px;
  font-style: italic;
  color: #B3B3B3;
  text-align: center;
}

/* -----------------------------------------
   7) ARTIST INFO + IMAGE
------------------------------------------ */
.artist-info {
  display: flex;
  align-items: center;
}

.artist-info img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 5px;
}

.artist-info a {
  font-size: 0.95em !important;
  font-weight: 700 !important;
}

/* -----------------------------------------
   8) UNIVERSAL LINK OVERRIDE
------------------------------------------ */
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  outline: none !important;
}

a:hover,
a:focus:hover {
  text-decoration: underline !important;
}

/* -----------------------------------------
   9) RESPONSIVE BREAKPOINTS
------------------------------------------ */
@media (max-width: 768px) {
  table {
    font-size: 14px;
  }
  th, td {
    padding: 8px;
  }
  .artist-info a {
    font-size: 0.9em !important;
  }
  h1 {
    font-size: 1.6em;
  }
}

@media (max-width: 600px) {
  table {
    font-size: 12px;
  }
  th, td {
    padding: 6px;
  }
  h1 {
    font-size: 1.4em;
  }
  .artist-info img {
    width: 25px;
    height: 25px;
  }
  .artist-info a {
    font-size: 0.85em !important;
  }
  .rank {
    width: 30px;
  }
  .artist {
    width: 80px;
  }
  .listeners, .followers {
    width: 70px;
  }
}

/* ----------------------------------------------------
   Additional styling for H2, toggle buttons, etc.
----------------------------------------------------- */

/* H2: dynamically changes text (Spotify/RadioJavan) */
h2 {
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 20px;
  color: white; /* White font color */
}

/* Toggle Buttons */
.toggle-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  background-color: #f4f4f4;
  border-radius: 20px;
  overflow: hidden;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.toggle-buttons button {
  font-family: 'Open Sans', sans-serif;
  font-size: 1em;
  padding: 10px 30px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  background-color: #e6e6e6;
  color: black;
  flex: 1;
}

/* Active Spotify button: green */
.toggle-buttons button.active {
  color: white;
  background-color: #1ed760; /* Spotify green */
}

/* Active RadioJavan button: red */
.toggle-buttons button#radioJavanButton.active {
  background-color: #aa251c; /* Radio Javan red */
}

/* Different color for the table header if Spotify or RadioJavan is chosen */
#tableHeader.spotify th {
  background-color: #1ed760 !important; /* Spotify green */
  color: white !important;
}

#tableHeader.radioJavan th {
  background-color: #aa251c !important; /* Radio Javan red */
  color: white !important;
}



.arrow-up {
  color: #1ed760; /* A green color for upward rank change */
  font-size: 0.75em;
  margin-left: 5px;
}

.arrow-down {
  color: #ff4c4c; /* A red color for downward rank change */
  font-size: 0.75em;
  margin-left: 5px;
}


/* -----------------------------------------
   MODERN SLIM BANNER (APPLE-STYLE)
------------------------------------------ */

.slim-banner {
  width: 100%;
  background-color: #d2d2d2; /* light background */
  text-align: center;
  padding: 15px 0;          /* small vertical padding */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4), 0 12px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 0;         /* no extra space below banner */
  position: relative;       /* allow "hovering" effect if needed */
  z-index: 10;              /* so it appears above container if overlapping */
  border-radius: 8px;       /* optional for rounded edges */
}

.banner-logo {
  width: auto;               /* Automatically adjust to the logo's natural size */
  height: 80px;              /* Keep a consistent height */
  object-fit: contain;       /* Maintain the logo's aspect ratio */
  margin-bottom: 0px;        /* Optional: small gap below the logo */
}

.banner-title {
  font-size: 1.6em;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #171717;
}

/* Distinct row for "About" link */
.menu-bar {
  margin-bottom: 10px;
}
.menu-link {
  background-color: #2b2b2b;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
  margin: 0 5px;
}
.menu-link:hover {
  background-color: #3a3a3a;
}

/* Language row separate from menu row */
.lang-row {
  display: flex;
  justify-content: center;
  gap: 10px; /* spacing between buttons */
}
.lang-btn {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85em;
  padding: 5px 12px;
  border: none;
  cursor: pointer;
  background-color: #333;
  color: #ffffff;
  border-radius: 5px;
  transition: background-color 0.2s;
}
.lang-btn:hover {
  background-color: #444;
}
.lang-btn.active {
  background-color: #1ed760; /* Green highlight for active language */
  color: #ffffff;
}

/* Optionally remove top margin from the container
   so the banner touches the container. */
.container {
  margin-top: 0 !important; /* override your 20px if you want no gap */
  /* or reduce it to something smaller if total removal is too tight */
}




/* Hard-hide the Followers column everywhere */
th.followers,
td.followers {
  display: none !important;
}