﻿/* CR_COLLECTIVE_V172B_MUSIC_LIBRARY_TOPTRACKS_STYLE */

body[data-cr-v172b-music-library="1"] .cr-mltop-v172b-hidden {
  display: none !important;
}

.cr-mltop-v172b {
  max-width: 1180px;
  margin: 22px auto 140px;
  padding: 0 18px;
}

.cr-mltop-v172b-shell {
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(139,92,246,.13), transparent 34%),
    linear-gradient(135deg, rgba(13,16,27,.96), rgba(8,11,19,.98));
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
  overflow: hidden;
}

.cr-mltop-v172b-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.cr-mltop-v172b-kicker {
  margin: 0 0 7px;
  color: #a78bfa;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cr-mltop-v172b-title {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.05;
  font-weight: 1000;
}

.cr-mltop-v172b-sub {
  margin: 8px 0 0;
  color: rgba(255,255,255,.68);
  font-size: .9rem;
}

.cr-mltop-v172b-refresh {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  font-weight: 950;
}

.cr-mltop-v172b-controls {
  display: grid;
  grid-template-columns: minmax(220px,1.7fr) minmax(130px,.7fr) minmax(130px,.7fr) minmax(105px,.55fr) minmax(105px,.55fr) minmax(130px,.7fr);
  gap: 10px;
  padding: 16px 18px 10px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.cr-mltop-v172b-field {
  display: grid;
  gap: 6px;
}

.cr-mltop-v172b-field label {
  color: rgba(255,255,255,.54);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cr-mltop-v172b-field input,
.cr-mltop-v172b-field select {
  width: 100%;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(3,6,14,.65);
  color: rgba(255,255,255,.9);
  padding: 0 13px;
  outline: none;
}

.cr-mltop-v172b-field input:focus,
.cr-mltop-v172b-field select:focus {
  border-color: rgba(167,139,250,.48);
  box-shadow: 0 0 0 3px rgba(139,92,246,.13);
}

.cr-mltop-v172b-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  color: rgba(255,255,255,.72);
  font-size: .84rem;
  font-weight: 800;
}

.cr-mltop-v172b-pager {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cr-mltop-v172b-pagebtn {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.88);
  cursor: pointer;
  font-weight: 950;
}

.cr-mltop-v172b-pagebtn:disabled {
  opacity: .4;
  cursor: default;
}

.cr-mltop-v172b-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.cr-mltop-v172b-row {
  display: grid;
  grid-template-columns: 48px 56px 34px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.075);
  background:
    radial-gradient(circle at 0% 0%, rgba(139,92,246,.11), transparent 34%),
    linear-gradient(135deg, rgba(24,27,39,.92), rgba(12,15,26,.97));
  box-shadow: 0 18px 46px rgba(0,0,0,.18);
}

.cr-mltop-v172b-row:hover {
  border-color: rgba(139,92,246,.25);
  background:
    radial-gradient(circle at 0% 0%, rgba(139,92,246,.17), transparent 34%),
    linear-gradient(135deg, rgba(30,34,48,.95), rgba(13,17,29,.98));
}

.cr-mltop-v172b-rank {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(167,139,250,.22);
  background: rgba(109,40,217,.34);
  color: #fff;
  font-weight: 1000;
}

.cr-mltop-v172b-cover {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(139,92,246,.16);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.7);
  font-weight: 1000;
}

.cr-mltop-v172b-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cr-mltop-v172b-play {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(167,139,250,.28);
  background: linear-gradient(135deg, rgba(109,40,217,.78), rgba(139,92,246,.58));
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 0;
  box-shadow: 0 0 26px rgba(139,92,246,.2);
}

.cr-mltop-v172b-play::before {
  content: "▶";
  font-size: 13px;
  line-height: 1;
  transform: translateX(1px);
}

.cr-mltop-v172b-info {
  min-width: 0;
}

.cr-mltop-v172b-track {
  margin: 0;
  color: #fff;
  font-size: .98rem;
  line-height: 1.15;
  font-weight: 1000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-mltop-v172b-artist {
  margin: 4px 0 0;
  color: rgba(255,255,255,.66);
  font-size: .84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-mltop-v172b-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.cr-mltop-v172b-pill {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.72);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .7rem;
  font-weight: 850;
}

.cr-mltop-v172b-seen {
  display: inline-flex;
  margin-top: 6px;
  color: rgba(255,255,255,.86);
  font-size: .78rem;
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cr-mltop-v172b-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 330px;
}

.cr-mltop-v172b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.92);
  text-decoration: none;
  cursor: pointer;
  font-weight: 950;
  font-size: .78rem;
}

.cr-mltop-v172b-btn:hover,
.cr-mltop-v172b-play:hover,
.cr-mltop-v172b-refresh:hover,
.cr-mltop-v172b-pagebtn:hover:not(:disabled) {
  border-color: rgba(167,139,250,.48);
  background: rgba(139,92,246,.16);
}

.cr-mltop-v172b-empty {
  margin: 0 18px 18px;
  border: 1px dashed rgba(255,255,255,.13);
  border-radius: 18px;
  padding: 16px;
  color: rgba(255,255,255,.68);
  background: rgba(255,255,255,.025);
}

/* Global player button lock: same look on Music Library too */
html body .cr-u-round,
html body .cr-u-icon {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  border-radius: 999px !important;
}

html body .cr-u-round {
  font-size: 0 !important;
}

html body .cr-u-round[data-cr-u-prev]::before {
  content: "‹‹";
  font-size: 18px;
  font-weight: 1000;
}

html body .cr-u-round[data-cr-u-next]::before {
  content: "››";
  font-size: 18px;
  font-weight: 1000;
}

html body .cr-u-round[data-cr-u-toggle]::before {
  content: "▶";
  font-size: 18px;
  transform: translateX(1px);
}

html body .cr-u-round[data-cr-u-toggle][data-cr-v172a-playing="1"]::before {
  content: "Ⅱ";
  transform: none;
}

html body .cr-u-icon {
  font-size: 0 !important;
}

html body .cr-u-icon[data-cr-u-min]::before {
  content: "⌄";
  font-size: 19px;
  font-weight: 1000;
  transform: translateY(-1px);
}

html body .cr-u-player[data-minimized="1"] .cr-u-icon[data-cr-u-min]::before {
  content: "⌃";
  transform: translateY(1px);
}

html body .cr-u-icon[data-cr-u-close]::before {
  content: "×";
  font-size: 22px;
  font-weight: 950;
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .cr-mltop-v172b-controls {
    grid-template-columns: 1fr 1fr;
  }

  .cr-mltop-v172b-row {
    grid-template-columns: 42px 50px 34px minmax(0,1fr);
  }

  .cr-mltop-v172b-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .cr-mltop-v172b-controls {
    grid-template-columns: 1fr;
  }

  .cr-mltop-v172b-row {
    grid-template-columns: 42px 50px minmax(0,1fr);
  }

  .cr-mltop-v172b-play {
    grid-column: 2;
  }

  .cr-mltop-v172b-info {
    grid-column: 3;
  }
}
