html {
  height: 100%;
  width: 100%;
}

  /* Ensure body is visible by default */
  body {
    background-color: #0f0f0f;
    margin: 0;
    font-family: "Roboto", sans-serif;
    color: white;
    overflow: auto; /* Prevent body overflow */
  }

  /* Loading Spinner Styles */
  .loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f0f0f;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .loading.hidden {
    display: none;
  }

  .container {
    background-color: #0f0f0f;
  }

  .button {
    width: 9rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: normal;
    border-radius: 0.4rem;
    border: 1px solid transparent;
    color: #ffffff;
    background-color: transparent;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: font-size 0.3s ease, color 0.3s ease, border 0.3s ease;
    flex: 0 0 auto;
  }

  .button:hover {
    background-color: transparent;
    color: #f6161c;
  }

  .selected {
    font-size: 1rem;
    font-weight: bolder;
    background-color: transparent;
    color: #f6161c;
    border: 2px solid #f6161c;
  }

  .button-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-behavior: smooth;
    max-width: 100%;
    position: relative;
  }

  .arrow {
    background: transparent;
    padding: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .arrow:hover {
    background-color: rgba(255, 0, 0, 0.1);
  }

  .arrow svg {
    fill: red;
    width: 1.9rem;
    height: 1.9rem;
  }

  .arrow-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    overflow: hidden;
  }

  .youtube-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #0f0f0f;
  }

  #youtube-player {
    position: absolute !important; /* Force position over YouTube's default */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

  .youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

  .youtube-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f6161c;
    text-align: center;
  }

  .youtube-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f6161c;
    text-align: center;
  }

  footer {
    background-color: #000000;
    padding: 1rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
  }

  footer a {
    color: #f6161c;
    text-decoration: none;
  }

  .text-ytplus {
    color: #f6161c;
    text-decoration: none;
  }

  @media (max-width: 1024px) {
    .button {
      width: 7rem;
      padding: 0.4rem 0.8rem;
      font-size: 0.9rem;
    }
  }

  @media (max-width: 768px) {
    .button {
      width: 6rem;
      padding: 0.3rem 0.6rem;
      font-size: 0.8rem;
    }

    .arrow svg {
      width: 1.4rem;
      height: 1.4rem;
    }
  }

  @media (max-width: 480px) {
    .button {
      width: 5rem;
      padding: 0.25rem 0.5rem;
      font-size: 0.7rem;
    }

    .arrow svg {
      width: 1.2rem;
      height: 1.2rem;
    }
  }

  @media (max-width: 320px) {
    .button {
      width: 4rem;
      padding: 0.2rem 0.4rem;
      font-size: 0.6rem;
    }

    .arrow svg {
      width: 1rem;
      height: 1rem;
    }
  }

  .lds-dual-ring,

  .lds-dual-ring:after {
    box-sizing: border-box;
  }
  .lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
  }
  .lds-dual-ring:after {
    color:red;
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6.4px solid currentColor;
    border-color: currentColor transparent currentColor transparent;
    animation: lds-dual-ring 0.50s linear infinite;
  }
  @keyframes lds-dual-ring {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
