html {
    height: 100%;
  }

  /* current song hilight */

  #history > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(2) {
    background-color: #000000;
  }

  body {
    font-family: "Inter var", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
      Helvetica, sans-serif;
    /*background: #dbd9d9;*/
    margin: 0;
    width: 100%;
    margin: auto;
    font-size: 14px;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .flex_1 {
    display: flex;
    flex-direction: column;
    max-width: 650px;
    width: 80%;
    margin: auto;
    background: #bababa;
    border-radius: 10px;
    padding-bottom: 20px;
    align-items: center;
  }

  .top {
    width: 100%;
    height: 400px;
    position: relative;
    background-image: url(tradio.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    margin-bottom: 10px; /* Ensures spacing below .top */
  }

  .controls {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #5f130f;
    padding: 5px;
    border-radius: 10px;
    margin-top: 0;
    max-width: 650px; /* Ensure same width as .flex_1 */
  }




  /* main flex container */

 /*  .flex_1 {
    display: flex;
    flex-direction: column;
    max-width: 650px;
    width: 80%;
    margin: auto;
    background: #bababa;
    border-radius: 10px;

  } */

  .links {
    display: flex;
    justify-content: center;
    padding: 5px;
  }

  .box {
    display: inline-block;
    padding: 20px;
    border: 1px solid white;
    text-decoration: none;
    color: white;
    background-color: #00000;
    font-size: 15px;
    font-weight: bolder;
    border-radius: 20px;
  }

  .quality {
    color: wheat;
    font-size: 13px;
  }

  .player {
    justify-content: center;
    text-align: center;
  }

  .background {
    flex: 2;
    border: 7px solid #bcbcbc;
    background: #000000;
    padding: 0.75em 0;
    /* border-radius: 50px; */
    background: #f7f7f7;
    margin: 1.222em;
    box-shadow: 0 0 10px 1px gray;
    border-radius: 20px;
  }

  .iconify {
    color: black !important;
  }

  .audioPlayer {
    min-height: 100%;
    background-color: #e1e1e1;
    text-align: left;
    color: black;
    box-shadow: inset -7px 0 9px -7px rgba(134, 130, 130, 0.24);
    flex: 1;
    display: flex;
    flex-direction: row;
    border-bottom: 1px #cac9c9 solid;
    border-radius: 20px;
  }

  .aroundbutton {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .playbutton {
    position: relative;
    z-index: 1;
    box-sizing: content-box;
    display: block;
    border-radius: 50%;
    width: 10px;
    height: 15px;
    padding: 26px 36px 26px 26px;
    margin:10px;
  }

  /* .playbutton:before {
        content: "";
        position: absolute;
        z-index: 0;
        left: 50%;
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
        display: block;
        width: 75px;
        height: 75px;
        background: #9b4d4d;
        border-radius: 50%;
        animation: pulse-border 2.2s ease-out infinite;
    } */

  .playbutton:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 75px;
    height: 75px;
    background: #b22c25;
    border-radius: 50%;
    transition: all 200ms;
  }

  /* .playbutton:hover:after {
        background-color: darken(#fa183d, 10%);
    } */

  .playbutton img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
  }

  /* .playbutton span {
        display: block;
        position: relative;
        z-index: 3;
        width: 0;
        height: 0;
        border-left: 22px solid #fff1f1;
        border-top: 15px solid transparent;
        border-bottom: 15px solid transparent;
    } */

  /* animation for the play button */

  /* @keyframes pulse-border {
        0% {
            transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
            opacity: 1;
        }
        100% {
            transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
            opacity: 0;
        }
    } */

  #song {
    font-weight: bold;
    color: black;
    margin: 10px;
    padding: 10px;
    background-color: brown;
    border: wheat solid 2px;
    border-radius: 20px;
  }

  #artist {
    font-weight: bold;
    font-size: 15px;
    color: black;
  }

  #vol-control {
    appearance: slider-horizontal;
    cursor: default;
    border: initial;
    margin: 2px;
    height: 12px;
    background: whitesmoke;
    border-radius: 15px;
    filter: hue-rotate(140deg) brightness(0.9);
  }

  .volume {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top:5px;
    padding:10px;
    border-radius:15px;
  }

  i.fa-volume-down {
    margin-right: -8px;
    right: 0;
    margin: 2px;
    font-size: 15px;
  }

  .fa-pause {
    width: 1.2em !important;
  }

  .fa-play {
    width: 1.35em !important;
  }

  i.fa-volume-up {
    margin-right: -8px;
    right: 0;
    margin: 2px;
    font-size: 15px;
  }

  /* offsets the inner parts of the player */

  /* .controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #5f130f;
    display: flex;
    justify-content: center;
  } */

  @media screen and (max-width: 600px) {
    .flex_1 {
      max-width: 60%;
    }
  }

  #nojs_message {
    background: #726f6f;
    color: white;
    font-weight: bolder;
    line-height: 1.5em;
    padding: 1em;
  }

  input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  input[type="checkbox"]:focus {
    outline: 0;
  }

  .toggle {
    height: 28px;
    width: 48px;
    border-radius: 16px;
    display: inline-block;
    position: relative;
    margin: 1em 0.3em;
    border: 2px solid #a2a2a4;
    background: linear-gradient(180deg, #494a50 0%, #29292b 100%);
    transition: all 0.2s ease;
  }

  .toggle:after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 2px rgba(44, 44, 44, 0.2);
    transition: all 0.2s cubic-bezier(0.5, 0.1, 0.75, 1.35);
  }

  .toggle:checked {
    /*! border-color: #B22B2B; */
    background: #b22c25;
    margin: 1em 0.3em;
  }

  .toggle:checked:after {
    transform: translatex(20px);
  }

  .pressed {
    display: block;
    position: relative;
    z-index: 3;
    background: #fff1f1;
    width: 22px !important;
    height: 22px !important;
    border-left: 0px solid #fff1f1 !important;
    border-top: 0px solid transparent !important;
    border-bottom: 0px solid transparent !important;
  }

  .on {
    color: white;
    z-index: 100;
    display: block;
    visibility: visible;
    position: inherit;
    font-size: 15px !important;
    border: none;
  }

  /* .loader {
        border: 3px solid #eae7e7;
        border-top-style: solid;
        border-top-width: 5px;
        -webkit-animation: spin 1s linear infinite;
        animation: spin 1.4s ease-out infinite;
        border-radius: 50%;
        width: 100px;
        height: 75px;
        background: #c74d47;
    } */

  #loader {
    visibility: hidden;
    position: absolute;
    display: block;
    margin: auto;
    overflow: visible;
  }

/*   .top {
    height: 400px;
    position: relative;
    background-image: url(tradio.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;

  }
 */
  #history {
    text-align: left;
    font-size: 13px;
    height: auto;
    border-radius: 20px;
  }

  #history > table {
    border-collapse: collapse;
    width: 500px;
  }

  #history > table:nth-child(1) > tbody:nth-child(1) > tr {
    border-bottom: rgb(77, 77, 77) solid 1px;
    /* Collapse the original line */
  }

  #history > table:nth-child(1) > tbody:nth-child(1) > tr td {
    padding-top: 8px;
    padding-bottom: 8px;
    /* Collapse the original line */
  }

  #history > table:nth-child(1) > tbody:nth-child(1) > tr td:nth-child(3) {
    text-indent: -9999px;
    line-height: 0;
    /* Collapse the original line */
  }

  #history > table:nth-child(1) > tbody:nth-child(1) > tr td:nth-child(1) {
    text-indent: -9999px;
    line-height: 0;
    /* Collapse the original line */
  }

  #history > table:nth-child(1) > tbody:nth-child(1) > tr td:nth-child(1)::after {
    content: "\f001";
    text-indent: 0;
    display: block;
    font-family: FontAwesome;
    padding: 10px;
    padding-right:0px;
    font-size: x-large;
    color: antiquewhite;
    /* New content takes up original line height */
  }

  #history
    > table:nth-child(1)
    > tbody:nth-child(1)
    > tr:nth-child(2)
    td:nth-child(1)::after {
    /*content: "\f025 ";*/
    font-weight: bold;
  }

  #history > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(2) {
    display: none;
  }

  #history > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(2) {
    font-weight: bolder;
  }

  #history > table:nth-child(1) > tbody:nth-child(1) > tr:nth-child(1) {
    display: none;
  }

  #history
    > table:nth-child(1)
    > tbody:nth-child(1)
    > tr:nth-child(2)
    > td:nth-child(3) {
    display: none;
  }

  /* Safari */

  /* @-webkit-keyframes spin {
        0% {
            -webkit-transform: rotate(0deg);
        }
        100% {
            -webkit-transform: rotate(360deg);
        }
    } */

  /* @keyframes spin {
        0% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    } */

  .quality {
    display: flex;
    flex-direction: row;
    margin-top: 0.5em;
    padding-top: 0.25em;
    justify-content: center;
    border-top: 1px solid #c8c8c8;
  }

  /* coloring */

  html {
    background: #121212;
  }

  .background {
    background-color: #161616;
    box-shadow: 0 0 10px 1px #151414;
    border-color: #5f130f;
  }

  #artist {
    margin-top: 0.25em;
  }

  #artist,
  #song {
    border-radius: 10px; /* Make the element rounded */
    display: flex; /* Enables flexible box layout */
    align-items: center; /* Centers text vertically */
    justify-content: center; /* Centers text horizontally */
    text-align: center; /* Ensures multi-line text is centered */
    height: 62px; /* Set a fixed height if needed */
    padding: 12px; /* Keep padding for spacing */
    color: white;
}


  body {
    box-shadow: none;
    /*background: #121212;*/
    align-items: center;
    justify-content: center;

  }

  p,
  a,
  h1,
  h2,
  h3 {
    color: white;
  }

  .right {
    background: #181a1b;
    box-shadow: none;
    border-bottom: 7px solid #8c1e18;
  }

  .flex_1 {
    background: #232323;
    box-shadow: none;
  }

  .iconify {
    color: white !important;
  }

  .loader {
    border: 3px solid #1b1818;
  }
  .flex_1 {
    display: flex;
    flex-direction: column;
    max-width: 660px; /* Match background width */
    width: 100%; /* Ensure full width alignment */
    margin: auto;
    background: #1f1e1e;
    border-radius: 15px;
    padding-bottom: 0px;
    align-items: center;
  }

  .background {
    max-width: 660px; /* Match flex_1 width */
    width: 100%;
    border: 3px solid #bcbcbc;
    background: #000000;
    padding: 0.75em 0;
    margin: 1.222em auto; /* Center alignment */
    box-shadow: 0 0 10px 1px rgb(19, 18, 18);
    border-radius: 20px;
  }


  #history > table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed; /* Keeps columns structured */
}

#history > table tbody tr td {
    padding: 8px;
    white-space: nowrap !important; /* Prevents text from breaking */
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left !important; /* Left-aligns text */
    vertical-align: middle;
    display: inline-block; /* Ensures text stays on one line */
}

/* Fix Artist & Song Wrapping Issue */
#history > table tbody tr td.song-entry {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3px; /* Adjust space between elements */
    white-space: nowrap !important;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Add a hyphen between artist and song (if separate spans exist) */
#history > table tbody tr td.song-entry span {
    display: inline;
    white-space: nowrap;
}

#history > table tbody tr td.song-entry span.artist::after {
    content: " - "; /* This ensures a proper hyphen */
}



/* Ensure no extra spacing */
#history > table tbody tr td * {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline !important;
    white-space: nowrap !important;
}
#history > table tbody tr td {
    font-family: Arial, sans-serif; /* Forces a standard font */
}


html{
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Prevents scrolling */
  background: radial-gradient(circle, #121212, #000000); /* Dark gradient background */
  position: relative;
}

/* Abstract animated background using pseudo-elements */
html::before,
html::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 0, 150, 0.6) 10%, rgba(255, 0, 0, 0) 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: floatingShapes 10s infinite ease-in-out alternate;
}

/* Second floating shape */
html::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.6) 10%, rgba(0, 255, 255, 0) 70%);
  animation-duration: 15s;
}

/* Floating animation */
@keyframes floatingShapes {
  0% { transform: translate(-50%, -50%) scale(1); top: 10%; left: 20%; }
  50% { transform: translate(50%, 50%) scale(1.2); top: 40%; left: 60%; }
  100% { transform: translate(-50%, -50%) scale(1); top: 80%; left: 30%; }
}
