







#view-home .player-header{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

#view-home #player-title{
  margin: 0;
  color: var(--site-plum);
}

#view-home #auth-error{
  background-color: #fdf0f5;
  color: #9c2754;
  border: 1px solid #f0b8ce;
  padding: 15px;
  border-radius: 12px;
  max-width: 450px;
  font-weight: bold;
}

#view-home #auth-loading{
  color: var(--site-plum-muted);
  font-style: italic;
}

#view-home .player-spinner-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(109, 71, 112, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#view-home .spinner-ring{
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  box-shadow: 0 0 10px rgba(109, 71, 112, 0.35);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#view-home .player-panels{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#view-home .ctrl-btn{
  border: 1.5px solid var(--site-border-strong);
  background: var(--site-surface);
  color: var(--site-plum);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(109, 71, 112, 0.08);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#view-home .ctrl-btn:hover{
  background: var(--site-surface-white);
  border-color: var(--site-orchid);
  color: var(--site-orchid-deep);
}

#view-home .ctrl-btn.active{
  background: var(--site-orchid);
  color: #ffffff;
  border-color: var(--site-orchid);
  box-shadow: 0 4px 14px var(--site-orchid-glow);
}

#view-home .ctrl-btn:disabled{
  opacity: 0.45;
  cursor: not-allowed;
}

#view-home .ctrl-btn-primary{
  background: var(--site-orchid);
  color: #ffffff;
  border-color: var(--site-orchid);
  box-shadow: 0 4px 14px var(--site-orchid-glow);
}

#view-home .ctrl-btn-primary:hover{
  background: var(--site-orchid-hover);
  border-color: var(--site-orchid-hover);
  color: #ffffff;
}

#view-home .ctrl-btn-admin{
  background: var(--site-orchid);
  color: #ffffff;
  border-color: var(--site-orchid);
  box-shadow: 0 4px 14px var(--site-orchid-glow);
}

#view-home .ctrl-btn-admin:hover{
  background: var(--site-orchid-hover);
  border-color: var(--site-orchid-hover);
  color: #ffffff;
}

#view-home .panels-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  align-items: start;
}

#view-home .panel-card{
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 20px rgba(109, 71, 112, 0.08);
}

#view-home .panel-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

#view-home .panel-title{
  margin: 0;
  font-size: 15px;
  color: var(--site-plum);
  display: flex;
  align-items: center;
  gap: 6px;
}

#view-home .count-badge{
  background: var(--site-orchid-soft);
  color: var(--site-orchid-deep);
  border: 1px solid rgba(220, 126, 227, 0.3);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: bold;
}

#view-home .playlist-search{
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid var(--site-border);
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 10px;
  background: var(--site-surface-white);
  color: var(--site-plum);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#view-home .playlist-search::placeholder{
  color: var(--site-plum-soft);
}

#view-home .playlist-search:focus{
  outline: none;
  border-color: var(--site-orchid);
  box-shadow: 0 0 0 3px rgba(220, 126, 227, 0.22);
}

#view-home .track-list{
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#view-home .track-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--site-surface-white);
  border: 1px solid var(--site-border);
  font-size: 13px;
  transition: background 0.14s ease, border-color 0.14s ease;
}

#view-home .track-item:hover{
  background: var(--site-surface-soft);
  border-color: var(--site-border-strong);
}

#view-home .track-item.is-current{
  background: rgba(220, 126, 227, 0.14);
  border-color: var(--site-orchid);
  font-weight: bold;
}

#view-home .track-main{
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

#view-home .track-thumb{
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #DC7EE3 0%, #8E5697 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
}

#view-home .track-thumb img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#view-home .track-title{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--site-plum);
}

#view-home .track-artist{
  font-size: 11px;
  color: var(--site-plum-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: normal;
}

#view-home .track-artist-link{
  display: inline-block;
  max-width: 100%;
  text-decoration: none;
  vertical-align: top;
}

#view-home .track-artist-link:hover{
  color: var(--site-orchid-deep);
  text-decoration: underline;
}

#view-home .track-actions{
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

#view-home .mini-btn{
  border: 1px solid var(--site-orchid);
  background: var(--site-bg);
  color: var(--site-orchid-deep);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#view-home .mini-btn:hover{
  background: var(--site-orchid);
  border-color: var(--site-orchid);
  color: #ffffff;
}

#view-home .empty-state{
  font-size: 13px;
  color: var(--site-plum-muted);
  padding: 8px 4px;
}

#view-home .panel-header-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#view-home .panel-header-link{
  font-size: 12px;
  font-weight: bold;
  color: var(--site-orchid-deep);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--site-orchid-soft);
  border: 1px solid rgba(220, 126, 227, 0.32);
  transition: background 0.15s ease, color 0.15s ease;
}

#view-home .panel-header-link:hover{
  background: var(--site-orchid);
  color: #ffffff;
}

#view-home .playlists-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

#view-home .playlist-card{
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--site-surface-white);
  border: 1px solid var(--site-border);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

#view-home .playlist-card:hover{
  background: var(--site-surface-soft);
  border-color: var(--site-orchid);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(109, 71, 112, 0.1);
}

#view-home .playlist-card.is-active-playlist{
  border-color: var(--site-orchid);
  background: rgba(220, 126, 227, 0.1);
}

#view-home .playlist-card-art{
  width: 50px;
  height: 50px;
  border-radius: 9px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6D4770 0%, #DC7EE3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
}

#view-home .playlist-card-play-btn{
  position: absolute;
  bottom: 4px;
  inset-inline-end: 4px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px) scale(0.9);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

#view-home .playlist-card-play-circle{
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E2A7EA 0%, #DC7EE3 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(48, 22, 52, 0.36);
  transition: transform 0.16s ease, filter 0.16s ease;
}

#view-home .playlist-card:hover .playlist-card-play-btn,
#view-home .playlist-card:focus-within .playlist-card-play-btn,
#view-home .playlist-card.is-playing-playlist .playlist-card-play-btn{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

@media (hover: none) {
  #view-home .playlist-card-play-btn:not(:disabled){
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
}

#view-home .playlist-card-play-btn:hover .playlist-card-play-circle{
  transform: scale(1.08);
  filter: brightness(1.05);
}

#view-home .playlist-card-play-btn:disabled{
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0 !important;
}

#view-home .playlist-card-link{
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#view-home .playlist-card-art.is-liked{
  background: linear-gradient(135deg, #623482 0%, #C64DA5 55%, #F062A2 100%);
}

#view-home .playlist-card-art img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#view-home .playlist-card-mosaic{
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

#view-home .playlist-card-mosaic img{
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#view-home .playlist-card-meta{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#view-home .playlist-card-title{
  font-size: 13.5px;
  font-weight: 700;
  color: var(--site-plum);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#view-home .playlist-card-sub{
  font-size: 11.5px;
  color: var(--site-plum-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#view-home .track-like-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--site-plum-muted);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

#view-home .track-like-btn:hover{
  background: rgba(220, 126, 227, 0.14);
  color: var(--site-plum);
}

#view-home .track-like-btn.is-liked{
  color: var(--site-heart);
}

#view-home .main-toast{
  position: fixed;
  bottom: 102px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10050;
  background: var(--site-plum);
  color: #ffffff;
  border: 1px solid rgba(220, 126, 227, 0.45);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 10px 26px rgba(109, 71, 112, 0.3);
}


