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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0d0a08;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bokeh-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.lyric-subtitle {
  margin-top: 6px;
  text-align: center;
  font-family: 'Loved by the King', cursive;
  font-weight: bold;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  padding: 2px 16px;
  max-width: 85vw;
  line-height: 1.3;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.lyric-subtitle.hidden {
  opacity: 0;
}

.slide-container {
  position: relative;
  z-index: 2;
  width: 90vw;
  max-width: 1000px;
  height: 75vh;
  max-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
}

.slide-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
  -webkit-mask-image: radial-gradient(ellipse, black 55%, transparent 100%);
  mask-image: radial-gradient(ellipse, black 55%, transparent 100%);
}

.slide-img.visible {
  opacity: 1;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.5s ease;
  -webkit-tap-highlight-color: transparent;
}

.play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-overlay:hover .play-icon {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.5);
}

.play-overlay:active .play-icon {
  transform: scale(0.95);
}

.slide-loader {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 150, 0.4), transparent);
  transition: width 0.3s ease;
  z-index: 3;
}

.slide-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

@media (max-width: 600px) {
  .slide-container {
    width: 95vw;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .slide-img {
    object-fit: cover;
  }

  .lyric-subtitle {
    font-size: clamp(1.3rem, 5vw, 2rem);
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .slide-container {
    width: 75vw;
    max-width: none;
    height: 78vh;
  }

  .lyric-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
  }

  .slide-img {
    object-fit: cover;
  }
}

@media (max-width: 400px) {
  .slide-container {
    width: 100vw;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .slide-img {
    object-fit: cover;
  }

  .slide-container {
    border-radius: 8px;
  }

  .slide-frame {
    border-radius: 8px;
  }

  .lyric-subtitle {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }

  .play-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
}
