/* ---------- RESET & BOX SIZING ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- IMPORT CUSTOM FONT (example) ---------- */
@font-face {
  font-family: 'ZZZ';
  src: url('../fonts/印品鸿蒙体.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
* {
  font-family: 'ZZZ', sans-serif;
  font-weight: bold;
}

/* ---------- COLOR SCHEME & BASE ---------- */
body {
  background: black;
  color: white;
  line-height: 1.6;
  font-size: 18px;
}

/* ---------- HEADER ---------- */
header {
  background: darkblue;
  padding: 10px 20px;
}
.dashboard {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo a {
  color: gold;
  font-size: 28px;
  text-decoration: none;
}
nav ul {
  list-style: none;
  display: flex;
}
nav ul li {
  margin: 0 10px;
}
nav ul li a {
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  transition: background 0.3s;
}
nav ul li a.active,
nav ul li a:hover {
  background: #ADD8E6;
  border-radius: 4px;
}

/* ---------- FOOTER ---------- */
footer {
  background: darkblue;
  padding: 20px;
  text-align: center;
  color: white;
}

/* ---------- LAYOUT (Two-Column) ---------- */
.content-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 20px auto;
  gap: 20px;
}

/* ---------- SIDEBAR ---------- */
.info-box {
  flex: 0 0 300px;
  background: black;
  padding: 20px;
  border: 2px solid gold;
  border-radius: 8px;
}
.info-box .info-image {
  width: 100%;
  border: 3px solid gold;
  border-radius: 8px;
  margin-bottom: 20px;
}
.info-box h1 {
  font-size: 36px;
  color: gold;
  margin-bottom: 10px;
}
.info-list {
  list-style: none;
  font-size: 18px;
}
.info-list li {
  margin-bottom: 8px;
}

/* ---------- WAIFUS SECTION ---------- */
.waifu-info-box {
  margin-top: 20px;
}
.waifu-info-box h2 {
  font-size: 28px;
  color: pink;
  margin-bottom: 10px;
}
.waifu-category {
  margin-bottom: 20px;
}
.waifu-category h3 {
  font-size: 24px;
  margin-bottom: 8px;
  color: gold;
}
.waifu {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.waifu img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 2px solid gold;
  border-radius: 50%;
  margin-right: 10px;
}
.waifu-details {
  text-align: left;
  font-size: 16px;
}

/* ---------- SOCIAL MEDIA ---------- */
.social-media {
  padding: 20px;
  background: darkblue;
  text-align: center;
  border: 2px solid gold;
  border-radius: 8px;
  margin-top: 20px;
}
.social-media h2 {
  font-size: 28px;
  color: gold;
  margin-bottom: 10px;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.social-links a img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid gold;
  border-radius: 50%;
  transition: transform 0.3s;
}
.social-links a img:hover {
  transform: scale(1.1);
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
  flex: 1;
  background: black;
  padding: 20px;
}

/* ---------- BIOGRAPHY SECTION ---------- */
.biography {
  padding: 20px;
  background: black;
  margin-bottom: 20px;
  border: 2px solid gold;
  border-radius: 8px;
}
.biography h2 {
  font-size: 28px;
  color: gold;
  margin-bottom: 10px;
}
.biography p {
  font-size: 18px;
  text-align: justify;
}

/* ---------- TRIVIA SECTION ---------- */
.trivia {
  padding: 20px;
  background: darkblue;
  margin-bottom: 20px;
  border: 2px solid gold;
  border-radius: 8px;
}
.trivia h2 {
  font-size: 28px;
  color: gold;
  margin-bottom: 10px;
}
.trivia p {
  font-size: 18px;
  text-align: justify;
}

/* ---------- SLIDESHOW SECTION ---------- */
.slideshow {
  padding: 20px;
  background: black;
  margin-bottom: 20px;
  border: 2px solid gold;
  border-radius: 8px;
  text-align: center;
}
.slideshow h2 {
  font-size: 28px;
  color: gold;
  margin-bottom: 10px;
}
.slideshow-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}
.slide {
  display: none;
}
.slide.active {
  display: block;
}
.slideshow-container img {
  width: 100%;
  border: 3px solid gold;
  border-radius: 10px;
}

/* ---------- VIDEO SECTION ---------- */
.video-section {
  padding: 20px;
  background: darkblue;
  margin-bottom: 20px;
  border: 2px solid gold;
  border-radius: 8px;
  text-align: center;
}
.video-section h2 {
  font-size: 28px;
  color: gold;
  margin-bottom: 10px;
}
.video-container {
  max-width: 800px;
  margin: 0 auto;
}
.video-container video {
  width: 100%;
  height: auto;
  border: 3px solid gold;
  border-radius: 10px;
}

/* ---------- AYAKA FAN FEATURE ---------- */
.ayaka-fan-feature {
  padding: 20px;
  background: darkblue;
  margin-bottom: 20px;
  border: 2px solid gold;
  border-radius: 8px;
  text-align: center;
}
.ayaka-fan-feature h2 {
  font-size: 28px;
  color: gold;
  margin-bottom: 10px;
}
.fan-container {
  display: inline-block;
}
#ayakaFan {
  width: 200px;
  cursor: pointer;
  transform-style: preserve-3d;
}
#ayakaFan.flipOpen {
  animation: flipFanOpen 1s forwards;
}
@keyframes flipFanOpen {
  0% { transform: perspective(800px) rotateY(0deg); }
  49% { transform: perspective(800px) rotateY(90deg); }
  50% { transform: perspective(800px) rotateY(90deg); }
  100% { transform: perspective(800px) rotateY(0deg); }
}
.snowflake {
  position: fixed;
  top: 0;
  left: 50%;
  font-size: 1.5rem;
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
  animation: fall 3s linear forwards;
}
@keyframes fall {
  0% { transform: translateY(-50px); }
  100% { transform: translateY(120vh); opacity: 0; }
}

/* ---------- MUSIC PLAYER STYLES (NAMESPACED) ---------- */
.music-player-wrapper {
  margin-bottom: 20px;
}
.music-player-wrapper .music-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  width: 380px;
  margin: 20px auto;
}

/* Outer Animated Circle (Pre-hover state) */
.music-player-wrapper .outer-circle {
  position: relative;
  z-index: 0;
  height: 70px;
  margin-bottom: -4px;
  transition: height 0.2s ease;
  overflow: hidden;
}
/* Outer Cover Image */
.music-player-wrapper .outer-cover {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border: 4px solid #9ca3af;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  animation: spin 3s linear infinite;
  transition: all 0.3s ease;
}
/* On hover, collapse the outer circle to hide the pre-hover disk */
.music-player-wrapper .music-player:hover .outer-circle {
  height: 0;
}
.music-player-wrapper .outer-icon {
  position: absolute;
  z-index: 10;
  width: 32px;
  height: 32px;
  background: #fff;
  border: 4px solid #9ca3af;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  top: 48px;
  left: 48px;
}

/* Control Panel */
.music-player-wrapper .control-panel {
  z-index: 30;
  background: #fff;
  color: #000;
  width: 200px;
  height: 90px;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  overflow: visible;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.music-player-wrapper .music-player:hover .control-panel {
  width: 340px;
  height: 160px;
  padding: 12px;
}

/* Song Info (Top Row) */
.music-player-wrapper .song-info {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 0;
  transition: height 0.3s ease;
}
.music-player-wrapper .music-player:hover .song-info {
  height: 90px;
}
.music-player-wrapper .album-art {
  position: relative;
  width: 96px;
  height: 96px;
  margin-right: -16px;
  opacity: 0;
  transition: all 0.1s ease;
}
.music-player-wrapper .music-player:hover .album-art {
  margin-top: -16px;
  margin-left: 0;
  opacity: 1;
  animation: spin 3s linear infinite;
}
/* Inner Cover Image (Dynamic Album Cover) */
.music-player-wrapper .inner-cover {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 4px solid #9ca3af;
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: all 0.1s ease;
}
.music-player-wrapper .inner-icon {
  position: absolute;
  z-index: 10;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 4px solid #9ca3af;
  border-radius: 9999px;
  top: 36px;
  left: 36px;
}
.music-player-wrapper .song-text {
  flex: 1;
  padding-left: 20px;
  overflow: hidden;
}
.music-player-wrapper .song-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 4px 0;
}
.music-player-wrapper .song-artist {
  color: #737373;
  font-size: 1rem;
}

/* Progress Row */
.music-player-wrapper .progress-row {
  display: flex;
  align-items: center;
  background: #e0e7ff;
  border-radius: 0.375rem;
  margin: 12px 16px;
  padding: 0 8px;
  min-height: 24px;
}
.music-player-wrapper .current-time,
.music-player-wrapper .duration {
  font-size: 0.9rem;
  padding: 0 6px;
  display: none;
}
.music-player-wrapper .music-player:hover .current-time,
.music-player-wrapper .music-player:hover .duration {
  display: inline-block;
}
.music-player-wrapper .progress-slider {
  flex: 1;
  margin: 0 8px;
  height: 4px;
  background: #ccc;
  border-radius: 9999px;
  -webkit-appearance: none;
}
.music-player-wrapper .music-player:hover .progress-slider {
  height: 6px;
  margin-bottom:5px;
}
.music-player-wrapper .progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid #9ca3af;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Controls Row */
.music-player-wrapper .controls-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: -8px 16px 8px; /* Compact state margin */
  gap: 12px;
  position: relative;
  z-index: 30;
}
.music-player-wrapper .music-player:hover .controls-row {
  margin-top: -25px; /* Post-hover, bring the buttons further up */
  margin-bottom: 8px;
}
.music-player-wrapper .control {
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 100;
  padding: 8px;
  box-sizing: content-box;
}
.music-player-wrapper .control svg {
  width: 100%;
  height: 100%;
}
/* Increase clickable area for specific controls */
.music-player-wrapper .play-pause-control,
.music-player-wrapper .next-control,
.music-player-wrapper .prev-control {
  padding: 10px;
  box-sizing: content-box;
  z-index: 30;
}

/* Play/Pause Control State */
.music-player-wrapper .play-pause-control input {
  display: none;
}
.music-player-wrapper .play-pause-control .play-icon {
  display: inline;
}
.music-player-wrapper .play-pause-control .pause-icon {
  display: none;
}
.music-player-wrapper .play-pause-control.playing .play-icon {
  display: none;
}
.music-player-wrapper .play-pause-control.playing .pause-icon {
  display: inline;
}

/* ---------- KEYFRAME ANIMATIONS ---------- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
