* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
}

body {
  background-color: #ffb3c1;
  color: #593542;
  overflow: hidden;
  height: 100vh;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: linear-gradient(135deg, #ffc2d1 0%, #ffb3c1 100%);
}

/* GESTIONE DIMENSIONI ICONE PNG */
.png-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.png-icon-small {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* TOP BAR */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  gap: 15px;
}

.nav-arrows {
  display: flex;
  gap: 8px;
}

.icon-circle {
  background: #ffccd5;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle img {
  width: 14px;
  height: 14px;
}

.search-container {
  flex: 1;
  max-width: 400px;
  background: #ffe5ec;
  display: flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 20px;
  gap: 10px;
}

.search-container input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  color: #593542;
}

.top-right-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffe5ec;
}

/* CONTROLLI FINESTRA (-, □, ×) */
.window-controls {
  display: flex;
  background: rgba(89, 53, 66, 0.25);
  border-radius: 6px;
  overflow: hidden;
}

.window-controls button {
  background: transparent;
  border: none;
  color: #fff;
  width: 36px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s;
}

.window-controls button:hover {
  background: rgba(255, 255, 255, 0.2);
}

#btn-close:hover {
  background: #e81123;
}

/* MAIN BODY */
.main-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  padding: 0 15px;
  gap: 15px;
}

.sidebar {
  width: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding-top: 10px;
}

.side-btn {
  background: #ffe5ec;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CONTENUTO PRINCIPALE SENZA BARRA DI SCORRIMENTO */
.content {
  flex: 1;
  background: #ffccd5;
  border-radius: 16px;
  padding: 25px;
  overflow: hidden; /* Rimuove completamente la barra di scorrimento */
}

.playlist-header h1 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.1);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-title h2 {
  font-size: 18px;
  color: #593542;
}

.see-all {
  font-size: 13px;
  cursor: pointer;
  color: #7a4355;
  font-weight: 600;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: #ffb3c1;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  margin-bottom: 10px;
}

.pink-bg-1 { background: #ff758f; }
.pink-bg-2 { background: #ff8fa3; }
.pink-bg-3 { background: #ffb3c1; color: #593542; }
.pink-bg-4 { background: #ffa6c1; }

.card-title {
  font-size: 14px;
  font-weight: bold;
  color: #4a2834;
}

.card-subtitle {
  font-size: 12px;
  color: #7a4355;
}

/* PLAYER BAR */
.player-bar {
  height: 80px;
  background: #ffccd5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-top: 1px solid #ffb3c1;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 250px;
}

.album-art {
  width: 50px;
  height: 50px;
  background: #ff8fa3;
  border-radius: 8px;
}

.track-info {
  display: flex;
  flex-direction: column;
}

.track-name {
  font-size: 13px;
  font-weight: bold;
  color: #4a2834;
}

.artist-name {
  font-size: 11px;
  color: #7a4355;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 500px;
}

.control-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.control-buttons button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-pause-btn {
  background: #ff758f !important;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-size: 11px;
  color: #7a4355;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: #ffe5ec;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.progress {
  width: 35%;
  height: 100%;
  background: #ff758f;
  border-radius: 2px;
}

.extra-controls {
  display: flex;
  gap: 15px;
  width: 250px;
  justify-content: flex-end;
}

.extra-controls button {
  background: none;
  border: none;
  cursor: pointer;
}

/* SCHERMATA AUTH (LOGIN / REGISTRAZIONE) */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #ffc2d1 0%, #ffb3c1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.auth-box {
  background: #ffe5ec;
  padding: 35px;
  border-radius: 20px;
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 25px rgba(89, 53, 66, 0.15);
  text-align: center;
}

.auth-box h2 {
  color: #ff758f;
  font-size: 26px;
}

.auth-box p {
  font-size: 13px;
  color: #7a4355;
}

.auth-box input {
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid #ffb3c1;
  background: #fff;
  color: #593542;
  outline: none;
  font-size: 14px;
}

.primary-btn {
  background: #ff758f;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
}

.primary-btn:hover {
  background: #ff5c7c;
}

.switch-auth {
  margin-top: 5px;
  font-size: 12px;
}

.switch-auth a {
  color: #ff5c7c;
  font-weight: bold;
  text-decoration: none;
}

.error-msg {
  color: #d90429 !important;
  font-size: 12px !important;
  min-height: 16px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffe5ec;
  padding: 4px 12px 4px 4px;
  border-radius: 20px;
  cursor: pointer;
}

.username-label {
  font-size: 13px;
  font-weight: 600;
  color: #593542;
}