/* Header Section */
.header-section {
  background-color: var(--p-100);
  border-radius: 8px;
  padding: 1rem 1rem 2.5rem 1rem;
  margin-bottom: 3rem;
  position: relative;
}

.header-section .heading-block {
  text-align: center;
  line-height: 1.5;
}
.header-section .heading-block h1 {
  margin: 0;
  font-size: 2rem;
}

.header-section .content-block {
  display: flex;
}

.header-section .cover {
  flex: 0 1 20rem;
}
.header-section .cover img {
  width: 100%;
  border: 4px solid var(--p-500);
  height: calc(100% + 2rem);
  border-radius: 5px;
  object-fit: none;
  transform: translateX(-1.5rem) translateY(2rem);
}

.header-section .info-table {
  flex: 1 0 15rem;
  display: block;
  margin-right: auto;
}
.header-section .info-table th,
.header-section .info-table td {
  padding: 0.75rem 0;
}
.header-section .info-table th {
  text-align: right;
  padding-right: 1.5rem;
  white-space: nowrap;
}

/* Youtube Section */
.youtube-section {
  margin-bottom: 1rem;
  margin-inline: auto;
}
.youtube-section > div {
  margin-inline: auto;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}
.youtube-section #player {
  border-radius: 8px;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Tag Section */
.tag-section {
  margin-bottom: 1rem;
  margin-inline: auto;
}
.tag-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-section a {
  display: inline-block;
  border: 1px solid var(--p-500);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
}

/* Toolbar Section */
.toolbar-section {
  border: 2px solid var(--p-300);
  background-color: var(--p-100);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  margin-inline: auto;
}
.toolbar-section .toolbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  column-gap: 1.5rem;
}
.toolbar-section .toolbar .title {
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.toolbar-section .toolbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
}
.toolbar-section .toolbar button {
  background-color: #fff;
  border: 1px solid var(--p-500);
  border-radius: 8px;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  color: var(--p-700);
}
.toolbar-section .toolbar button.disable {
  background-color: #ccc;
  text-decoration: line-through;
}
.toolbar-section .toolbar button.ruby {
  color: black;
}
.toolbar-section .toolbar button.rmj {
  color: green;
}
.toolbar-section .toolbar button.zh {
  color: red;
}

/* Lyrics Section */
.lyrics-section {
  border-radius: 8px;
  text-align: center;
  letter-spacing: 0.1em;
  font-weight: 400;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.lyrics-section #kngm {
  font-size: 1.2rem;
}

.lyrics-section #kngm > div {
  cursor: pointer;
  border-radius: 15px;
  padding: 0.5rem 0.2rem;
}
.lyrics-section #kngm > div:hover {
  background-color: #eee;
}
.lyrics-section #kngm > div.playing {
  background-color: var(--p-100);
  border-radius: 8px;
  border: 2px solid var(--p-500);
}
.lyrics-section p {
  margin: 0.2rem 0;
  word-wrap: break-word;
}

.lyrics-section .jp {
  font-family: "Noto Sans JP", sans-serif;
  color: #000;
}
.lyrics-section .ruby {
  font-family: "Noto Sans JP", sans-serif;
  color: #000;
}
.lyrics-section .ruby rt {
  margin-bottom: -0.2rem;
}
.lyrics-section .zh {
  font-family: "Noto Sans TC", sans-serif;
  color: red;
}
.lyrics-section .rmj {
  font-family: "Noto Sans", sans-serif;
  color: green;
  letter-spacing: 0em;
}
.lyrics-section div.played {
  opacity: 0.5;
}
.lyrics-section div.current {
  background-color: #eee;
  border: 2px solid var(--p-500);
}

/* Related Songs Section */
.related-songs-section {
  margin-bottom: 3rem;
}

/* Music Player Section */
.music-player-section {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  max-width: 40rem;
  width: 100%;
  background-color: var(--p-500);
  color: #fff;
  height: 4rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
}

.music-player-section img {
  height: 3rem;
  width: 3rem;
  border-radius: 5px;
  object-fit: none;
}
.music-player-section .name-div {
  flex: 1;
  text-align: left;
  margin-left: 0.5rem;
  display: flex;
  flex-direction: column;
  row-gap: 0.25rem;
}
.music-player-section .name-div .song-name {
  font-weight: 700;
}
.music-player-section .name-div .artist-name {
  font-size: 0.85rem;
}

.music-player-section .button-div {
  display: flex;
  column-gap: 0.75rem;
}
.music-player-section .button-div button {
  border: 0;
  padding: 0;
  width: 2rem;
  height: 2rem;
  background-color: transparent;
  cursor: pointer;
}
.music-player-section .button-div button:hover > svg {
  scale: 1.1;
  filter: brightness(0.9);
}
.music-player-section .button-div svg {
  width: 100%;
  height: 100%;
}
.music-player-section #loop circle {
  display: none;
}
.music-player-section #loop.active svg {
  fill: aqua;
}
.music-player-section #loop.active circle {
  display: block;
}

/* Full Screen */
.full-screen .lyrics-section {
  z-index: 200;
  position: fixed;
  inset: 0;
  background-color: #000;
  max-width: none;
}

.full-screen .youtube-section {
  z-index: 201;
  position: fixed;
  inset: 0 0 auto 0;
  max-width: 40rem;
  margin: 0 auto;
}
.full-screen .youtube-section #player {
  border-radius: 0;
}

.full-screen #kngm {
  z-index: 201;
  position: fixed;
  inset: auto 0 4rem 0;
  background-color: rgb(32, 32, 36);
  max-width: 40rem;
  margin: 0 auto;
  overflow-y: scroll;
  padding: 1rem;
}
@media (min-width: 40rem) {
  .full-screen #kngm {
    height: calc(100vh - 22.5rem - 4rem);
  }
}
@media (max-width: 39.999rem) {
  .full-screen #kngm {
    height: calc(100dvh - 56.25vw - 4rem);
  }
}
.full-screen #kngm > div:hover {
  background-color: rgb(44, 45, 46);
}
.full-screen #kngm div.current {
  background-color: rgb(44, 45, 46);
  border: 2px solid #ccc;
}
.full-screen #kngm,
.full-screen #kngm .ruby {
  color: #fff;
}
.full-screen #kngm .zh {
  color: rgb(255, 69, 58);
}
.full-screen #kngm .rmj {
  color: rgb(50, 205, 50);
}

.full-screen .music-player-section {
  z-index: 201;
  position: fixed;
  inset: auto 0 0 0;
  border-radius: 0;
  background-color: #000;
  padding: 0.5rem 1rem;
  max-width: none;
  transform: translateX(0);
}
