@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

  /* Global box-sizing for easier sizing */
  * {
    box-sizing: border-box;
  }

  .header-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .header-container h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #FFE433;
  }

  .header-container button {
    background-color: #555;
    border: none;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .header-container button:hover {
    background-color: #888;
  }

  /* Inject a line break before .breakpoint when screen is small */
  @media (max-width: 600px) {
    .breakpoint::before {
      content: "\A"; /* Line break */
      white-space: pre;
    }

    .header-container h1 {
      font-size: 1.2rem;
    }

    .header-container button {
      font-size: 14px;
      padding: 2px 8px;
    }
  }

  body {
    background: linear-gradient(160deg, #0d0d0d, #1a1a1a);
    color: #fff;
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 20px;
    font-size: 16px;
    font-weight: 400;
  }

  .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
  }

  h1 {
    text-align: center;
    color: #FFE433;
  }

  h2 {
    text-align: center;
  }

  h3 {
    text-align: center;
    margin-bottom: 0.2em;
  }

  @media (max-width: 900px) {
    h1, h2 {
      font-size: 26px;
    }
  }

  @media (max-width: 600px) {
    h1, h2 {
      font-size: 20px;
    }
  }

  .table-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
  }

  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }

  th, td {
    padding: 8px 2px;
    text-align: center;
  }

  @media (max-width: 900px) {
    table td, table th {
      font-size: 14px;
    }
  }

  @media (max-width: 600px) {
    table td, table th {
      font-size: 12px;
    }
  }

  th {
    background-color: #1c1c1c;
    color: #FFE433;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #333;
  }

  td {
    font-size: 15px;
    border-bottom: 1px solid #222;
    vertical-align: middle;
    transition: background-color 0.3s ease;
  }

  tr:nth-child(even) {
    background-color: #151515;
  }

  tr:hover {
    background-color: #222;
  }

  .color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
  }

  .search-container {
    text-align: center;
    margin: 30px 0;
    position: relative;
  }

  .search-input {
    padding: 12px 20px;
    font-size: 16px;
    width: 60%;
    max-width: 400px;
    border: 2px solid #ffffff44;
    border-radius: 30px;
    background-color: #1e1e1e;
    color: white;
    transition: border 0.3s, box-shadow 0.3s;
  }

  @media (max-width: 900px) {
    .search-input {
      font-size: 14px;
      max-width: 300px;
      width: 80%;
    }
  }

  @media (max-width: 600px) {
    .search-input {
      font-size: 12px;
      max-width: 300px;
      width: 100%;
    }
  }

  .search-input:focus {
    outline: none;
    border-color: #22aeff;
    box-shadow: 0 0 8px #22aeff66;
  }

  ::placeholder {
    color: #cccccc;
    opacity: 0.7;
  }

  .suggestion-box {
    background: #222;
    color: white;
    max-width: 300px;
    margin: 0 auto;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 5px;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1;
    display: none;
  }

  @media (max-width: 900px) {
    .suggestion-box {
      font-size: 14px;
      max-width: 200px;
    }
  }

  @media (max-width: 600px) {
    .suggestion-box {
      font-size: 12px;
      max-width: 200px;
    }
  }

  .suggestion-box.active {
    display: block;
  }

  .suggestion-box div {
    padding: 8px 12px;
    cursor: pointer;
  }

  .suggestion-box div:hover {
    background-color: #333;
  }

  .pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 12px;
  }

  .pagination button {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background-color: #FFE433;
    color: black;
    font-weight: bold;
    cursor: pointer;
    font-family: "Inter", sans-serif;
  }

  .pagination button:hover:not(:disabled) {
    background-color: #ffd000;
  }

  .pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  #pageDisplay {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #ccc;
  }

  .ranking-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    /*padding: 16px;*/
    width: 100%;
    box-sizing: border-box;
  }

  .ranking-grid2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    /*padding: 16px;*/
    width: 100%;
    box-sizing: border-box;
  }

  /* Responsive grid columns */
  @media (max-width: 900px) {
    .ranking-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

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

    .ranking-grid2 {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .ranking-card {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
    text-align: center;
    background: #000;
    transition: box-shadow 0.3s ease;
    cursor: default;
  }

  .ranking-card:hover {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  }

  .ranking-rank {
    font-size: 1.25em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
  }

  .ranking-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
  }

  .ranking-name {
    font-size: 1.25em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
  }

  .card-info div {
    font-size: 0.9em;
    color: #ddd;
    margin: 3px 0;
    text-align: left;
  }

  /* YouTube Modal */
  #youtubeModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.75);
    align-items: center;
    justify-content: center;
  }

  #youtubeModal.show {
    display: flex;
  }

  .youtube-modal-content {
    background: #111;
    border-radius: 12px;
    padding: 16px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    color: white;
    font-family: "Inter", sans-serif;
  }

  #youtubeFrame {
    width: 100%;
    height: 315px;
    border-radius: 8px;
    margin-bottom: 12px;
  }

  #closeModalBtn {
    background: #FFE433;
    border: none;
    border-radius: 12px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    font-family: "Inter", sans-serif;
  }

  #modalInfoPanel {
    text-align: center;
    font-size: 14px;
    line-height: 1.3;
  }