/* ═══════════════════════════════════════════════════════════
   PLAYLIST PAGE — PREMIUM
═══════════════════════════════════════════════════════════ */
.playlist-page {
  position: absolute;
  inset: 0;
  padding: 72px 72px 180px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.playlist-page::-webkit-scrollbar { display: none; }
.playlist-header {
  margin-bottom: 56px;
}

/* Smart mixes — 2 across, dashboard style */
.playlist-mixes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 56px;
}
.playlist-mix {
  background: linear-gradient(160deg, var(--mix-g1) 0%, var(--mix-g3, transparent) 50%, var(--mix-g2) 100%);
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  border: 1px solid rgba(238,247,247,0.05);
  position: relative;
  min-height: 240px;
  transition: border-color 0.3s ease;
  overflow: hidden;
}
.playlist-mix:hover {
  border-color: rgba(238,247,247,0.12);
}
.playlist-mix-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(238,247,247,0.04);
  border: 1px solid rgba(238,247,247,0.06);
}
.playlist-mix-icon svg {
  opacity: 0.6;
}
.playlist-mix-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.playlist-mix-label {
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent2);
  margin-bottom: 6px;
  opacity: 0.7;
}
.playlist-mix-title {
  font-size: 36px;
  font-weight: 200;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.playlist-mix-meta {
  font-size: 18px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(238,247,247,0.25);
  margin-top: 4px;
}

/* Expanded mix — spans full width */
.playlist-mix.expanded {
  grid-column: 1 / -1;
  min-height: auto;
}
.playlist-mix-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.playlist-mix.expanded .playlist-mix-expand {
  max-height: 600px;
  margin-top: 16px;
}
.mix-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(238,247,247,0.05);
}
.mix-item:first-child { border-top: none; }
.mix-item-num {
  font-size: 18px;
  font-weight: 200;
  color: rgba(238,247,247,0.2);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}
.mix-item-poster {
  width: 48px;
  height: 48px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.mix-item-info { flex: 1; }
.mix-item-title {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.3;
}
.mix-item-meta {
  font-size: 14px;
  font-weight: 300;
  color: rgba(238,247,247,0.3);
  margin-top: 2px;
}
.mix-item-duration {
  font-size: 14px;
  font-weight: 300;
  color: rgba(238,247,247,0.2);
  flex-shrink: 0;
}

/* Mix Modal — full screen */
.mix-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--bg);
  display: flex;
  flex-direction: row;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding-bottom: 160px;
}
.mix-modal.open {
  opacity: 1;
  pointer-events: all;
}
.mix-modal-header {
  width: 500px;
  flex-shrink: 0;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.mix-modal-close {
  position: absolute;
  top: 40px;
  left: 60px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.5;
}
.mix-modal-close svg {
  width: 24px;
  height: 24px;
}
.mix-modal-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(238,247,247,0.04);
  border: 1px solid rgba(238,247,247,0.06);
  margin-bottom: 24px;
  color: rgba(238,247,247,0.6);
}
.mix-modal-icon svg { width: 28px; height: 28px; }
.mix-modal-label {
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent2);
  opacity: 0.7;
  margin-bottom: 8px;
}
.mix-modal-title {
  font-size: 48px;
  font-weight: 200;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.mix-modal-desc {
  font-size: 20px;
  font-weight: 300;
  color: rgba(238,247,247,0.45);
  line-height: 1.5;
  margin-bottom: 16px;
}
.mix-modal-meta {
  font-size: 18px;
  font-weight: 300;
  color: rgba(238,247,247,0.3);
}
.mix-modal-list {
  flex: 1;
  padding: 80px 80px 40px 40px;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mix-modal-list::-webkit-scrollbar { display: none; }
.mix-modal-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(238,247,247,0.04);
}
.mix-modal-item:last-child { border-bottom: none; }
.mix-modal-item-num {
  font-size: 20px;
  font-weight: 200;
  color: rgba(238,247,247,0.2);
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}
.mix-modal-item-poster {
  width: 64px;
  height: 64px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.mix-modal-item-info { flex: 1; }
.mix-modal-item-title {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.3;
}
.mix-modal-item-meta {
  font-size: 16px;
  font-weight: 300;
  color: rgba(238,247,247,0.35);
  margin-top: 2px;
}
.mix-modal-item-duration {
  font-size: 18px;
  font-weight: 300;
  color: rgba(238,247,247,0.2);
  flex-shrink: 0;
}

/* Section labels */
.playlist-section-label {
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(238,247,247,0.35);
  margin-bottom: 20px;
}

/* Favorite cards — horizontal scroll row */
.playlist-fav-section {
  opacity: 0;
  transition: opacity 1s ease;
  margin-bottom: 56px;
}
.playlist-fav-section.visible {
  opacity: 1;
}

.playlist-favorites {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.playlist-favorites::-webkit-scrollbar { display: none; }

.playlist-fav-card {
  flex-shrink: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.playlist-fav-card .playlist-fav-poster {
  width: 200px;
  height: 280px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(238,247,247,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.playlist-fav-card.playlist-fav-square .playlist-fav-poster {
  height: 200px;
}
.playlist-fav-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.playlist-fav-heart {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 16px;
  color: var(--accent);
  opacity: 0.8;
  z-index: 2;
}
.playlist-fav-info {
  padding: 12px 0 0;
}
.playlist-fav-eyebrow {
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(238,247,247,0.35);
  margin-bottom: 4px;
}
.playlist-fav-title {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Playlist tabs — fixed position at top */
.playlist-tabs {
  display: flex;
  gap: 32px;
}
.playlist-tab {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(238,247,247,0.3);
  cursor: pointer;
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.playlist-tab:hover {
  color: rgba(238,247,247,0.5);
}
.playlist-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

/* Remix button — positioned bottom-right, quiet */
.playlist-mix-generate {
  position: absolute;
  bottom: 28px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 18px;
  font-weight: 300;
  font-family: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(238,247,247,0.4);
  background: rgba(238,247,247,0.03);
  border: 1px solid rgba(238,247,247,0.08);
  border-radius: 20px;
  cursor: pointer;
  transition: color 0.4s, border-color 0.4s;
  opacity: 1;
}
}
.playlist-mix-generate svg {
  width: 13px;
  height: 13px;
  opacity: 0.4;
}
.playlist-mix-generate:hover svg {
  opacity: 0.7;
}

/* Prompt disclosure area */
.playlist-prompt {
  margin-bottom: 48px;
  padding: 28px 32px;
  background: rgba(238,247,247,0.025);
  border: 1px solid rgba(238,247,247,0.06);
  border-radius: 20px;
  position: relative;
}
.playlist-prompt-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.playlist-prompt-icon {
  width: 20px;
  height: 20px;
  opacity: 0.4;
}
.playlist-prompt-label {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}
.playlist-prompt-text {
  font-size: 20px;
  font-weight: 300;
  color: rgba(238,247,247,0.45);
  line-height: 1.65;
  font-style: italic;
}
.playlist-prompt-meta {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 300;
  color: rgba(238,247,247,0.25);
  letter-spacing: 0.04em;
}

/* Empty state */
.playlist-empty {
  font-size: 20px;
  font-weight: 200;
  color: rgba(238,247,247,0.35);
  line-height: 1.6;
  padding: 40px 0;
}

/* AI Agent added items */
.playlist-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
}
.playlist-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  border-radius: 18px;
  background: rgba(238,247,247,0.03);
  border: 1px solid rgba(238,247,247,0.04);
  opacity: 0;
  animation: playlistFadeIn 0.8s ease forwards;
}
@keyframes playlistFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.playlist-row-icon {
  font-size: 28px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(238,247,247,0.04);
  border-radius: 14px;
  border: 1px solid rgba(238,247,247,0.04);
  flex-shrink: 0;
}
.playlist-row-text {
  flex: 1;
  min-width: 0;
}
.playlist-row-title {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.playlist-row-sub {
  font-size: 20px;
  font-weight: 300;
  color: rgba(238,247,247,0.3);
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.playlist-row-cat {
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(238,247,247,0.2);
  flex-shrink: 0;
}
