/* ===================================================================
   ARCHIVE CSS - Station grid, filters, search, sorting, load more
   Loaded on archive/taxonomy pages
   =================================================================== */

.card--station {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: column nowrap;
  flex-flow: column nowrap;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-order: 4;
  /* order: 4; REMOVED - CSS Grid order conflicteerde met JavaScript DOM herordening */
  cursor: pointer;
}
.card--station .station--wrapper {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  height: 65px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08);
}
.card--station .station--inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.card--station .station--inner img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  max-width: 100%;
}
.card--spotlight {
  position: relative;
  display: block;
  grid-column: 4 span;
  -ms-flex-order: 5;
  order: 5;
  text-align: center;
  min-height: 90px;
}

/* Overlay layer */
.station--overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28); /* soft dim like the screenshot */
  opacity: 0;
  pointer-events: none; /* keep whole card clickable */
  transition: opacity 0.22s ease;
}

/* Red circular play button */
.play-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--main);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.18);
  transform: scale(0.92);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* Hover / focus states */
.card--station:hover .station--overlay,
.card--station:focus-visible .station--overlay,
.card--station.is-live .station--overlay {
  opacity: 1;
}

.card--station:hover .station--inner img,
.card--station:focus-visible .station--inner img {
  filter: blur(0px) brightness(0.7);
  /* transform: scale(1.02); */
}

.card--station:hover .play-btn,
.card--station:focus-visible .play-btn {
  transform: scale(1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

/* Optional: keep corners perfectly rounded if parent varies */
.station--overlay,
.station--inner img {
  border-radius: 5px;
}

/* === Radio Tile Hover Zoom Effect ========================================= */
/* Only active when body has .tile-hover-zoom class (Theme Settings) */
body.tile-hover-zoom .card--station .station--wrapper {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

body.tile-hover-zoom .card--station:hover .station--wrapper,
body.tile-hover-zoom .card--station:focus-visible .station--wrapper {
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22),
              0 4px 8px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

/* Ensure hovering tile appears above neighbors */
body.tile-hover-zoom .card--station {
  position: relative;
}

body.tile-hover-zoom .card--station:hover,
body.tile-hover-zoom .card--station:focus-visible {
  z-index: 10;
}

/* === Radio Tile Box Shadow Effect ========================================= */
/* Only active when body has .tile-box-shadow class (Theme Settings) */
body.tile-box-shadow .card--station .station--wrapper {
  box-shadow: 1px 2px 2px 0 rgba(1, 1, 1, 0.25);
}

/* === Player Box Shadow Effect ============================================= */
/* Only active when body has .player-box-shadow class (Theme Settings) */
body.player-box-shadow .layout--left .left--block {
section.s-archive .archive--results {
  margin-bottom: 14px;
}
section.s-archive .archive--results > span {
  font-weight: 700;
}
section.s-archive .archive--results > span.result {
  font-weight: 400;
}
section.s-archive .archive--wrapper {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: auto;
  grid-column-gap: 10px;
  grid-row-gap: 10px;
}
.card--station.is-favorite {
  overflow: visible !important;
}
.card--station.is-favorite .station--wrapper {
  position: relative;
  overflow: visible !important;
}
.card--station.is-favorite .station--inner {
  overflow: hidden;
}
.favorite-tag {
  position: absolute;
  top: -10px;
  right: -8px;
  background-color: #effae0;
  color: #1e0033;
  border: none;
  border-radius: 32px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 10px;
  line-height: 1;
  transform: rotate(10deg);
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.favorite-tag-hover {
  display: none;
}
.card--station.is-favorite:hover .favorite-tag-text {
  display: none;
}
.card--station.is-favorite:hover .favorite-tag-hover {
  display: inline;
}
.favorite-tag-remove {
  display: none;
  background: none;
  border: none;
  color: #1e0033;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  margin-left: 1px;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}
.favorite-tag-remove:hover {
  opacity: 1;
}
.card--station.is-favorite:hover .favorite-tag-remove {
  display: inline-block;
}

/* Station badges (Christmas, etc.) */
.card--station.is-christmas,
.card--station.is-christmas .station--wrapper {
  overflow: visible !important;
}

.station-badge {
  position: absolute;
  z-index: 100;
  pointer-events: none;
}

.station-badge--christmas {
  top: -20px;
  left: -16px;
  transform: rotate(-35deg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.station-badge--christmas svg {
  width: 32px;
  height: 32px;
}

/* Sinterklaas badge */
.card--station.is-sinterklaas,
.card--station.is-sinterklaas .station--wrapper {
  overflow: visible !important;
}

.station-badge--sinterklaas {
  top: -20px;
  left: -16px;
  transform: rotate(-35deg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.station-badge--sinterklaas svg {
  width: 38px;
  height: 38px;
}

/* Populair label */
.card--station:has(.populair-tag),
.card--station:has(.populair-tag) .station--wrapper {
  overflow: visible !important;
}

.populair-tag {
  position: absolute;
  top: -10px;
  right: -8px;
  background-color: #ffe0e0;
  color: #cc0000;
  border: none;
  border-radius: 32px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 10px;
  line-height: 1;
  transform: rotate(10deg);
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  pointer-events: none;
}

/* Drag & drop styles for custom favorites order */
.card--station.draggable-favorite {
  cursor: pointer;
}
.card--station.draggable-favorite:active {
  cursor: grabbing;
}
.card--station.draggable-favorite.dragging {
  cursor: grabbing;
}
.card--station.dragging {
  opacity: 0.8;
  transform: scale(1.02);
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
.archive--wrapper .rs-slot--below-grid {
  grid-row: 2;
  grid-row-end: 2;
  grid-row-start: 8;
  grid-row-end: 8;
  -ms-grid-row: 2;
  -ms-grid-row-span: 4;
  grid-column-start: 1;
  grid-column-end: 11;
  -ms-grid-column: 3;
  -ms-grid-column-span: 4;
  margin: 0px !important;
}

.rs-slot--inside-grid img,
.archive--wrapper .rs-slot--below-grid img {
  width: auto;
  margin: 0 auto;
}
.rs-slot--inside-grid .rs-ad-label,
.archive--wrapper .rs-slot--below-grid .rs-ad-label {
  top: -3px;
}

.rs-modal-open {
  overflow: hidden;
}

/* ===========================
   Load More Buttons (Archive Pages)
   =========================== */

/* centered pill button overlapping the red base */
.scg-actions,
.sa-actions {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px; /* float over the red strip */
  z-index: 2;
}

.scg-load-more.btn,
.sa-load-more.btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 20px;
  border: none;
  border-radius: 999px;
  color: var(--text-black-white);
  background: var(--white-dark) !important;
  font-weight: 600;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  flex-direction: row-reverse;
}

.scg-load-more.btn:hover,
.sa-load-more.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  background: var(--light-dark) !important;
  color: var(--text-black-white) !important;
}

.scg-load-more.btn:active,
.scg-load-more.btn:focus,
.sa-load-more.btn:active,
.sa-load-more.btn:focus {
  background: var(--light-dark) !important;
  color: var(--text-black-white) !important;
}

/* white dot with chevron */
.scg-load-more.btn::after,
.sa-load-more.btn::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  color: var(--text-black-white);
  line-height: 1;
  font-size: 18px;
  margin-top: -3px;
}

/* loading state from your JS */
.scg-load-more.is-loading,
.sa-load-more.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* while loading, swap chevron for a spinner */
.scg-load-more.is-loading::after,
.sa-load-more.btn.is-loading::after {
  content: "◠";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: #fff;
  animation: rs-spin 0.8s linear infinite;
}

/* optional: subtle loading state */
.scg-load-more.is-loading,
.sa-load-more.btn.is-loading {
  opacity: 0.9;
  pointer-events: none;
}

@keyframes rs-spin {
  to {
    transform: rotate(360deg);
  }
}
