   /*****************************************************
     * RESET + GLOBAL
     *****************************************************/
     * {
        box-sizing: border-box;
      }
      body {
        margin: 0;
        font-family: Arial, sans-serif;
        background: #101215; 
        color: #fff;
      }
      a, button {
        font-family: inherit;
        text-decoration: none;
      }
  
      /*****************************************************
       * HEADER (LIGHT, PEXELS-STYLE)
       *****************************************************/
      header {
        background-color: #f8f8f8;
        padding: 12px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #333;
      }
      .logo {
        font-size: 1.4rem;
        font-weight: bold;
        color: #333;
      }
      .header-actions {
        display: flex;
        align-items: center;
        gap: 20px;
      }
      .join-btn {
        background-color: #ff5555;
        border: none;
        color: #fff;
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 0.95rem;
        cursor: pointer;
        transition: background 0.3s;
      }
      .join-btn:hover {
        background-color: #e74c3c;
      }
  
      /*****************************************************
       * TOP SEARCH AREA (WHITE BAR, LIKE PEXELS)
       *****************************************************/
      .top-search-area {
        background-color: #fff; 
        border-bottom: 1px solid #ddd;
        padding: 16px 20px;
        color: #333; 
      }
      .search-bar-container {
        max-width: 1200px;
        margin: 0 auto;
      }
      .search-row {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
      }
      .search-select {
        background-color: #f2f2f2;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 8px;
        font-size: 0.95rem;
        color: #333;
        cursor: pointer;
        outline: none;
      }
      .search-input-container {
        position: relative;
        flex: 1; 
        display: flex;
        align-items: center;
      }
      #search-input {
        flex: 1;
        padding: 10px 40px 10px 12px; 
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 1rem;
        outline: none;
        color: #333;
      }
      #search-input::placeholder {
        color: #999;
      }
      #clear-search {
        position: absolute;
        right: 10px;
        background: transparent;
        border: none;
        color: #999;
        cursor: pointer;
        font-size: 1rem;
        outline: none;
      }
      #clear-search:hover {
        color: #666;
      }
      #search-button {
        background-color: #333;
        color: #fff;
        border: none;
        padding: 10px 18px;
        border-radius: 4px;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.3s;
      }
      #search-button:hover {
        background-color: #444;
      }
      .subcategories-row {
        display: flex;
        flex-wrap: wrap; /* Allows the items to wrap to the next line */
        gap: 10px; /* Adds spacing between items */
        justify-content: flex-start; /* Aligns items to the left */
        padding: 10px; /* Adds some padding around the container */
        overflow-x: auto; /* Ensures horizontal scrolling on smaller screens */
      }
      
      .subcat-chip {
        white-space: nowrap;
        padding: 8px 14px;
        border: 1px solid #ccc;
        border-radius: 20px;
        background-color: #fafafa;
        font-size: 0.9rem;
        color: #333;
        cursor: pointer;
        transition: background 0.3s;
        flex: 0 0 auto;
      }
      .subcat-chip:hover {
        background-color: #f0f0f0;
      }
  
      /*****************************************************
       * MAIN DARK CONTENT
       *****************************************************/
      .main-content {
        max-width: 1600px;
        margin: 30px auto;
        padding: 0 20px;
      }
      .main-content-inner {
        background: linear-gradient(135deg, #1C1F24 0%, #101215 100%);
        padding: 20px;
        border-radius: 8px;
      }
      #totalRecords {
        font-size: 1.2rem;
        margin-bottom: 20px;
        color: #ffffff;
      }
  
      /*****************************************************
       * WAVE-TRACK, ETC.
       *****************************************************/
      #player-container {
        width: 100%;
        max-width: none; 
        margin: 0;       
        padding: 20px;   
        box-sizing: border-box;
      }
      .wave-track-container {
        display: grid;
        grid-template-columns: 
        66px    /* cover */
        200px   /* title/artist */
        1fr     /* waveform */
        64px    /* BPM */
        98px   /* genre */
        73px    /* likes */
        30px    /* share */  /* NEW COLUMN for Share */
        50px;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
        background: #24272b;
        border-radius: 6px;
        overflow: visible;
        position: relative;
        box-shadow: 0 1px 3px rgba(0,0,0,0.4);
        padding: 1px 0px 1px 0px;
      }
      .wave-track-container:hover {
        box-shadow: 0 4px 15px rgba(0,0,0,0.6);
        transform: translateY(-2px);
        background-color: #2f3338;
      }
      .wave-track-container.playing {
        background-color: #2B2F35; 
        border-left: 4px solid #00FFC8; 
      }
      .wave-track-cover {
        position: relative;
        width: 60px;
        height: 60px;
        border-radius: 6px;
        background-size: cover;
        background-position: center;
        background-color: #ddd;
        cursor: pointer;
      }
      .wave-play-btn {
        position: absolute;
        top: 25%;
        left: 25%;
       
        font-size: 1.5rem;
        color: #ffffff;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 5;
        transition: background 0.3s, transform 0.2s ease;
      }
      .wave-play-btn:hover {
        background: rgba(0,0,0,0.7);
        transform: scale(1.1);
      }
 
      .wave-track-title {
        font-weight: bold;
        color: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .wave-track-artist {
        font-size: 0.9rem;
        color: #ffffffb8;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .artist-link {
        color: #ffffffb8; 
        text-decoration: none; 
        transition: color 0.3s ease;
      }
      .artist-link:hover {
        color: #ff5555; 
        text-decoration: underline;
      }
      .waveform-container {
        height: 60px;
        position: relative;
        width: 100%;
      }
      .waveform-tooltip {
        font-size: 0.8rem;
        pointer-events: none;
        z-index: 10;
        position: absolute;
        background-color: rgba(0, 0, 0, 0.7);
        color: #fff;
        padding: 4px 8px;
        border-radius: 4px;
        display: none;
      }
      .wave-track-bpm,
      .wave-track-genre {
        text-align: center;
        color: #cccccc;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .likes-container {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
      }
      .like-button {
        background: none;
        border: none;
        color: #ff5555;
        font-size: 1.2rem;
        cursor: pointer;
        transition: transform 0.2s ease-in-out;
      }
      .like-button:hover {
        transform: scale(1.2);
      }
      .like-button i {
        margin-right: 5px;
      }
      .like-button span {
        font-size: 1rem;
        color: #ffffff;
      }
      .download-btn {
        background-color: #292c33; 
        color: #fff;
        border: none;
        padding: 10px 10px;
        border-radius: 4px;
        cursor: pointer;
        text-align: center;
        transition: background-color 0.3s ease, transform 0.2s ease;
        display: flex;
        justify-content: center;
        align-items: center;
        
        width: 90%;
      }
      .download-btn i {
        font-size: 1rem;
        color: #ffd700; 
      }
      .download-btn:hover {
        background-color: #ff5555; 
        transform: scale(1.02);
      }
      .download-btn:hover i {
        color: #ffd700;
      }
  
      /*****************************************************
       * PAGINATION
       *****************************************************/
      .pagination-container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 20px 0;
        gap: 10px;
        flex-wrap: wrap;
      }
      .pagination-btn {
        padding: 8px 20px;
        font-size: 1rem;
        background-color: #ff5555;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease, transform 0.2s ease;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
      }
      .pagination-btn:hover:not(:disabled) {
        background-color: #e74c3c;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
        transform: translateY(-2px);
      }
      .pagination-btn:disabled {
        background-color: #555555;
        color: #cccccc;
        cursor: not-allowed;
        box-shadow: none;
        transform: none;
      }
      .page-numbers {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
      }
      .page-number {
        padding: 5px 15px;
        font-size: 1rem;
        border-radius: 6px;
        background-color: #292c33;
        color: #ffffffb8;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.2s ease;
      }
      .page-number:hover {
        background-color: #f2f2f2;
        color: #333;
        transform: scale(1.1);
      }
      .page-number.active {
        font-weight: bold;
        background-color: #ff5555;
        color: white;
        border: 2px solid #e74c3c;
        transform: scale(1.05);
      }
  
      @media (max-width: 768px) {
        header {
          flex-direction: column;
          align-items: flex-start;
        }
        .top-search-area {
          padding: 12px;
        }
        .search-row {
          flex-direction: column;
        }
        .search-select {
          margin-bottom: 8px;
        }
        .main-content {
          margin: 0 auto;
          padding: 10px;
        }
        .wave-track-container {
          grid-template-columns: 66px  1fr 60px 40px 40px !important;
        }
        .wave-track-genre, .waveform-container {
          display: none;
        }
        .pagination-btn,
        .page-number {
          font-size: 0.9rem;
          padding: 8px 15px;
        }
      }
  
      /*****************************************************
       * LIKE BUTTON ANIMATIONS
       *****************************************************/
      @keyframes rotate360 {
        from {
          transform: rotate(0deg);
          color: #ff5555;
        }
        to {
          transform: rotate(360deg);
          color: #ff5555;
        }
      }
      @keyframes pulse {
        0% {
          transform: scale(1);
          color: #ff5555;
        }
        50% {
          transform: scale(1.3);
          color: #ff0000;
        }
        100% {
          transform: scale(1);
          color: #ff5555;
        }
      }
      .like-button.animate {
        animation: pulse 0.6s forwards, rotate360 0.6s linear;
        position: relative;
      }
      @keyframes sparkle {
        0% {
          opacity: 1;
          transform: translate(0, 0) scale(1);
        }
        100% {
          opacity: 0;
          transform: translate(50px, -50px) scale(1.5);
        }
      }
      .like-button.animate::after,
      .like-button.animate::before {
        content: '';
        position: absolute;
        width: 8px;
        height: 8px;
        background: rgba(255, 85, 85, 0.8);
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation: sparkle 0.6s forwards;
      }
      .like-button.animate::before {
        background: rgba(255, 170, 85, 0.8);
        animation-delay: 0.2s;
      }
      .like-button.animate::after {
        background: rgba(255, 85, 85, 0.8);
        animation-delay: 0.4s;
      }
  
      @keyframes sparkle-multiple {
        0% {
          opacity: 1;
          transform: translate(0, 0) scale(1);
        }
        100% {
          opacity: 0;
          transform: translate(var(--x), var(--y)) scale(1.5);
        }
      }
      .like-button.animate .sparkle {
        position: absolute;
        width: 6px;
        height: 6px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        top: 50%;
        left: 50%;
        pointer-events: none;
        animation: sparkle-multiple 0.6s forwards;
      }
      .like-button.animate .sparkle:nth-child(1) {
        --x: 30px;
        --y: -30px;
        background: rgba(255, 85, 85, 0.8);
        animation-delay: 0s;
      }
      .like-button.animate .sparkle:nth-child(2) {
        --x: -30px;
        --y: -30px;
        background: rgba(85, 255, 85, 0.8);
        animation-delay: 0.2s;
      }
      .like-button.animate .sparkle:nth-child(3) {
        --x: 30px;
        --y: 30px;
        background: rgba(85, 85, 255, 0.8);
        animation-delay: 0.4s;
      }
      .like-button.animate .sparkle:nth-child(4) {
        --x: -30px;
        --y: 30px;
        background: rgba(255, 255, 85, 0.8);
        animation-delay: 0.6s;
      }
  
      /*****************************************************
       * MODAL STYLES
       *****************************************************/
       .modal {
    display: none;
    position: fixed; 
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 640px;
    margin: auto;
    border-radius: 8px;
    position: relative;
    color: #333;
    text-align: center;
    /* Enough padding-top to make space for the avatar floating above */
    padding: 60px 20px 20px; 
    /* Let the avatar show outside if needed */
    overflow: visible;
  }
  
  /* The close (X) button in the top-right */
  .modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
  }
  .modal-close-btn:hover {
    color: #000;
  }
  
  /* This absolutely positions the avatar so it’s half out of the top edge */
  .artist-avatar-wrapper {
    position: absolute;
    top: -40px;              /* how far out of the top you want the circle */
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;  /* nice white ring around the circle */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    background: #fff;        /* fallback behind the image if it doesn't fill */
  }
  
  /* The actual avatar image */
  .modal-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* Title below the avatar */
  .modal-header {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
  }
  
  /* Subtext (e.g. “By downloading...”) */
  .modal-subtext {
    color: #333;
    margin-bottom: 10px;
  }
  .modal-subtext a {
    color: #007bff;
    text-decoration: none;
  }
  .modal-subtext a:hover {
    text-decoration: underline;
  }
  
  /* “Available for hire” row */
  .availability-row {
    display: inline-flex;
    align-items: center;
    gap: 8px; 
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
  }
  .available-check {
    font-size: 1.2rem;
    color: #28a745;
  }
  
  /* Social links row */
  .artist-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }
  .artist-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 1.1rem;
  }
  .artist-links a:hover {
    text-decoration: underline;
  }
  .artist-profile-btn {
    background-color: #ff5555;
    color: #f2f2f2;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 220px;
    height: 36px;
  }
  
  .artist-profile-btn:hover {
    background-color: #e0e0e0;
  }
