#magic-footer {
    /* position: sticky;
    bottom: 0;               stick to viewport bottom while inside section
    left: 0;
    width: 100%;
    padding: 20px;
    background: #111;
    color: #fff;
    text-align: center; */

    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: #121212;
    color: #fff;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.6);
    
    /* start hidden by sliding it DOWN */
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 10;
  }

  
  /* when the section is "active", slide it up into view */
  #music-section.active #magic-footer {
    transform: translateY(0);
  }

  .music-section {
    padding: 40px;
    background: #121212;
    color: #fff;
    font-family: sans-serif;
  }



  .section-heading {
    margin-bottom: 40px;
  }
  .section-heading h1{
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
  }

  .section-heading p{
    margin-top: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: small;

  }

  .song-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .song-card {
    overflow: hidden;
    position: relative;
    z-index: 10;
    transition: box-shadow 0.3s;
    border-radius: 5px;
  }
  .card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e1e1e;
    padding: 20px;
    transition: background 0.3s;
  }
  .card-content > * {
    transition: color 0.3s
  }
  .song-card:hover{
    background: #282828;
    box-shadow: 0px 0px 10px 0.5px rgba(20, 156, 234, 0.8);
  }
  .song-card:hover .song-title {
    color: rgba(20, 156, 234, 0.8);
  }
  .song-title {
    font-size: 1.2rem;
    font-weight: bold;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 400;
    font-style: normal;
    flex: 1;
    text-align: left;
  }
  .song-artist {
    font-size: 1rem;
    opacity: 0.8;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 400;
    font-style: normal;

  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;

  }
  .song-time {
    font-size: 0.9rem;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 400;
    font-style: normal;
    flex: 1;
    text-align: right;
  }


  
  #play-pause {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(20, 156, 234, 0.9);
    border: none;
    margin-right: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  #play-pause::before {
    content: '▶';
    font-size: 20px;
    color: white;
  }
  
  #play-pause.playing::before {
    content: '⏸';
  }

  #play-pause:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(20, 156, 234, 1);
  }

  #play-pause.playing {
    background: rgba(20, 156, 234, 0.7);
    box-shadow: 0 0 15px rgba(20, 156, 234, 1);
  }
  
  #progress-container {
    flex: 1;
    height: 8px;
    background: #333;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
  }
  
  #progress-bar {
    height: 100%;
    width: 0%;
    background: rgb(20, 156, 234);
    border-radius: 4px;
    transition: width 0.1s linear;
  }
  


@media (max-width: 768px) {
  .music-section {
    padding: 20px;
  }

  .section-heading h1 {
    font-size: 1.5rem;
  }

  .section-heading p {
    font-size: 0.9rem;
    text-align: center;
    padding: 0 10px;
  }

  .song-title {
    font-size: 1rem;
    text-align: left;
  }

  .song-artist {
    font-size: 0.85rem;
    position: static;
    transform: none;
    text-align: left;
    margin-top: 5px;
    opacity: 0.7;
  }

  .song-time {
    font-size: 0.8rem;
    text-align: right;
  }

  .card-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
  }

  #magic-footer {
    flex-direction: column;
    height: auto;
    padding: 10px 15px;
    gap: 10px;
    align-items: center;
    justify-content: center;
  }

  #play-pause {
    margin-right: 0;
    margin-bottom: 10px;
  }

  #progress-container {
    width: 100%;
  }
}
