/* ================= TRACK CARD ================= */
.track {
  display: flex;
  align-items: center;
  gap: 12px;

  background: linear-gradient(180deg, var(--cardTop), var(--cardBot));
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 14px;

  position: relative;
  overflow: visible;
}

/* Extra Platz wenn Share offen (unter der Card) */
.track.open { 
  margin-bottom: 64px; 
}

/* ================= RANK ================= */
.rank {
  width: 56px;
  min-width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--blue2);
}

.rank-num { 
  font-size: 15px; 
}

.rank-badge {
  background: #ff2e2e;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
}

/* ================= TREND ================= */
.trend { 
  font-size: 12px; 
  font-weight: 800; 
}

.trend.up::before   { 
  content: "▲"; 
  color: #3cff9e; 
}

.trend.down::before { 
  content: "▼"; 
  color: #ff5b5b; 
}

.trend.same::before { 
  content: "–"; 
  color: #9aa4b2; 
}

/* ================= COVER ================= */
.cover {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Trend Bubble auf Cover */
.trend-bubble{
  position:absolute;
  top:-6px;
  right:-6px;

  width:22px;
  height:22px;
  border-radius:50%;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:11px;
  font-weight:800;

  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.trend-bubble.up   { background:#3cff9e; color:#062b1c; }
.trend-bubble.down { background:#ff5b5b; color:#3a0000; }
.trend-bubble.same { background:#9aa4b2; color:#0b1220; }

/* ================= INFO ================= */
.info {
  flex: 1;
  min-width: 0;
}

.info strong {
  font-size: 15px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta {
  font-size: 13px;
  color: #aeb8cc;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Plays + Likes in EINER Reihe */
.plays{
  margin-top: 6px;
  font-size: 13px;
  color: var(--blue2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.play-count::before{
  content:"Plays:";
  margin-right:6px;
  color:#87bfff;
  font-weight:600;
}

/* ================= LIKE BUTTON ================= */
.like-btn{
  background:none;
  border:none;
  padding:0;

  display:inline-flex;
  align-items:center;
  gap:6px;

  color: var(--blue2);
  cursor:pointer;
  line-height: 1;
}

.like-btn svg{
  width: 16px;
  height: 16px;
  fill: currentColor;
  transform: translateY(1px);
}

.like-btn.liked{
  color:#ff5b9c;
  cursor:default;
  pointer-events:none;
}

/* ================= PLAY BUTTON (Cards) ================= */
.play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 5;
}

.play::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 12px;
  border-left: 10px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.play:hover { 
  background: #63bbff; 
}

/* ================= ACTIVE TRACK ================= */
.track.active{
  background: linear-gradient(180deg, #1b2a4a, #121a30);
  box-shadow: inset 0 0 0 1px rgba(79,163,255,.45);
  animation: pulseActive 1.8s infinite alternate;
}

@keyframes pulseActive{
  from{ box-shadow: inset 0 0 0 1px rgba(79,163,255,.22); }
  to  { box-shadow: inset 0 0 0 1px rgba(79,163,255,.60); }
}

.track.active .play::before{
  border:none;
  width:4px;
  height:18px;
  background:#fff;
  left:14px;
  top:12px;
}

.track.active .play::after{
  content:"";
  position:absolute;
  top:12px;
  right:14px;
  width:4px;
  height:18px;
  background:#fff;
}

/* ================= MORE / CHEVRON ================= */
.more-btn{
  background:none;
  border:none;
  color: var(--blue2);
  font-size: 22px;
  cursor:pointer;
  line-height: 1;
  padding: 0 4px;
}

/* ================= SHARE PANEL ================= */
.track-actions{
  position:absolute;
  left: 12px;
  right: 12px;
  bottom: -50px;

  display:none;
  justify-content:flex-end;

  pointer-events: none;
}

.track.open .track-actions{ 
  display:flex; 
}

.track-actions .share{
  pointer-events: auto;

  display:inline-flex;
  align-items:center;
  gap:10px;

  padding: 10px 14px;
  border-radius: 999px;

  background: linear-gradient(180deg, #1b2440, #121a30);
  border: 1px solid var(--line);
  color:#fff;
  cursor:pointer;

  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

.track-actions .share:hover{
  background: linear-gradient(180deg, #24305a, #1a2442);
}

.track-actions .share svg{
  width:16px;
  height:16px;
  fill: currentColor;
}

/* ================= MOBILE ================= */
@media (max-width: 600px){
  .cover{ width: 56px; height: 56px; }
  .info strong{ font-size: 16px; }
  .meta{ font-size: 14px; }
}