@import url(//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600,400,300);

        body {
            background-color: #181818;
            color: #efefef;
        	font: 300 13px/1.4 'Open Sans', sans-serif;
	        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
            margin: 0;
            padding: 0;
            line-height:1.5;
        }
        a { color: #fff; text-decoration: none; }
        a:hover { text-decoration: underline; }
        h1 { font-weight: 400; color: #eee; font-size: 160%; }
        h2 { font-style: italic; font-weight: 200; font-size: 120%; margin:0; padding:0; line-height:1.2;}
        .radtitle { font-weight: 200; display:inline-block; color: #eee; background-color: #2D2E33; font-size: 90%; border-radius: 15px; padding: 6px 15px 6px 15px; margin-bottom: 10px;}

        header a {
            color: #aaa;
            text-decoration: none;
            margin: 0 10px;
            font-size:90%;
        }

        header a:hover {
            text-decoration: underline;
        }

header {
    display: grid;
    grid-template-areas: 
        "logo welcome form"
        "buttons buttons buttons";
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 10px;
    background-color: #000;
    color: #ccc;
    position: relative;
}

header .logo {
    grid-area: logo;
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    margin: 0;
    line-height:5px;
    font-weight: bold;
    text-align: center; 
}

header a { color: white; text-decoration:none; }



header .welcome {
    grid-area: welcome;
    text-align: center;
    font-size: 90%;
}

header .search-form {
    grid-area: form;
    width: 100%;
    min-width:300px;
    text-align: center; 
    margin: 0;
    padding: 0; 
}

.search-input {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    outline: none;
    box-sizing: border-box; 
    margin: 0 auto; 
}

.search-input:focus {
    border-color: #1db954; 
}


.button-container {
    grid-area: buttons;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.button a {
    font-size: 70%;
    color: white;
    text-decoration: none;
}

.button {
    padding: 5px 10px;
    background-color: #2D2E33;
    color: white;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
}

.button:hover {
    background-color: #27272B;
}

.redline { border-bottom: 1px solid red; margin: 15px 0;}

.menu {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    background-color: #000;
    padding: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid red;
    
}

.menu-item {
    font-size: 75%;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    position: relative;
    border-radius: 5px; 
}

.menu-item:hover {
    color: white;
    text-decoration: none;
}

.menu-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00aaff;
    transition: width 0.3s;
}

.menu-item:hover::after {
    width: 100%;
}

@media (max-width: 600px) {
    header {
        grid-template-areas: 
            "logo"
            "welcome"
            "form"
            "buttons";
        grid-template-columns: 1fr; 
        text-align: center; 
    }

    .search-form {
        width: 100%; 
    }

    .search-input {
        width: calc(100% - 20px); 
        max-width: 100%;
    }
}

        .tracklist {
            max-width: 800px;
            margin: 20px auto;
            padding: 0 8px;
        }
        .tracklist p { font-size: 90%; }
        .track-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px;
            background: #1f1f1f;
            border-top: 1.5px solid #3e3f44;
        }

        .track-item:last-child {
            border-bottom: none;
        }

        .track-item:hover {
            background-color: #0c0d0f;
        }

        .track-info {
            display: flex;
            align-items: center;
        }
        .rank {
            cursor: pointer;
            position: relative;
            width: 25px;
            height: 25px;
            margin-right: 10px;
             display: flex;
            justify-content: center; /* Horizontal alignment */
            align-items: center;    /* Vertical alignment */
        }
        .play-icon {
            min-width: 25px;
            min-height: 25px;

            background: url('/play-icon.png') no-repeat center;
            background-size: contain;
            margin-right: 10px;
            padding: 0 5px;
            cursor: pointer;
        }
        .play-icon.pause {
            background-image: url('/pause-icon.png?xxx');
        }

        #player-bar.hidden {
            display: none;
        }
        #player-bar {
            position: fixed;
            bottom: 0;
            left:0;
            margin:0;
            padding:0;
            width: 100%;
            background: #000;
        }

        .track-details {
            display: flex;
            flex-direction: column;
        }

        .track-title {    font-weight: 400;            margin: 0;        }
        .little-title {      margin: 2px 0;        }
        .track-title a { font-size: 110%; }
        .little-title a { font-size: 100%; }
        .track-album { margin:0; line-height:1.8; font-style: italic; font-size: 10px; color: #aaa;}
        
        .track-artist {
            font-size: 80%;
            color: rgba(255, 255, 255, 0.5);
            margin: 0;
            
        }
        .track-artist a { color: rgba(255, 255, 255, 0.5); text-decoration:none; font-size: 90%;}
        .track-artist a:hover { text-decoration: underline; }
        .track-track { font-size: 90%; margin:0; }
        .track-meta {
            display: flex;

            align-items: center;
            text-align: left;
            width: auto;
        }

        .bitrate {
            font-size:80%;
            margin-right: 15px;
        }

        .duration {
        margin-left: auto;
        font-size: 80%;
        }

        .footer {
            padding: 10px 20px;
            text-align: center;
            background: linear-gradient(to top, #151515, #202020);
            color: #ccc;
            height: 100px;
            font-size: 85%;
        }

        .splitter {
            margin: 10px 0;
            height: 1px;
            background-color: #333;
        }


        .text-box {
  background-color: #000;
  color: #d9d9d9;
  padding: 10px 20px;
  font-size:80%;
  display: inline-block;
}

.dl-button {
  background-color: #0078d4;
  display: inline-block;
  color: white;
  border: none;
  font-weight:bold;
  padding: 9px 15px;
  border-radius: 5px;
  font-size:85%;
  cursor: pointer;
  margin-left: 10px;
}
.fluo { color: #0078d4; }
.dl-button:hover {
  background-color: #005bb5;
}

.more { letter-spacing: 3px; margin:10px 0; color: rgba(255, 255, 255, 0.5);}
.result {margin: 10px 0; display: none; font-size: 16px; }


/* Pagination */
.pagination {
    font-size: 12px;
    margin: 10px 5px;
    text-align: center;
}

.pagination a {
    margin: 0 5px;
    padding: 2px 7px;
    color: white;
    background-color: #0078d4;
    border-radius: 4px;
    text-decoration: none;
}

.pagination a:hover {
    background-color: #0266b3;
}

.pagination span {
    margin: 0 5px;
    font-weight: bold;
}
.pagination a.now {
    margin: 0 5px;
    padding: 2px 7px;
    color: rgb(27, 53, 17);
    background-color: white;
    font-weight: bold;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
}

.thumbnail-container {
    width: 50%;
    min-width: 300px;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
  }


  .thumbnail-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 130%;
    max-width: none;
    max-height: none;
  }