/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
Version: 1.0
*/

.song-explanation-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.song-explanation h1 {
  margin-bottom: 20px;
}

.song-meta {
  margin-bottom: 32px;
  color: #444;
}

.song-meta p {
  margin: 4px 0;
}

.lyrics-annotation-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  gap: 40px;
  align-items: start;
  width: 100%;
  overflow: visible;
}

.lyrics-lines {
  width: 100%;
  min-width: 0;
  font-size: 1.08rem;
  line-height: 1.7;
  overflow: visible;
}

.lyric-line {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 0 18px 0;
  padding: 0;
  overflow: visible;
}

.lyric-part {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 4px 0;
  padding: 0;
  overflow: visible;
}

.lyric-part-rtl {
  text-align: right;
  direction: rtl;
  unicode-bidi: isolate;
}

.lyric-part-ltr {
  text-align: left;
  direction: ltr;
  unicode-bidi: isolate;
}

.lyric-highlight {
  display: inline;
  padding: 2px 5px;
  border-radius: 3px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lyric-line.has-explanation {
  cursor: pointer;
}

.lyric-line.has-explanation .lyric-highlight {
  background: #A0BF9B;
}

.lyric-line.has-explanation:hover .lyric-highlight,
.lyric-line.active .lyric-highlight {
  background: #59905f;
}

.lyrics-explanations {
  position: sticky;
  top: 100px;
}

.explanation-placeholder,
.lyric-explanation {
  padding: 20px;
  background: #f5f5f5;
  border-left: 4px solid #111;
  line-height: 1.6;
}

.lyric-explanation {
  display: none;
}

.lyric-explanation.active {
  display: block;
}

.lyric-explanation h3 {
  margin-top: 0;
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .lyrics-annotation-wrapper {
    grid-template-columns: 1fr;
  }

  .lyrics-explanations {
    position: static;
  }
}

.taxonomy-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1;
}

.taxonomy-line-label {
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

.taxonomy-line-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.taxonomy-line-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.taxonomy-line-img {
  width: 55px;
  height: 55px;
  min-width: 55px;
  min-height: 55px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  position: relative;
  top: 6px;
}

.taxonomy-line-name {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
}

.taxonomy-line-comma {
  line-height: 1;
}


.taxonomy-page-acl-pic {
  display: flex;
  justify-content: left;
  margin-bottom: 24px;
}

.taxonomy-page-acl-pic img {
  width: 160px !important;
  height: 160px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block;
}

/*----------------------------------*/

.taxonomy-marquee {
  width: 100%;
  margin: 32px 0;
}

.taxonomy-marquee-heading {
  margin: 0 0 18px 0;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 600;
}

.taxonomy-marquee-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  cursor: grab;
  user-select: none;
}

.taxonomy-marquee-viewport:active {
  cursor: grabbing;
}

.taxonomy-marquee-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: taxonomy-marquee-scroll var(--taxonomy-marquee-speed, 45s) linear infinite;
  will-change: transform;
}

.taxonomy-marquee:hover .taxonomy-marquee-track {
  animation-play-state: paused;
}

.taxonomy-marquee-card {
  flex: 0 0 auto;
  display: block;
  text-decoration: none;
  color: inherit;
}

.taxonomy-marquee-media {
  position: relative;
  width: 220px;
  height: 150px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(0,0,0,0.08);
}

.taxonomy-marquee-img,
.taxonomy-marquee-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.taxonomy-marquee-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  background: #A0BF9B;
}

.taxonomy-marquee-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.taxonomy-marquee-card:hover .taxonomy-marquee-overlay {
  opacity: 1;
}

.taxonomy-marquee-name {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}

@keyframes taxonomy-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .taxonomy-marquee-track {
    gap: 16px;
  }

  .taxonomy-marquee-media {
    width: 150px;
    height: 150px;
  }

  .taxonomy-marquee-name {
    font-size: 1rem;
  }
}

/*-------------*/
.taxonomy-marquee-viewport {
  touch-action: pan-y;
}

.taxonomy-marquee-card,
.taxonomy-marquee-img,
.taxonomy-marquee-media {
  -webkit-user-drag: none;
  user-drag: none;
}

.taxonomy-marquee-card {
  user-select: none;
}
/*----------------------------*/

.taxonomy-alpha-wrapper {
  width: 100%;
  margin: 32px 0;
}

.taxonomy-alpha-section {
  margin-bottom: 48px;
}

.taxonomy-alpha-heading-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.taxonomy-alpha-heading {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
}

.taxonomy-alpha-line {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
}

.taxonomy-alpha-grid {
  display: grid;
  grid-template-columns: repeat(var(--taxonomy-grid-columns, 4), minmax(0, 1fr));
  gap: 24px;
}

.taxonomy-grid-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.taxonomy-grid-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.08);
}

.taxonomy-grid-img,
.taxonomy-grid-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.taxonomy-grid-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #A0BF9B;
  font-size: 3rem;
  font-weight: 700;
}

.taxonomy-grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.taxonomy-grid-name {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.taxonomy-grid-card:hover .taxonomy-grid-overlay,
.taxonomy-grid-card:focus-visible .taxonomy-grid-overlay {
  opacity: 1;
}

.taxonomy-grid-card:hover .taxonomy-grid-img,
.taxonomy-grid-card:focus-visible .taxonomy-grid-img {
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .taxonomy-alpha-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .taxonomy-alpha-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .taxonomy-alpha-heading {
    font-size: 1.6rem;
  }

  .taxonomy-grid-name {
    font-size: 1rem;
  }

  .taxonomy-grid-overlay {
    padding: 14px;
  }
}
