/* ---------- RESET & BOX SIZING ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- CUSTOM FONT ---------- */
@font-face {
  font-family: 'HSR';
  src: url('../fonts/DIN-Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
*, html, body {
  font-family: 'HSR', sans-serif;
  font-weight: bold;
}

/* ---------- THEME COLORS ---------- */
:root {
  --purple: #6A0DAD;
  --white: #FFFFFF;
  --orange: #FFA500;
  --light-blue: #ADD8E6;
  --cyan: #00FFFF;
}

/* ---------- GLOBAL STYLES ---------- */
html, body {
  background: var(--purple);
  color: var(--white);
  line-height: 1.6;
  font-size: 18px;
}

/* ---------- HEADER ---------- */
header {
  background: var(--orange);
  padding: 10px 20px;
}
.dashboard {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo a {
  color: var(--white);
  font-size: 28px;
  text-decoration: none;
}
nav ul {
  list-style: none;
  display: flex;
}
nav ul li {
  margin: 0 10px;
}
nav ul li a {
  color: var(--purple);
  text-decoration: none;
  padding: 5px 10px;
  transition: background 0.3s;
}
nav ul li a.active,
nav ul li a:hover {
  background: var(--cyan);
  border-radius: 4px;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--orange);
  padding: 20px;
  text-align: center;
  color: var(--white);
}

/* ---------- LAYOUT: Two-Column ---------- */
.content-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 20px auto;
  gap: 20px;
}

/* ---------- SIDEBAR / INFO BOX ---------- */
.info-box {
  flex: 0 0 300px;
  background: var(--light-blue);
  color: var(--purple);
  padding: 20px;
  border: 2px solid var(--cyan);
  border-radius: 8px;
}
.info-box .info-image {
  width: 100%;
  border: 3px solid var(--cyan);
  border-radius: 8px;
  margin-bottom: 20px;
}
.info-box h1 {
  font-size: 36px;
  color: var(--orange);
  margin-bottom: 10px;
}
.info-list {
  list-style: none;
  font-size: 18px;
  color: var(--purple);
}
.info-list li {
  margin-bottom: 8px;
}

/* ---------- WAIFUS SECTION ---------- */
.waifu-info-box h2 {
  font-size: 24px;
  color: var(--orange);
  margin-bottom: 10px;
}
.waifu-category h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--purple);
}
.waifu {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.waifu img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 2px solid var(--purple);
  border-radius: 50%;
  margin-right: 10px;
}
.waifu-details {
  font-size: 16px;
  color: var(--purple);
}

/* ---------- SOCIAL MEDIA ---------- */
.social-media {
  margin-top: 20px;
  background: var(--cyan);
  text-align: center;
  border: 2px solid var(--purple);
  border-radius: 8px;
  padding: 10px;
}
.social-media h2 {
  font-size: 24px;
  color: var(--purple);
  margin-bottom: 10px;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.social-links a img {
  width: 50px;
  height: 50px;
  border: 2px solid var(--purple);
  border-radius: 50%;
  transition: transform 0.3s;
}
.social-links a img:hover {
  transform: scale(1.1);
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
  flex: 1;
  background: var(--light-blue);
  color: var(--purple);
  padding: 20px;
  border: 2px solid var(--cyan);
  border-radius: 8px;
}

/* ---------- FAVORITE SONGS / MUSIC PLAYER SECTION ---------- */
.favorite-songs {
  background: var(--cyan);
  color: var(--purple);
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid var(--purple);
  border-radius: 8px;
}
.favorite-songs h2 {
  font-size: 24px;
  color: var(--orange);
  margin-bottom: 10px;
}

/* --- MUSIC PLAYER STYLES --- */
.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;
}
.music-player-wrapper .outer-circle {
  position: relative;
  z-index: 0;
  height: 70px;
  margin-bottom: -4px;
  transition: height 0.2s ease;
  overflow: hidden;
}
.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;
}
.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;
}
.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;
}
.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;
}
.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;
}
.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);
}
.music-player-wrapper .controls-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: -8px 16px 8px;
  gap: 12px;
  position: relative;
  z-index: 30;
}
.music-player-wrapper .music-player:hover .controls-row {
  margin-top: -25px;
  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%;
}
.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;
}
.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;
}

/* ---------- SLIDESHOW STYLES ---------- */
.slideshow-container img {
  width: 100%;
  height: auto;
  object-fit: cover; /* or try 'cover', based on your design needs */
  border: 3px solid var(--accent-border);
  border-radius: 10px;
}
.slide {
  display: none;
}
.slide.active {
  display: block;
}

/* ---------- VIDEO SECTION ---------- */
.video-section {
  background: var(--cyan);
  color: var(--purple);
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid var(--purple);
  border-radius: 8px;
  text-align: center;
}
.video-section h2 {
  font-size: 24px;
  color: var(--orange);
  margin-bottom: 10px;
}
.video-container video {
  width: 100%;
  height: auto;
  border: 3px solid var(--purple);
  border-radius: 10px;
}

/* ---------- CD PLAYER / UNIQUE FEATURE (CD Player) ---------- */
.unique-feature {
  background: var(--purple);
  color: var(--white);
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid var(--orange);
  border-radius: 8px;
  text-align: center;
}
.unique-feature h2 {
  font-size: 24px;
  color: var(--orange);
  margin-bottom: 10px;
}

/* Player Box for CD Player */
.player-box {
  width: 350px;
  height: 250px;
  margin: 1rem auto;
  background: var(--light-blue);
  border-radius: 20px;
  border: 2px solid var(--cyan);
  position: relative;
}
/* Tone Arm */
.tone-arm {
  position: absolute;
  width: 6px;
  height: 120px;
  background: var(--purple);
  top: 40px;
  left: 25px;
  transform: rotate(25deg);
  transform-origin: top left;
  border-radius: 3px;
  box-shadow: 0 0 4px var(--purple);
}
/* Fake Sliders */
.sliders {
  position: absolute;
  right: 20px;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slider {
  width: 6px;
  height: 50px;
  background: var(--cyan);
  border-radius: 3px;
  border: 2px solid var(--purple);
}
/* Record / CD Disc */
.record-container {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
}
#record-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--white);
  cursor: pointer;
  transition: transform 1s linear;
  object-fit: cover;
}
.spinning {
  animation: spinDisc 2s linear infinite;
}
@keyframes spinDisc {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Dark Overlay */
#dark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  z-index: 999;
}
#dark-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
/* Floating Music Notes */
.music-note {
  position: absolute;
  color: var(--cyan);
  font-size: 2rem;
  animation: floatNote 3s linear infinite;
}
@keyframes floatNote {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 1;
  }
  80% { opacity: 1; }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* ---------- KEYFRAME ANIMATIONS (for Music Player) ---------- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
