@import url("https://font.emtech.cc/css/GenKiGothicTW");

:root {
  --primary-bg: #efefef;
  --primary-text: #353d49;
  --secondary-text: #252627;
  --caption-text: #565c5f;
  --link-color: #5c8273;
  --borders: #bbb;
  --font-iansui: "Iansui", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: var(--link-color);
  margin: 0px 2px;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

body {
  font-family: tauhu-oo, sans-serif;
  background: var(--primary-bg);
  min-height: 100vh;
  padding: 20px;
  color: var(--primary-text);
  line-height: 1.55;
}

.container {
  max-width: 840px;
  margin: 0 auto;
}

h1 {
  color: var(--secondary-text);
  text-align: center;
  margin-bottom: 16px;
  margin-top: 16px;
  font-size: 2.5em;
  font-weight: normal;
}

h1 .site-title-link {
  color: inherit;
  text-decoration: none;
}

.hero {
  margin: 20px 0 50px 0;
}

h1 .site-title-link:hover {
  color: var(--link-color);
  /* text-decoration: underline; */
}

h1 .site-title-link:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 4px;
  border-radius: 3px;
}

h1,
h2,
h3 {
  font-family: GenKiGothicTW, sans-serif;
  font-weight: bold;
}

h2 {
  color: var(--secondary-text);
  margin-bottom: 16px;
  margin-top: 28px;
  font-weight: 500;
  font-size: 1.2em;
}

h3 {
  margin-top: 12px;
  margin-bottom: 8px;
  color: var(--caption-text);
  font-size: 16px;
  font-weight: normal;
}

.intro {
  font-size: 14px;
  color: var(--caption-text);
  margin-bottom: 20px;
  text-align: center;
}

.search-panel {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 24px;
}

.search-panel .ff {
  display: block;
  font-size: 13px;
  color: var(--caption-text);
  margin-bottom: 6px;
}

.regex-panel {
  margin-top: 6px;
  padding-top: 0;
  border-top: none;
}

.regex-panel .field-row:last-child {
  margin-bottom: 0;
}

.field-row-search-q {
  margin-top: 8px;
  margin-bottom: 18px;
}

.search-q-actions-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
}

.search-q-actions-row input[type="search"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.search-submit-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  align-self: stretch;
}

.regex-panel:not([hidden]) + .field-row-search-q {
  margin-top: 16px;
}

/* 分段選擇器：滑塊位置由 --seg-index / --seg-count 控制（JS 與 SSR inline 同步） */
.seg-control {
  position: relative;
  background: white;
  border: 1px solid var(--borders);
  border-radius: 3px;
  padding: 4px;
  display: grid;
  gap: 0;
  margin-bottom: 4px;
}

.seg-control.seg-kind {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.seg-control.seg-regex-field {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seg-control.seg-regex-scope {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seg-control.seg-catalog-sort {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.seg-control.seg-song-view {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.seg-control::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: calc(4px + (100% - 8px) * var(--seg-index, 0) / var(--seg-count, 3));
  width: calc((100% - 8px) / var(--seg-count, 3));
  background: var(--link-color);
  border-radius: 3px;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

.seg-cell {
  position: relative;
  min-width: 0;
}

.seg-control input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.seg-control label {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  padding: 10px 6px;
  font-size: 14px;
  line-height: 1.25;
  cursor: pointer;
  color: var(--primary-text);
  border-radius: 3px;
  hyphens: auto;
  word-break: break-word;
}

.seg-control .seg-main {
  display: block;
  font-weight: 500;
}

.seg-control .seg-sub {
  display: block;
  font-size: 11px;
  color: var(--caption-text);
  font-weight: normal;
  margin-top: 2px;
}

.seg-control input:checked + label {
  color: #fff;
}

.seg-control input:checked + label .seg-sub {
  color: rgba(255, 255, 255, 0.92);
}

.seg-control input:focus-visible + label {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}

.field-row {
  margin-bottom: 14px;
}

input[type="text"],
input[type="search"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--borders);
  border-radius: 3px;
  font-size: 16px;
  font-family: inherit;
  background: white;
  color: var(--primary-text);
}

input[type="text"]:focus,
input[type="search"]:focus {
  outline: none;
  border-color: var(--link-color);
}

select {
  width: 100%;
  max-width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--borders);
  border-radius: 3px;
  font-size: 16px;
  font-family: inherit;
  background: white;
}

select:focus {
  outline: none;
  border-color: var(--link-color);
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: center;
  font-size: 15px;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--primary-text);
}

button,
.button-like {
  padding: 12px 24px;
  font-size: 16px;
  border: 1px solid var(--borders);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  background: white;
  color: var(--primary-text);
}

button:hover,
.button-like:hover {
  background: var(--link-color);
  color: white;
  border-color: var(--link-color);
}

button.primary,
a.primary {
  background: var(--link-color);
  color: white;
  border-color: var(--link-color);
  border-radius: 3px;
}

button.primary:hover,
a.primary:hover {
  opacity: 0.9;
}

a.primary {
  display: inline-block;
  text-decoration: none;
}

.stats {
  font-size: 14px;
  color: var(--caption-text);
  padding: 10px 12px;
  border: 1px solid var(--borders);
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 16px;
}

.stats strong {
  color: var(--secondary-text);
  font-size: 22px;
  font-weight: bold;
}

.stats-note {
  font-weight: normal;
  font-size: 13px;
  color: var(--caption-text);
}

.stats-sub {
  margin-top: 6px;
}

.deferred-search-root {
  margin-bottom: 20px;
}

.search-loading-msg {
  font-size: 15px;
  color: var(--caption-text);
  margin-bottom: 14px;
}

.skeleton-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skeleton-card {
  border: 1px solid var(--borders);
  border-radius: 3px;
  padding: 16px 18px;
  background: #fafafa;
}

.skeleton-line {
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    #e8e8e8 0%,
    #f4f4f4 40%,
    #e8e8e8 80%
  );
  background-size: 200% 100%;
  animation: sk-shimmer 1.2s ease-in-out infinite;
  margin-bottom: 10px;
}

.skeleton-line:last-child {
  margin-bottom: 0;
}

.skeleton-line.sk-title {
  width: 55%;
  height: 16px;
}

.skeleton-line.sk-meta {
  width: 35%;
}

.skeleton-line.sk-body {
  width: 100%;
}

.skeleton-line.sk-body.short {
  width: 70%;
}

@keyframes sk-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.err {
  background: #fee;
  color: #c44;
  border: 1px solid #c44;
  border-radius: 3px;
  padding: 12px 15px;
  margin-bottom: 16px;
  font-size: 14px;
}

.hint {
  font-size: 13px;
  color: var(--caption-text);
  margin-top: 8px;
}

.song-ods-no {
  font-variant-numeric: tabular-nums;
  color: var(--caption-text);
  font-weight: 600;
}

.result-card {
  background: #fff;
  border: 1px solid var(--borders);
  border-radius: 3px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.result-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-card h3.title {
  font-size: 1.15em;
  color: var(--secondary-text);
  margin: 0 0 6px;
  font-weight: 600;
}

.result-card h3.title .song-title-text,
.dialog-head h3 .song-title-text {
  font-weight: 600;
}

.card-meta {
  margin-bottom: 10px;
}

.card-meta .result-meta {
  margin-bottom: 4px;
}

.card-meta .result-meta:last-child {
  margin-bottom: 0;
}

.result-meta {
  font-size: 14px;
  color: var(--caption-text);
  margin-bottom: 10px;
}

.result-card-footer {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--borders);
}

.result-card-footer .btn-lyrics-full,
.catalog-item-actions .btn-lyrics-full {
  padding: 9px 16px;
  font-size: 14px;
}

a.catalog-title {
  color: inherit;
  text-decoration: none;
}

a.catalog-title:hover {
  color: var(--link-color);
}

.result-card .title a.song-title-text {
  color: inherit;
  text-decoration: none;
}

.result-card .title a.song-title-text:hover {
  color: var(--link-color);
}

.result-card-footer .result-source-link {
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
}

.lyric-snippet-block {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--borders);
}

.snippet-stack {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.snippet-pair-row .snippet-row-cap {
  font-size: 13px;
  color: var(--caption-text);
  margin-bottom: 4px;
  font-weight: 500;
}

.lyric-snippet-block .lyric-line {
  font-family: var(--font-iansui);
  font-size: 17px;
  line-height: 1.65;
  padding: 0px 12px;
  /* background: var(--primary-bg);
  border-radius: 3px;
  border: 1px solid var(--borders); */
}

.lyric-snippet-block .lyric-line mark {
  background: #c2d7cf;
  /* color: var(--link-color); */
  padding: 0;
  border-radius: 0;
}

.snippet-more-wrap {
  margin-top: 8px;
  padding: 0;
  background: transparent;
  border: none;
}

.snippet-more-summary {
  margin-left: 10px;
  font-size: 13px;
  color: var(--caption-text);
  cursor: pointer;
  font-weight: 500;
  list-style-position: outside;
}

.snippet-more-summary:hover {
  color: var(--link-color);
  text-decoration: underline;
}

.snippet-more-inner {
  margin-top: 8px;
  padding-top: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.snippet-more-block {
  padding: 0;
  border: none;
}

.muted {
  color: var(--caption-text);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--borders);
}

.pagination a,
.pagination span {
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--borders);
  border-radius: 3px;
  background: #fff;
  color: var(--link-color);
  text-decoration: none;
}

.pagination span.disabled {
  color: var(--caption-text);
  opacity: 0.6;
}

.pagination span.current {
  background: var(--link-color);
  color: #fff;
  border-color: var(--link-color);
}

dialog.lyrics-dialog:not([open]) {
  display: none;
}

dialog.lyrics-dialog[open] {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  max-width: 720px;
  width: calc(100% - 40px);
}

/* Safari：`<dialog>` 做 flex 欄位時常錯算子項高度；改由內層 panel 承載 flex 與捲動區 */
.lyrics-dialog-panel {
  max-height: min(85vh, 640px);
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--borders);
  border-radius: 3px;
  padding: 0;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

dialog.lyrics-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.dialog-head {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--borders);
}

.dialog-head h3 {
  margin: 0;
  color: var(--secondary-text);
}

.dialog-body {
  padding: 16px 18px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 15px;
}

pre.dialog-raw {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-iansui);
  margin: 0;
  line-height: 1.75;
}

.dialog-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  background: white;
  color: var(--link-color);
  border-color: var(--link-color);
}

.dialog-close:hover {
  background: #edf3f0;
  color: var(--link-color);
  border-color: var(--link-color);
  opacity: 1;
}

.dialog-close:focus {
  outline: none;
}

.dialog-close:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}

.dialog-close-icon {
  display: block;
  flex-shrink: 0;
}

footer.site-ft {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--borders);
  font-size: 13px;
  color: var(--caption-text);
  text-align: center;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.site-nav-brand {
  font-size: 1.05em;
  color: inherit;
  text-decoration: none;
  font-weight: 400;
  font-family: GenKiGothicTW;
  letter-spacing: 1px;
}

.site-nav-brand:hover {
  color: var(--link-color);
}

.site-nav-brand:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 4px;
  border-radius: 3px;
}

.site-nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-nav-link {
  display: inline-block;
  padding: 4px 2px;
  font-size: 15px;
  color: var(--link-color);
  text-decoration: none;
  font-family: GenKiGothicTW, sans-serif;
  font-weight: normal;
}

.site-nav-link:hover {
  color: var(--secondary-text);
}

.site-nav-link.is-active {
  font-weight: 700;
}

.site-nav-link.is-active:hover {
  color: var(--link-color);
}

.site-nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  gap: 5px;
}

.site-nav-toggle:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}

.site-nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav.is-open .site-nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .site-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .site-nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.catalog-panel {
  margin-top: 8px;
}

.catalog-sort-form {
  margin-bottom: 18px;
}

.catalog-sort-form .ff {
  display: block;
  font-size: 13px;
  color: var(--caption-text);
  margin-bottom: 6px;
}

.catalog-portal {
  margin: 0 0 20px;
  padding: 12px 0 0;
  border-top: 1px solid var(--borders);
}

.catalog-portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.catalog-portal-head-block {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--borders);
}

.catalog-portal-head-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--caption-text);
}

.catalog-portal-nav--head {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.catalog-portal-link--head {
  font-family: GenKiGothicTW, sans-serif;
  font-size: 14px;
  min-width: 1.6em;
  text-align: center;
}

.catalog-head-title {
  margin: 18px 0 8px;
  padding: 6px 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary-text);
  font-family: GenKiGothicTW, sans-serif;
  border-bottom: 1px solid var(--borders);
  scroll-margin-top: 12px;
}

.catalog-head-title:first-child {
  margin-top: 0;
}

.catalog-portal-link {
  font-size: 13px;
  color: var(--link-color);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 3px;
}

.catalog-portal-link:hover {
  text-decoration: underline;
  background: rgba(0, 0, 0, 0.04);
}

.catalog-portal-link.is-current {
  font-weight: 600;
  color: var(--secondary-text);
  background: rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.catalog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-item {
  background: #fff;
  border: 1px solid var(--borders);
  border-radius: 3px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.catalog-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.catalog-item-head .song-ods-no {
  flex-shrink: 0;
}

.catalog-title {
  font-size: 1.05em;
  color: var(--secondary-text);
  font-weight: 600;
  font-family: GenKiGothicTW, sans-serif;
}

.catalog-source-link {
  margin-left: auto;
  font-size: 13px;
  flex-shrink: 0;
}

.catalog-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 14px;
  color: var(--caption-text);
}

.catalog-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--borders);
}

.catalog-item-actions .catalog-source-link {
  margin-left: auto;
  font-size: 14px;
  flex-shrink: 0;
}

.song-detail {
  margin-top: 20px;
}

.song-detail-head {
  background: #fff;
  border: 1px solid var(--borders);
  border-radius: 3px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.song-detail-title {
  font-size: 1.2em;
  color: var(--secondary-text);
  margin: 0 0 14px;
  font-weight: 600;
  text-align: left;
}

.song-meta-list {
  margin: 0;
}

.song-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.song-meta-row:last-child {
  margin-bottom: 0;
}

.song-meta-row dt {
  flex: 0 0 7em;
  margin: 0;
  color: var(--caption-text);
  font-weight: 500;
}

.song-meta-row dd {
  margin: 0;
  flex: 1 1 12rem;
  color: var(--primary-text);
}

.song-lyrics-section {
  background: #fff;
  border: 1px solid var(--borders);
  border-radius: 3px;
  padding: 16px 18px;
}

.song-lyrics-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.song-lyrics-toolbar > .ff {
  display: block;
  font-size: 13px;
  color: var(--caption-text);
}

.song-typing-practice-link {
  font-size: 14px;
}

.song-typing-practice-link.is-sending {
  cursor: wait;
  opacity: 0.75;
}

.song-lyrics-panel {
  margin-top: 4px;
}

pre.song-lyrics-pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-iansui);
  font-size: 17px;
  line-height: 1.75;
  margin: 0;
  padding: 12px;
  background: var(--primary-bg);
  border-radius: 3px;
  border: 1px solid var(--borders);
}

pre.song-lyrics-pre .muted {
  color: var(--caption-text);
}

.intro-page {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
}

.intro-page h2 {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--secondary-text);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--borders);
}

.intro-page h2:not(:first-child) {
  margin-top: 28px;
}

.intro-page p {
  margin: 0 0 12px;
}

.intro-page p:last-child {
  margin-bottom: 0;
}

.intro-page ul {
  margin: 0 0 12px;
  padding-left: 1.4em;
}

.intro-page li {
  margin-bottom: 6px;
}

.intro-page a {
  word-break: break-word;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .site-nav {
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
  }

  .site-nav-brand {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1em;
    line-height: 1.35;
  }

  .site-nav-toggle {
    display: inline-flex;
    flex-direction: column;
    color: inherit;
  }

  .site-nav-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--borders);
  }

  .site-nav.is-open .site-nav-menu {
    display: flex;
  }

  .site-nav-link {
    padding: 12px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--borders);
  }

  .site-nav-link:last-child {
    border-bottom: none;
  }

  .intro-page{
    padding: 0 20px;
  }

  h1 {
    font-size: 35px;
  }

  .seg-control label {
    font-size: 13px;
    padding: 9px 4px;
  }

  .seg-control.seg-regex-field label {
    font-size: 12px;
  }

  dialog.lyrics-dialog[open] {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
      env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  }

  .lyrics-dialog-panel {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 30px;
  }

  .lyric-snippet-block .lyric-line {
    font-size: 16px;
  }
}
