@media (min-width: 1501px) {
    #welcomeOverlay {
        display: flex;
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        background: rgba(0,0,0,0.9);
        z-index: 10000;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    
    .container {
        grid-template-columns: 1fr; 
    }

    .special-post {
        cursor: default;
        pointer-events: none; 
        opacity: 1;
        background-color: #00000000 !important;
        border: 1px dotted var(--border-color);
        max-height: 449px;
        min-height: 449px;
        border-radius: 2px;  
        display: grid;
        align-items: center;
        justify-content: center;
        
    }

    .logo-img {
        object-fit: cover;
        width: 100%;
        height: auto;
        display: flex;
        border-radius: 8px;
        padding-left: 20px;
        padding-right: 20px;
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.826));
    }
    
    .logo-svg {
        width: 100%;
        padding: 10px, 10px, 10px, 10px;
        height: auto;
        fill: var(--logo-color);
      }

    .top-bar {
        display: block;
        align-items: center;
        gap: 0px;
        margin: 0 10px;
        margin-top: 0px;
        margin-bottom: 0px;
        border: 0px dotted var(--border-color);
        border-radius: 2px;
      }
  
    .mobile-menu {
        display: block;
        flex-shrink: 0;
      }
    
      .top-buttons {
        display: flex;
        margin-top: -10px;
        margin-left: -10px;
        margin-right: -10px;
        width: auto;
        border: 1px solid var(--border-color);
      }


    .search-form {
        width: auto;
        display: flex;
        margin-left: -10px;
        margin-top: 10px;
        margin-bottom: -10px;
        margin-right: -10px;
        border: 1px solid var(--border-color);
        
    }
    .search-wrapper {
        width: auto;
        display: flex;
        margin-left: 0px;
        margin-top: 0px;
        margin-bottom: 0px;
        margin-right: 0px;
        border: 0px dotted var(--border-color);
    }

    #nowPlayingBar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 10px;
        background: var(--post-bg);
        backdrop-filter: blur(8px);           
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid var(--border-color);
        padding: 10px;
        z-index: 9999;
        box-sizing: border-box;
        box-shadow: 6px 6px 10px 4px rgba(0, 0, 0, 0.659);
    }

    .now-playing {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;           
        max-width: 100%;
        min-width: 0;
        background: var(--post-bg); 
        backdrop-filter: blur(8px);           
        -webkit-backdrop-filter: blur(8px);
    }

    .custom-player {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
        width: 90%;
	    grid-template-columns: auto 1fr auto 2.5fr auto 50px 20px auto;
        
    }

    #customSeek {
        height: 4px;
        min-width: 50px;
        max-width: 600px;
    }

    .track-title {
        max-width: 200px;            /* Taille fixe responsive */
        min-width: 30px;
        width: 100%;
        height: 20px;                /* Hauteur fixe */
        overflow: hidden;
        position: relative;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .track-title span {
        display: inline-block;
        padding-left: 100%;
        animation: scrollText 10s linear infinite;
        white-space: nowrap;
    }

    body {
        padding-bottom: 100px; 
    }

      .tuto-launch-btn {
        display: none !important;
      }

        #infoPost.info-expanded-wrapper {
          max-height: 450px !important;
          min-height: 450px !important;
        }
      
        #infoPost .expanded-post {
          max-height: 450px !important;
          min-height: 450px !important;
        }
    
   
}


@media (min-width: 601px) and (max-width: 1000px) {
    .container {
        grid-template-columns: repeat(2, 1fr); 
    }
    #nowPlayingBar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 10px;
        background: var(--post-bg);
        border: 1px solid var(--border-color);
        padding: 10px;
        z-index: 9999;
        box-sizing: border-box;
        box-shadow: 6px 6px 10px 4px rgba(0, 0, 0, 0.659);
    }

    .top-bar {
        display: grid;
        justify-content: space-between;
        align-items: stretch;
        grid-template-columns: repeat(2, 1fr);
    }

    .now-playing {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;           
        max-width: 100%;
        min-width: 0;
        background: var(--post-bg); 
        backdrop-filter: blur(8px);           
        -webkit-backdrop-filter: blur(8px);
    }

    .custom-player {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
        width: 90%;
	    grid-template-columns: auto 1fr auto 2.5fr auto 50px 20px auto;
        
    }

    #customSeek {
        height: 4px;
        min-width: 50px;
        max-width: 600px;
    }

    .track-title {
        max-width: 200px;            /* Taille fixe responsive */
        min-width: 30px;
        width: 100%;
        height: 20px;                /* Hauteur fixe */
        overflow: hidden;
        position: relative;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .track-title span {
        display: inline-block;
        padding-left: 100%;
        animation: scrollText 10s linear infinite;
        white-space: nowrap;
    }

    body {
        padding-bottom: 100px; 
    }

    .top-buttons {
        grid-column: 1 / span 1;
        flex-wrap: wrap;
        margin-right: 0px;
        width: auto;
      }

    .search-form {
        grid-column: 2 / span 1;
        margin-right: -10px;
        margin-left: 0px;
    }

    .tuto-launch-btn {
        display: none !important;
      }
}


@media (min-width: 1001px) and (max-width: 1500px) {
    .container {
        grid-template-columns: repeat(3, 1fr); 
    }

    #nowPlayingBar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 10px;
        background: var(--post-bg);
        border: 1px solid var(--border-color);
        padding: 10px;
        z-index: 9999;
        box-sizing: border-box;
        box-shadow: 6px 6px 10px 4px rgba(0, 0, 0, 0.659);
    }

    .top-bar {
        display: grid;
        justify-content: space-between;
        align-items: stretch;
        grid-template-columns: repeat(3, 1fr);
    }

    .now-playing {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;           
        max-width: 100%;
        min-width: 0;
        background: var(--post-bg); 
        backdrop-filter: blur(8px);           
        -webkit-backdrop-filter: blur(8px);
    }

    .custom-player {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
        width: 90%;
	    grid-template-columns: auto 1fr auto 2.5fr auto 50px 20px auto;
        
    }

    #customSeek {
        height: 4px;
        min-width: 50px;
        max-width: 600px;
    }

    .track-title {
        max-width: 200px;            /* Taille fixe responsive */
        min-width: 30px;
        width: 100%;
        height: 20px;                /* Hauteur fixe */
        overflow: hidden;
        position: relative;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .track-title span {
        display: inline-block;
        padding-left: 100%;
        animation: scrollText 10s linear infinite;
        white-space: nowrap;
    }

    body {
        padding-bottom: 100px; 
    }

    .top-buttons {
        grid-column: 1 / span 1;
        width: auto;
        margin-right: 5px;
      }

    .search-form {
        grid-column: 2 / span 2;
        margin-right: -10px;
    }

    .tuto-launch-btn {
        display: none !important;
      }


}


@media (min-width: 1501px) and (max-width: 1800px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
    }
    .top-bar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .search-form {
        grid-column: 2 / span 1;
    }

    .top-buttons {
        grid-column: 1 / span 1;
        width: auto;
        margin-right: 5px;
      }

    #nowPlayingBar {
        grid-column: 3 / span 2;
    }
}

@media (min-width: 1801px) and (max-width: 2400px) {
    .container {
        grid-template-columns: repeat(5, 1fr);
    }

    .top-bar {
        grid-template-columns: repeat(5, 1fr);
    }

    .search-form {
        grid-column: 2 / span 2;
        width: auto;
    }

    .top-buttons {
        grid-column: 1 / span 1;
        width: auto;
        margin-right: 5px;
      }

    #nowPlayingBar {
        grid-column: 4 / span 2;
    }
}

@media (min-width: 2401px)  {
    .container {
        grid-template-columns: repeat(6, 1fr);
    }

    .top-bar {
        grid-template-columns: repeat(6, 1fr);
    }

    .search-form {
        grid-column: 2 / span 3;
    }

    .top-buttons {
        grid-column: 1 / span 1;
        width: auto;
        margin-right: 5px;
      }

    #nowPlayingBar {
        grid-column: 5 / span 2;
    }


}