@media (max-width: 767px) {
  .version-select {
    max-width: none;
    min-height: 42px;
  }

  .pdf-button {
    min-height: 42px;
    padding-inline: 12px;
  }
}

@media (max-width: 639px) {
  body {
    font-size: 16px;
    background: linear-gradient(180deg, #1c1420 0, #16111b 320px);
  }

  .site-header {
    min-height: 58px;
    gap: .75rem;
  }

  .site-header > a span:first-child {
    font-size: 23px;
  }

  .mobile-language-select {
    min-height: 36px;
    min-width: 50px;
    appearance: none;
    border: 1px solid rgb(240 231 216 / .16);
    border-radius: 999px;
    background: rgb(240 231 216 / .055);
    padding: 5px 11px;
    color: #d8a94e;
    font: 600 12px/1.2 ui-sans-serif, system-ui, sans-serif;
    text-align: center;
    text-align-last: center;
    outline: none;
  }

  .mobile-language-select:focus-visible {
    border-color: #d8a94e;
  }

  .mobile-account-menu {
    position: relative;
  }

  .mobile-account-menu summary {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 5px;
    list-style: none;
    border: 1px solid rgb(240 231 216 / .16);
    border-radius: 999px;
    padding: 5px 10px 5px 8px;
    color: #f0e7d8;
    font: 600 12px/1 ui-sans-serif, system-ui, sans-serif;
    cursor: pointer;
  }

  .mobile-account-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-account-menu summary svg {
    width: 19px;
    height: 19px;
    color: #d8a94e;
  }

  .mobile-account-menu[open] summary {
    border-color: rgb(216 169 78 / .55);
    background: rgb(216 169 78 / .08);
  }

  .mobile-account-panel {
    position: absolute;
    z-index: 80;
    top: calc(100% + 9px);
    right: 0;
    width: min(230px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid rgb(240 231 216 / .14);
    border-radius: 12px;
    background: rgb(24 17 28 / .98);
    box-shadow: 0 20px 50px rgb(0 0 0 / .45);
  }

  .mobile-account-identity {
    padding: 14px 15px 12px;
    border-bottom: 1px solid rgb(240 231 216 / .1);
  }

  .mobile-account-identity span,
  .mobile-account-identity strong {
    display: block;
  }

  .mobile-account-identity span {
    margin-bottom: 3px;
    color: #8f8275;
    font-size: 11px;
    letter-spacing: .12em;
  }

  .mobile-account-identity strong {
    overflow: hidden;
    color: #f0e7d8;
    font-size: 15px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-account-panel > a,
  .mobile-account-panel form button {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    color: #d8cebe;
    font-size: 14px;
    text-align: left;
  }

  .mobile-account-panel > a + a,
  .mobile-account-panel form {
    border-top: 1px solid rgb(240 231 216 / .08);
  }

  .mobile-account-panel form button {
    color: #b9a99a;
  }

  .mobile-account-panel > a:active,
  .mobile-account-panel form button:active {
    background: rgb(240 231 216 / .06);
  }

  .nav-link {
    padding: .5rem .4rem;
  }

  .show-cover {
    border-radius: 6px;
    padding: 13px 12px;
  }

  .show-cover h3 {
    font-size: 18px;
  }

  .watch {
    width: 34px;
    height: 34px;
  }

  .lyrics-sheet {
    animation: fadeIn .3s ease;
  }

  .lyric-line:last-child .lyric-cells {
    border-bottom: 0;
  }
}

@media (hover: none) {
  .line-report-trigger {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    opacity: 0;
  }

  .track-button {
    min-height: 44px;
  }
}

@media (pointer: coarse) {
  [data-long-press-report] {
    touch-action: pan-y;
    -webkit-touch-callout: none;
  }

  .line-report-trigger {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    opacity: 0;
  }
}
