* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Effects Panel */
.effect-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.effect-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.effect-item.active {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.effect-emoji {
  font-size: 1.8rem;
}

.effect-info {
  flex: 1;
}

.effect-name {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 4px;
  font-weight: 400;
}

.effect-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Drag preview */
.drag-preview {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.7;
  transform: rotate(5deg);
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  background: #000;
  color: #fff;
  overflow: hidden;
  position: relative;
  height: 100vh;
  user-select: none;
}

/* Background Scene */
.scene-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.scene-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
  filter: brightness(0.8) contrast(1.1);
}

/*
.scene-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 2;
}
*/

/* Main UI Container */
.ui-container {
  position: relative;
  z-index: 10;
  height: 100vh;
  pointer-events: none;
}

/* Header */
.header {
  position: absolute;
  top: 30px;
  left: 40px;
  pointer-events: auto;
}

.logo {
  font-size: 2.2rem;
  font-weight: 300;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

/* Quote Display */
.quote-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 600px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.8s ease;
  z-index: 15;
}

.quote-display.active {
  opacity: 1;
  pointer-events: auto;
}

.quote-text {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
}

.quote-author {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

/* Side Control Panel */
.side-controls {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  pointer-events: auto;
}

.control-btn {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  font-size: 20px;
  position: relative;
}

.control-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateX(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.control-btn.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.control-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Control Panels */
.control-panel {
  position: absolute;
  right: 80px;
  top: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 25px;
  min-width: 320px;
  max-height: 60vh;
  overflow-y: auto;
  transform: translateX(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  cursor: move;
}

.control-panel#sceneryPanel {
  width: 500px;
}

.control-panel.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.control-panel.dragging {
  transform: rotate(3deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  z-index: 100;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: move;
}

.panel-title {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 300;
}

.panel-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.panel-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Scene Selection Panel */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

.scene-grid::-webkit-scrollbar {
  width: 6px;
}

.scene-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.scene-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.scene-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.scene-option {
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  min-height: 80px;
}

.scene-option.active {
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.scene-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.scene-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-option-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  font-size: 0.8rem;
  padding: 10px 8px 6px;
  text-align: center;
  font-weight: 300;
}

/* Ambient Panel */
.ambient-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 10px 0;
}

.ambient-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.ambient-icon {
  font-size: 1.3rem;
  width: 25px;
  text-align: center;
}

.volume-slider {
  width: 140px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Playlist Panel */
.control-panel#playlistPanel {
  max-height: 70vh;
}

.playlist-container {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 5px;
}

.playlist-container::-webkit-scrollbar {
  width: 6px;
}

.playlist-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.playlist-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.playlist-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.playlist-item.active {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.playlist-emoji {
  font-size: 1.8rem;
}

.playlist-info {
  flex: 1;
}

.playlist-name {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 4px;
  font-weight: 400;
}

.playlist-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Draggable Spotify Player */
.spotify-player {
  position: absolute;
  bottom: 30px;
  left: 30px;
  width: 350px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  overflow: hidden;
  cursor: move;
  transition: all 0.3s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  z-index: 20;
}

.spotify-player.dragging {
  transform: rotate(3deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.spotify-player.minimized {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.spotify-player.minimized .player-header {
  padding: 0;
  height: 100%;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  border-bottom: none;
}

.spotify-player.minimized .player-title {
  display: none;
}

.spotify-player.minimized .player-controls {
  display: none;
}

.spotify-player.minimized .spotify-embed {
  display: none;
}

.spotify-player.minimized .player-header::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-image: url('https://classicals.co/wp-content/uploads/musicnote.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
}

.spotify-player.minimized:hover {
  transform: scale(1.1);
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px 10px;
  background: rgba(0, 0, 0, 0.3);
  cursor: move;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-title {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

.player-controls {
  display: flex;
  gap: 10px;
}

.player-control-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.player-control-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.spotify-embed {
  width: 100%;
}

.spotify-embed iframe {
  width: 100%;
  height: 390px;
  border: none;
}

/* Top Controls */
.top-controls {
  position: absolute;
  top: 30px;
  right: 40px;
  display: flex;
  gap: 15px;
  pointer-events: auto;
}

.top-control-btn {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  font-size: 16px;
}

.top-control-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}

.top-control-btn.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Fullscreen Styles */
.fullscreen-active .header,
.fullscreen-active .side-controls,
.fullscreen-active .top-controls {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.fullscreen-active .spotify-player {
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

.fullscreen-active:hover .header,
.fullscreen-active:hover .side-controls,
.fullscreen-active:hover .top-controls,
.fullscreen-active:hover .spotify-player {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .side-controls {
    right: 20px;
  }

  .control-panel {
    right: 90px;
    min-width: 280px;
  }

  .spotify-player {
    width: 320px;
    bottom: 20px;
    left: 20px;
  }

  .quote-display {
    max-width: 500px;
    padding: 25px;
  }

  .quote-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .header {
    top: 20px;
    left: 20px;
  }

  .logo {
    font-size: 1.8rem;
  }

  .side-controls {
    right: 15px;
    gap: 15px;
  }

  .control-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .control-panel {
    right: 70px;
    min-width: 260px;
    padding: 20px;
  }

  .spotify-player {
    width: 280px;
    bottom: 15px;
    left: 15px;
  }

  .scene-grid {
    grid-template-columns: 1fr;
  }

  .quote-display {
    max-width: 90%;
    padding: 20px;
    margin: 0 5%;
  }

  .quote-text {
    font-size: 1.1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spotify-player,
.control-panel {
  animation: fadeIn 0.8s ease-out;
}

/* Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.particle {
  position: absolute;
  pointer-events: none;
  opacity: 0.7;
}

.snowflake {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  animation: snowfall linear infinite;
}

.summer-particle {
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, rgba(255, 255, 100, 0.6) 0%, transparent 70%);
  border-radius: 50%;
  animation: summerFloat ease-in-out infinite;
}

@keyframes snowfall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes summerFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px) translateX(-5px);
    opacity: 0.6;
  }
  75% {
    transform: translateY(-30px) translateX(15px);
    opacity: 0.4;
  }
}