  :root {
    --music-header-height: 270px;
    --music-footer-height: 38px;
  }

  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  .music {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    height: var(--music-header-height);
    overflow: hidden;
  }

  /* ................................................. Musik Grid Grundlayout */
  .music-main {
    height: calc(100vh - var(--music-header-height) - var(--music-footer-height));
    margin-top: var(--music-header-height);
    padding: 2rem 1rem;
    overflow: hidden;
  }

  .music-main .container-fluid,
  .music-main .row,
  .music-main .col-10,
  .music-main .col-12 {
    height: 100%;
    min-height: 0;
  }

  .music-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.72);
    color: #fff;
  }

  .music-box h2 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
  }

  .music-box p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .track-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-right: -0.75rem;
    padding-right: 1.25rem;
  }

  .track-item {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.625rem;
    align-items: center;
    width: 100%;
    padding: 0.625rem;
    border-radius: 8px;
    background: rgba(8, 8, 8, 0.84);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border-top: none;
    border-right: 4px solid transparent;
    border-bottom: none;
    border-left: 4px solid transparent;
  }

  .track-cover {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 4px;
    background: #000;
    border: 2px solid #5f0000;
    border-radius: 8px;
  }

  .track-item:hover,
  .track-item:focus-visible {
    border-color: #5f0000;
    background: rgba(18, 18, 18, 0.96);
  }

  .track-item:hover .track-title,
  .track-item:focus-visible .track-title {
    color: #a00000;
  }

  .track-item.active {
    border-color: #8b0000;
    background: rgba(28, 10, 10, 0.96);
  }

  .track-item.active .track-title {
    color: #c40000;
  }

  .track-title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #8b0000;
    font-family: "Futura Std", "Futura", sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
  }

  .player-box {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .player-cover-frame {
    order: 2;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0e0e0e;
  }

  .player-cover {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;

    border-radius: 12px;
  }
  .player-audio {
    order: 1;
    width: 100%;
    margin-bottom: 1.25rem;
  }
  .lyrics-box {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    color: #dddddd;
  }

  .lyrics-box summary {
    flex: 0 0 auto;
    margin-bottom: 0.75rem;
    color: #c42b2b;
    cursor: pointer;
    font-family: "Futura Std", "Futura", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
  }

  .lyrics-box h4 {
    margin: 1rem 0 0.4rem;
    color: #ffffff;
    font-size: 1rem;
  }

  .lyrics-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.75rem;
    line-height: 1.45;
  }

  .lyrics-group {
    margin-bottom: 0.75rem;
  }

  .lyrics-scroll [data-time] {
    color: #dddddd;
  }
  .lyrics-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
  .lyrics-scroll [data-time].active {
    color: #d64545;
    opacity: 1;
    font-weight: 700;
  }
  @media (max-width: 991.98px)
  {
    html,
    body
    {
      height: auto;
      min-height: 100%;
      overflow-x: hidden;
      overflow-y: auto;
    }

    .music-main
    {
      height: auto;
      min-height: 0;
      overflow: visible;
    }

    .music-main .container-fluid,
    .music-main .row,
    .music-main .col-10,
    .music-main .col-12
    {
      height: auto;
      min-height: 0;
    }

    .player-column
    {
      order: 1;
    }

    .track-column
    {
      order: 2;
    }

    .lyrics-column
    {
      order: 3;
    }

    .music-box
    {
      height: auto;
      min-height: 0;
      overflow: visible;
    }

    .player-box
    {
      height: auto;
    }

    .player-cover-frame
    {
      width: 100%;
      min-height: 0;
      flex: none;
    }

    .player-cover
    {
      display: block;
      width: 100%;
      height: auto;
      max-width: 100%;
      max-height: 60vh;
      object-fit: contain;
    }

    .player-audio
    {
      width: 100%;
    }

    .track-list
    {
      height: auto;
      max-height: 50vh;
      overflow-y: auto;
    }

    .lyrics-panel
    {
      height: 60vh;
      min-height: 300px;
    }
  }
