/* ============================================================
   Chronodiscografie — Top 40 hitlijststijl (zelfstandige module)
   Eén lange, vooraf gerenderde lijst die als filmstrip door een
   viewport schuift. Solide retro-header. Papierstijl.
   ============================================================ */

.t40 {
  --paper: #f4ecdc;
  --paper-alt: #efe5d1;
  --ink: #2a2018;
  --blue: #133a86;
  --red: #d3202b;
  --muted: #7d6e5b;
  --line: rgba(42, 32, 24, 0.12);
  --circle: #2a2018;
  --row-h: 58px;
  --rows: 6;

  width: min(100%, 660px);
  margin-inline: auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.38);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- SOLIDE HEADER (masthead + kolomkoppen = één blok) ---------- */
.t40-head {
  position: relative;
  z-index: 3;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.t40-masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem 0.45rem;
}

.t40-logo {
  font-size: 2.05rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--red);
}

.t40-kick {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  max-width: 9rem;
}
.t40-kick-r { text-align: right; }

/* kolomkoppen horen bij dezelfde header (geen losse tweede balk) */
.t40-cols {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.34rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.t40-cols .c-mid { color: var(--muted); }
.t40-cols .c-end { text-align: right; }
.t40-cols i { opacity: 0.5; font-style: normal; padding: 0 0.25em; }

/* ---------- VIEWPORT + TRACK ---------- */
.t40-viewport {
  position: relative;
  height: calc(var(--row-h) * var(--rows));
  overflow: hidden;
  cursor: grab;
  background:
    linear-gradient(var(--paper), rgba(244, 236, 220, 0)) top / 100% 14px no-repeat,
    var(--paper);
  touch-action: pan-y;
}
.t40-viewport.is-drag { cursor: grabbing; }

.t40-track {
  will-change: transform;
}

/* ---------- RIJ ---------- */
.t40-row {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  height: var(--row-h);
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.t40-row:nth-child(even) { background: var(--paper-alt); }
.t40-row.is-active {
  background: rgba(211, 32, 43, 0.08);
  box-shadow: inset 3px 0 0 var(--red);
}

.t40-pos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.t40-circle {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--circle);
  color: var(--paper);
  font-weight: 800;
  font-size: 0.86rem;
  display: grid;
  place-items: center;
  line-height: 1;
}
.t40-row.is-tip .t40-circle {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}
.t40-row.is-plain .t40-circle {
  background: transparent;
  color: var(--muted);
  border: 1.5px dashed var(--line);
}
.t40-prev {
  font-size: 0.74rem;
  color: var(--muted);
  min-width: 1.4ch;
  text-align: center;
}

.t40-body { min-width: 0; }
.t40-titleline {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.t40-title {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--blue);
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t40-row.is-plain .t40-title { color: #4a4034; }
.t40-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}

.t40-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  text-align: right;
}
.t40-weeks { font-size: 0.7rem; color: var(--muted); }
.t40-year { font-size: 0.9rem; font-weight: 800; color: var(--ink); }
.t40-award-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}
.t40-award-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.t40-award-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.36rem;
  border-radius: 999px;
  border: 1px solid rgba(19, 58, 134, 0.25);
  background: rgba(19, 58, 134, 0.07);
  color: var(--blue);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

/* ---------- DETAIL ---------- */
.t40-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--ink);
}
.t40-detail .d-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 236, 220, 0.6);
  margin-bottom: 0.15rem;
}
.t40-detail .d-title {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: #f4ecdc;
  line-height: 1.15;
}
.t40-detail .d-meta {
  display: block;
  font-size: 0.74rem;
  color: rgba(244, 236, 220, 0.72);
  margin-top: 0.12rem;
}
.t40-badge {
  flex: 0 0 auto;
  min-width: 46px;
  height: 46px;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
}

@media (max-width: 560px) {
  .t40 { --row-h: 54px; --rows: 5; }
  .t40-logo { font-size: 1.7rem; }
  .t40-kick { max-width: 6.5rem; font-size: 0.56rem; }
  .t40-title { font-size: 0.9rem; }
  .t40-cols, .t40-row { grid-template-columns: 74px 1fr auto; }
}


/* ============================================================
   Verbetering: bredere oude-Top-40-look + solid header + betere interactie
   ============================================================ */

.t40 {
  --paper: #f5efe3;
  --paper-alt: #efe6d7;
  --ink: #1f2f3d;
  --blue: #0b4f82;
  --red: #d2222a;
  --muted: #6d86a0;
  --line: rgba(11, 79, 130, 0.13);
  --row-h: 64px;
  --rows: 7;

  position: relative;
  width: min(100%, 980px);
  border: 1px solid rgba(31, 47, 61, 0.18);
}

.t40::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  right: 1rem;
  bottom: 0;
  width: 3px;
  background: var(--red);
  opacity: 0.9;
  pointer-events: none;
}

.t40-head {
  position: relative;
  z-index: 5;
  background: var(--paper);
  border-bottom: 2px solid rgba(31, 47, 61, 0.16);
}

.t40-masthead {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 0.12rem;
  padding: 0.85rem 1.25rem 0.62rem;
  background: var(--paper);
}

.t40-logo {
  color: #f21b14;
  font-size: clamp(2.45rem, 7vw, 4.2rem);
  letter-spacing: -0.02em;
}

.t40-kick,
.t40-kick-r {
  max-width: none;
  text-align: left;
  color: var(--blue);
}

.t40-kick-r {
  font-size: 0.66rem;
}

.t40-cols {
  grid-template-columns: 96px minmax(0, 1fr) 128px;
  padding: 0.45rem 1.25rem;
  background: var(--paper);
  border-top: 1px solid rgba(11, 79, 130, 0.10);
  border-bottom: 1px solid rgba(210, 34, 42, 0.16);
  font-size: 0.68rem;
  color: #113f6b;
}

.t40-cols .c-mid {
  color: rgba(17, 63, 107, 0.45);
}

.t40-viewport {
  position: relative;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.36), rgba(255,255,255,0.05) 35%, rgba(255,255,255,0.22)),
    var(--paper);
  touch-action: none;
  overscroll-behavior: contain;
}

.t40-track {
  transform: translate3d(0,0,0);
}

.t40-row {
  grid-template-columns: 96px minmax(0, 1fr) 128px;
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(11, 79, 130, 0.08);
}

.t40-row:nth-child(even) {
  background: rgba(239, 230, 215, 0.64);
}

.t40-row.is-active {
  background: rgba(210, 34, 42, 0.075);
  box-shadow:
    inset 4px 0 0 var(--red),
    inset 0 0 0 1px rgba(210, 34, 42, 0.18);
}

.t40-circle {
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,0.5), rgba(255,255,255,0) 30%),
    linear-gradient(180deg, #e84741, #a51f22);
  box-shadow:
    inset 0 -2px 5px rgba(0,0,0,0.18),
    0 2px 8px rgba(0,0,0,0.16);
}

.t40-row.is-plain .t40-circle {
  color: rgba(11, 79, 130, 0.72);
  background:
    radial-gradient(circle at 32% 22%, rgba(255,255,255,0.65), rgba(255,255,255,0) 30%),
    linear-gradient(180deg, #eef3f5, #cfd8dc);
  border: 1px solid rgba(11, 79, 130, 0.14);
}

.t40-row.is-tip .t40-circle {
  background: #f5efe3;
  box-shadow: 0 2px 8px rgba(210, 34, 42, 0.15);
}

.t40-title {
  font-size: clamp(0.98rem, 2vw, 1.32rem);
  letter-spacing: 0.035em;
  color: var(--blue);
}

.t40-sub {
  color: rgba(11, 79, 130, 0.62);
  font-weight: 720;
}

.t40-prev,
.t40-weeks {
  color: rgba(11, 79, 130, 0.72);
  font-weight: 780;
}

.t40-year {
  display: inline-grid;
  place-items: center;
  min-width: 3.4rem;
  border: 1.5px solid rgba(210, 34, 42, 0.28);
  border-radius: 999px;
  padding: 0.1rem 0.42rem;
  color: var(--blue);
  background: rgba(255,255,255,0.36);
}

.t40-detail {
  position: relative;
  z-index: 5;
}

@media (max-width: 680px) {
  .t40 {
    --row-h: 58px;
    --rows: 6;
  }

  .t40::after {
    right: 0.6rem;
  }

  .t40-cols,
  .t40-row {
    grid-template-columns: 78px minmax(0, 1fr) 82px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .t40-cols .c-mid {
    display: none;
  }

  .t40-title {
    font-size: 0.9rem;
  }

  .t40-sub {
    font-size: 0.68rem;
  }

  .t40-circle {
    width: 28px;
    height: 28px;
  }

  .t40-year {
    min-width: 2.85rem;
    font-size: 0.78rem;
  }
}

/* --- Header-uitlijning: labels recht boven hun kolommen --- */
.t40-cols { align-items: center; }
.t40-cols .c-pos { text-align: left; }
.t40-cols .c-mid { text-align: center; }
.t40-cols .c-end { text-align: right; }
.t40-cols span { white-space: nowrap; }


/* ============================================================
   V2.1 — Weken/jaar beter uitlijnen + eind stopt zonder terugschieten
   ============================================================ */

.t40-cols {
  grid-template-columns: 96px minmax(0, 1fr) 140px;
}

.t40-row {
  grid-template-columns: 96px minmax(0, 1fr) 140px;
}

.t40-end {
  display: grid !important;
  grid-template-columns: 42px 72px;
  align-items: center;
  justify-content: end;
  column-gap: 0.45rem;
  line-height: 1;
  text-align: right;
}

.t40-weeks {
  justify-self: center;
  min-width: 2.1rem;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.t40-year {
  justify-self: end;
}

.t40-award {
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: 0.14rem;
}

.t40.is-at-end .t40-viewport::after {
  content: "einde";
  position: absolute;
  right: 0.9rem;
  bottom: 0.45rem;
  z-index: 2;
  border: 1px solid rgba(11, 79, 130, 0.18);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: rgba(245, 239, 227, 0.92);
  color: rgba(11, 79, 130, 0.58);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 680px) {
  .t40-cols,
  .t40-row {
    grid-template-columns: 78px minmax(0, 1fr) 94px;
  }

  .t40-end {
    grid-template-columns: 32px 56px;
    column-gap: 0.28rem;
  }

  .t40-weeks {
    min-width: 1.6rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 560px) {
  .t40-award-badge { width: 17px; height: 17px; }
  .t40-award-pill { padding: 0.1rem 0.3rem; font-size: 0.48rem; }
}


/* SVG award badge — grotere gouden single in de rij */
.t40-titleline {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  min-width: 0;
}

.t40-titleline .t40-title {
  min-width: 0;
  flex: 0 1 auto;
}

.t40-award-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  transform: translateY(-1px);
}

.t40-award-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.t40-award-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.13rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(19, 58, 134, 0.25);
  background: rgba(19, 58, 134, 0.07);
  color: var(--blue);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

@media (max-width: 560px) {
  .t40-award-badge {
    width: 23px;
    height: 23px;
  }
}


/* ============================================================
   Popup met volledige single-info bij mouseover
   ============================================================ */

.t40 {
  position: relative;
}

.t40-popup {
  position: fixed;
  z-index: 9999;
  width: min(520px, calc(100vw - 28px));
  max-height: min(72vh, 620px);
  overflow: auto;
  padding: 0.9rem 1rem;
  border: 2px solid rgba(11, 79, 130, 0.32);
  border-left: 5px solid var(--red);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.18)),
    var(--paper);
  color: var(--ink);
  box-shadow:
    0 22px 54px rgba(0,0,0,0.28),
    inset 0 0 0 1px rgba(255,255,255,0.55);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.985);
  transition:
    opacity 130ms ease,
    transform 130ms ease;
}

.t40-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.t40-popup-head {
  display: grid;
  gap: 0.14rem;
  padding-bottom: 0.62rem;
  border-bottom: 1px solid rgba(11, 79, 130, 0.14);
  margin-bottom: 0.68rem;
}

.t40-popup-kicker {
  color: var(--red);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.t40-popup-head strong {
  color: var(--blue);
  font-size: 1.06rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.08;
}

.t40-popup-head span:last-child {
  color: rgba(11, 79, 130, 0.7);
  font-size: 0.76rem;
  font-weight: 760;
}

.t40-popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.72rem 1rem;
}

.t40-popup-section {
  min-width: 0;
}

.t40-popup-section h4 {
  margin: 0 0 0.35rem;
  color: var(--red);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.t40-popup-section dl {
  margin: 0;
  display: grid;
  gap: 0.22rem;
}

.t40-popup-line {
  display: grid;
  grid-template-columns: 6.1rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: baseline;
}

.t40-popup-line dt {
  margin: 0;
  color: rgba(31, 47, 61, 0.62);
  font-size: 0.68rem;
  font-weight: 800;
}

.t40-popup-line dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .t40-popup {
    width: calc(100vw - 24px);
    max-height: 66vh;
    padding: 0.8rem;
  }

  .t40-popup-grid {
    grid-template-columns: 1fr;
  }

  .t40-popup-line {
    grid-template-columns: 5.7rem minmax(0, 1fr);
  }
}


/* ============================================================
   Veronica Top 40-geïnspireerde header
   ============================================================ */

.t40-head {
  background: var(--paper) !important;
  border-bottom: 2px solid rgba(11, 79, 130, 0.28) !important;
}

.t40-veronica-head {
  display: grid !important;
  grid-template-columns: 12.8rem minmax(0, 1fr) !important;
  align-items: center !important;
  gap: clamp(1rem, 3vw, 2rem) !important;
  padding: 1.1rem 1.25rem 0.45rem !important;
  background: var(--paper) !important;
}

.t40-radio-mark {
  position: relative;
  width: 12.2rem;
  height: 7rem;
  overflow: hidden;
  align-self: end;
}

.t40-radio-sun {
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 2.05rem;
  height: 5rem;
  border-radius: 7rem 7rem 0 0;
  background:
    repeating-radial-gradient(
      circle at 50% 100%,
      transparent 0 0.42rem,
      #d42129 0.45rem 0.58rem
    );
  clip-path: inset(0 0 0 0 round 7rem 7rem 0 0);
}

.t40-radio-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.38rem;
  height: 2.05rem;
  background:
    repeating-linear-gradient(
      to bottom,
      #0c5f91 0 0.22rem,
      transparent 0.22rem 0.45rem
    );
}

.t40-radio-ship {
  position: absolute;
  left: 4.3rem;
  bottom: 1.55rem;
  width: 3.8rem;
  height: 2.25rem;
  z-index: 2;
}

.t40-radio-ship::before {
  content: "";
  position: absolute;
  left: 0.32rem;
  bottom: 0.25rem;
  width: 3.25rem;
  height: 0.7rem;
  border-radius: 0 0 0.55rem 0.55rem;
  background: #0c5f91;
  transform: skewX(-15deg);
}

.t40-radio-ship::after {
  content: "";
  position: absolute;
  left: 1.35rem;
  bottom: 0.86rem;
  width: 1.45rem;
  height: 1.05rem;
  border-left: 0.15rem solid #0c5f91;
  border-right: 0.15rem solid #0c5f91;
  border-top: 0.15rem solid #0c5f91;
  transform: skewX(-8deg);
}

.t40-veronica-wordmark {
  align-self: center;
  min-width: 0;
  line-height: 0.9;
}

.t40-veronica-text {
  color: transparent;
  -webkit-text-stroke: 0.085rem #0c5f91;
  text-stroke: 0.085rem #0c5f91;
  font-size: clamp(3.3rem, 8.8vw, 7.3rem);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.75;
  text-transform: lowercase;
  transform: translateY(0.08em);
}

.t40-top40-text {
  margin-top: 0.12rem;
  color: #d42129;
  font-size: clamp(2.15rem, 5.8vw, 4.65rem);
  font-weight: 1000;
  letter-spacing: 0.005em;
  line-height: 0.82;
  text-transform: uppercase;
}

.t40-credit-line {
  padding: 0.25rem 1.25rem 0.72rem;
  color: rgba(11, 79, 130, 0.72);
  font-size: clamp(0.58rem, 1.25vw, 0.74rem);
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.35;
  background: var(--paper);
}

.t40-cols {
  background: var(--paper) !important;
  border-top: 1px solid rgba(11, 79, 130, 0.16) !important;
  border-bottom: 1px solid rgba(210, 34, 42, 0.22) !important;
  color: #0c3f72 !important;
}

.t40-cols .c-mid {
  color: rgba(12, 63, 114, 0.42) !important;
}

.t40-popup {
  max-height: min(70vh, 560px);
}

@media (max-width: 760px) {
  .t40-veronica-head {
    grid-template-columns: 6.8rem minmax(0, 1fr) !important;
    gap: 0.75rem !important;
    padding: 0.85rem 0.8rem 0.35rem !important;
  }

  .t40-radio-mark {
    width: 6.6rem;
    height: 3.95rem;
  }

  .t40-radio-sun {
    bottom: 1.15rem;
    height: 2.8rem;
  }

  .t40-radio-waves {
    height: 1.15rem;
    bottom: 0.22rem;
    background:
      repeating-linear-gradient(
        to bottom,
        #0c5f91 0 0.13rem,
        transparent 0.13rem 0.27rem
      );
  }

  .t40-radio-ship {
    left: 2.25rem;
    bottom: 0.82rem;
    transform: scale(0.55);
    transform-origin: left bottom;
  }

  .t40-veronica-text {
    font-size: clamp(2.05rem, 12vw, 3.35rem);
    -webkit-text-stroke-width: 0.055rem;
    text-stroke-width: 0.055rem;
  }

  .t40-top40-text {
    font-size: clamp(1.55rem, 8vw, 2.45rem);
  }

  .t40-credit-line {
    padding: 0.18rem 0.8rem 0.5rem;
    font-size: 0.52rem;
    letter-spacing: 0.075em;
  }
}


/* Symbolische header-update: geen schip, wel golfjes + halve rode zon + tekst Singles */
.t40-veronica-head {
  grid-template-columns: 11.5rem minmax(0, 1fr) !important;
}

.t40-radio-mark {
  width: 10.8rem;
  height: 6.6rem;
}

.t40-radio-sun {
  left: 0.15rem;
  right: 0.15rem;
  bottom: 1.95rem;
  height: 4.7rem;
}

.t40-radio-waves {
  bottom: 0.34rem;
  height: 1.95rem;
}

.t40-radio-ship,
.t40-radio-ship::before,
.t40-radio-ship::after {
  display: none !important;
  content: none !important;
}

.t40-veronica-wordmark {
  line-height: 0.88;
}

.t40-veronica-text {
  color: transparent;
  -webkit-text-stroke: 0.085rem #0c5f91;
  text-stroke: 0.085rem #0c5f91;
  font-size: clamp(2.95rem, 7.2vw, 5.7rem);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 0.84;
  text-transform: none;
  transform: translateY(0.02em);
}

.t40-top40-text {
  margin-top: 0.04rem;
  font-size: clamp(2.15rem, 5.6vw, 4.55rem);
  font-weight: 1000;
  letter-spacing: 0.015em;
}

@media (max-width: 760px) {
  .t40-veronica-head {
    grid-template-columns: 5.95rem minmax(0, 1fr) !important;
  }

  .t40-radio-mark {
    width: 5.7rem;
    height: 3.65rem;
  }

  .t40-radio-sun {
    bottom: 1.03rem;
    height: 2.55rem;
    left: 0.08rem;
    right: 0.08rem;
  }

  .t40-radio-waves {
    height: 1.05rem;
    bottom: 0.18rem;
  }

  .t40-veronica-text {
    font-size: clamp(1.75rem, 9vw, 2.75rem);
    -webkit-text-stroke-width: 0.05rem;
    text-stroke-width: 0.05rem;
    letter-spacing: -0.03em;
  }

  .t40-top40-text {
    font-size: clamp(1.4rem, 6.7vw, 2.2rem);
  }
}


/* Eindgedrag: lijst spoelt na een korte pauze snel terug naar boven */
.t40.is-at-end .t40-viewport::after {
  content: "terug naar begin";
}


/* Bronregel passend gemaakt voor de symbolische header */
.t40-credit-line {
  max-width: 100%;
  padding-top: 0.18rem;
  padding-bottom: 0.62rem;
  color: rgba(11, 79, 130, 0.68);
  font-size: clamp(0.54rem, 1.05vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.065em;
  line-height: 1.35;
}

.t40-credit-line a {
  color: rgba(11, 79, 130, 0.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 79, 130, 0.28);
}

.t40-credit-line a:hover,
.t40-credit-line a:focus-visible {
  color: #0c5f91;
  border-bottom-color: #d42129;
}

@media (max-width: 760px) {
  .t40-credit-line {
    font-size: 0.5rem;
    letter-spacing: 0.04em;
    line-height: 1.3;
  }
}


/* Bronregel in dezelfde letterstijl/sfeer als de symbolische Singles/TOP40-header */
.t40-credit-line {
  font-family: inherit;
  font-weight: 950;
  letter-spacing: -0.012em;
  text-transform: none;
  color: #0c5f91;
  font-size: clamp(0.68rem, 1.32vw, 0.9rem);
  line-height: 1.12;
  padding-top: 0.16rem;
  padding-bottom: 0.7rem;
}

.t40-credit-line a {
  color: #d42129;
  font-weight: 1000;
  letter-spacing: -0.018em;
  text-decoration: none;
  border-bottom: 2px solid rgba(212, 33, 41, 0.28);
}

.t40-credit-line a:hover,
.t40-credit-line a:focus-visible {
  color: #b91521;
  border-bottom-color: #b91521;
}

@media (max-width: 760px) {
  .t40-credit-line {
    font-size: clamp(0.55rem, 2.1vw, 0.7rem);
    letter-spacing: -0.006em;
    line-height: 1.18;
  }

  .t40-credit-line a {
    border-bottom-width: 1px;
  }
}


/* Brede bronregel onder de symbolische Singles/TOP40-header */
.t40-credit-line {
  display: block;
  max-width: none;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  color: #0c5f91;
  font-size: clamp(0.72rem, 1.18vw, 0.92rem);
  font-weight: 950;
  letter-spacing: -0.018em;
  line-height: 1.16;
  text-wrap: balance;
}

.t40-credit-line a {
  color: #d42129;
  font-weight: 1000;
  letter-spacing: -0.02em;
  border-bottom: 2px solid rgba(212, 33, 41, 0.28);
}

@media (min-width: 860px) {
  .t40-credit-line {
    max-width: calc(100% - 2.5rem);
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .t40-credit-line {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    font-size: clamp(0.55rem, 2.05vw, 0.7rem);
    line-height: 1.22;
    white-space: normal;
  }
}


/* Bronregel teruggebracht naar normale, niet-vette tekst */
.t40-credit-line {
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.28 !important;
  white-space: normal !important;
}

.t40-credit-line a {
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  border-bottom-width: 1px !important;
}


/* Bronregel volledig blauw, inclusief Top40.nl-link */
.t40-credit-line,
.t40-credit-line a,
.t40-credit-line a:hover,
.t40-credit-line a:focus-visible {
  color: #0c5f91 !important;
}

.t40-credit-line a {
  text-decoration: none !important;
  border-bottom: 1px solid rgba(12, 95, 145, 0.28) !important;
}

/* ============================================================
   OPSCHONING / FIXES (laatste blok wint via de cascade)
   - rode verticale lijn rechts weg
   - bronregel uitgevuld over de volledige breedte
   - kolomkoppen exact boven de items (zelfde sub-rasters)
   - 'Singles'-wordmark netter
   ============================================================ */

/* 1) Rode verticale lijn rechts verwijderen */
.t40::after { content: none !important; }

/* 2) Bronregel uitvullen over de volledige breedte van de viewport */
.t40-credit-line {
  text-align: justify !important;
  text-align-last: justify !important;
  -moz-text-align-last: justify;
  white-space: normal !important;
  max-width: none !important;
}

/* 3) Kolomkoppen recht boven de items uitlijnen */
.t40-cols .c-pos {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-align: left;
}
.t40-cols .c-pos .c-rank { width: 30px; text-align: center; }
.t40-cols .c-pos .c-prev { min-width: 1.4ch; text-align: center; }

.t40-cols .c-end {
  display: grid;
  grid-template-columns: 42px 72px;
  align-items: baseline;
  justify-content: end;
  column-gap: 0.45rem;
  text-align: right;
}
.t40-cols .c-end .c-weeks { justify-self: center; min-width: 2.1rem; text-align: center; }
.t40-cols .c-end .c-year  { justify-self: end; }

@media (max-width: 680px) {
  .t40-cols .c-end { grid-template-columns: 32px 56px; column-gap: 0.28rem; }
}

/* 4) 'Singles'-wordmark netter: leesbare letterafstand + iets steviger outline */
.t40-veronica-text {
  letter-spacing: -0.02em !important;
  -webkit-text-stroke: 0.1rem #0c5f91 !important;
  text-stroke: 0.1rem #0c5f91 !important;
}
.t40-top40-text { letter-spacing: 0.015em !important; }


/* Site-integratie: modulebreedte afgestemd op de container van de website */
.top40-hitlist-container > .t40 {
  width: 100% !important;
  max-width: var(--container, 1120px) !important;
  margin-inline: auto !important;
  border-radius: 24px;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.top40-hitlist-strip .t40 {
  --rows: 7;
}

.top40-hitlist-strip .t40-head {
  border-bottom-color: rgba(31, 47, 61, 0.22);
}

@media (min-width: 1180px) {
  .top40-hitlist-container > .t40 {
    max-width: 1120px !important;
  }
}

@media (max-width: 760px) {
  .top40-hitlist-container > .t40 {
    border-radius: 18px;
  }
}

.t40-award-badge.is-platinum img {
  filter: drop-shadow(0 1px 2px rgba(49, 77, 102, 0.18));
}


/* Top40-module: onderste detailbalk volledig verwijderd/verborgen op landing én hitspagina */
.t40 .t40-detail,
.top40-hitlist-strip .t40-detail {
  display: none !important;
}
