  /* Blue Moon - https://www.cursors-4u.com/cursor/blue-moon */
  * {
    cursor: url('https://cdn.cursors-4u.net/previews/blue-moon-58baec34-32.webp') 32 32, auto !important;
  }

  body {
    margin: 0;
    scrollbar-width: thin;
    background-color: #272739;
    font-family: monospace;
    color: #4f5a64;
  }

  a {
    color: #77888c;
  }

  * {
    scrollbar-width: thin;
  }

  *::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  /* Loading Bar */
  /* Full screen overlay to block content while loading */
  #loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #272739;
    /* Background color of the loader screen */
    z-index: 9999;
    /* Keep it above all other elements */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }

  /* Track container */
  .loader-container {
    width: 80%;
    max-width: 400px;
    height: 3px;
    background-color: #272739;
    border-radius: 0px;
    overflow: hidden;
  }

  /* The actual moving bar */
  #progress-bar {
    width: 0%;
    height: 100%;
    background-color: #4f5a64;
    /* Loading bar color */
    transition: width 0.4s ease;
    /* Smooth progress movement */
  }

  /* Utility class to fade out the overlay */
  .loader-hidden {
    opacity: 0;
    visibility: hidden;
  }


  /* Center Layout */
  .centered {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "moon"
      "mooncontent"
      "counter";
    grid-template-rows: 122px 840px auto;
    gap: 0px 20px;
    width: 90%;
    max-width: 1600px;
    min-height: 1340px;
    margin: 0 auto;
    padding: 5px;
    box-sizing: border-box;
  }

  /* Page header */
  .mooncontainer {
    background-image: url('/moon.png');
    width: 428px;
    height: 122px;
    grid-area: moon;
    position: relative;
    top: auto;
    left: auto;
    z-index: -1;
  }

  .title {
    color: #77888c;
    grid-area: moon;
    position: relative;
    width: fit-content;
    height: fit-content;
    top: 55px;
    left: 18px;
    font-size: 24px;
  }

  /* Shared card structure */
  .outer-card {
    background-color: #7d8b96;
    border: 2px solid #282f3d;
    background-image: repeating-conic-gradient(#ffffff15 0% 25%, transparent 0% 50%);
    background-size: 5px 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 2px rgba(17, 19, 31, 0.28);
  }

  .top-bar {
    width: 100%;
    height: 24px;
    background-color: #3f4756;
    border-bottom: 2px solid #282f3d;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    line-height: 1;
  }

  .inner-frame {
    flex: 1;
    padding: 8px;
    box-sizing: border-box;
  }

  .inner-frame--linkmenu {
    padding: 20px 16px 18px 16px;
  }

  .content-screen {
    width: 100%;
    height: 100%;
    background-color: #232538;
    border: 2px solid #282f3d;
    box-sizing: border-box;
    padding: 14px 10px 10px 10px;
  }

  #music {
    position: relative;
    padding: 0;
    overflow: hidden;
  }

  .menu {
    position: absolute;
    top: 30px;
    left: 0;
    background: #77888cb0;
    height: 30px;
    width: 100%;
    border-bottom: 1px solid #4f5a6466;
  }

  .menu a {
    color: #4f5a64;
    line-height: 18px;
    display: inline-block;
    padding: 0 12px;
    border: 1px solid transparent;
    margin: 1px 1px;
    text-decoration: none;
  }

  .menu a:hover {
    background: #77888c;
    border: 1px solid #4f5a6469;
    box-sizing: border-box;
  }

  .menu svg {
    position: relative;
    top: 2px;
  }

  /* Main page layout */
  .main-content {
    grid-area: mooncontent;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 0 20px;
    width: 90vw;
    max-width: none;
    min-width: 0;
  }

  .card--primary {
    width: auto;
    height: 800px;
  }

  .card--lyricbook {
    width: auto;
    height: 800px;
  }

  /* Counter cards */
  .counter-row {
    grid-area: counter;
    position: relative;
    top: auto;
    /*980px;*/
    transform: translateX(5%);
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 28px;
    width: 80vw;
    max-width: none;
    /*calc(100vw - 80px);*/
    flex-flow: row wrap;
  }

  .card-counter {
    position: relative;
    height: 90px;
    width: 200px;
    flex: 0 0 200px;
  }

  .card-counter .top-bar {
    height: 18px;
    justify-content: center;
    text-align: center;
  }

  .card-counter .inner-frame {
    padding: 6px;
  }

  .card-counter .content-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2px;
    padding: 8px 8px;
    overflow: visible;
  }

  .counter-value,
  .counter-label {
    display: block;
  }

  .counter-glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 90px;
    font-size: 24px;
    color: #77888c;
    line-height: 1;
    text-align: center;
  }

  .counter-value {
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.08em;
    margin: 4px 0;
    line-height: 1.2;
  }

  .counter-label {
    font-size: 0.68rem;
    color: #8c9ba5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.4;
  }

  /* Extra UI bits */
  #webamp-mount {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  #webamp-mount * {
    pointer-events: auto;
  }


  .top-bar-title {
    display: block;
    font-size: 0.75rem;
    color: #a2b0bc;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }

  @media (max-width: 980px) {
    body {
      min-width: 320px;
    }

    .centered {
      grid-template-columns: 1fr;
      grid-template-areas:
        "moon"
        "mooncontent"
        "counter";
      grid-template-rows: auto;
      width: min(90vw, 600px);
      gap: 20px;
    }

    .mooncontainer,
    .title {
      grid-column: 1;
      width: 100%;
      margin: 0 auto;
    }



    .title {
      grid-area: moon;
      text-align: center;
    }

    .main-content {
      grid-template-columns: minmax(0, 1fr);
      gap: 20px;
      width: 100%;
    }

    .card--primary,
    .card--lyricbook,
    .card-counter02,
    .card-counter03,
    .card-counter04,
    #webamp-mount {
      position: relative;
      left: auto;
      top: auto;
      margin: 20px auto;
      width: min(90vw, 600px);
    }

    .main-content > .card--primary,
    .main-content > .card--lyricbook {
      width: 100%;
      margin: 0;
    }

    .counter-row {
      grid-area: counter;
      display: grid;
      width: 100%;
      grid-template-columns: 1fr;
      gap: 12px;
      margin: 0 auto;
      transform: none;
    }

    .counter-glyph {
      width: 100%;
      height: auto;
      padding: 8px 0;
    }

    .card-counter02,
    .card-counter03,
    .card-counter04 {
      width: min(90vw, 600px);
      height: 118px;
      display: block;
    }

    #webamp-mount {
      height: 520px;
      left: auto;
      top: auto;
    }
  }

  @media (max-width: 600px) {
    .top-bar-title {
      font-size: 0.62rem;
      letter-spacing: 0.08em;
    }

    .counter-value {
      font-size: 0.9rem;
    }

    .counter-label {
      font-size: 0.6rem;
      letter-spacing: 0.08em;
    }
  }