/* ============================================================
   Emerged Music — Sync Catalog
   Color-tab playlist look (Spotify / Musicbed inspired)
   Palette inherits theme: #16151a bg, #222227 cards, #25a56a primary
   ============================================================ */

.sync-hero {
  padding: 28px 0 8px;
}
.sync-hero h1 {
  font-size: 34px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}
.sync-hero p {
  color: #c0c0c0;
  font-size: 15px;
  margin: 0 0 18px;
  max-width: 720px;
  line-height: 1.6;
}
.sync-hero p a {
  color: #25a56a;
}

/* ---- color tabs ---- */
.sync-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 22px;
}
.sync-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #c0c0c0;
  background: #222227;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
}
.sync-tab .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}
.sync-tab:hover {
  color: #fff;
  border-color: #333;
}
.sync-tab.active {
  color: #fff;
  border-color: var(--tab, #25a56a);
  background: rgba(255, 255, 255, 0.04);
}

/* ---- playlist rows ---- */
.sync-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sync-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border-radius: 10px;
  background: #222227;
  margin-bottom: 10px;
  overflow: hidden;
  transition: background 0.2s ease;
}
.sync-row:hover {
  background: #2a2a30;
}
/* left color bar */
.sync-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--bar, #25a56a);
  border-radius: 0 3px 3px 0;
}

.sync-row__cover {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: #16151a;
}
.sync-row__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sync-row__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.sync-row__play svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.sync-row:hover .sync-row__play {
  opacity: 1;
}
.sync-row__play.playing {
  opacity: 1;
  background: rgba(37, 165, 106, 0.55);
}

.sync-row__body {
  flex: 1 1 auto;
  min-width: 0;
}
.sync-row__title {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sync-row__artist {
  display: block;
  color: #c0c0c0;
  font-size: 12.5px;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sync-row__tag {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--bar, #25a56a);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.sync-row__time {
  flex: 0 0 auto;
  color: #8a8a92;
  font-size: 12px;
  min-width: 40px;
  text-align: right;
}

.sync-row__price {
  flex: 0 0 auto;
  color: #25a56a;
  font-size: 12.5px;
  font-weight: 600;
  min-width: 46px;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 575px) {
  .sync-row__tag { display: none; }
  .sync-hero h1 { font-size: 26px; }
}
