
/* DigitalPlayer Smart History 2.0 */

.dpsh-button {
  display: block;
  margin: 18px auto 0;
  padding: 11px 22px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 30px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}

.dpsh-button:hover {
  background: rgba(255,255,255,.15);
}

.dpsh-overlay[hidden] {
  display: none !important;
}

.dpsh-overlay {
  position: fixed !important;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(8px);
}

.dpsh-modal {
  width: 100%;
  max-width: 520px;
  max-height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: #181822;
  color: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}

.dpsh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.dpsh-heading {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.dpsh-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}

.dpsh-list {
  overflow-y: auto;
  padding: 8px 18px 18px;
}

.dpsh-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.dpsh-cover {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9px;
  background: #343441;
}

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

.dpsh-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dpsh-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.dpsh-artist {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #bcbcc8;
  font-size: 12px;
}

.dpsh-time {
  color: #bcbcc8;
  font-size: 11px;
  white-space: nowrap;
}

.dpsh-empty {
  padding: 30px;
  text-align: center;
  color: #bcbcc8;
}

@media (max-width: 600px) {
  .dpsh-overlay {
    padding: 12px;
  }

  .dpsh-modal {
    max-height: 85vh;
  }

  .dpsh-header {
    padding: 16px;
  }
}


/* DIGITALPLAYER METADATA ENGINE 3.0 */
.dpme-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 720px;
  margin: 16px auto 22px;
  padding: 0 12px;
  box-sizing: border-box;
}

.dpme-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border-radius: 14px;
  background: rgba(20, 24, 34, .94);
  color: #fff;
  text-align: left;
  box-sizing: border-box;
}

.dpme-artwork {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border-radius: 9px;
  background: #303540;
  color: #fff;
  font-size: 26px;
}

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

.dpme-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.dpme-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #b9c0ce;
}

.dpme-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.dpme-artist,
.dpme-empty {
  font-size: 12px;
  line-height: 1.4;
  color: #c7cbd4;
  overflow-wrap: anywhere;
}

@media (max-width: 575px) {
  .dpme-panel {
    grid-template-columns: 1fr;
    max-width: 430px;
  }
}


/* Metadata Engine 3.0 - Integración lateral */
.dpme-panel {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 20px 0;
  padding: 0;
}

.dpme-panel .dpme-card {
  background: rgba(20, 24, 34, .85);
}

.dpme-panel .dpme-artwork {
  flex-basis: 64px;
  width: 64px;
  height: 64px;
}

@media (max-width: 767px) {
  .dpme-panel {
    max-width: 100%;
    margin: 16px auto;
  }
}
