@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@500&display=swap');
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: #fff;
  background: transparent;
  overflow-x: hidden;
  cursor: none !important;
}

#curtain {
  position: fixed;
  inset: 0;
  z-index: 20000;
  width: 100vw; height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #465993;
  cursor: none !important; 
}
.curtain-left, .curtain-right {
  position: absolute;
  top: 0; width: 50vw; height: 100vh;
  background: linear-gradient(120deg, #100c79 0%, #0d9fd5 100%);
  transition: transform 1s cubic-bezier(.7,0,.3,1);
  z-index: 1;
}
.curtain-left  { left: 0; transform: translateX(0);}
.curtain-right { right: 0; transform: translateX(0);}
#curtain.open .curtain-left {
  transform: translateX(-110vw) rotate(-12deg);
}
#curtain.open .curtain-right {
  transform: translateX(110vw) rotate(12deg);
}


#curtainBtn {
  position: relative;
  z-index: 2;
  font-size: 2.5em;
  padding: 28px 70px;
  border-radius: 32px;
  border: none;
  background: linear-gradient(100deg, #ff9800 60%, #ff6d00 100%);
  color: #fff;
  box-shadow: 0 4px 32px #e9644348, 0 1.5px 7px #0005;
  cursor: none !important;
  outline: none;
  transition:
    background .22s,
    color .22s,
    box-shadow .22s,
    transform .15s cubic-bezier(.5,1.7,.7,1),
    font-size .15s cubic-bezier(.5,1.7,.7,1),
    padding .15s cubic-bezier(.5,1.7,.7,1);
  will-change: transform, font-size, padding;
}
#curtainBtn:hover, #curtainBtn:focus, #curtainBtn:active {
  background: linear-gradient(95deg, #ffd180 30%, #ff9100 100%);
  color: #ff6d00;
  box-shadow: 0 8px 48px #ff910085, 0 1.5px 7px #0007;
  font-size: 2.7em;
  padding: 36px 85px;
  transform: scale(1.08);
}
#curtainBtn:active {
  transform: scale(0.96);
  background: linear-gradient(95deg, #ffc107 0%, #ff9100 100%);
  color: #fff;
}

.cursor-ball {
  pointer-events: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 10px 3px #fff8;
  transform: translate(-50%, -50%);
  z-index: 30000;
  transition: background 0.15s, transform 0.15s;
}
.cursor-ball.cursor-hover {
  background: #ff9800;
  transform: scale(1.5) translate(-50%, -50%);
}
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0 !important;
/*  background: linear-gradient(270deg, #2c3e50, #3498db); */
  background-size: 400% 400%;
  animation: bgColorShift 60s ease-in-out infinite;
  transition: filter 0.3s ease;
  pointer-events: none;
}
@keyframes bgColorShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.music-info {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #92e2ff;
  font-size: 1.08em;
  margin-bottom: 3px;
}
#bgmSelect {
  background: #232c37;
  color: #f9f9ff;
  font-size: 1em;
  border-radius: 8px;
  border: none;
  padding: 4px 8px;
}
.music-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
#playBtn, #loopBtn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25em;
  cursor: pointer;
  margin-right: 2px;
  outline: none;
  transition: transform 0.12s;
  padding: 3px 6px;
  border-radius: 7px;
}
#playBtn:active, #loopBtn:active {
  transform: scale(0.88);
  background: #385b7e45;
}
#current-time, #duration {
  min-width: 38px;
  font-size: 0.98em;
  color: #ace4fa;
  text-align: center;
}
#progress {
  flex: 1;
  height: 4px;
  accent-color: #3CA9E2;
  background: #aaf3e9;
  border-radius: 2px;
}
#volume {
  width: 75px;
  accent-color: #e96443;
  margin-left: 7px;
}
.credit {
  margin: 24px 0 80px 0;
  color: #c9f5ffb9;
  font-size: 0.97em;
  text-align: center;
}
@media (max-width: 700px) {
  .music-bar-fixed { font-size: 0.97em; padding: 7px 4vw 20px 4vw;}
}


.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 24px #0005;
  border: 3px solid #fff4;
  background: #fff2;
  margin-bottom: 10px;
  opacity: 1;
  position: static;
  display: block;
  z-index: 10;
}

.container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;  
  box-sizing: border-box;
  padding-top: 48px;      
  padding-bottom: 140px;  
}

header, .field, .spotify-list {
  background: rgba(255,255,255,0.24); 
  box-shadow: 0 8px 32px #0002, 0 2px 6px #0001;
  border-radius: 18px;
  padding: 32px 36px 26px 36px;
  margin: 22px 0 20px 0;
  width: 100%;
  max-width: 450px;
  text-align: center;
  backdrop-filter: blur(5px); 
}


header {
  margin-top: 0;
  padding-top: 32px;
  padding-bottom: 18px;
  background: rgba(255,255,255,0.14);
  box-shadow: 0 2px 8px #0001;
}


h1, h2, h3 {
  color: #fff;
  text-shadow: 0 2px 16px #003a, 0 1px 1px #fff8;
}

.bio {
  color: #f0f6fa;
  margin-top: 8px;
  font-size: 1.07em;
}
.star {
  position: absolute;
  top: -10px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes fall {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

.music-bar-fixed {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: rgba(22,26,48,0.93);
  box-shadow: 0 -2px 18px #0008;
  border-radius: 18px 18px 0 0;
  width: 100vw;
  max-width: 100vw;
  font-size: 1em;
  padding: 12px 18px 22px 18px;
  box-sizing: border-box;
  min-height: 74px;
  transition: box-shadow .22s;
  user-select: none;
  cursor: none !important;
}

.music-bar-fixed * {
  cursor: none !important;
}
.music-bar-fixed {
  cursor: none !important;
}
#clock {
  position: fixed;
  top: 16px;
  left: 20px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 1.2em;
  color: #fff;
  background: rgba(0,0,0,0.3);
  padding: 6px 12px;
  border-radius: 12px;
  box-shadow: 0 0 12px #0004;
  z-index: 50000;
  user-select: none;
  backdrop-filter: blur(5px);
}


@media (max-width: 600px) {
  header, .field, .spotify-list {
    padding: 16px 18px;
    margin: 14px auto;
    border-radius: 12px;
    max-width: 95vw;
  }

  h1 {
    font-size: 1.7em;
  }

  .bio {
    font-size: 1em;
    line-height: 1.5;
  }

  .container {
    padding-top: 40px;
    padding-bottom: 120px;
  }

  #clock {
    top: 12px;
    right: 12px;
    left: auto;
    font-size: 0.95em;
    padding: 4px 10px;
  }

  .music-bar-fixed {
    font-size: 0.85em;
    padding: 10px 12px 18px;
    flex-direction: column;
  }

  .music-info, .music-controls {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  #music-title {
    display: none; /* タイトル2重表示防止 */
  }

  iframe {
    width: 100%;
    height: 96px;
    margin-bottom: 16px;
    border-radius: 12px;
  }
}
