/* ═══════════════════════════════════════════════════════
   daily-mix.css — Musio Daily Mix Feature
═══════════════════════════════════════════════════════ */

/* ── SECTION ── */
#daily-mix-section {
  margin-bottom: 28px;
}

/* ── HORIZONTAL SCROLL CARDS ── */
#daily-mix-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 8px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
#daily-mix-cards::-webkit-scrollbar { display: none; }

/* ── SINGLE MIX CARD ── */
.dm-card {
  flex-shrink: 0;
  width: 148px;
  cursor: pointer;
  border-radius: 0;
  background: transparent;
  border: none;
  padding: 0;
  scroll-snap-align: start;
  transition: transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.dm-card:active {
  transform: scale(0.94);
}

/* ── THUMBNAIL ── */
.dm-thumb {
  width: 148px;
  height: 148px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
  position: relative;
}

/* ── COLLAGE 2x2 ── */
.dm-collage {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  background: #111;
}
.dm-collage-cell {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.dm-collage-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Single cover dengan overlay */
.dm-collage-single {
  display: block;
  position: relative;
}
.dm-collage-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dm-collage-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dm-collage-icon {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 28px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}

/* Empty — no cover */
.dm-collage-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}
.dm-collage-icon-solo {
  font-size: 48px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

/* Large collage di overlay */
.dm-collage-lg {
  border-radius: 16px;
}

/* ── CARD TEXT ── */
.dm-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.1px;
  line-height: 1.3;
}
.dm-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

/* ══════════════════════════════════════
   DAILY MIX OVERLAY (full-screen detail)
══════════════════════════════════════ */
#dm-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: var(--bg, #0a0a14);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  padding-top: env(safe-area-inset-top, 0px);
}
#dm-overlay.open {
  transform: translateY(0);
}

/* Gradient header backdrop */
.dm-ov-header-bg {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 260px;
  pointer-events: none;
  z-index: 0;
}
#dm-ov-grad {
  position: absolute;
  inset: 0;
  opacity: 0.18;
}
.dm-ov-header-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg, #0a0a14));
}

/* ── OVERLAY TOPBAR ── */
.dm-ov-topbar {
  display: flex;
  align-items: center;
  padding: 12px 16px 8px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.dm-ov-back {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--txt, #f0eeff);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.dm-ov-back:active {
  background: rgba(255, 255, 255, 0.18);
}

/* ── OVERLAY HERO ── */
.dm-ov-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px 20px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
#dm-ov-thumb {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  margin-bottom: 16px;
}
.dm-ov-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--txt, #f0eeff);
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 4px;
}
.dm-ov-desc-txt {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  text-align: center;
  margin-bottom: 4px;
}
.dm-ov-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

/* ── ACTION BUTTONS ── */
.dm-ov-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
  width: 100%;
  max-width: 340px;
}
.dm-ov-btn-play {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: var(--accent, #7c6aff);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 4px 16px var(--glow, rgba(124, 106, 255, 0.3));
  -webkit-tap-highlight-color: transparent;
}
.dm-ov-btn-play:active {
  opacity: 0.85;
  transform: scale(0.97);
}
.dm-ov-btn-shuffle {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--border, rgba(124,106,255,.15));
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--txt2, #9090b0);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.dm-ov-btn-shuffle:active {
  background: rgba(124, 106, 255, 0.18);
  color: var(--accent2, #a98aff);
}

/* ── SONG LIST ── */
.dm-ov-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 calc(env(safe-area-inset-bottom, 0px) + 90px);
}
.dm-ov-scroll::-webkit-scrollbar { display: none; }

.dm-ov-list-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--txt3, #505070);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0 18px 10px;
}

.dm-ov-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.dm-ov-row:active {
  background: rgba(255, 255, 255, 0.06);
}
.dm-ov-num {
  width: 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--txt3, #505070);
  flex-shrink: 0;
}
.dm-ov-row-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.dm-ov-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dm-ov-row-info {
  flex: 1;
  min-width: 0;
}
.dm-ov-row-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--txt, #f0eeff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.dm-ov-row-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-ov-row-dur {
  font-size: 12px;
  color: var(--txt3, #505070);
  font-weight: 600;
  flex-shrink: 0;
}
