/* Base list styling */
.as-song-history { list-style: none; margin: 0; padding: 0; }

/* Rows */
.as-song-history .as-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f4;
}
.as-song-history .as-row:last-child { border-bottom: 0; }

/* Time at the left */
.as-song-history .as-played-at {
  order: 0;
  min-width: 52px; /* align column */
  text-align: right;
  color: #6e7680;
  font-variant-numeric: tabular-nums;
}

/* Cover image */
.as-song-history .as-cover {
  order: 1;
  flex: 0 0 var(--as-cover-size, 40px);
  width: var(--as-cover-size, 40px);
  height: var(--as-cover-size, 40px);
  object-fit: cover;
  border-radius: 8px;
}

/* Metadata */
.as-song-history .as-meta {
  order: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.as-song-history .as-title {
  font-weight: 600;
  color: #222;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.as-song-history .as-artist {
  color: #6e7680;
  font-size: 0.95em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Playlist page tweaks (namespaced) */
.ash2-playlist-page .as-song-history .as-row { padding: 14px 0; gap: 14px; }
.ash2-playlist-page .as-song-history .as-cover { --as-cover-size: 56px; border-radius: 6px; }
.ash2-playlist-page .ash2-controls { margin: 8px 0 12px; }
.ash2-playlist-page .ash2-channel-select { max-width: 340px; width: 100%; padding: 8px 10px; }
.ash2-playlist-page .as-song-history .as-row:hover { background: #fafcff; }
.ash2-playlist-page .as-live {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  background: #00C853; /* groen label */
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.ash2-playlist-page .as-separator {
  display: block;
  margin: 12px 0 6px;
  color: #7a818a;
  font-weight: 600;
  text-transform: none;
}
.ash2-playlist-page .ash2-date-nav { margin: 8px 0 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ash2-playlist-page .ash2-date-nav .as-date-label { color: #4d5561; font-weight: 600; }
.ash2-playlist-page .ash2-btn { appearance: none; border: 1px solid #e0e5ea; background: #fff; color: #222; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.ash2-playlist-page .ash2-btn:hover { background: #f7fafc; }
.ash2-playlist-page .ash2-btn:disabled { opacity: .5; cursor: default; }
.ash2-playlist-page .ash2-footer { text-align: center; margin: 16px 0 24px; }
.ash2-playlist-page .ash2-load-more {
  appearance: none;
  border: 1px solid #e0e5ea;
  background: #fff;
  color: #222;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
}
.ash2-playlist-page .ash2-load-more:hover { background: #f7fafc; }
.ash2-playlist-page .ash2-load-more:disabled { opacity: .5; cursor: default; }
.ash2-playlist-page .ash2-status { margin: 12px 0; color: #7a818a; }

/* Week view helpers */
.as-song-history-week { --as-cover-size: 40px; }
.as-song-history-week.size-compact { --as-cover-size: 28px; }
.as-song-history-week.size-large { --as-cover-size: 52px; }
.as-song-history-week.shape-pill .as-cover { border-radius: 999px; }
.as-song-history-week.shape-rounded .as-cover { border-radius: 10px; }
.as-song-history-week.shape-square .as-cover { border-radius: 3px; }

.as-song-history-week .as-week-nav { display: flex; gap: 8px; margin: 8px 0 12px; flex-wrap: wrap; }
.as-song-history-week .as-day-item { padding: 6px 10px; border: 1px solid #e5e8ec; border-radius: 999px; background: #fff; cursor: pointer; }
.as-song-history-week .as-day-item.active { background: var(--as-accent, #0E9FDD); color: #fff; border-color: transparent; }
.as-song-history-week .as-week-day.hidden { display: none; }

/* BEGIN Radiotoekomst homepage history border */
.elementor-6561 .elementor-element.elementor-element-rtash32:not(.elementor-motion-effects-element-type-background) > .elementor-widget-wrap,
.elementor-6561 .elementor-element.elementor-element-rtash32 > .elementor-widget-wrap > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-color: transparent !important;
}

.elementor-6561 .elementor-element.elementor-element-rtash32 > .elementor-element-populated {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.elementor-6561 .elementor-element.elementor-element-rtash33 {
  width: 100%;
}

.elementor-6561 .elementor-element.elementor-element-rtash33 > .elementor-widget-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.elementor-6561 .elementor-element.elementor-element-rtash33 .as-song-history {
  display: inline-flex;
  align-items: center;
  width: 460px;
  max-width: 100%;
  min-height: 70px;
  margin-left: auto;
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 8px 0 8px 12px;
  backdrop-filter: none;
}

.elementor-6561 .elementor-element.elementor-element-rtash33 .as-song-history::before {
  display: none;
}

.elementor-6561 .elementor-element.elementor-element-rtash33 .as-song-history .as-row {
  width: 100%;
  min-width: 0;
  border-bottom: 0;
  padding: 0;
}

.elementor-6561 .elementor-element.elementor-element-rtash33 .as-song-history .as-meta {
  flex: 1 1 auto;
  min-width: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.42);
}

.elementor-6561 .elementor-element.elementor-element-rtash33 .as-song-history .as-row.empty {
  min-width: 100%;
  justify-content: flex-end;
  text-shadow: 0 2px 8px rgba(0,0,0,0.42);
}

@media (max-width: 767px) {
  .elementor-6561 .elementor-element.elementor-element-rtash33 > .elementor-widget-container {
    justify-content: center;
  }

  .elementor-6561 .elementor-element.elementor-element-rtash33 .as-song-history {
    width: min(420px, 100%);
    min-height: 66px;
    margin-left: 0;
    padding: 8px 0;
  }
}
/* END Radiotoekomst homepage history border */

/* BEGIN Radiotoekomst OPEN APP button */
.elementor-6561 .elementor-element.elementor-element-rtapp35 {
  text-align: center;
}

.elementor-6561 .rt-open-app-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.elementor-6561 .rt-open-app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 44px;
  color: #fff !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.24), rgba(1,173,252,0.26) 34%, rgba(0,0,0,0.42)),
    #01adfc;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 999px;
  box-shadow:
    0 14px 30px rgba(0,0,0,0.36),
    inset 0 1px 0 rgba(255,255,255,0.34);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.09em;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.elementor-6561 .rt-open-app-button:hover,
.elementor-6561 .rt-open-app-button:focus {
  color: #fff !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.30), rgba(1,173,252,0.30) 30%, rgba(0,0,0,0.36)),
    #018fd2;
  box-shadow:
    0 16px 34px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.40);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .elementor-6561 .rt-open-app-button {
    min-height: 48px;
    padding: 13px 34px;
    font-size: 14px;
  }
}
/* END Radiotoekomst OPEN APP button */

/* BEGIN Radiotoekomst hide old popup player */
#proradioCta.proradio-popupwindow[href*="proradio-popup=1"] {
  display: none !important;
}
/* END Radiotoekomst hide old popup player */
