.lyrics-theater {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8, 14, 13, 0.82);
  backdrop-filter: blur(16px);
  padding: 0;
}

.lyrics-theater.is-open {
  display: flex;
}

.lyrics-theater__sheet {
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  background: linear-gradient(165deg, rgba(26, 47, 43, 0.98), rgba(18, 32, 29, 0.99));
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  animation: lyrics-rise 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

@media (min-width: 769px) {
  .lyrics-theater {
    align-items: center;
    padding: 2rem;
  }
  .lyrics-theater__sheet {
    border-radius: 24px;
    max-height: min(82vh, 680px);
    animation-name: lyrics-fade-up;
  }
}

@keyframes lyrics-rise {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes lyrics-fade-up {
  from { transform: translateY(24px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.lyrics-theater__handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  margin: 10px auto 0;
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .lyrics-theater__handle { display: none; }
}

.lyrics-theater__head {
  padding: 1rem 1.5rem 0.75rem;
  position: relative;
  flex-shrink: 0;
}

.lyrics-theater__close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.25s;
}

.lyrics-theater__close:hover {
  background: rgba(201, 169, 110, 0.2);
  color: var(--color-gold);
}

.lyrics-theater__badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.65rem;
}

.lyrics-theater__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: #fff;
  margin: 0 2rem 0.35rem 0;
  line-height: 1.35;
}

.lyrics-theater__subtitle {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.lyrics-theater__tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.5rem 0.75rem;
  flex-shrink: 0;
}

.lyrics-theater__tab {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: 0.25s;
}

.lyrics-theater__tab.is-active {
  background: rgba(201, 169, 110, 0.22);
  color: var(--color-gold);
}

.lyrics-theater__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.75rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.lyrics-theater__lines {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 2.15;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  letter-spacing: 0.04em;
}

.lyrics-theater__lines .lyrics-theater__line {
  margin: 0.15rem 0;
  padding: 0.2rem 0.5rem;
  opacity: 0.55;
  transform: scale(0.98);
  transition: color 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.lyrics-theater__lines .lyrics-theater__line.is-past {
  opacity: 0.72;
  color: rgba(255, 255, 255, 0.58);
  transform: scale(1);
}

.lyrics-theater__lines .lyrics-theater__line.is-active {
  opacity: 1;
  color: var(--color-gold);
  transform: scale(1.03);
  text-shadow: 0 0 24px rgba(201, 169, 110, 0.25);
}

.lyrics-theater__line {
  opacity: 0;
  transform: translateY(8px);
  animation: lyric-line-in 0.5s ease forwards;
}

.lyrics-theater__line.is-gap {
  height: 0.85rem;
}

@keyframes lyric-line-in {
  to { opacity: 1; transform: translateY(0); }
}

.lyrics-theater__story {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.9;
  white-space: pre-wrap;
}

.lyrics-theater__empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  padding: 2rem 0;
  font-style: italic;
}

.lyrics-theater__foot {
  padding: 0.85rem 1.5rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.lyrics-theater__transport,
.lyrics-theater__play {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  background: var(--color-gold);
  color: var(--color-dark);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

.lyrics-theater__transport:hover,
.lyrics-theater__play:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
}

.lyrics-theater__transport.is-playing,
.lyrics-theater__play.is-playing {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(201, 169, 110, 0.35);
}

.lyrics-theater__transport.is-hidden,
.lyrics-theater__play.is-hidden {
  display: none;
}

.lyrics-theater__lines.lyrics-sync-wrap {
  max-height: min(52vh, 420px);
}

.lyrics-theater__body.lyrics-sync-host .lyrics-theater__lines.lyrics-sync-wrap {
  max-height: none;
}

.lyrics-theater__lines.is-scrubbable {
  padding-top: min(20vh, 140px);
  padding-bottom: min(20vh, 140px);
}

.lyrics-theater__scrub-hint {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 0.35rem;
  letter-spacing: 0.06em;
}

.sample-lyric-preview {
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.showcase-btn {
  flex: 1;
  border: 1px solid rgba(26, 47, 43, 0.12);
  background: var(--color-bg);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
}

.showcase-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
}

.showcase-btn--gold {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-dark);
}

.showcase-btn--gold:hover {
  background: var(--color-gold-light);
}

.showcase-cover-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: var(--transition);
  font-size: 2rem;
  color: #fff;
}

.showcase-card[data-audio] .showcase-cover {
  cursor: pointer;
}

.showcase-card[data-audio]:hover .showcase-cover-play {
  opacity: 1;
}

.lyrics-theater .is-hidden {
  display: none !important;
}
