/* ============================================================
   Songfestival.be theme stylesheet
   Port van _redesign/redesign.css — homepage, categorie, artikel
   Owner: Webdude
   Owner URI: https://webdude.be
   ============================================================ */
@font-face {
  font-family: 'Bungee';
  src: url('../fonts/Bungee-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: oklch(99% 0.002 95);
  --surface: oklch(100% 0 0);
  --fg: oklch(18% 0.02 280);
  --muted: oklch(52% 0.012 280);
  --border: oklch(92% 0.006 280);
  --accent: oklch(55% 0.25 350);
  --accent-yellow: oklch(92% 0.18 95);
  --gradient-brand: linear-gradient(135deg, #ffdd00 0%, #ff6b9d 45%, #e5007d 100%);
  /* Subtiele wash: geel onderaan → roze bovenaan (decoratief, geen tekst eroverheen) */
  --gradient-overlay: linear-gradient(to top, rgba(255,221,0,0.26) 0%, rgba(255,138,175,0.18) 55%, rgba(255,107,157,0.12) 100%);
  /* Tekst-kaarten (hero, side, feature): donkere voet voor leesbaarheid + dezelfde geel→roze wash */
  --gradient-hero: linear-gradient(to top, rgba(18,6,20,0.62) 0%, rgba(18,6,20,0) 44%), linear-gradient(to top, rgba(255,221,0,0.24) 0%, rgba(255,107,157,0.20) 58%, rgba(229,0,125,0.12) 100%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --font-display: 'Bungee', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --header-h: 64px;
  --max-w: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
/* Lock background scroll while overlays / mobile menu are open */
html.noscroll {
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: none;
}
body.noscroll {
  overflow: hidden !important;
  position: fixed !important;
  inset: auto 0 0 0; /* top set via JS from scrollY */
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  overscroll-behavior: none;
}
/* Allow scrolling inside overlays / drawer even when body is locked */
body.noscroll #overlay-main,
body.noscroll .mobile-panel,
body.noscroll #overlay-search-results {
  overscroll-behavior: contain;
}

a { color: inherit; text-decoration: none; }
img, video, embed, table {
  display: block;
  max-width: 100%;
  height: auto;
}
/* Do not force height:auto on iframes — breaks Instagram/oEmbed resize */
iframe {
  display: block;
  max-width: 100%;
}
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--fg);
  color: var(--surface);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  overflow: visible;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 oklch(0% 0 0 / 0.04);
}
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
/* Mobile: pin the bar to the viewport so AdSense top/anchor ads cannot
   push it down (they add padding/spacers that sticky headers follow). */
@media (max-width: 899px) {
  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
  }
  body {
    padding-top: var(--header-h);
  }
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
@media (min-width: 900px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    gap: 1rem;
  }
}

.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 900px) {
  .logo { justify-self: start; }
}

.logo-img {
  display: block;
  height: 26px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
@media (min-width: 480px) { .logo-img { height: 30px; } }
@media (min-width: 900px) { .logo-img { height: 36px; } }

.footer-logo-link {
  display: inline-block;
  line-height: 0;
  margin-bottom: 1rem;
}
.footer-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 400px;
}

.main-nav {
  display: none;
  min-width: 0;
}
@media (min-width: 900px) {
  .main-nav {
    display: flex;
    justify-content: center;
    justify-self: stretch;
    align-self: stretch;
    align-items: stretch;
    width: 100%;
    position: relative;
  }
}

.nav-list {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
@media (min-width: 900px) { .nav-list { display: flex; } }

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-link:hover { background: oklch(96% 0.004 280); }

.nav-link.is-active {
  color: var(--accent);
  font-weight: 600;
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0.65rem;
  right: 0.65rem;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.nav-chevron {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  transition: transform 0.2s;
}

.nav-item:hover .nav-chevron,
.nav-item.is-open .nav-chevron { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.4rem;
  box-shadow: 0 12px 40px oklch(0% 0 0 / 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.nav-item:hover > .submenu,
.nav-item.is-open > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu .submenu {
  top: 0;
  left: calc(100% + 4px);
}

.submenu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
  color: var(--fg);
}

.submenu a:hover { background: oklch(97% 0.01 350); color: var(--accent); }

.header-utils {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
  flex-shrink: 0;
}
@media (min-width: 900px) {
  .header-utils {
    margin-left: 0;
    justify-self: end;
    min-width: 0;
    max-width: 100%;
  }
}

.util-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.util-btn:hover { background: oklch(96% 0.004 280); color: var(--fg); }
.util-btn svg { width: 18px; height: 18px; }

/* Login button — icon only */
.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--fg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.login-btn svg { width: 18px; height: 18px; }
.login-btn:hover { border-color: var(--accent); color: var(--accent); }

.social-strip {
  display: none;
  align-items: center;
  gap: 0;
}
@media (min-width: 1100px) { .social-strip { display: flex; } }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}
.menu-toggle svg {
  grid-area: 1 / 1;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.menu-toggle-close {
  opacity: 0;
  transform: rotate(-90deg);
  pointer-events: none;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-open {
  opacity: 0;
  transform: rotate(90deg);
  pointer-events: none;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-close {
  opacity: 1;
  transform: rotate(0deg);
}
@media (min-width: 900px) { .menu-toggle { display: none; } }

/* Mobile drawer — top follows the real header bottom (--sf-header-bottom) */
.mobile-drawer {
  display: block;
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  top: var(--sf-header-bottom, var(--header-h));
  right: 0;
  bottom: 0;
  left: 0;
  background: oklch(0% 0 0 / 0);
  z-index: 999;
  transition: background 0.28s ease, visibility 0s linear 0.28s;
}
.mobile-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  background: oklch(0% 0 0 / 0.4);
  transition: background 0.28s ease, visibility 0s;
}

.mobile-panel {
  background: var(--surface);
  max-height: calc(100vh - var(--sf-header-bottom, var(--header-h)));
  max-height: calc(100dvh - var(--sf-header-bottom, var(--header-h)));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.25s ease;
}
.mobile-drawer.is-open .mobile-panel {
  transform: translateY(0);
  opacity: 1;
}

.mobile-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.7rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--surface);
  background: var(--gradient-brand);
}
.mobile-login svg { width: 18px; height: 18px; }

.mobile-nav ul.menu-first {
  display: block;
}
.mobile-nav .menu-arrow { display: none; }
.mobile-nav li.has-children {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav li.has-children > a {
  border-bottom: none;
}
.mobile-nav ul > li:last-child > a,
.mobile-nav ul > li:last-child > a.menu-link,
.mobile-nav ul > li:last-child.has-children {
  border-bottom: none;
}
.mobile-nav a.is-active { color: var(--accent); }
.mobile-nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus,
.mobile-nav-toggle:focus-visible {
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
  color: var(--accent);
}
.mobile-nav-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}
.mobile-nav li.is-open > .mobile-nav-toggle {
  color: var(--accent);
}
.mobile-nav li.is-open > .mobile-nav-toggle svg {
  transform: rotate(180deg);
}
.mobile-nav li.has-children > ul {
  display: grid !important;
  grid-template-rows: 0fr;
  grid-column: 1 / -1;
  padding-left: 0.85rem;
  transition: grid-template-rows 0.28s ease;
}
.mobile-nav li.is-open > ul {
  grid-template-rows: 1fr;
}
.mobile-nav .mobile-nav-sub {
  overflow: hidden;
  min-height: 0;
}
.mobile-nav li.has-children > ul a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  padding: 0.55rem 0;
}
.mobile-nav li.has-children > ul a.is-active {
  color: var(--accent);
}

.mobile-sub { padding-left: 1rem; }
.mobile-sub a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  padding: 0.55rem 0;
}

.mobile-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* Custom menu widget in Header Center Sidebar */
.main-nav .menu-controls-mobile,
.main-nav .widgettitle { display: none; }

.main-nav > nav,
.main-nav > .widget {
  min-width: 0;
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.main-nav ul.menu-first {
  display: none;
  align-items: stretch;
  justify-content: center;
  gap: 0.15rem;
}
@media (min-width: 900px) {
  .main-nav ul.menu-first { display: flex; }
}

.main-nav ul.menu-first > li {
  position: relative;
  display: flex;
  align-items: center;
}
.main-nav ul.menu-first > li.has-mega {
  position: static;
}

.main-nav ul.menu-first > li > a.menu-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.32rem 0.55rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.main-nav ul.menu-first > li > a.menu-link:hover {
  background: oklch(96% 0.004 280);
}

.main-nav ul.menu-first > li > a.menu-link.is-active {
  color: var(--accent);
  font-weight: 600;
}
.main-nav ul.menu-first > li > a.menu-link.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0.55rem;
  right: 0.55rem;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.main-nav .menu-arrow {
  font-size: 0.7em;
  opacity: 0.5;
  margin-left: 0.1rem;
  transition: transform 0.2s;
}
.main-nav li:hover > a .menu-arrow {
  transform: rotate(180deg);
}

.main-nav ul.menu-first > li > ul {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.4rem;
  box-shadow: 0 12px 40px oklch(0% 0 0 / 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 20;
  display: block !important;
}
.main-nav ul.menu-first > li:hover > ul,
.main-nav ul.menu-first > li.is-open > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav ul.menu-first ul ul {
  top: 0;
  left: calc(100% + 4px);
}
.main-nav ul.menu-first > li > ul a.menu-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
  color: var(--fg);
}
.main-nav ul.menu-first > li > ul a.menu-link:hover {
  background: oklch(97% 0.01 350);
  color: var(--accent);
}

@media (min-width: 900px) {
  .main-nav ul.menu-first > li.has-mega:hover::after,
  .main-nav ul.menu-first > li.has-mega:focus-within::after,
  .main-nav ul.menu-first > li.has-mega.is-open::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
  }
  .main-nav .mega-menu {
    position: absolute;
    left: 50%;
    top: calc(100% + 12px);
    z-index: 30;
    width: max-content;
    max-width: min(var(--max-w), calc(100vw - 2.5rem));
    background:
      var(--gradient-brand) 0 0 / 100% 3px no-repeat,
      var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
    box-shadow:
      0 0 0 1px oklch(0% 0 0 / 0.03),
      0 8px 24px oklch(0% 0 0 / 0.07),
      0 22px 56px oklch(0% 0 0 / 0.12),
      0 0 48px oklch(0% 0 0 / 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
  }
  .main-nav ul.menu-first > li.has-mega:hover > .mega-menu,
  .main-nav ul.menu-first > li.has-mega:focus-within > .mega-menu,
  .main-nav ul.menu-first > li.has-mega.is-open > .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
  .mega-menu-inner {
    --mega-col-pad: 4.5rem;
    display: flex;
    align-items: stretch;
    width: max-content;
    padding: 1.5rem 0 1.6rem;
  }
  .mega-col {
    width: max-content;
    padding: 0 var(--mega-col-pad);
  }
  .mega-col + .mega-col {
    border-left: 1px solid oklch(0% 0 0 / 0.08);
  }
  .mega-col-inner {
    width: max-content;
    text-align: left;
  }
  .mega-col-title {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 0.85rem;
    white-space: nowrap;
  }
  a.mega-col-title:hover { color: var(--accent); }
  .mega-col ul a.menu-link {
    display: block;
    padding: 0.32rem 0;
    font-size: 0.84rem;
    font-weight: 400;
    color: var(--fg);
    border-radius: 0;
    white-space: nowrap;
  }
  .mega-col ul a.menu-link:hover,
  .mega-col ul a.menu-link.is-active {
    background: none;
    color: var(--accent);
  }
}

.social-strip .social-links,
.mobile-social .social-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.social-strip .social-links a,
.mobile-social .social-links a {
  width: 32px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.social-strip .social-links a:hover,
.mobile-social .social-links a:hover {
  background: oklch(96% 0.004 280);
  color: var(--fg);
}

.mobile-nav ul.menu-first {
  display: flex;
  flex-direction: column;
}
.mobile-nav ul.menu-first > li > ul {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  min-width: 0;
  background: transparent;
}
.mobile-nav a.menu-link {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav ul.menu-first > li > ul a.menu-link {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  padding: 0.55rem 0;
}
.mobile-nav a.menu-link.is-active { color: var(--accent); }
.mobile-nav .menu-arrow { display: none; }

#page,
#main,
.wrapper,
.wrappernomax {
  max-width: 100%;
  min-width: 0;
}

#page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

#main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

.main {
  flex: 1 0 auto;
  width: 100%;
}

.main,
.main > *,
.wp-block-group,
.wp-block-columns,
.alignwide,
.alignfull {
  max-width: 100%;
}
.alignfull {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ── Full-screen overlay (search + popups) ── */
#overlay-main {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow: hidden;
  overscroll-behavior: contain;
  color: oklch(98% 0.01 95);
  background-color: rgba(18, 6, 16, 0.58);
  backdrop-filter: blur(4px) saturate(1.04);
  -webkit-backdrop-filter: blur(4px) saturate(1.04);
  isolation: isolate;
  cursor: default;
}
#overlay-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 115% 90% at 100% 0%, rgba(229, 0, 125, 0.38) 0%, rgba(229, 0, 125, 0.08) 38%, transparent 74%),
    radial-gradient(ellipse 105% 85% at 0% 100%, rgba(255, 221, 0, 0.16) 0%, rgba(255, 221, 0, 0.04) 42%, transparent 72%),
    linear-gradient(165deg, rgba(26, 6, 20, 0.88) 0%, rgba(35, 16, 24, 0.84) 24%, rgba(42, 10, 28, 0.82) 50%, rgba(28, 8, 20, 0.84) 76%, rgba(18, 6, 16, 0.88) 100%);
  opacity: 0.82;
}
#overlay-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
#overlay-main .overlay-wrap {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2rem));
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
@media (min-width: 880px) {
  #overlay-main .overlay-wrap {
    width: min(980px, calc(100% - 3rem));
    padding: 1.75rem 0 4rem;
  }
}

#overlay-main #overlay-header {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: auto;
  margin: 0;
  z-index: 2002;
}
#overlay-main #overlay-header .overlay-nav {
  display: flex;
  justify-content: flex-end;
}
#overlay-main #overlay-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#overlay-main .close-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent-yellow);
  color: var(--fg);
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  box-shadow: 0 4px 16px oklch(0% 0 0 / 0.12);
}
#overlay-main .close-search:hover {
  background: var(--accent);
  color: oklch(99% 0 0);
  transform: scale(1.05);
}

#overlay-main #overlay-content {
  flex: 1;
  min-height: 0;
  width: 100%;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 880px) {
  #overlay-main #overlay-content {
    padding-top: 1rem;
  }
}

#overlay-main #overlay-search {
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding-top: 2.75rem;
  padding-right: 0.25rem;
}
#overlay-main .overlay-searchform {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0 1rem;
  border-bottom: 3px solid transparent;
  border-image: var(--gradient-brand) 1;
}
#overlay-main .overlay-searchform > .fa-search {
  flex-shrink: 0;
  font-size: 1.35rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#overlay-main .overlay-searchform-text {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  padding: 0.35rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: oklch(99% 0 0);
  caret-color: var(--accent-yellow);
}
#overlay-main .overlay-searchform-text::placeholder {
  color: oklch(85% 0.02 350 / 0.55);
}
#overlay-main .overlay-searchform-text::-webkit-search-decoration,
#overlay-main .overlay-searchform-text::-webkit-search-cancel-button,
#overlay-main .overlay-searchform-text::-webkit-search-results-button {
  -webkit-appearance: none;
}

/* Search results — branded list cards */
#overlay-main .post-search {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#overlay-main .post-search::-webkit-scrollbar {
  display: none;
}
#overlay-main .search-scroll-hint {
  display: none;
  flex-shrink: 0;
  place-items: center;
  align-self: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  color: var(--accent-yellow);
  background: oklch(18% 0.03 350 / 0.35);
  border: 1px solid oklch(92% 0.18 95 / 0.35);
  cursor: pointer;
}
#overlay-main .search-scroll-hint.is-visible {
  display: grid;
}
#overlay-main .search-scroll-hint svg {
  width: 1.25rem;
  height: 1.25rem;
  animation: search-scroll-bounce 1.5s ease-in-out infinite;
}
#overlay-main .search-scroll-hint:hover {
  background: oklch(18% 0.03 350 / 0.55);
  border-color: var(--accent-yellow);
}
@keyframes search-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
#overlay-main .post-search .page-header {
  margin: 0 0 0.5rem;
}
#overlay-main .post-search .page-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.1;
  color: var(--accent-yellow);
}
#overlay-main .post-search article,
#overlay-main .post-search .post-content {
  margin: 0;
}
#overlay-main .post-search .post-content {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px oklch(0% 0 0 / 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 720px) {
  #overlay-main .post-search .post-content {
    grid-template-columns: 160px 1fr;
    gap: 1.25rem;
    padding: 1rem;
  }
}
#overlay-main .post-search .post-content:hover {
  background: var(--surface);
  border-color: oklch(55% 0.25 350 / 0.28);
  box-shadow: 0 8px 24px oklch(55% 0.25 350 / 0.1);
  transform: translateY(-1px);
}
#overlay-main .post-search .post-image {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: oklch(30% 0.04 350);
}
#overlay-main .post-search .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s;
}
#overlay-main .post-search .post-content:hover .post-image img {
  transform: scale(1.05);
}
#overlay-main .post-search .post-image .catlink {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 1;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-yellow);
  color: var(--fg);
}
#overlay-main .post-search .post-data {
  min-width: 0;
}
#overlay-main .post-search .post-data-title,
#overlay-main .post-search .post-data h1 {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--fg);
}
#overlay-main .post-search .post-data-title a,
#overlay-main .post-search .post-data h1 a {
  color: inherit;
  text-decoration: none;
}
#overlay-main .post-search .post-content:hover .post-data-title,
#overlay-main .post-search .post-content:hover .post-data h1 {
  color: var(--accent);
}
#overlay-main .post-search .below-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0;
  margin-top: 0.4rem;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  line-height: 1.3;
}
#overlay-main .post-search .below-entry-meta span {
  display: inline-flex;
  align-items: center;
}
#overlay-main .post-search .below-entry-meta span:not(:first-child)::before {
  content: "·";
  margin: 0 0.45rem;
  opacity: 0.45;
}
#overlay-main .post-search .below-entry-meta i {
  display: none;
}
#overlay-main .post-search .below-entry-meta a {
  color: inherit;
  text-decoration: none;
}
#overlay-main .post-search .below-entry-meta a:hover {
  color: var(--accent);
}
#overlay-main .post-search .post-data-excerpt {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* Login / other popups inside the same overlay shell */
#overlay-main #overlay-popups {
  display: block;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#overlay-main #overlay-popups .popup {
  margin: 8% auto 0;
  width: min(520px, 100%);
  padding: 1.5rem 1.65rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--fg);
  text-align: left;
  font-size: 0.95rem;
  position: relative;
  box-shadow: 0 16px 48px oklch(0% 0 0 / 0.18);
  border: 1px solid var(--border);
}
#overlay-main #overlay-popups .popup > h2,
#overlay-main #overlay-popups .popup > h3 {
  margin: 0 2.75rem 1rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.15;
  color: var(--fg);
}
#overlay-main #overlay-popups .popup > a.popup-cross {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
#overlay-main #overlay-popups .popup > a.popup-cross:hover,
#overlay-main #overlay-popups .popup > a.popup-cross:focus-visible {
  color: var(--accent);
  background: oklch(96% 0.02 350);
  transform: scale(1.04);
  outline: none;
}
#overlay-main #overlay-popups .popup > a.popup-close-video {
  display: none;
}
#overlay-main:has(#popup-points-event) {
  overflow: hidden;
}
#overlay-main:has(#popup-points-event) .overlay-wrap {
  width: 100%;
  max-width: none;
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
@media (min-width: 1200px) {
  #overlay-main:has(#popup-points-event) .overlay-wrap {
    padding: 7.75rem 13.75rem 1.75rem;
  }
}
#overlay-main:has(#popup-points-event) #overlay-content {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 0;
}
#overlay-main:has(#popup-points-event) #overlay-popups {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  overflow: visible;
}
#overlay-main #overlay-popups #popup-points-event {
  --points-cell: 1.5rem;
  --points-cell-flag: 1.9rem;
  --points-video-w: 200px;
  --points-video-h: 114px;
  width: max-content;
  max-width: none;
  margin: 0 auto;
  padding: 1rem 1.05rem 1.05rem;
  overflow: visible;
}
#overlay-main #overlay-popups #popup-points-event.has-side-space {
  margin-top: 0;
}
#overlay-main #overlay-popups #popup-points-event .popup-content {
  overflow: visible;
  position: relative;
  width: max-content;
  max-width: none;
}
#overlay-main #overlay-popups #popup-points-event .turnphone {
  display: none;
}
#overlay-main #overlay-popups #popup-points-event .sf-table-scroll {
  margin: 0;
  width: 100%;
  max-width: 100%;
}
#overlay-main #overlay-popups #popup-points-event .sf-table-scroll-nav {
  margin-bottom: 0.45rem;
}
#overlay-main #overlay-popups #popup-points-event .popup-points-tablewrap {
  width: max-content;
  max-width: none;
}
#overlay-main #overlay-popups #popup-points-event.has-side-space .sf-table-scroll-viewport {
  overflow: visible;
}
#overlay-main #overlay-popups #popup-points-event.has-side-space .sf-table-scroll-nav {
  display: none !important;
}
@media (max-width: 1199px) {
  #overlay-main:has(#popup-points-event) {
    overflow: hidden;
  }
  #overlay-main:has(#popup-points-event) .overlay-wrap {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    padding: max(0.65rem, env(safe-area-inset-top, 0px)) max(0.65rem, env(safe-area-inset-right, 0px)) max(0.65rem, env(safe-area-inset-bottom, 0px)) max(0.65rem, env(safe-area-inset-left, 0px));
    justify-content: stretch;
    align-items: stretch;
    overflow: hidden;
  }
  #overlay-main:has(#popup-points-event) #overlay-content,
  #overlay-main:has(#popup-points-event) #overlay-popups {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: hidden;
  }
  #overlay-main #overlay-popups #popup-points-event {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 0.85rem 0.75rem 0.75rem;
    overflow: hidden;
  }
  #overlay-main #overlay-popups #popup-points-event > h3 {
    flex-shrink: 0;
  }
  #overlay-main #overlay-popups #popup-points-event .popup-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }
  #overlay-main #overlay-popups #popup-points-event .sf-table-scroll {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  #overlay-main #overlay-popups #popup-points-event .sf-table-scroll-nav {
    flex-shrink: 0;
  }
  #overlay-main #overlay-popups #popup-points-event .popup-points-tablewrap {
    width: max-content;
    max-width: none;
  }
  #overlay-main #overlay-popups #popup-points-event:not(.has-side-space) .sf-table-scroll-viewport {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: auto;
    overflow-y: auto;
    max-height: none;
    overscroll-behavior: contain;
  }
  #overlay-main #overlay-popups #popup-points-event:not(.has-side-space) table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
  }
  #overlay-main #overlay-popups #popup-points-event:not(.has-side-space) table td:first-child,
  #overlay-main #overlay-popups #popup-points-event:not(.has-side-space) table th:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
  }
  #overlay-main #overlay-popups #popup-points-event:not(.has-side-space) table thead th:first-child {
    z-index: 6;
    background: var(--accent);
  }
  #overlay-main #overlay-popups #popup-points-event:not(.has-side-space) table tbody td:first-child {
    background: var(--surface);
  }
  #overlay-main #overlay-popups #popup-points-event:not(.has-side-space) table tbody tr:nth-child(even) td:first-child {
    background: oklch(98.5% 0.006 280);
  }
  #overlay-main #overlay-popups #popup-points-event:not(.has-side-space) table tbody td:first-child.highlight,
  #overlay-main #overlay-popups #popup-points-event:not(.has-side-space) table tbody tr:nth-child(even) td:first-child.highlight {
    background: oklch(94% 0.06 350 / 0.62);
  }
  #overlay-main #overlay-popups #popup-points-event:not(.has-side-space) .sf-table-scroll-viewport.is-col-stuck table td:first-child,
  #overlay-main #overlay-popups #popup-points-event:not(.has-side-space) .sf-table-scroll-viewport.is-col-stuck table th:first-child {
    box-shadow: 6px 0 12px oklch(0% 0 0 / 0.12);
  }
  #overlay-main #overlay-popups #popup-points-event:not(.has-side-space) .sf-table-scroll-viewport.is-row-stuck table thead th {
    box-shadow: 0 4px 10px oklch(0% 0 0 / 0.1);
  }
  #overlay-main #overlay-popups #popup-points-event:not(.has-side-space) .sf-table-scroll-viewport.is-col-stuck.is-row-stuck table thead th:first-child {
    box-shadow: 6px 4px 12px oklch(0% 0 0 / 0.14);
  }
}
#overlay-main #overlay-popups #popup-points-event table {
  display: table;
  width: max-content;
  min-width: 0;
  max-width: none;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: max(0.55rem, calc(var(--points-cell) * 0.42));
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: visible;
}
#overlay-main #overlay-popups #popup-points-event table th,
#overlay-main #overlay-popups #popup-points-event table td {
  position: relative;
  box-sizing: border-box;
  width: var(--points-cell);
  min-width: var(--points-cell);
  max-width: var(--points-cell);
  height: var(--points-cell);
  padding: 0;
  text-align: center;
  vertical-align: middle;
  overflow: visible;
  border: none;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  color: var(--fg);
}
#overlay-main #overlay-popups #popup-points-event table thead,
#overlay-main #overlay-popups #popup-points-event table tbody,
#overlay-main #overlay-popups #popup-points-event table tr {
  overflow: visible;
}
#overlay-main #overlay-popups #popup-points-event table thead th {
  background: var(--accent);
  color: #fff;
  border-right-color: oklch(100% 0 0 / 0.18);
  border-bottom: none;
}
#overlay-main #overlay-popups #popup-points-event table thead th:first-child {
  border-top-left-radius: calc(var(--radius-md) - 1px);
}
#overlay-main #overlay-popups #popup-points-event table thead th:last-child {
  border-top-right-radius: calc(var(--radius-md) - 1px);
  border-right: none;
}
#overlay-main #overlay-popups #popup-points-event table tbody tr:nth-child(even) td {
  background: oklch(98.5% 0.006 280);
}
#overlay-main #overlay-popups #popup-points-event table tbody tr:last-child td {
  border-bottom: none;
}
#overlay-main #overlay-popups #popup-points-event table tbody tr:last-child td:first-child {
  border-bottom-left-radius: calc(var(--radius-md) - 1px);
}
#overlay-main #overlay-popups #popup-points-event table tbody tr:last-child td:last-child {
  border-bottom-right-radius: calc(var(--radius-md) - 1px);
}
#overlay-main #overlay-popups #popup-points-event table th:first-child,
#overlay-main #overlay-popups #popup-points-event table td:first-child,
#overlay-main #overlay-popups #popup-points-event table th.totalcol,
#overlay-main #overlay-popups #popup-points-event table td.totalcol {
  width: var(--points-cell-flag);
  min-width: var(--points-cell-flag);
  max-width: var(--points-cell-flag);
}
#overlay-main #overlay-popups #popup-points-event table td.totalcol,
#overlay-main #overlay-popups #popup-points-event table th.totalcol {
  border-right: none;
  color: var(--accent);
  font-weight: 700;
}
#overlay-main #overlay-popups #popup-points-event table thead th.totalcol {
  color: #fff;
}
#overlay-main #overlay-popups #popup-points-event table td.samecountry {
  background: oklch(94% 0.012 280);
}
#overlay-main #overlay-popups #popup-points-event table tbody tr:nth-child(even) td.samecountry {
  background: oklch(92% 0.014 280);
}
#overlay-main #overlay-popups #popup-points-event table tbody td.highlight,
#overlay-main #overlay-popups #popup-points-event table tbody td.highlight.samecountry,
#overlay-main #overlay-popups #popup-points-event table tbody tr:nth-child(even) td.highlight {
  background: oklch(94% 0.06 350 / 0.62);
  color: var(--accent);
}
#overlay-main #overlay-popups #popup-points-event table thead th.highlight {
  background: oklch(48% 0.25 350);
  color: #fff;
}
#overlay-main #overlay-popups #popup-points-event table tbody td:first-child.highlight {
  box-shadow: inset 3px 0 0 var(--accent);
}
#overlay-main #overlay-popups #popup-points-event table img.allsongsvlag {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
#overlay-main #overlay-popups #popup-points-event table thead th img.allsongsvlag,
#overlay-main #overlay-popups #popup-points-event table tbody td:first-child img.allsongsvlag {
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  margin: 2px auto;
  border-radius: 3px;
}
#overlay-main #overlay-popups #popup-points-event table.bigresult {
  font-size: max(0.5rem, calc(var(--points-cell) * 0.4));
}

/* Tooltips: scoretekst altijd op cell-hover; artiest/video alleen bij ruimte aan de zijkant */
#overlay-main #overlay-popups #popup-points-event .tooltip .tooltipdata {
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 11.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 10px 28px oklch(0% 0 0 / 0.18);
  border: 1px solid var(--border);
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
}
#overlay-main #overlay-popups #popup-points-event .tooltip .tooltipdata.tmedium {
  max-width: 10.5rem;
  text-align: center;
}
#overlay-main #overlay-popups #popup-points-event .tooltip .tooltipdata.ttop {
  left: 50%;
  bottom: calc(100% + 6px);
  top: auto;
  transform: translateX(-50%);
}
#overlay-main #overlay-popups #popup-points-event .tooltip .tooltipdata.tleft {
  left: calc(100% + 8px);
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
#overlay-main #overlay-popups #popup-points-event .tooltip .tooltipdata.ttopleft {
  left: auto;
  right: 0;
  transform: none;
}
#overlay-main #overlay-popups #popup-points-event.has-side-space .tooltip:hover > .tooltipdata,
#overlay-main #overlay-popups #popup-points-event .tooltip.is-tooltip-open > .tooltipdata {
  visibility: visible !important;
  pointer-events: auto !important;
}
#overlay-main #overlay-popups #popup-points-event .tooltip.is-tooltip-open {
  z-index: 12;
}
#overlay-main #overlay-popups #popup-points-event.has-side-space thead th.tooltip.highlight > .tooltipdata,
#overlay-main #overlay-popups #popup-points-event.has-side-space tbody td:first-child.tooltip.highlight > .tooltipdata {
  visibility: visible !important;
  pointer-events: auto !important;
}
#overlay-main #overlay-popups #popup-points-event .tooltipdata .countryrow {
  display: none;
}
#overlay-main #overlay-popups #popup-points-event .tooltipdata .countryrow .escdb-countrylink {
  display: none;
}
#overlay-main #overlay-popups #popup-points-event .tooltipdata .countryfull {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
#overlay-main #overlay-popups #popup-points-event .tooltipdata .countryfull img.allsongsvlag {
  width: 14px;
  height: auto;
  display: inline-block;
  border-radius: 2px;
}
#overlay-main #overlay-popups #popup-points-event.has-side-space .tooltip .tooltipdata.ttop,
#overlay-main #overlay-popups #popup-points-event.has-side-space .tooltip .tooltipdata.tleft {
  width: var(--points-video-w);
  max-width: var(--points-video-w);
  padding: 0;
  overflow: visible;
  border-radius: var(--radius-sm);
  background: var(--fg);
  border: none;
}
#overlay-main #overlay-popups #popup-points-event.has-side-space .tooltip .tooltipdata.ttop {
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
}
#overlay-main #overlay-popups #popup-points-event.has-side-space .tooltip .tooltipdata.tleft {
  left: auto;
  right: calc(100% + 8px);
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
#overlay-main #overlay-popups #popup-points-event.has-side-space .tooltipdata .countryrow:not(:empty) {
  display: block;
  width: var(--points-video-w);
}
#overlay-main #overlay-popups #popup-points-event.has-side-space .tooltipdata.ttop .countryfull,
#overlay-main #overlay-popups #popup-points-event.has-side-space .tooltipdata.tleft .countryfull {
  color: #fff;
  padding: 0.45rem 0.5rem;
}
#overlay-main #overlay-popups #popup-points-event.has-side-space .tooltipdata .countryrow:not(:empty) + .countryfull {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  right: auto;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  width: auto;
  max-width: calc(100% - 0.6rem);
  box-sizing: border-box;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.94);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}
#overlay-main #overlay-popups #popup-points-event.has-side-space .tooltipdata .countryrow:not(:empty) + .countryfull img.allsongsvlag {
  width: 11px;
  max-width: 11px;
  height: auto;
  flex-shrink: 0;
  box-shadow: none;
  border-radius: 1px;
}
#overlay-main #overlay-popups #popup-points-event.has-side-space .tooltipdata .countryrow .top250-media-card,
#overlay-main #overlay-popups #popup-points-event.has-side-space .tooltipdata .countryrow .top250-media-thumb {
  --top250-thumb-w: var(--points-video-w);
  --top250-thumb-h: var(--points-video-h);
  width: var(--top250-thumb-w);
  min-width: var(--top250-thumb-w);
  height: var(--top250-thumb-h);
  aspect-ratio: auto;
  border-radius: var(--radius-sm);
  box-shadow: none;
}
#overlay-main #overlay-popups #popup-points-event.has-side-space .tooltipdata .countryrow .top250-media-thumb > img {
  width: var(--top250-thumb-w);
  height: var(--top250-thumb-h);
}
#overlay-main #overlay-popups #popup-points-event.is-playing-video .tooltipdata {
  visibility: hidden !important;
  pointer-events: none !important;
}
#overlay-main #overlay-popups #popup-points-event .popup-video {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}
#overlay-main #overlay-popups #popup-points-event .popup-video iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-md);
  pointer-events: auto;
  background: #000;
}
#overlay-main #overlay-popups #popup-points-event.is-playing-video .popup-close-video {
  display: inline-flex;
  z-index: 10;
}
#overlay-main #overlay-popups .popup .popup-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
}
#overlay-main #overlay-popups .popup .popup-controls button,
#overlay-main #overlay-popups .popup .popup-controls .popup-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.4rem 1.05rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
#overlay-main #overlay-popups .popup .popup-controls button:not(.popup-trigger),
#overlay-main #overlay-popups .popup .popup-controls .popup-submit {
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
}
#overlay-main #overlay-popups .popup .popup-controls button:not(.popup-trigger):hover,
#overlay-main #overlay-popups .popup .popup-controls button:not(.popup-trigger):focus-visible,
#overlay-main #overlay-popups .popup .popup-controls .popup-submit:hover,
#overlay-main #overlay-popups .popup .popup-controls .popup-submit:focus-visible {
  opacity: 0.88;
  outline: none;
}
#overlay-main #overlay-popups .popup .popup-controls .popup-trigger {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
}
#overlay-main #overlay-popups .popup .popup-controls .popup-trigger:hover,
#overlay-main #overlay-popups .popup .popup-controls .popup-trigger:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}
#overlay-main #overlay-popups .popup .popup-error {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--accent);
}
#overlay-main #overlay-footer {
  display: none;
}

#footer-main,
.footer-sidebars,
.footer-bottom {
  max-width: 100%;
  overflow-x: hidden;
}

/* ── Main ── */
.main { max-width: var(--max-w); margin: 0 auto; padding: 2rem 1.25rem 4rem; }
/* Royale verticale ritme tussen de horizontale blokken */
.main > section + section { margin-top: 6.5rem; }
@media (max-width: 720px) { .main > section + section { margin-top: 4rem; } }

/* Bottom / named ad slots */
.sf-ad,
.advertisement_article_mobile,
#post-ad-mobile {
  margin-top: 2rem;
  text-align: center;
}
.sf-ad .advertisement,
.advertisement_article_mobile .advertisement,
#post-ad-mobile .advertisement {
  display: flex;
  justify-content: center;
  width: 100%;
}
.sf-ad ins,
.advertisement_article_mobile ins,
#post-ad-mobile ins {
  max-width: 100%;
}
.sf-ad--desktop-only {
  display: none;
}
@media (min-width: 960px) {
  .sf-ad--desktop-only {
    display: block;
  }
}
.sf-ad--mobile-only {
  display: block;
}
@media (min-width: 960px) {
  .sf-ad--mobile-only {
    display: none;
  }
}
.sf-ad:has(.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
  margin: 0 !important;
}

/* Ads (AdSense auto-placed) inside editorial / chrome zones break readability. */
.site-header .google-auto-placed,
.mobile-drawer .google-auto-placed,
.hero .google-auto-placed,
.hero-lead .google-auto-placed,
.hero-side .google-auto-placed,
.category-hero .google-auto-placed,
.top250-hero .google-auto-placed,
.top250-results .google-auto-placed,
.sf-category-about .google-auto-placed,
.sf-category-about-inner .google-auto-placed,
.sf-category-about-body .google-auto-placed,
.sf-category-about-video .google-auto-placed,
.article-body .google-auto-placed,
.article-header .google-auto-placed,
.related-wrap .google-auto-placed,
.lees-ook .google-auto-placed,
.feature-list .google-auto-placed,
.read-list .google-auto-placed,
.newsletter .google-auto-placed,
.site-footer .google-auto-placed,
.comments-area .google-auto-placed,
[class*="wp-block-songfestival-"] .google-auto-placed,
.site-header ins.adsbygoogle,
.sf-category-about ins.adsbygoogle,
.sf-category-about-inner ins.adsbygoogle,
.article-body ins.adsbygoogle,
[class*="wp-block-songfestival-"] ins.adsbygoogle,
[class*="wp-block-songfestival-"] iframe[id^="google_ads_iframe_"],
[class*="wp-block-songfestival-"] iframe[id^="aswift_"],
.sf-category-about iframe[id^="google_ads_iframe_"],
.sf-category-about iframe[id^="aswift_"],
.article-body iframe[id^="google_ads_iframe_"],
.article-body iframe[id^="aswift_"] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Gutenberg preview: links are not navigable while editing */
.sf-hero-editor a,
.sf-latest-news-editor a,
.sf-spotlight-editor a {
  pointer-events: none;
  cursor: default;
}

/* ── Hero / featured ── */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "lead"
    "side";
  gap: 1.25rem;
  margin-bottom: 5rem;
}
@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.7fr 1fr;
    grid-template-areas: "lead side";
    gap: 1.5rem;
  }
}
.hero > :not(.hero-lead):not(.hero-side):not(p) {
  display: none !important;
}

.hero-lead {
  grid-area: lead;
  position: relative;
  display: block;
  isolation: isolate;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  box-shadow: 0 4px 20px oklch(0% 0 0 / 0.1);
}
.hero-lead > :not(img):not(.hero-overlay):not(.hero-content) {
  display: none !important;
}
@media (min-width: 880px) { .hero-lead { min-height: 480px; } }

.hero-lead img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.hero-lead:hover img { transform: scale(1.04); }

/* Persistent overlay on the hero — text legibility takes priority here */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  z-index: 2;
}
@media (min-width: 880px) { .hero-content { padding: 2.25rem; } }

.hero-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg);
  background: var(--accent-yellow);
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  font-weight: 800;
  color: oklch(99% 0 0);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero-meta {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: oklch(88% 0.01 280);
}

/* Hero-side: same pattern as "Meest gelezen artikels" — thumbnail left,
   text right, hairline dividers, no card chrome. Items distribute over
   the hero height so the column aligns with the big hero image. */
.hero-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
}
.side-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex: 1;
  min-height: 0;
  padding: 0.55rem 0;
}
.side-card:first-child { padding-top: 0; }
.side-card:last-child { padding-bottom: 0; }
.side-thumb {
  position: relative;
  flex-shrink: 0;
  width: 124px;
  height: 82px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: oklch(94% 0.006 280);
}
.side-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}
.side-card:hover img { transform: scale(1.05); }
.side-card .card-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease;
}
.side-card:hover .card-overlay { opacity: 0; }
.side-content {
  flex: 1;
  min-width: 0;
}
.side-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.22rem;
}
.side-title {
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.32;
  color: var(--fg);
  transition: color 0.15s;
}
.side-card:hover .side-title { color: var(--accent); }

.side-excerpt {
  margin-top: 0.35rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

/* 2–3 side items: image on top, title + excerpt below. Cards share the
   hero height on desktop so the column still lines up with the lead. */
.hero[data-side-count="2"] .side-card,
.hero[data-side-count="3"] .side-card {
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  padding: 0.7rem 0;
}
.hero[data-side-count="2"] .side-card:first-child,
.hero[data-side-count="3"] .side-card:first-child { padding-top: 0; }
.hero[data-side-count="2"] .side-card:last-child,
.hero[data-side-count="3"] .side-card:last-child { padding-bottom: 0; }
.hero[data-side-count="2"] .side-card + .side-card,
.hero[data-side-count="3"] .side-card + .side-card {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}
.hero[data-side-count="2"] .side-thumb,
.hero[data-side-count="3"] .side-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
}
.hero[data-side-count="2"] .side-content,
.hero[data-side-count="3"] .side-content {
  flex: 0 0 auto;
}
.hero[data-side-count="2"] .side-title {
  font-size: 1.12rem;
  line-height: 1.28;
}
.hero[data-side-count="3"] .side-title {
  font-size: 1.02rem;
}
.hero[data-side-count="3"] .side-excerpt {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
@media (min-width: 880px) {
  .hero[data-side-count="2"] .side-thumb,
  .hero[data-side-count="3"] .side-thumb {
    flex: 1 1 0;
    min-height: 0;
    aspect-ratio: auto;
  }
  .hero[data-side-count="2"] .side-thumb { min-height: 148px; }
  .hero[data-side-count="3"] .side-thumb { min-height: 92px; }
}

/* 5–6 side items: tighter horizontal rows so they still fit the lead height. */
.hero[data-side-count="5"] .side-card,
.hero[data-side-count="6"] .side-card {
  gap: 0.85rem;
  padding: 0.35rem 0;
}
.hero[data-side-count="5"] .side-thumb {
  width: 104px;
  height: 70px;
}
.hero[data-side-count="6"] .side-thumb {
  width: 92px;
  height: 62px;
}
.hero[data-side-count="5"] .side-title,
.hero[data-side-count="6"] .side-title {
  font-size: 0.95rem;
  line-height: 1.28;
}

/* SF Category: lead article on the right — lead stays the wider column */
@media (min-width: 880px) {
  .sf-category .hero.sf-category-hero.is-reversed,
  .sf-category .hero.sf-category-hero[data-reverse="1"] {
    grid-template-columns: 1fr 1.7fr;
    grid-template-areas: "side lead";
  }
  .sf-category .hero.sf-category-hero.is-reversed .hero-side,
  .sf-category .hero.sf-category-hero[data-reverse="1"] .hero-side {
    grid-area: side;
  }
  .sf-category .hero.sf-category-hero.is-reversed .hero-lead,
  .sf-category .hero.sf-category-hero[data-reverse="1"] .hero-lead {
    grid-area: lead;
  }
}

.sf-category {
  margin-bottom: 5rem;
}
.sf-category .hero,
.sf-category .sf-category-hero {
  margin-bottom: 0;
}
@media (min-width: 880px) {
  .sf-category .hero,
  .sf-category .sf-category-hero {
    gap: 5.5rem;
  }
}
.sf-category--list .article-grid {
  margin: 0;
}

/* ── Section heading ── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1;
  color: var(--fg);
}

.section-link {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.15s;
}
.section-link:hover { gap: 0.5rem; }
.section-link svg { width: 14px; height: 14px; }

/* ── Article grid ── */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 600px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .article-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

.article-card { display: block; }

.card-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: oklch(94% 0.006 280);
  box-shadow: 0 2px 12px oklch(0% 0 0 / 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.article-card:hover .card-media {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px oklch(0% 0 0 / 0.12);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.article-card:hover .card-media img { transform: scale(1.04); }

/* Gradient van onder naar boven, zichtbaar bij start, verdwijnt bij hover */
.card-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.article-card:hover .card-media .card-overlay { opacity: 0; }

.card-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface);
  color: var(--accent);
  border-radius: 999px;
  z-index: 2;
}

.card-body { padding: 0.85rem 0.25rem 0; }

.card-date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.15s;
}

.article-card:hover .card-title { color: var(--accent); }

/* ── Feature split: 1 grote link + lijst van 6 rechts ── */
.feature-wrap {
  margin-top: 5rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 100% 0%, oklch(94% 0.08 350 / 0.55) 0%, transparent 55%),
    radial-gradient(120% 120% at 0% 100%, oklch(95% 0.09 95 / 0.5) 0%, transparent 50%),
    linear-gradient(135deg, oklch(98% 0.015 95) 0%, oklch(98% 0.02 350) 100%);
  box-shadow: 0 10px 40px oklch(55% 0.25 350 / 0.08);
}
/* Brand-gradient rand bovenaan de spotlight-panel (echo van footer-bar) */
.feature-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient-brand);
  z-index: 1;
}
/* Zachte magenta-gloed voor extra dynamiek */
.feature-wrap::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(70% 0.22 350 / 0.28) 0%, transparent 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}
.feature-wrap > * { position: relative; z-index: 1; }

.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .feature-split { grid-template-columns: 3fr 2fr; gap: 5.5rem; }
}

/* Kop van de meest-gelezen-kolom: onder de spotlight-lijn, geen eigen lijn */
.read-col-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 1.1rem;
}

.feature-lead {
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 300px;
  box-shadow: 0 4px 20px oklch(0% 0 0 / 0.1);
}
@media (min-width: 860px) { .feature-lead { min-height: 420px; } }
.feature-lead img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.feature-lead:hover img { transform: scale(1.04); }
.feature-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}
.feature-lead-content { position: relative; z-index: 2; padding: 1.5rem; }
@media (min-width: 860px) { .feature-lead-content { padding: 2rem; } }
.feature-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg);
  background: var(--accent-yellow);
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.feature-lead-title {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.15;
  font-weight: 800;
  color: oklch(99% 0 0);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.feature-lead-meta { margin-top: 0.65rem; font-size: 0.82rem; color: oklch(90% 0.01 280); }

.feature-list { display: flex; flex-direction: column; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-item:first-child { padding-top: 0; }
.feature-item:last-child { border-bottom: none; }
.feature-thumb {
  position: relative;
  flex-shrink: 0;
  display: block;
  width: 78px;
  height: 56px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: oklch(94% 0.006 280);
}
.feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}
.feature-thumb .card-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease;
}
.feature-item:hover .feature-thumb img { transform: scale(1.05); }
.feature-item:hover .feature-thumb .card-overlay { opacity: 0; }
.feature-rank {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  width: 1.8ch;
  text-align: center;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.feature-item-body { min-width: 0; }
.feature-cat {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.15rem;
}
.feature-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.15s;
}
.feature-item:hover .feature-item-title { color: var(--accent); }

/* ── Spotlight + Meest gelezen (per-column heading) ── */
.feature-col { display: flex; flex-direction: column; min-width: 0; }
.feature-col .section-head { margin-bottom: 1.1rem; }
.feature-col .feature-lead { flex: 1; min-height: 340px; }
@media (min-width: 860px) { .feature-col .feature-lead { min-height: 420px; } }
/* Most-read style list: thumbnail only */
.read-list .feature-item { gap: 0.85rem; padding: 0.65rem 0; }
.read-list .feature-thumb { width: 88px; height: 60px; }
.read-list { flex: 1; min-height: 0; }

/* Fewer side items: grow rows / thumbs so the column still matches the lead */
.feature-wrap[data-side-count="2"] .read-list .feature-item,
.feature-wrap[data-side-count="3"] .read-list .feature-item {
  flex: 1;
  align-items: stretch;
  gap: 1rem;
  padding: 0.85rem 0;
}
.feature-wrap[data-side-count="2"] .read-list .feature-thumb,
.feature-wrap[data-side-count="3"] .read-list .feature-thumb {
  width: 132px;
  height: auto;
  align-self: stretch;
  min-height: 88px;
}
.feature-wrap[data-side-count="2"] .read-list .feature-thumb img,
.feature-wrap[data-side-count="3"] .read-list .feature-thumb img {
  position: absolute;
  inset: 0;
}
.feature-wrap[data-side-count="2"] .feature-item-title {
  font-size: 1.08rem;
  line-height: 1.35;
}
.feature-wrap[data-side-count="3"] .feature-item-title {
  font-size: 1rem;
  line-height: 1.32;
}
@media (min-width: 860px) {
  .feature-wrap[data-side-count="2"] .feature-col:last-child,
  .feature-wrap[data-side-count="3"] .feature-col:last-child {
    display: flex;
    flex-direction: column;
  }
  .feature-wrap[data-side-count="2"] .read-list .feature-thumb {
    width: 168px;
    min-height: 112px;
  }
  .feature-wrap[data-side-count="3"] .read-list .feature-thumb {
    width: 140px;
    min-height: 96px;
  }
}

.feature-wrap[data-side-count="4"] .read-list .feature-item,
.feature-wrap[data-side-count="5"] .read-list .feature-item {
  padding: 0.55rem 0;
}
.feature-wrap[data-side-count="4"] .read-list .feature-thumb,
.feature-wrap[data-side-count="5"] .read-list .feature-thumb {
  width: 96px;
  height: 66px;
}

.feature-wrap[data-side-count="7"] .read-list .feature-item,
.feature-wrap[data-side-count="8"] .read-list .feature-item {
  gap: 0.7rem;
  padding: 0.45rem 0;
}
.feature-wrap[data-side-count="7"] .read-list .feature-thumb,
.feature-wrap[data-side-count="8"] .read-list .feature-thumb {
  width: 72px;
  height: 50px;
}
.feature-wrap[data-side-count="7"] .feature-item-title,
.feature-wrap[data-side-count="8"] .feature-item-title {
  font-size: 0.86rem;
  line-height: 1.28;
}

/* ── Most-read ── */
.most-read-wrap { margin-top: 3.5rem; }

.most-read {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 2.5rem;
}
@media (min-width: 720px) { .most-read { grid-template-columns: 1fr 1fr; } }

.read-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.read-rank {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  width: 2ch;
  text-align: center;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.read-body { min-width: 0; }
.read-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.read-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.15s;
}
.read-item:hover .read-title { color: var(--accent); }

/* ── Newsletter band ── */
.newsletter {
  margin-top: 5rem;
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  background: var(--accent-yellow);
  color: oklch(20% 0.03 320);
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 760px) {
  .newsletter { grid-template-columns: 1.3fr 1fr; padding: 2.5rem 2.75rem; }
}
.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 1.1;
  color: oklch(15% 0.03 320);
}
.newsletter-sub { margin-top: 0.6rem; font-size: 0.92rem; max-width: 40ch; }
.newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.newsletter-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  border: none;
  background: oklch(100% 0 0 / 0.9);
  font: inherit;
  font-size: 0.92rem;
  color: var(--fg);
}
.newsletter-input:focus { outline: 2px solid oklch(15% 0.03 320); outline-offset: 1px; }
.newsletter-btn {
  height: 46px;
  padding: 0 1.4rem;
  border-radius: var(--radius-sm);
  background: oklch(15% 0.03 320);
  color: oklch(99% 0 0);
  font-weight: 600;
  transition: opacity 0.15s;
}
.newsletter-btn:hover { opacity: 0.88; }

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  background:
    radial-gradient(90% 130% at 100% 0%, oklch(55% 0.2 25 / 0.45) 0%, transparent 45%),
    radial-gradient(80% 120% at 0% 100%, oklch(50% 0.22 320 / 0.5) 0%, transparent 50%),
    oklch(31% 0.15 350);
  color: oklch(94% 0.02 350);
}

.footer-gradient-bar {
  height: 4px;
  background: var(--gradient-brand);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.2fr 1fr; gap: 2rem; }
}
@media (min-width: 960px) {
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}

.footer-tagline,
.footer-brand .section-footer-one,
.footer-brand .textwidget,
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: oklch(100% 0 0);
  max-width: 28ch;
}
.footer-about + .footer-credits {
  margin-top: 0.7rem;
}
.footer-brand .title-underline,
.footer-brand .footer-heading { display: none; }

.footer-heading,
.site-footer .footer-heading,
.site-footer h2.title-underline,
.site-footer h3.title-underline,
.site-footer h2.title-underline span,
.site-footer h3.title-underline span,
.site-footer .footer-heading span {
  font-family: 'Bungee', var(--font-display), system-ui, sans-serif;
  font-size: 0.8rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--accent-yellow);
  font-weight: 400;
  text-transform: uppercase;
  border: none;
  background: none;
}
.footer-heading,
.site-footer .footer-heading,
.site-footer h2.title-underline,
.site-footer h3.title-underline {
  margin: 0 0 1rem;
  padding: 0;
  width: auto;
}
.site-footer .title-underline .fa,
.site-footer .title-underline .search-top-btn {
  display: none;
}

.site-footer .menu-controls-mobile,
.site-footer .advertisement,
.site-footer .menu-arrow,
.site-footer ul.menu-first ul {
  display: none;
}

.footer-links a,
.site-footer .footer-col:not(.footer-brand) a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: oklch(100% 0 0);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer .footer-col:not(.footer-brand) li {
  display: block;
  padding: 0;
  font-size: 0.9rem;
}

.footer-links a:hover,
.site-footer .footer-col:not(.footer-brand) a:hover {
  color: var(--accent-yellow);
  background: none;
}

.section-footer-two a,
.footer-top .footer-col:nth-child(2) a {
  color: var(--accent-yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-footer-two a:hover,
.footer-top .footer-col:nth-child(2) a:hover {
  color: var(--surface);
}

.footer-legal .title-underline { display: none; }
.footer-legal,
.footer-legal section,
.footer-legal ul,
.footer-legal aside,
.footer-legal .textwidget {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}
.footer-legal li { padding: 0; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { color: var(--surface); }

a.lang-btn { text-decoration: none; display: inline-block; }

.footer-contact a {
  color: var(--accent-yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid oklch(100% 0 0 / 0.1);
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.8rem;
  color: oklch(90% 0 0);
}

.footer-legal a:hover { color: var(--surface); }

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 0.15);
  display: grid;
  place-items: center;
  color: oklch(100% 0 0);
  text-decoration: none;
  line-height: 0;
  background: transparent;
  background-origin: border-box;
  background-clip: border-box;
  transition: background 0.15s, box-shadow 0.15s, color 0.15s;
}

.footer-social a:hover,
.footer-social a:focus,
.footer-social a:focus-visible {
  background: var(--gradient-brand);
  box-shadow: none;
  color: oklch(100% 0 0);
  text-decoration: none;
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
  pointer-events: none;
}

.footer-copy {
  font-size: 0.78rem;
  color: oklch(100% 0 0);
}

/* Taalswitcher (EN · FR · NL) — segmented pill in de footer-onderbalk */
.footer-lang {
  display: inline-flex;
  flex: 0 0 auto;
  align-self: flex-start;
  width: max-content;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid oklch(100% 0 0 / 0.2);
  background: oklch(100% 0 0 / 0.06);
}

.lang-btn {
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: oklch(90% 0 0);
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-btn:hover { color: oklch(100% 0 0); background: oklch(100% 0 0 / 0.12); }

.lang-btn.is-active {
  color: var(--surface);
  background: var(--gradient-brand);
}

/* ══ Article detail page ══ */
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article.sf-candidate-article {
  max-width: var(--max-w);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--muted); font-weight: 400; }
.breadcrumb .crumb-muted { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }

.article-title {
  font-size: clamp(1.85rem, 4.6vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-wrap: balance;
}

.article-standfirst {
  margin-top: 1.1rem;
  font-size: clamp(1.2rem, 2.3vw, 1.45rem);
  line-height: 1.45;
  font-weight: 700;
  color: var(--fg);
  text-wrap: pretty;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
}
.meta-author { display: flex; align-items: center; gap: 0.6rem; }
.meta-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.meta-author-name { font-weight: 600; font-size: 0.9rem; }
.meta-author-name a { color: inherit; text-decoration: none; }
.meta-author-name a:hover { color: var(--accent); }
.meta-detail {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.78rem;
  color: var(--muted);
}
.meta-divider { width: 1px; height: 22px; background: var(--border); }
.meta-share { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: flex-end; }
.share-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: grid; place-items: center;
  color: var(--muted);
  background-color: var(--surface);
  background-image: none;
  transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s;
  overflow: hidden;
  z-index: 0;
}
.meta-share .share-btn {
  width: 30px;
  height: 30px;
}
.share-btn svg {
  width: 17px;
  height: 17px;
  position: relative;
  z-index: 1;
  transition: color 0.2s, stroke 0.2s, fill 0.2s;
}
.meta-share .share-btn svg { width: 14px; height: 14px; }
.share-btn:hover,
.share-btn:focus-visible {
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  background-color: transparent;
  background-image: var(--gradient-brand);
  background-size: 200% 200%;
  animation: sf-share-gradient 1.6s ease infinite;
}
.share-btn.is-copied {
  color: var(--accent);
  border-color: var(--accent);
  background-image: none;
  background-color: var(--surface);
  animation: none;
}
@keyframes sf-share-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero image — full content width, subtle resting wash */
.article-hero {
  position: relative;
  margin: 2rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: oklch(94% 0.006 280);
  box-shadow: 0 10px 40px oklch(0% 0 0 / 0.12);
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero .card-overlay { opacity: 1; }
.article-caption {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
  font-style: italic;
}
.article-caption::before,
.article-body figure:not(.wp-block-embed) > figcaption::before,
.article-body .wp-caption-text::before,
.dmilb.liveblog .dmilb-item-content figure > figcaption::before,
.dmilb.liveblog .dmilb-item-content .wp-caption-text::before {
  content: "";
  flex-shrink: 0;
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.08em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='M9 3.2 7.4 5H4.8A1.8 1.8 0 0 0 3 6.8v10.4A1.8 1.8 0 0 0 4.8 19h14.4a1.8 1.8 0 0 0 1.8-1.8V6.8A1.8 1.8 0 0 0 19.2 5h-2.6L15 3.2H9zm3 4.1a4.2 4.2 0 1 1 0 8.4 4.2 4.2 0 0 1 0-8.4zm0 1.7a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='M9 3.2 7.4 5H4.8A1.8 1.8 0 0 0 3 6.8v10.4A1.8 1.8 0 0 0 4.8 19h14.4a1.8 1.8 0 0 0 1.8-1.8V6.8A1.8 1.8 0 0 0 19.2 5h-2.6L15 3.2H9zm3 4.1a4.2 4.2 0 1 1 0 8.4 4.2 4.2 0 0 1 0-8.4zm0 1.7a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Body copy — Gutenberg + classic editor */
.article-body { margin-top: 2.5rem; }
.article-body > * + * { margin-top: 1.35rem; }
.article-body p,
.article-body li {
  font-size: 1.075rem;
  line-height: 1.72;
  color: var(--fg);
  text-wrap: pretty;
}
.article-body .lead {
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 500;
}
.article-body p.post-p-lead {
  font-size: 1.16rem;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: -0.011em;
}
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--fg);
  margin-top: 2.4rem !important;
}
.article-body h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
.article-body h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.article-body a:not(.lees-ook, .tag-pill, .share-btn, .video-popup, .sf-category-about-play, .sf-category-about-link, .ns-overview-item__main, .his-round-link) {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(90deg, #ffdd00 0%, #ff6b9d 50%, #e5007d 100%);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size 0.3s ease, color 0.2s ease;
}
.article-body a:not(.lees-ook, .tag-pill, .share-btn, .video-popup, .sf-category-about-play, .sf-category-about-link, .ns-overview-item__main, .his-round-link):hover,
.article-body a:not(.lees-ook, .tag-pill, .share-btn, .video-popup, .sf-category-about-play, .sf-category-about-link, .ns-overview-item__main, .his-round-link):focus-visible {
  color: var(--accent);
  background-size: 200% 2px;
  animation: sf-link-gradient 1.5s linear infinite;
}
@keyframes sf-link-gradient {
  0% { background-position: 0% 100%; }
  100% { background-position: 100% 100%; }
}
.article-body ul,
.article-body ol {
  padding-left: 1.25rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body img,
.article-body .wp-block-image img,
.article-body .alignnone,
.article-body .aligncenter,
.article-body .alignleft,
.article-body .alignright {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.article-body .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.article-body .wp-caption,
.article-body figure {
  max-width: 100%;
}
.article-body .wp-caption-text,
.article-body figcaption {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 0.45rem;
  font-style: italic;
}
.article-body blockquote:not(.instagram-media):not(.twitter-tweet):not(.wp-embedded-content),
.article-body .wp-block-pullquote blockquote {
  position: relative;
  margin: 1.85rem 0;
  padding: 4.75rem 1.9rem 1.75rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(155deg, oklch(100% 0 0) 0%, oklch(98.6% 0.018 95) 46%, oklch(97.2% 0.028 350) 100%);
  box-shadow: 0 8px 28px oklch(0% 0 0 / 0.06);
  text-align: left;
  overflow: hidden;
}
.article-body blockquote:not(.instagram-media):not(.twitter-tweet):not(.wp-embedded-content)::before,
.article-body .wp-block-pullquote blockquote::before {
  content: "\201C";
  position: absolute;
  top: 1.15rem;
  left: 1.7rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 4.25rem;
  font-weight: 700;
  line-height: 1;
  color: #e5007d;
  opacity: 0.92;
  pointer-events: none;
  user-select: none;
}
.article-body blockquote:not(.instagram-media):not(.twitter-tweet):not(.wp-embedded-content) p,
.article-body .wp-block-pullquote blockquote p {
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  line-height: 1.45;
  font-weight: 600;
  color: var(--fg);
}
.article-body blockquote:not(.instagram-media):not(.twitter-tweet):not(.wp-embedded-content) a {
  color: var(--fg);
  font-weight: 600;
}
.article-body blockquote:not(.instagram-media):not(.twitter-tweet):not(.wp-embedded-content) a:hover,
.article-body blockquote:not(.instagram-media):not(.twitter-tweet):not(.wp-embedded-content) a:focus-visible {
  color: #e5007d;
}
.article-body blockquote:not(.instagram-media):not(.twitter-tweet):not(.wp-embedded-content) cite,
.article-body blockquote:not(.instagram-media):not(.twitter-tweet):not(.wp-embedded-content) footer,
.article-body .wp-block-pullquote cite {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e5007d;
}
.article-body .wp-block-pullquote {
  margin: 1.75rem 0;
  padding: 0;
  border: 0;
  text-align: center;
}
.article-body .wp-block-pullquote blockquote {
  text-align: center;
}
.article-body .wp-block-pullquote blockquote::before {
  left: 0;
  right: 0;
  text-align: center;
}

/* External embeds (YouTube, Instagram, oEmbed…) — spacing + full width + responsive */
.article-body .wp-block-embed,
.article-body figure.wp-block-embed,
.article-body .wp-block-embed-youtube,
.article-body .wp-block-embed-instagram,
.article-body .wp-block-embed-vimeo,
.article-body .youtube,
.article-body .fb_iframe_widget,
.article-body .fb-video,
.article-body blockquote.instagram-media,
.article-body blockquote.twitter-tweet,
.article-body p:has(> iframe),
.article-body > iframe {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 1.75rem !important;
  margin-bottom: 1.75rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

/* Instagram card: direct iframe, rounded like other media (16px). */
.article-body .sf-embed.is-provider-instagram {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.article-body .sf-embed.is-provider-instagram .wp-block-embed__wrapper {
  display: flex;
  justify-content: center;
}
.article-body .sf-ig-card {
  width: 540px;
  max-width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 1px rgb(0 0 0 / 0.35), 0 1px 10px rgb(0 0 0 / 0.12);
  line-height: 0;
  transform: translateZ(0);
}
.article-body .sf-ig-card iframe,
.article-body iframe.sf-instagram-embed {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: var(--radius-md) !important;
  display: block !important;
}

.article-body .sf-embed.is-provider-twitter,
.article-body .sf-embed.is-provider-twitter .wp-block-embed__wrapper,
.article-body blockquote.twitter-tweet,
.dmilb-item-content .sf-embed.is-provider-twitter,
.dmilb-item-content .sf-embed.is-provider-twitter .wp-block-embed__wrapper,
.dmilb-item-content blockquote.twitter-tweet {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
}
.article-body .sf-embed.is-provider-twitter .wp-block-embed__wrapper,
.dmilb-item-content .sf-embed.is-provider-twitter .wp-block-embed__wrapper {
  position: relative;
}
.article-body blockquote.twitter-tweet iframe,
.article-body iframe[id^="twitter-widget"],
.dmilb-item-content blockquote.twitter-tweet iframe,
.dmilb-item-content iframe[id^="twitter-widget"] {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.article-body .sf-embed.is-provider-facebook.is-fb-portrait .wp-block-embed__wrapper {
  display: flex;
  justify-content: center;
}
.article-body .sf-embed.is-provider-facebook.is-fb-portrait .fb_iframe_widget,
.article-body .sf-embed.is-provider-facebook.is-fb-portrait .fb-post {
  width: fit-content !important;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}
.article-body .sf-embed.is-provider-facebook.is-fb-wide .wp-block-embed__wrapper {
  display: block;
  width: 100%;
}
.article-body .sf-embed.is-provider-facebook.is-fb-wide .fb_iframe_widget,
.article-body .sf-embed.is-provider-facebook.is-fb-wide .fb-post {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: block;
}
.article-body .sf-embed.is-provider-facebook.is-fb-wide .fb_iframe_widget > span,
.article-body .sf-embed.is-provider-facebook.is-fb-wide .fb_iframe_widget iframe {
  width: 100% !important;
  max-width: 100% !important;
}
.article-body .sf-embed.is-provider-facebook iframe {
  border: 0;
  display: block;
}
.article-body .sf-embed.is-provider-spotify iframe,
.article-body iframe[src*="open.spotify.com/embed"] {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 12px;
  display: block;
}
.article-body .wp-block-embed.is-type-video .wp-block-embed__wrapper,
.article-body .wp-block-embed-youtube .wp-block-embed__wrapper,
.article-body .wp-block-embed-vimeo .wp-block-embed__wrapper,
.article-body .youtube {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000;
}
.article-body .wp-block-embed .youtube,
.article-body .sf-embed .youtube {
  margin: 0 !important;
  padding: 0 !important;
}
.article-body .sf-embed.is-provider-youtube {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.article-body .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe,
.article-body .wp-block-embed-youtube iframe,
.article-body .wp-block-embed-vimeo iframe,
.article-body .youtube iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border: 0;
  display: block;
}
/* Bare classic video iframes (no wrapper), e.g. inside <p> */
.article-body iframe[src*="youtube.com"],
.article-body iframe[src*="youtu.be"],
.article-body iframe[src*="youtube-nocookie.com"],
.article-body iframe[src*="player.vimeo.com"] {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  border-radius: var(--radius-sm);
}
.article-body .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe[src*="youtube.com"],
.article-body .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe[src*="youtu.be"],
.article-body .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe[src*="youtube-nocookie.com"],
.article-body .wp-block-embed.is-type-video .wp-block-embed__wrapper iframe[src*="player.vimeo.com"],
.article-body .youtube iframe[src*="youtube.com"],
.article-body .youtube iframe[src*="youtu.be"] {
  height: 100% !important;
  aspect-ratio: auto;
}

.article-body .youtube,
.yava-clip .youtube {
  cursor: pointer;
  background: oklch(12% 0.02 280);
}

.yava-clip .youtube {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.article-body .youtube > .google-auto-placed,
.article-body .sf-embed > .google-auto-placed,
.article-body .wp-block-embed__wrapper > .google-auto-placed {
  display: none !important;
}
.article-body .youtube > img:not(.play-button),
.yava-clip .youtube > img:not(.play-button) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  opacity: 1;
  z-index: 1;
}

.article-body .youtube img.play-button,
.yava-clip .youtube img.play-button {
  position: absolute;
  width: 4.5rem;
  max-width: 15%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

.article-body .youtube.is-playing img.play-button,
.article-body .youtube iframe ~ img.play-button,
.yava-clip .youtube.is-playing img.play-button,
.yava-clip .youtube iframe ~ img.play-button {
  display: none;
}

.article-body .youtube.is-playing > img:not(.play-button),
.article-body .youtube iframe ~ img:not(.play-button),
.yava-clip .youtube.is-playing > img:not(.play-button),
.yava-clip .youtube iframe ~ img:not(.play-button) {
  opacity: 0;
  pointer-events: none;
}
.article-body ul.prog-list { display: flex; flex-direction: column; gap: 0.7rem; padding-left: 0; list-style: none; }
.prog-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.55;
}
.prog-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--accent);
}
.prog-list li strong { font-weight: 700; }

/* Key-dates / SF Highlights callout strip — equal-width columns by item count */
.key-dates,
.sf-highlights {
  --sf-cols: 3;
  margin-top: 1.6rem !important;
  display: grid;
  gap: 1.15rem 1.5rem;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 100%;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-md);
  background: oklch(97% 0.01 320);
  border: 1px solid var(--border);
  box-sizing: border-box;
}
.key-dates[data-count="2"],
.sf-highlights[data-count="2"],
.key-dates:has(> .key-date:nth-child(2):last-child),
.sf-highlights:has(> .key-date:nth-child(2):last-child) {
  --sf-cols: 2;
}
.key-dates[data-count="3"],
.sf-highlights[data-count="3"],
.key-dates:has(> .key-date:nth-child(3):last-child),
.sf-highlights:has(> .key-date:nth-child(3):last-child) {
  --sf-cols: 3;
}
.key-dates[data-count="4"],
.sf-highlights[data-count="4"],
.key-dates:has(> .key-date:nth-child(4):last-child),
.sf-highlights:has(> .key-date:nth-child(4):last-child) {
  --sf-cols: 4;
}
@media (min-width: 560px) {
  .key-dates,
  .sf-highlights {
    grid-template-columns: repeat(var(--sf-cols), minmax(0, 1fr));
    /* 3 gedeelde rijen: titel / tekst / ondertitel — subgrid lijnt horizontaal uit */
    grid-template-rows: auto auto auto;
    column-gap: 1.5rem;
    row-gap: 1.15rem;
  }
  .key-dates > .key-date,
  .sf-highlights > .key-date {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    gap: 0;
    row-gap: 0.4rem;
  }
}
@media (min-width: 560px) and (max-width: 820px) {
  /* 4 items: 2×2 — twee banden van 3 subgrid-rijen */
  .key-dates[data-count="4"],
  .sf-highlights[data-count="4"],
  .key-dates:has(> .key-date:nth-child(4):last-child),
  .sf-highlights:has(> .key-date:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto auto auto;
  }
  .key-dates[data-count="4"] > .key-date:nth-child(1),
  .key-dates[data-count="4"] > .key-date:nth-child(2),
  .sf-highlights[data-count="4"] > .key-date:nth-child(1),
  .sf-highlights[data-count="4"] > .key-date:nth-child(2),
  .key-dates:has(> .key-date:nth-child(4):last-child) > .key-date:nth-child(1),
  .key-dates:has(> .key-date:nth-child(4):last-child) > .key-date:nth-child(2),
  .sf-highlights:has(> .key-date:nth-child(4):last-child) > .key-date:nth-child(1),
  .sf-highlights:has(> .key-date:nth-child(4):last-child) > .key-date:nth-child(2) {
    grid-row: 1 / span 3;
  }
  .key-dates[data-count="4"] > .key-date:nth-child(3),
  .key-dates[data-count="4"] > .key-date:nth-child(4),
  .sf-highlights[data-count="4"] > .key-date:nth-child(3),
  .sf-highlights[data-count="4"] > .key-date:nth-child(4),
  .key-dates:has(> .key-date:nth-child(4):last-child) > .key-date:nth-child(3),
  .key-dates:has(> .key-date:nth-child(4):last-child) > .key-date:nth-child(4),
  .sf-highlights:has(> .key-date:nth-child(4):last-child) > .key-date:nth-child(3),
  .sf-highlights:has(> .key-date:nth-child(4):last-child) > .key-date:nth-child(4) {
    grid-row: 4 / span 3;
  }
}
@media (min-width: 821px) {
  .key-dates[data-count="4"],
  .sf-highlights[data-count="4"],
  .key-dates:has(> .key-date:nth-child(4):last-child),
  .sf-highlights:has(> .key-date:nth-child(4):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
  }
  .key-dates[data-count="4"] > .key-date,
  .sf-highlights[data-count="4"] > .key-date,
  .key-dates:has(> .key-date:nth-child(4):last-child) > .key-date,
  .sf-highlights:has(> .key-date:nth-child(4):last-child) > .key-date {
    grid-row: span 3;
  }
}
.key-date {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  min-width: 0;
  width: 100%;
}
.key-date .kd-day,
.key-date .kd-label,
.key-date .kd-sub {
  display: block;
  min-height: 0;
}
.key-date .kd-day {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.15;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.key-date .kd-label {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.key-date .kd-sub {
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--accent);
  font-weight: 600;
  overflow-wrap: anywhere;
}
/* Lege regels behouden de uitlijning */
.key-date .kd-day:empty,
.key-date .kd-label:empty,
.key-date .kd-sub:empty {
  min-height: 1em;
}

/* Editor chrome for SF Highlights */
.sf-highlights-editor .sf-highlights-lang-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.sf-highlights-editor .sf-highlights-toolbar {
  margin-top: 0.75rem;
}
.sf-highlights-editor .sf-highlights-remove {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  margin: 0;
}
.sf-highlights-editor .key-date {
  padding-right: 4.5rem;
}
.sf-highlights-editor .key-date .kd-day,
.sf-highlights-editor .key-date .kd-label,
.sf-highlights-editor .key-date .kd-sub {
  min-height: 1.1em;
}
.sf-highlights-editor .key-date .kd-day:focus,
.sf-highlights-editor .key-date .kd-label:focus,
.sf-highlights-editor .key-date .kd-sub:focus {
  outline: 2px solid color-mix(in oklab, var(--accent) 45%, transparent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Inline "Lees ook" highlight (creative) ── */
.lees-ook-wrap {
  margin: 3rem 0;
  max-width: 100%;
}
.lees-ook {
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: stretch;
  gap: 0;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 4px 20px oklch(0% 0 0 / 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none !important;
  background-image: none !important;
  color: inherit;
}
.article-body p:has(> .lees-ook-wrap),
.yava-body p:has(> .lees-ook-wrap) {
  display: contents;
}
.article-body .lees-ook,
.article-body .lees-ook-wrap .lees-ook,
.yava-body .lees-ook,
.yava-body .lees-ook-wrap .lees-ook {
  margin: 0 !important;
}
.article-body blockquote.wp-embedded-content,
.article-body iframe.wp-embedded-content,
.yava-body blockquote.wp-embedded-content,
.yava-body iframe.wp-embedded-content {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  clip: rect(0, 0, 0, 0);
}
.article-body .dmilb-item-content blockquote.wp-embedded-content,
.article-body .dmilb-item-content iframe.wp-embedded-content,
.dmilb.liveblog .dmilb-item-content iframe.wp-embedded-content {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 8rem;
  position: static !important;
  clip: auto !important;
}
.lees-ook::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gradient-brand);
  z-index: 3;
}
.lees-ook:hover { transform: translateY(-3px); box-shadow: 0 12px 34px oklch(0% 0 0 / 0.14); }
.lees-ook-media {
  position: relative;
  overflow: hidden;
  background: oklch(94% 0.006 280);
  min-height: 140px;
}
.lees-ook-media img,
.article-body .lees-ook-media img,
.yava-body .lees-ook-media img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.4s;
}
.lees-ook:hover .lees-ook-media img { transform: scale(1.06); }
.lees-ook-media .card-overlay { opacity: 1; transition: opacity 0.35s ease; }
.lees-ook:hover .lees-ook-media .card-overlay { opacity: 0; }
.lees-ook-body {
  padding: 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
}
.lees-ook-kicker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.lees-ook-kicker svg {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
.lees-ook-title {
  display: block;
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.42rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--fg);
  transition: color 0.15s;
}
.lees-ook:hover .lees-ook-title { color: var(--accent); }
.lees-ook-meta {
  display: block;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  color: var(--muted);
}
@media (max-width: 520px) {
  .lees-ook { grid-template-columns: 1fr; }
  .lees-ook-media { aspect-ratio: 16 / 9; min-height: 0; }
}
.lees-ook--no-media {
  grid-template-columns: 1fr;
}

/* Internal WP oEmbed (sf-embedded-post) as also-read card */
.article-body figure.wp-block-embed:has(.lees-ook),
.article-body .wp-block-embed:has(.lees-ook),
.article-body .wp-block-embed__wrapper:has(.lees-ook),
.dmilb-item-content figure.wp-block-embed:has(.lees-ook) {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  max-width: 100%;
  background: none;
  overflow: visible;
  aspect-ratio: auto;
}
.article-body .wp-block-embed:has(.lees-ook) .wp-block-embed__wrapper {
  position: static;
  aspect-ratio: auto;
  overflow: visible;
  border-radius: 0;
  background: none;
  height: auto;
}
html.sf-embed,
body.sf-embed {
  min-height: 0;
  height: auto;
  display: block;
  background: transparent;
  overflow: hidden;
  max-width: none;
}
.sf-embedded-post {
  width: 100%;
}
.sf-embedded-post .lees-ook-wrap,
.sf-embedded-post .lees-ook {
  margin: 0 !important;
}
.dmilb.liveblog .dmilb-item-content .lees-ook-wrap {
  margin: 1rem 0;
}
.dmilb.liveblog .dmilb-item-content .lees-ook {
  margin: 0;
}
.dmilb.liveblog .dmilb-item-content iframe.wp-embedded-content {
  width: 100% !important;
  max-width: 100% !important;
  border: 0;
  background: transparent;
}
.dmilb.liveblog .dmilb-item-content .lees-ook-media img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border-radius: 0;
  object-fit: cover;
}

.sf-also-read-editor .sf-also-read-lang-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

/* Tags kept in DOM but hidden */
.article-tags { display: none !important; }
.tag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: oklch(96% 0.01 320);
  border: 1px solid var(--border);
  color: var(--fg);
}

/* Share-blok onderaan het artikel */
.article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem !important;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.article-share .share-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 0.3rem;
}
.article-share .share-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ── Category “Over …” highlight (above share) ── */
.sf-category-about {
  margin: 2rem 0 0 !important;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, oklch(100% 0 0) 0%, oklch(98% 0.025 95) 48%, oklch(97% 0.02 350) 100%);
  box-shadow: 0 8px 28px oklch(0% 0 0 / 0.06);
  overflow: hidden;
  position: relative;
}
.sf-category-about::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-brand);
}
.sf-category-about-inner {
  padding: 1.75rem 1.85rem 1.9rem 2rem;
}
.sf-category-about.has-video .sf-category-about-inner {
  display: grid;
  grid-template-columns: 3fr 2fr; /* 60% / 40% */
  gap: 1.5rem 1.75rem;
  align-items: center;
}
.sf-category-about-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.article-body .sf-category-about-title,
h2.sf-category-about-title {
  font-family: 'Bungee', var(--font-display), system-ui, sans-serif !important;
  font-size: clamp(1.15rem, 2vw, 1.4rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.2;
  color: var(--fg);
  margin: 0 0 0.75rem !important;
}
.sf-category-about-body {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--fg);
}
.sf-category-about-body > * + * {
  margin-top: 0.85rem;
}
.sf-category-about-body p {
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}
.sf-category-about-body a {
  color: var(--accent);
  font-weight: 600;
}
.sf-category-about-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: oklch(18% 0.02 280);
  box-shadow: 0 6px 20px oklch(0% 0 0 / 0.12);
  align-self: center;
}
.sf-category-about-play {
  position: absolute;
  inset: 0;
  display: block;
  background: oklch(12% 0.02 280);
}
.sf-category-about-play img:not(.play-button) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.sf-category-about-play:hover img:not(.play-button),
.sf-category-about-play:focus-visible img:not(.play-button) {
  transform: scale(1.04);
}
.sf-category-about-play .card-overlay {
  z-index: 1;
}
.sf-category-about-play:hover .card-overlay,
.sf-category-about-play:focus-visible .card-overlay {
  opacity: 0;
}
.sf-category-about-play img.play-button {
  position: absolute;
  width: 4.25rem;
  max-width: 22%;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  opacity: 0.75;
  filter: drop-shadow(0 2px 8px oklch(0% 0 0 / 0.35));
  transition: opacity 0.2s ease;
}
.sf-category-about-play:hover img.play-button,
.sf-category-about-play:focus-visible img.play-button {
  opacity: 0.95;
}
.sf-category-about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.15rem;
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.sf-category-about-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.sf-category-about-link:hover svg {
  transform: translateX(3px);
}
@media (max-width: 720px) {
  .sf-category-about.has-video .sf-category-about-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .sf-category-about-video {
    order: 2;
  }
}

.related-wrap { margin-top: 5rem; }
.related-wrap .article-grid { gap: 1.75rem; }
@media (min-width: 760px) { .related-wrap .article-grid { grid-template-columns: repeat(3, 1fr); } }

/* Facebook comments */
.article-comments {
  display: none !important;
}
.article-comments-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--fg);
}
.article-comments-inner .fb-comments {
  width: 100% !important;
}
.article-comments iframe {
  max-width: 100%;
}

/* ══ Categorie-pagina ══ */
/* Legacy brand-overlay span op de categoriekaarten blijft verborgen */
.card-overlay-brand { display: none; }

.category-hero {
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.category-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.category-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.category-meta {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.top250-intro {
  margin-top: 0.9rem;
  max-width: 46rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ── Award winner (Barbara Dex / You're A Vision) ── */
.sf-award-article {
	max-width: var(--max-w);
	margin: 0 auto;
}

.yava {
	max-width: 920px;
	margin: 0 auto;
}

.yava-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: clamp(1.75rem, 5vw, 3.5rem);
	background:
		radial-gradient(120% 140% at 100% 0%, oklch(94% 0.08 350 / 0.6) 0%, transparent 55%),
		radial-gradient(120% 140% at 0% 100%, oklch(95% 0.09 95 / 0.55) 0%, transparent 50%),
		linear-gradient(135deg, oklch(98% 0.015 95) 0%, oklch(98% 0.02 350) 100%);
	box-shadow: 0 10px 40px oklch(55% 0.25 350 / 0.08);
}

.yava-hero__main {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: start;
	min-width: 0;
	width: 100%;
}

/* Direct content + photo children (legacy markup without __main). */
.yava-hero--has-photo:not(:has(> .yava-hero__main)) {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 720px) {
	.yava-hero--has-photo .yava-hero__main,
	.yava-hero--has-photo:not(:has(> .yava-hero__main)) {
		grid-template-columns: minmax(0, 1fr) minmax(12rem, 42%);
		gap: clamp(1.5rem, 3.5vw, 2.75rem);
		align-items: center;
	}
}

.yava-hero__content {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.yava-hero__photo {
	margin: 0;
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

@media (min-width: 720px) {
	.yava-hero--has-photo .yava-hero__photo {
		justify-self: end;
	}
}

.yava-hero__photo-frame {
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface);
	box-shadow: 0 8px 28px oklch(0% 0 0 / 0.1);
	width: 100%;
}

.yava-hero__photo-frame img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.yava-hero__photo-credit {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	margin: 0.55rem 0 0;
	font-size: 0.92rem;
	line-height: 1.35;
	color: var(--muted);
	font-style: italic;
}

.yava-photo-icon {
	flex-shrink: 0;
	width: 1.2em;
	height: 1.2em;
	margin-top: 0.08em;
	opacity: 0.85;
}

.yava-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--gradient-brand);
}

.yava-kicker {
	font-family: var(--font-display);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--accent);
}

.yava-title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 6vw, 3.4rem);
	line-height: 1.05;
	color: var(--fg);
	margin-top: 0.6rem;
}

.yava-artist {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.75rem;
	font-size: 1.05rem;
	color: var(--muted);
}

.yava-flag {
	flex-shrink: 0;
	width: auto;
	height: 0.85em;
	border-radius: 2px;
	object-fit: cover;
}

.yava-badges {
	margin-top: 1.35rem;
}

.result-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1.05rem;
	border-radius: 999px;
	background: var(--gradient-brand);
	color: var(--surface);
	font-family: var(--font-display);
	font-size: 0.82rem;
}

/* Meta sheet inside hero content (Hero 3b) — closed by default, animated */
.yava-meta-sheet,
.yava-facts {
	margin-top: 1.15rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.yava-meta-sheet__toggle {
	appearance: none;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: inline-grid;
	grid-template-columns: auto auto;
	align-items: center;
	justify-content: start;
	justify-items: start;
	gap: 0.5rem;
	padding: 0.45rem 0;
	min-height: 2.75rem;
	margin: 0;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--accent);
	text-align: left;
	white-space: nowrap;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.yava-meta-sheet__label {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
	text-align: left;
	transition: opacity 0.28s ease;
}
.yava-meta-sheet__label--hide {
	opacity: 0;
	pointer-events: none;
}
.yava-meta-sheet.is-open .yava-meta-sheet__label--show {
	opacity: 0;
	pointer-events: none;
}
.yava-meta-sheet.is-open .yava-meta-sheet__label--hide {
	opacity: 1;
	pointer-events: auto;
}
.yava-meta-sheet__chevron {
	display: inline-block;
	grid-column: 2;
	grid-row: 1;
	justify-self: start;
	font-size: 0.8em;
	line-height: 1;
	transition: transform 0.28s ease;
}
.yava-meta-sheet.is-open .yava-meta-sheet__chevron {
	transform: rotate(180deg);
}
.yava-meta-sheet__anim {
	/* Peek ≈ first 2 quiet rows; fade mask while collapsed */
	--yava-meta-row-lh: calc(0.92rem * 1.5);
	--yava-meta-row-gap: 0.55rem;
	--yava-meta-peek: calc((2 * var(--yava-meta-row-lh)) + var(--yava-meta-row-gap));
	align-self: stretch;
	position: relative;
	overflow: hidden;
	max-height: var(--yava-meta-peek);
	transition: max-height 0.4s cubic-bezier(0.33, 0, 0.2, 1);
}
.yava-meta-sheet:not(.is-open):not(.yava-meta-sheet--always-open) .yava-meta-sheet__anim {
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 100%);
}
.yava-meta-sheet--always-open .yava-meta-sheet__anim {
	max-height: none;
	overflow: visible;
	transition: none;
	-webkit-mask-image: none;
	mask-image: none;
}
.yava-meta-sheet__anim-inner {
	min-height: 0;
}
.yava-meta-sheet:not(.is-open) .yava-meta-quiet {
	pointer-events: none;
}
.yava-meta-sheet--always-open .yava-meta-quiet {
	pointer-events: auto;
}
.yava-meta-quiet {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin-top: 0;
	padding: 0 0 0 0.85rem;
	border-left: 2px solid oklch(85% 0.06 350);
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--muted);
}
.yava-meta-quiet__row {
	display: block;
	overflow-wrap: anywhere;
	word-break: break-word;
}
.yava-meta-quiet__k {
	color: var(--muted);
	font-weight: 500;
	margin-right: 0.35rem;
}
.yava-meta-quiet__v {
	color: var(--fg);
	font-weight: 500;
}
.yava-meta-quiet__v--flag {
	display: inline;
}
.yava-meta-quiet__v .yava-flag {
	display: inline-block;
	vertical-align: -0.12em;
	margin-right: 0.3rem;
}
.yava-meta-quiet__v a {
	color: var(--accent);
}
.yava-meta-quiet__v a:hover {
	text-decoration: underline;
}
.yava-meta-quiet__v p {
	display: inline;
	margin: 0;
}
.yava-meta-quiet__row.is-warning .yava-meta-quiet__v {
	color: var(--accent);
}
.yava-meta-landen {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	max-width: 100%;
	gap: 0 0.35rem;
}
.yava-meta-landen__preview {
	display: inline;
	order: 1;
}
.yava-meta-landen__toggle {
	appearance: none;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: inline-grid;
	vertical-align: baseline;
	order: 2;
	padding: 0;
	margin: 0;
	font: inherit;
	font-size: inherit;
	font-weight: 700;
	color: var(--accent);
	-webkit-tap-highlight-color: transparent;
}
.yava-meta-landen__show,
.yava-meta-landen__hide {
	grid-area: 1 / 1;
	transition: opacity 0.28s ease;
}
.yava-meta-landen__hide {
	opacity: 0;
	pointer-events: none;
}
.yava-meta-landen.is-open .yava-meta-landen__show {
	opacity: 0;
	pointer-events: none;
}
.yava-meta-landen.is-open .yava-meta-landen__hide {
	opacity: 1;
	pointer-events: auto;
}
.yava-meta-landen__anim {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
	order: 3;
	width: 100%;
}
.yava-meta-landen.is-open .yava-meta-landen__anim {
	grid-template-rows: 1fr;
}
.yava-meta-landen__anim-inner {
	overflow: hidden;
	min-height: 0;
}
.yava-meta-landen__rest {
	display: block;
	padding-top: 0.2rem;
}

@media (max-width: 479px) {
	.yava-hero {
		padding: 1.15rem 1.1rem 1.25rem;
		border-radius: var(--radius-md);
		gap: 1.25rem;
	}
	.yava-hero__main {
		gap: 1.25rem;
	}
	.yava-title {
		font-size: clamp(1.65rem, 8.5vw, 2.2rem);
		margin-top: 0.45rem;
	}
	.yava-artist {
		margin-top: 0.55rem;
		font-size: 0.95rem;
		gap: 0.35rem;
	}
	.yava-meta-sheet {
		margin-top: 0.55rem;
	}
	.yava-meta-sheet__toggle {
		padding: 0.55rem 0;
		font-size: 0.95rem;
	}
	/* Stacked label/value: peek still ≈ 2 items */
	.yava-meta-sheet__anim {
		--yava-meta-row-lh: calc(0.76rem + 0.15rem + (0.88rem * 1.5));
		--yava-meta-row-gap: 0.7rem;
	}
	.yava-meta-quiet {
		font-size: 0.88rem;
		padding: 0 0 0 0.7rem;
		gap: 0.7rem;
	}
	.yava-meta-quiet__row {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.15rem;
	}
	.yava-meta-quiet__k {
		margin-right: 0;
		font-size: 0.76rem;
		letter-spacing: 0.01em;
	}
	.yava-meta-landen {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.1rem;
		width: 100%;
	}
	.yava-meta-landen__anim {
		order: 2;
	}
	.yava-meta-landen__toggle {
		order: 3;
		display: grid;
		align-items: center;
		padding: 0.35rem 0;
		min-height: 2.5rem;
	}
	.yava-meta-landen__rest {
		padding-top: 0.15rem;
		line-height: 1.55;
	}
	.his-round-nav {
		gap: 0.4rem;
		margin-top: 0.85rem;
	}
	.his-round-link {
		min-height: 2.5rem;
		padding: 0.45rem 0.8rem;
		font-size: 0.78rem;
	}
}

/* Legacy meta grid (kept for any remaining non-sheet uses) */
.yava-meta {
	--yava-meta-line: oklch(88% 0.012 330);
	--yava-meta-fill: oklch(97.5% 0.012 340);
	margin-top: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
	background-color: var(--yava-meta-line);
	border: 0;
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.yava-meta .meta-cell {
	flex: 1 1 calc(50% - 1px);
	min-width: 0;
	background: var(--surface);
	padding: 0.55rem 0.85rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.12rem;
	box-sizing: border-box;
}

@media (max-width: 679px) {
	.yava-meta .meta-cell:last-child:nth-child(odd) {
		flex-basis: 100%;
	}
}

@media (min-width: 680px) {
	.yava-meta:not(.his-meta) {
		flex-wrap: nowrap;
	}
	.yava-meta:not(.his-meta) .meta-cell {
		flex: 1 1 0;
	}
}

.meta-k {
	font-size: 0.62rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 700;
	line-height: 1.2;
}

.meta-v {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
	font-weight: 700;
	color: var(--fg);
	font-size: 0.95rem;
	line-height: 1.3;
}

.yava-body {
	margin-top: 2.5rem;
}

.yava-clip-section {
	margin-top: 3rem;
	width: 100%;
	max-width: 100%;
}

.yava-clip {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.yava-clip .wp-block-embed__wrapper {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: oklch(94% 0.006 280);
	box-shadow: 0 10px 40px oklch(0% 0 0 / 0.12);
}

.yava-clip .wp-block-embed__wrapper iframe,
.yava-clip .youtube iframe {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	border: 0;
	border-radius: var(--radius-lg);
	display: block;
}

.yava .clip-section {
	margin-top: 3rem;
}

.nominee-grid {
	margin-top: 1.25rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
}

@media (min-width: 560px) {
	.nominee-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 900px) {
	.nominee-grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

.nominee-card {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.nominee-card:hover {
	border-color: var(--accent);
	transform: translateY(-2px);
	box-shadow: 0 8px 22px oklch(0% 0 0 / 0.08);
}

.nominee-flag {
	flex-shrink: 0;
	width: 24px;
	height: auto;
	border-radius: 2px;
}

.nominee-song {
	font-weight: 700;
	color: var(--fg);
	line-height: 1.25;
}

.nominee-artist {
	font-size: 0.82rem;
	color: var(--muted);
}

.sf-award-article .article-body {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.yava--history {
	max-width: none;
	width: 100%;
	container-type: inline-size;
}
.yava--history .yava-hero__photo-frame {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 1.15rem;
	background: var(--surface);
}
.yava--history .yava-hero__photo-frame img {
	width: auto;
	max-width: 100%;
	max-height: 16rem;
	height: auto;
	object-fit: contain;
	margin-left: auto;
	margin-right: auto;
}
@media (min-width: 720px) {
	.yava--history .yava-hero--has-photo .yava-hero__main {
		grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem);
	}
}
.yava-meta.his-meta {
	--his-meta-cols: 4;
	display: flex;
	flex-wrap: wrap;
}
.yava-meta.his-meta .meta-cell {
	flex: 1 1 calc((100% - 1px) / 2);
	min-width: 0;
}
.yava-meta.his-meta .meta-cell:last-child:nth-child(odd) {
	grid-column: auto;
	flex-basis: 100%;
}
@container (min-width: 44rem) {
	.yava-meta.his-meta .meta-cell {
		flex: 1 1 calc((100% - (1px * (var(--his-meta-cols) - 1))) / var(--his-meta-cols));
	}
	.yava-meta.his-meta .meta-cell:last-child:nth-child(odd) {
		flex-basis: calc((100% - (1px * (var(--his-meta-cols) - 1))) / var(--his-meta-cols));
	}
}
.his-meta .meta-v {
	display: block;
	align-items: flex-start;
}
.his-meta .meta-v p {
	margin: 0;
}
.his-meta .meta-v p + p {
	margin-top: 0.35em;
}
.his-meta .meta-v a {
	color: var(--accent);
}
.his-meta .meta-v a:hover {
	text-decoration: underline;
}

.yava--candidate {
	max-width: none;
	width: 100%;
	container-type: inline-size;
}
.yava--candidate .yava-hero,
.yava--candidate .yava-meta,
.yava--candidate .kan-results,
.yava--candidate .kan-body,
.yava--candidate .yava-clip-section {
	width: 100%;
	max-width: none;
}
@container (min-width: 45rem) {
	.yava--candidate .yava-hero--has-photo .yava-hero__main,
	.yava--candidate .yava-hero--has-photo:not(:has(> .yava-hero__main)) {
		grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
	}
}
.yava--candidate .yava-hero__photo-frame {
	aspect-ratio: 16 / 10;
	background: oklch(94% 0.006 280);
}
.yava--candidate .yava-hero__photo-frame img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	cursor: zoom-in;
}
.yava--candidate .kan-social {
	margin-top: 1.15rem;
}
.yava--candidate .kan-results,
.yava--candidate .kan-body {
	margin-top: 2.5rem;
}
.yava--candidate .kan-body .yava-body {
	margin-top: 0;
}

.ns-roundup,
.ns-event--single {
	width: 100%;
	max-width: 920px;
	container-type: inline-size;
}
.ns-overview {
	margin: 0 0 2.5rem;
}
.ns-overview-list {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}
.ns-overview-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.35rem 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface);
	box-shadow: 0 4px 20px oklch(0% 0 0 / 0.04);
	transition: border-color 0.15s, background 0.15s;
}
.ns-overview-item:hover,
.ns-overview-item:focus-within {
	background: oklch(97% 0.01 350);
	border-color: transparent;
}
.ns-overview-item__main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	min-width: 0;
	color: inherit;
	text-decoration: none;
	background: none;
}
.ns-overview-item__main:hover .ns-overview-item__country,
.ns-overview-item__main:focus-visible .ns-overview-item__country {
	color: var(--accent);
}
.ns-overview-item__country {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 700;
}
.ns-overview-item__date {
	font-size: 0.85rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.ns-overview-item__links {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-end;
	gap: 0.35rem;
	align-self: center;
}
.ns-overview-item__links .his-round-link,
.ns-overview-item__links .his-round-link:hover,
.ns-overview-item__links .his-round-link:focus-visible {
	background: var(--surface);
	color: var(--accent);
	border-color: var(--border);
}
.ns-event {
	scroll-margin-top: calc(var(--header-h, 64px) + 1rem);
}
.ns-event__datetime {
	margin: 0.75rem 0 0;
	font-size: 1.05rem;
	font-weight: 400;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}
.ns-roundup .ns-event + .ns-event {
	margin-top: 3.25rem;
}
.ns-event:not(.ns-event--single) .yava-title {
	font-size: clamp(1.45rem, 3.6vw, 2.15rem);
	margin-top: 0.45rem;
}
.ns-event:not(.ns-event--single) .yava-hero {
	padding: clamp(1.25rem, 3.5vw, 2.25rem);
}
.ns-table {
	margin-top: 2rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
.ns-edit {
	margin-top: 1.25rem;
	font-size: 0.88rem;
}
.ns-edit a {
	color: var(--accent);
}
.his-meta .meta-v .his-round-link {
	margin: 0.1rem 0.2rem 0.1rem 0;
	text-decoration: none;
}
.ns-event .his-round-link,
.ns-event .his-meta .meta-v a.his-round-link,
.ns-event .his-round-link:hover,
.ns-event .his-meta .meta-v a.his-round-link:hover,
.ns-event .his-round-link:focus-visible,
.ns-event .his-meta .meta-v a.his-round-link:focus-visible {
	background: var(--surface);
	color: var(--accent);
	border-color: var(--border);
	text-decoration: none;
}

/* ── Rehearsal (single + day article) ── */
.sf-rehearsal-article {
	max-width: 920px;
}
.yava--rehearsal {
	max-width: 920px;
	width: 100%;
	container-type: inline-size;
}
.yava--rehearsal .yava-hero--has-photo .yava-hero__main,
.yava--rehearsal .yava-hero--has-photo:not(:has(> .yava-hero__main)) {
	align-items: center;
}
@container (min-width: 40rem) {
	.yava--rehearsal .yava-hero--has-photo .yava-hero__main,
	.yava--rehearsal .yava-hero--has-photo:not(:has(> .yava-hero__main)) {
		grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem);
	}
}
.sf-award-article.sf-rehearsal-article .article-body,
.yava--rehearsal .reh-body {
	max-width: none;
}
.reh-roundup {
	display: flex;
	flex-direction: column;
	gap: 2.25rem;
	margin-top: 1.75rem;
}
.reh-event {
	scroll-margin-top: calc(var(--header-h, 64px) + 1rem);
}
.reh-event__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.35rem 1rem;
	margin-bottom: 0.85rem;
}
.reh-event__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.2rem, 2.6vw, 1.55rem);
	line-height: 1.15;
}
.reh-event__title a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: inherit;
}
.reh-event__title a:hover span,
.reh-event__title a:focus-visible span {
	color: var(--accent);
}
.reh-event__day {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--muted);
}
.reh-media {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.9rem;
	margin-top: 1.35rem;
	width: 100%;
}
.reh-event .reh-media {
	margin-top: 0;
}
@container (min-width: 40rem) {
	.yava--rehearsal .reh-media--split {
		grid-template-columns: 1fr 1fr;
	}
}
@media (min-width: 720px) {
	.reh-event .reh-media--split {
		grid-template-columns: 1fr 1fr;
	}
}
.reh-media__photo,
.reh-media__clip {
	min-width: 0;
}
.reh-media__frame {
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: 0 8px 28px oklch(0% 0 0 / 0.08);
}
.reh-media__frame img {
	display: block;
	width: 100%;
	height: auto;
}
.reh-media__clip .yava-clip,
.reh-media__clip .yava-clip .wp-block-embed__wrapper {
	height: 100%;
}
.reh-media__clip .yava-clip .wp-block-embed__wrapper {
	border-radius: var(--radius-lg);
	box-shadow: 0 8px 28px oklch(0% 0 0 / 0.08);
}
.reh-body {
	margin-top: 1.5rem;
}
.yava--rehearsal .reh-body {
	margin-top: 2.75rem;
}

/* ── Todo ── */
.sf-todo-article,
.yava--todo,
.todo-page {
	max-width: 920px;
	width: 100%;
}
.todo-page .category-hero {
	margin-bottom: 1.25rem;
}
.yava--todo .yava-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}
.todo-badge-warn {
	background: var(--accent);
	background-image: none;
}
.todo-actions {
	margin-top: 1.25rem;
}
.todo-meta .meta-cell.is-warning {
	background: oklch(97% 0.02 350);
}
.todo-meta .meta-cell.is-warning .meta-v,
.yava-meta-row.is-warning .yava-meta-row__v {
	color: var(--accent);
}
.todo-body {
	margin-top: 2.25rem;
}
.sf-manual-article .image-popup,
.sf-manual-article .entry-content img {
	cursor: zoom-in;
}
.sf-manual-article .yava-hero__photo-frame img {
	cursor: zoom-in;
}
.reh-event .reh-body {
	margin-top: 1.1rem;
}

.his-round-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.1rem;
}
.his-round-nav--pills {
	gap: 0.5rem;
}
.his-round-link {
	display: inline-flex;
	align-items: center;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.38rem 0.9rem;
	border-radius: 999px;
	border: 1px solid var(--accent);
	color: var(--accent);
	background: transparent;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.his-round-link:hover {
	background: oklch(97% 0.03 350);
	color: var(--accent);
}
.his-round-link.is-active {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}

.his-results {
	margin-top: 3rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
.yava--history .his-intro {
	margin-top: 1.25rem;
}
.his-results .section-head {
	margin-top: 2.75rem;
}
.his-results .section-head:first-child {
	margin-top: 0;
}
.his-results #results,
.his-results .sf-table-scroll {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
}
.his-results .dataTables_wrapper,
#results .dataTables_wrapper,
.dataTables_wrapper:has(.escdb-results-table),
.sf-table-scroll-viewport .dataTables_wrapper {
	width: 100% !important;
	min-width: 100%;
	max-width: none !important;
	overflow: visible !important;
}
.sf-table-scroll-viewport:has(.escdb-results-table) {
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: 0 4px 20px oklch(0% 0 0 / 0.06);
	background: var(--surface);
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
}
/* Mobile only: fixed column widths + horizontal scroll (desktop stays full-width flex). */
@media (max-width: 900px) {
	.sf-table-scroll-viewport:has(.escdb-results-table) .dataTables_wrapper,
	.sf-table-scroll-viewport .escdb-results-table,
	.sf-table-scroll-viewport .escdb-results-table thead,
	.sf-table-scroll-viewport .escdb-results-table tbody {
		width: max-content !important;
		min-width: 100%;
		max-width: none !important;
	}
	.sf-table-scroll-viewport .escdb-results-table tr.escdb-results-header-row,
	.sf-table-scroll-viewport .escdb-results-table tr.escdb-results-data-row {
		width: max-content;
		min-width: 100%;
		box-sizing: border-box;
		padding-left: 0;
		padding-right: 0;
	}
	/* Edge inset via flex spacers (counts toward scrollWidth so last col stays reachable) */
	.sf-table-scroll-viewport .escdb-results-table tr.escdb-results-header-row::before,
	.sf-table-scroll-viewport .escdb-results-table tr.escdb-results-data-row::before,
	.sf-table-scroll-viewport .escdb-results-table tr.escdb-results-header-row::after,
	.sf-table-scroll-viewport .escdb-results-table tr.escdb-results-data-row::after {
		content: '';
		flex: 0 0 0.35rem;
		align-self: stretch;
	}
	/* Match Artiest header start to the YT thumb — keep inset tight */
	.sf-table-scroll-viewport .escdb-results-table:not(#escdb-sort-table) tr.escdb-results-header-row > th.escdb-artistcol,
	.sf-table-scroll-viewport .escdb-results-table:not(#escdb-sort-table) tr.escdb-results-data-row > td.escdb-artistcol {
		padding: 0.45rem 0.3rem !important;
	}
	.sf-table-scroll-viewport .escdb-results-table:not(#escdb-sort-table) tr.escdb-results-header-row > .escdb-artistcol,
	.sf-table-scroll-viewport .escdb-results-table:not(#escdb-sort-table) tr.escdb-results-data-row > .escdb-artistcol {
		flex: 0 0 calc(var(--escdb-thumb-w) + 0.6rem) !important;
		width: calc(var(--escdb-thumb-w) + 0.6rem) !important;
		min-width: calc(var(--escdb-thumb-w) + 0.6rem) !important;
		max-width: calc(var(--escdb-thumb-w) + 0.6rem) !important;
	}
	.sf-table-scroll-viewport .escdb-results-table thead th.escdb-artistcol.sorting::after,
	.sf-table-scroll-viewport .escdb-results-table thead th.escdb-artistcol.sorting_asc::after,
	.sf-table-scroll-viewport .escdb-results-table thead th.escdb-artistcol.sorting_desc::after {
		right: 0.25rem;
	}
	.sf-table-scroll-viewport .escdb-results-table tr.escdb-results-header-row > th[class*="escdb-column-"]:not(.escdb-artistcol):not(.escdb-yearcol),
	.sf-table-scroll-viewport .escdb-results-table tr.escdb-results-data-row > td[class*="escdb-column-"]:not(.escdb-artistcol):not(.escdb-yearcol) {
		flex: 0 0 auto;
		flex-shrink: 0;
		width: max-content;
		min-width: max-content;
		max-width: none;
		box-sizing: border-box;
		justify-content: center;
		padding-left: 0.35rem;
		padding-right: 0.35rem;
	}
	.sf-table-scroll-viewport .escdb-results-table tr.escdb-results-header-row > th[class*="escdb-column-"]:not(.escdb-artistcol):not(.escdb-yearcol).sorting,
	.sf-table-scroll-viewport .escdb-results-table tr.escdb-results-header-row > th[class*="escdb-column-"]:not(.escdb-artistcol):not(.escdb-yearcol).sorting_asc,
	.sf-table-scroll-viewport .escdb-results-table tr.escdb-results-header-row > th[class*="escdb-column-"]:not(.escdb-artistcol):not(.escdb-yearcol).sorting_desc {
		padding-right: 1.35rem;
	}
	.sf-table-scroll-viewport .escdb-results-table thead th.sorting,
	.sf-table-scroll-viewport .escdb-results-table thead th.sorting_asc,
	.sf-table-scroll-viewport .escdb-results-table thead th.sorting_desc,
	.sf-table-scroll-viewport .escdb-results-table tr.escdb-results-header-row > th.escdb-sfcol {
		padding-left: 0.35rem;
		padding-right: 1.35rem;
	}
	.sf-table-scroll-viewport .escdb-results-table thead th.sorting::after,
	.sf-table-scroll-viewport .escdb-results-table thead th.sorting_asc::after,
	.sf-table-scroll-viewport .escdb-results-table thead th.sorting_desc::after {
		right: 0.3rem;
	}
	.sf-table-scroll-viewport .escdb-results-table .escdb-column-top-detail,
	.sf-table-scroll-viewport .escdb-results-table .escdb-column-normal-detail {
		display: flex;
		flex: 0 0 auto;
		width: max-content;
		min-width: max-content;
		max-width: none;
		justify-content: center;
		box-sizing: border-box;
	}
}
.his-results .sf-table-scroll {
	margin-top: 0.35rem;
}

.his-detail-btns,
.post-history-detailresults {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.15rem;
}
.his-detail-btns a.his-detail-btn,
.post-history-detailresults a.his-detail-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 0.42rem 0.9rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--accent);
	background: var(--surface);
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.his-detail-btns a.his-detail-btn:hover,
.post-history-detailresults a.his-detail-btn:hover {
	background: var(--accent);
	color: var(--surface);
	border-color: transparent;
}
.his-detail-btn__icon {
	width: 1.05rem;
	height: 1.05rem;
	flex-shrink: 0;
}

/* ── ESCDB results table (history + database) ── */
.escdb-results-table [class*="escdb-column-"] {
	width: auto;
	min-width: 2.25rem;
	max-width: none;
	flex: 1 1 0;
}
.escdb-results-table .escdb-column-top-detail,
.escdb-results-table .escdb-column-normal-detail {
	flex: 0 0 auto;
	width: auto;
	min-width: max-content;
	max-width: none;
}
.escdb-results-table tr.escdb-results-header-row > :first-child:not(.escdb-artistcol):not(.escdb-yearcol),
.escdb-results-table tr.escdb-results-data-row > :first-child:not(.escdb-artistcol):not(.escdb-yearcol) {
	flex: 0 0 3rem;
	width: 3rem;
	min-width: 2.75rem;
	max-width: 3.25rem;
}

.escdb-results-table {
	--escdb-thumb-w: 200px;
	display: block !important;
	width: 100% !important;
	min-width: 0;
	max-width: none;
	height: auto;
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.3;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--surface);
	color: var(--fg);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: visible;
}
.sf-table-scroll-viewport .escdb-results-table {
	border: none;
	border-radius: 0;
	overflow: visible;
}
.escdb-results-table thead,
.escdb-results-table tbody {
	display: block;
	width: 100%;
}
.escdb-results-table thead {
	overflow: hidden;
	border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.escdb-results-table tbody {
	overflow: hidden;
	border-radius: 0 0 var(--radius-md) var(--radius-md);
	background: inherit;
	margin: 0;
	padding: 0;
}
.escdb-results-table tr.escdb-results-data-row:last-child > td {
	border-bottom: none;
}
.escdb-results-table tr.escdb-results-data-row:last-child > td:first-child {
	border-bottom-left-radius: var(--radius-md);
}
.escdb-results-table tr.escdb-results-data-row:last-child > td:last-child {
	border-bottom-right-radius: var(--radius-md);
}
.escdb-results-table tr.escdb-results-header-row > th:first-child {
	border-top-left-radius: var(--radius-md);
}
.escdb-results-table tr.escdb-results-header-row > th:last-child {
	border-top-right-radius: var(--radius-md);
}
.escdb-results-table tr.escdb-results-header-row,
.escdb-results-table tr.escdb-results-data-row {
	display: flex;
	width: 100%;
	align-items: stretch;
	margin: 0;
	background: transparent;
}
.escdb-results-table tr.escdb-results-header-row > th,
.escdb-results-table tr.escdb-results-header-row > td,
.escdb-results-table tr.escdb-results-data-row > th,
.escdb-results-table tr.escdb-results-data-row > td {
	box-sizing: border-box;
	display: flex;
	position: relative;
	flex-shrink: 1;
	flex-basis: auto;
	min-width: 0;
	align-items: center;
	justify-content: center;
	float: none;
	padding: 0.72rem 0.45rem;
	text-align: center;
	vertical-align: middle;
	border: none;
	border-bottom: 1px solid var(--border);
}
.escdb-results-table tr.escdb-results-header-row > .escdb-nocenter,
.escdb-results-table tr.escdb-results-data-row > .escdb-nocenter {
	justify-content: flex-start;
	text-align: left;
	padding-left: 0.85rem;
}
.escdb-results-table tr.escdb-results-header-row {
	background: var(--accent);
	color: #fff;
	font-family: var(--font-body);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-transform: none;
	align-items: stretch;
	position: relative;
	z-index: 4;
}
.escdb-results-table tr.escdb-results-header-row > th,
.escdb-results-table tr.escdb-results-header-row > th.escdb-sfcol {
	background: var(--accent);
	color: #fff;
	cursor: pointer;
	position: relative;
	border-bottom: none;
	padding: 0.85rem 1.85rem 0.85rem 0.85rem;
	white-space: nowrap;
}
.escdb-results-table thead th.sorting,
.escdb-results-table thead th.sorting_asc,
.escdb-results-table thead th.sorting_desc {
	background-image: none !important;
	background-color: var(--accent);
	color: #fff;
	padding-right: 1.85rem;
}
.escdb-results-table thead th.sorting:hover,
.escdb-results-table thead th.sorting_asc,
.escdb-results-table thead th.sorting_desc {
	background: oklch(48% 0.25 350);
	color: #fff;
}
.escdb-results-table thead th.sorting::before,
.escdb-results-table thead th.sorting_asc::before,
.escdb-results-table thead th.sorting_desc::before {
	content: none;
	display: none;
}
.escdb-results-table thead th.sorting::after,
.escdb-results-table thead th.sorting_asc::after,
.escdb-results-table thead th.sorting_desc::after {
	font-family: TablePress, "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
	font-weight: 400;
	font-size: 14px;
	-webkit-font-smoothing: antialiased;
	position: absolute;
	top: 50%;
	right: 0.65rem;
	bottom: auto;
	left: auto;
	transform: translateY(-50%);
	margin: 0;
	display: block;
	width: auto;
	height: 14px;
	line-height: 1;
	border: none;
	opacity: 0.95;
	color: #fff;
	content: "\f0dc";
}
.escdb-results-table thead th.sorting_asc::after {
	content: "\f0d8";
	padding: 0 0 2px;
}
.escdb-results-table thead th.sorting_desc::after {
	content: "\f0d7";
}
.escdb-results-table tr.escdb-results-data-row:last-child > td {
	border-bottom: none;
}
.escdb-results-table tr.escdb-results-data-row.row-even > td,
.escdb-results-table tr.even > td {
	background: oklch(98.5% 0.006 280);
}
.escdb-results-table tr.escdb-results-data-row > td.escdb-sfcol {
	background: oklch(96% 0.02 350 / 0.45);
}
.escdb-results-table tr.escdb-results-data-row.row-even > td.escdb-sfcol,
.escdb-results-table tr.even > td.escdb-sfcol {
	background: oklch(94% 0.03 350 / 0.55);
}
.escdb-results-table tr.escdb-results-header-row > th.escdb-sfcol {
	background: var(--accent);
	color: #fff;
}
.escdb-results-table tr.escdb-results-data-row:hover > td,
.escdb-results-table tr.even:hover > td,
.escdb-results-table tr.odd:hover > td,
.escdb-results-table tr.escdb-results-data-row:hover > td.escdb-sfcol,
.escdb-results-table tr.even:hover > td.escdb-sfcol {
	background: oklch(97% 0.025 350);
}
.escdb-results-table tr.escdb-results-data-row.nodisplay {
	display: none !important;
}
@media (max-width: 900px) {
	/* Keep year + artist as separate scrollable columns (no overlay on the artist thumb). */
	.escdb-results-data-row-overlay.escdb-phone {
		display: none !important;
	}
	/* # columns stay visible when the table can scroll horizontally */
	.sf-table-scroll-viewport .escdb-results-table tr.escdb-results-header-row > .escdb-column-top-detail,
	.sf-table-scroll-viewport .escdb-results-table tr.escdb-results-data-row > .escdb-column-top-detail {
		display: flex;
	}
	.sf-table-scroll-viewport .escdb-results-table:not(#escdb-sort-table) tr.escdb-results-header-row > .escdb-yearcol,
	.sf-table-scroll-viewport .escdb-results-table:not(#escdb-sort-table) tr.escdb-results-data-row > .escdb-yearcol {
		display: flex;
		flex: 0 0 calc(var(--escdb-thumb-w) + 0.6rem) !important;
		width: calc(var(--escdb-thumb-w) + 0.6rem) !important;
		min-width: calc(var(--escdb-thumb-w) + 0.6rem) !important;
		max-width: calc(var(--escdb-thumb-w) + 0.6rem) !important;
		padding: 0.45rem 0.3rem !important;
	}
	.sf-table-scroll-viewport .escdb-results-table:not(#escdb-sort-table) tr.escdb-results-data-row > .escdb-yearcol {
		align-items: flex-start;
	}
}

.escdb-results-data-row-image {
	position: relative;
	overflow: hidden;
	min-height: 3.2rem;
	border-radius: 10px;
	background: var(--border);
}
.escdb-results-data-row-image > a {
	display: block;
	position: relative;
}
.escdb-results-data-row-image img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}
.escdb-results-data-row-image img.play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18%;
	max-width: 2.4rem;
	height: auto;
	transform: translate(-50%, -50%);
	z-index: 2;
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.15s ease;
}
.escdb-results-data-row-image:hover img.play-button,
.escdb-results-data-row-image.sfhover_on img.play-button {
	opacity: 0.9;
}
.escdb-results-data-row-image img.allsongsvlag,
.escdb-results-data-row-overlay img.allsongsvlag,
a.escdb-countrylink img.allsongsvlag {
	display: inline-block;
	width: 13px;
	height: auto;
	max-width: none;
	margin-right: 0.3rem;
	vertical-align: middle;
	border-radius: 1px;
}
a.escdb-countrylink {
	display: none;
}
.escdb-results-data-row-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 0.45rem 0.5rem 0.4rem;
	background: linear-gradient(to top, rgba(18, 6, 16, 0.78) 0%, rgba(18, 6, 16, 0.28) 70%, transparent 100%);
	text-align: left;
	pointer-events: none;
}
.escdb-results-data-row-overlay a {
	display: block;
	width: 100%;
	color: #fff;
	font-size: inherit;
	font-weight: 600;
	line-height: 1.25;
	margin: 0;
	pointer-events: auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.escdb-results-data-row-overlay a:hover {
	color: var(--accent-yellow);
}
.escdb-results-data-row-overlay.escdb-phone {
	display: none !important;
}

.escdb-results-table:not(#escdb-sort-table) tr.escdb-results-header-row > .escdb-yearcol,
.escdb-results-table:not(#escdb-sort-table) tr.escdb-results-data-row > .escdb-yearcol {
	flex: 0 0 calc(var(--escdb-thumb-w) + 1.6rem);
	width: calc(var(--escdb-thumb-w) + 1.6rem);
	min-width: calc(var(--escdb-thumb-w) + 1.6rem);
	max-width: calc(var(--escdb-thumb-w) + 1.6rem);
}
.escdb-results-table:not(#escdb-sort-table) tr.escdb-results-header-row > .escdb-artistcol,
.escdb-results-table:not(#escdb-sort-table) tr.escdb-results-data-row > .escdb-artistcol {
	flex: 0 0 calc(var(--escdb-thumb-w) + 1.6rem);
	width: calc(var(--escdb-thumb-w) + 1.6rem);
	min-width: calc(var(--escdb-thumb-w) + 1.6rem);
	max-width: calc(var(--escdb-thumb-w) + 1.6rem);
}
.escdb-yearcol .escdb-results-data-row-image {
	width: var(--escdb-thumb-w);
	max-width: 100%;
	min-height: 0;
	aspect-ratio: 16 / 10;
}
.escdb-yearcol .escdb-results-data-row-image > a {
	display: block;
	height: 100%;
}
.escdb-yearcol .escdb-results-data-row-image img:not(.play-button):not(.allsongsvlag) {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.escdb-artistcol .escdb-artist-card {
	display: block;
	width: var(--escdb-thumb-w);
	max-width: 100%;
}
.escdb-artistcol .top250-media-thumb {
	width: var(--escdb-thumb-w);
	min-width: var(--escdb-thumb-w);
	height: auto;
	aspect-ratio: 16 / 10;
	box-shadow: none;
}
.escdb-artistcol .top250-media-thumb > img {
	width: var(--escdb-thumb-w);
	max-width: none;
	height: 100%;
	object-fit: cover;
}
.escdb-results-table:not(#escdb-sort-table) tr.escdb-results-data-row > td.escdb-artistcol {
	padding: 0.85rem 0.8rem;
}
@media (max-width: 900px) {
	.escdb-results-table {
		--escdb-thumb-w: clamp(5.5rem, 28vw, 8.75rem);
	}
	.escdb-results-table:not(#escdb-sort-table) tr.escdb-results-header-row > .escdb-artistcol,
	.escdb-results-table:not(#escdb-sort-table) tr.escdb-results-data-row > .escdb-artistcol {
		flex: 0 0 calc(var(--escdb-thumb-w) + 0.9rem) !important;
		flex-grow: 0 !important;
		width: calc(var(--escdb-thumb-w) + 0.9rem) !important;
		min-width: calc(var(--escdb-thumb-w) + 0.9rem) !important;
		max-width: calc(var(--escdb-thumb-w) + 0.9rem) !important;
	}
	.escdb-results-table tr.escdb-results-data-row > td.escdb-artistcol {
		padding: 0.5rem 0.45rem;
		align-items: flex-start;
	}
	.escdb-artistcol .escdb-artist-card,
	.escdb-artistcol .top250-media-thumb,
	.escdb-artistcol .top250-media-thumb > img {
		width: var(--escdb-thumb-w);
		min-width: var(--escdb-thumb-w);
		max-width: var(--escdb-thumb-w);
	}
	/* Caption sits under the image — don't lock the thumb to 16/10 */
	.escdb-artistcol .top250-media-thumb {
		aspect-ratio: auto;
	}
	.escdb-artistcol .top250-media-thumb > img {
		height: auto;
		aspect-ratio: 16 / 10;
	}
}

td.escdb-pointstooltip {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
td.escdb-pointstooltip:hover,
td.escdb-pointstooltip.sfhover_on {
	z-index: 30;
}
td.escdb-pointstooltip > span {
	position: relative;
	display: inline;
	padding: 0;
	border: none;
	border-radius: 0;
	background: none;
	box-shadow: none;
}
td.escdb-pointstooltip:hover > span,
td.escdb-pointstooltip.sfhover_on > span {
	background: none;
	color: var(--accent);
	font-weight: 700;
}
td.escdb-pointstooltip .kanpointspopup,
td.escdb-pointstooltip .kanpointspopup.largeresult,
.kanpointspopup.is-open {
	position: fixed;
	top: auto;
	left: auto;
	right: auto;
	transform: none;
	display: none;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: flex-start;
	gap: 2px;
	z-index: 4000;
	width: max-content;
	max-width: none;
	padding: 0.3rem 0.35rem;
	border-radius: 10px;
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: 0 12px 32px oklch(0% 0 0 / 0.18);
	white-space: nowrap;
}
.kanpointspopup.is-open {
	display: flex;
	pointer-events: auto;
}
@media (max-width: 719px) {
	td.escdb-pointstooltip .kanpointspopup,
	td.escdb-pointstooltip .kanpointspopup.largeresult,
	.kanpointspopup.is-open {
		flex-wrap: wrap;
		max-width: calc(100vw - 16px);
		white-space: normal;
	}
}
.kanpoint-cell {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	flex: 0 0 auto;
	width: 1.45rem;
	padding: 0.08rem 0.04rem 0.12rem;
	border-radius: 5px;
	background: oklch(97.5% 0.008 280);
}
.kanpoint-cell img.allsongsvlag {
	display: block;
	width: 1.3rem;
	height: 0.85rem;
	max-width: none;
	margin: 0;
	object-fit: cover;
	border-radius: 2px;
}
.kanpoint-cell b {
	margin-top: 0.12rem;
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 1;
	color: var(--fg);
}
.kanpoint-cell:hover {
	background: oklch(94% 0.06 350 / 0.55);
}
.kanpoint-cell:hover b {
	color: var(--accent);
}

/* ── Top 250 overview (edition index) ── */
.top250-overview-section + .top250-overview-section {
  margin-top: 3.5rem;
}

/* ── Top 250 results page ── */
.top250-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--fg);
  background: oklch(97% 0.01 350);
  border: 1px solid var(--border);
}
.stat-chip strong {
  color: var(--accent);
  font-weight: 700;
}
.top250-ad {
  margin: 2rem 0;
  text-align: center;
  width: 100%;
}
.top250-ad:not(:has(.adsbygoogle)),
.top250-ad:has(.adsbygoogle[data-ad-status="unfilled"]) {
  display: none;
  margin: 0;
}
.top250-ad .advertisement {
  display: block;
  width: 100%;
}
.top250-ad ins.adsbygoogle {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100%;
  margin: 0 auto;
}
.top250-ad--leaderboard ins.adsbygoogle,
.sf-ad--leaderboard ins.adsbygoogle {
  min-height: 90px;
}
.top250-ad--rail ins.adsbygoogle,
.sf-ad--rail ins.adsbygoogle,
.sf-ad--portrait ins.adsbygoogle {
  min-height: 600px;
}
.top250-results {
  --top250-thumb-w: 140px;
  --top250-thumb-h: 88px;
  --top250-year-pad-left: 0.55rem;
  --top250-year-pad-right: 0.15rem;
  --top250-sticky-inset: 0.75rem;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 100%;
}
.top250-results.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.top250-table-wrap {
  margin-top: 0;
  width: 100%;
}
.top250-results .sf-table-scroll {
  margin-top: 0;
}
.top250-table .top250-col-year,
.top250-table .top250-col-artist {
  white-space: nowrap;
  vertical-align: top;
}
.top250-table .top250-col-rank,
.top250-table .top250-col-pts,
.top250-table .top250-col-pts-detail {
  text-align: center;
  white-space: nowrap;
}
.top250-table .top250-col-rank {
  font-weight: 600;
}
.top250-table tbody tr.is-top3 .top250-col-rank {
  color: var(--accent);
  font-family: var(--font-display);
}
.top250-media-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.top250-media-thumb {
  position: relative;
  display: block;
  width: var(--top250-thumb-w, 140px);
  min-width: var(--top250-thumb-w, 140px);
  height: var(--top250-thumb-h, 88px);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: oklch(94% 0.01 280);
  box-shadow: 0 2px 8px oklch(0% 0 0 / 0.08);
}
.top250-media-thumb > img {
  display: block;
  width: var(--top250-thumb-w, 140px);
  max-width: none;
  height: var(--top250-thumb-h, 88px);
  object-fit: cover;
}
.top250-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0% 0 0 / 0) 45%, oklch(0% 0 0 / 0.42) 100%);
  pointer-events: none;
  z-index: 1;
}
.top250-media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  padding: 0.3rem;
  min-width: 0;
  max-width: 100%;
  pointer-events: none;
}
.top250-media-caption a {
  pointer-events: auto;
}
.top250-media-title,
.top250-media-meta {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.94);
  color: var(--fg);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.top250-media-title {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.68rem;
  color: var(--accent);
}
.top250-media-title span {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.top250-media-meta {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--fg);
}
a.top250-media-card:hover .top250-media-title,
.top250-media-title:hover {
  background: var(--accent);
  color: #fff;
}
.top250-media-meta:hover {
  background: var(--accent-yellow);
  color: var(--fg);
}
.top250-media-video {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.top250-entry-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: oklch(0% 0 0 / 0.22) var(--top250-play-icon) center / 1.75rem no-repeat;
  transition: background-color 0.15s ease;
  pointer-events: none;
}
.top250-media-thumb:hover .top250-entry-play,
.top250-media-thumb:focus-within .top250-entry-play {
  background-color: oklch(0% 0 0 / 0.38);
}
/* Mobile: artist/song pills below the thumb, not overlaid on the video */
@media (max-width: 900px) {
  .top250-media-thumb {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }
  .top250-media-thumb > img {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px oklch(0% 0 0 / 0.08);
  }
  .top250-media-overlay,
  .top250-media-video,
  .top250-entry-play {
    top: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
  }
  .top250-media-caption {
    position: static;
    padding: 0.4rem 0 0;
    gap: 0.28rem;
  }
  .top250-media-title,
  .top250-media-meta {
    max-width: 100%;
  }
}
.top250-flag {
  flex-shrink: 0;
  width: 11px;
  height: auto;
  max-width: 11px;
  max-height: 8px;
  object-fit: contain;
  border-radius: 1px;
}
.top250-list-toggle {
  margin: 1.25rem 0 0;
  text-align: center;
}
.top250-list-toggle-btn {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}
.top250-list-toggle-btn:hover,
.top250-list-toggle-btn:focus-visible {
  color: oklch(48% 0.25 350);
  outline: none;
}
#top250-pagination:not([hidden]) {
  margin-top: 1.75rem;
}
#top250-pagination .pagination {
  margin-top: 0;
}
.top250-table .top250-col-rank,
.top250-table .top250-col-pts,
.top250-table .top250-col-pts-detail {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  font-size: 0.82rem;
}
.top250-table thead .top250-col-rank,
.top250-table thead .top250-col-pts,
.top250-table thead .top250-col-pts-detail {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  font-size: 0.78rem;
}
.top250-lower {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
}
@media (min-width: 960px) {
  .top250-lower:has(.top250-ad .adsbygoogle:not([data-ad-status="unfilled"])),
  .top250-lower:has(.sf-ad--rail .adsbygoogle:not([data-ad-status="unfilled"])) {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 2.5rem;
  }
}
.top250-lower .top250-ad,
.top250-lower .sf-ad--rail {
  margin: 0;
  width: 100%;
  max-width: 300px;
  justify-self: stretch;
}
@media (max-width: 959px) {
  .top250-lower .top250-ad,
  .top250-lower .sf-ad--rail {
    max-width: 336px;
    margin: 0 auto;
  }
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

a.page-btn:hover,
.page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.page-btn.is-current {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient-brand) border-box;
  color: var(--accent);
  font-weight: 700;
  pointer-events: none;
}

.page-btn:disabled,
span.page-btn:not(.is-current) { opacity: 0.35; cursor: default; }

/* ── TablePress (article + content tables + Top 250) ── */
:is(.article-body, .ns-table) table.tablepress,
.top250-results table.tablepress,
:is(.article-body, .ns-table) .dataTables_wrapper,
.top250-results .dataTables_wrapper,
.top250-table-wrap .dataTables_wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
}
:is(.article-body, .ns-table) table.tablepress,
.top250-results table.tablepress {
  display: table;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px oklch(0% 0 0 / 0.06);
}
:is(.article-body, .ns-table) table.tablepress {
  width: max-content !important;
  min-width: 100%;
  max-width: none;
}
@media (min-width: 900px) {
  :is(.article-body, .ns-table) table.tablepress {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    table-layout: auto;
  }
  :is(.article-body, .ns-table) table.tablepress.is-tight-pad thead th,
  :is(.article-body, .ns-table) table.tablepress.is-tight-pad tbody td {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
.top250-results table.tablepress {
  width: 100% !important;
  min-width: max-content;
  max-width: none;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  border: none;
}
:is(.article-body, .ns-table) table.tablepress thead th,
:is(.article-body, .ns-table) table.tablepress tbody td,
.top250-results table.tablepress thead th,
.top250-results table.tablepress tbody td {
  width: auto !important;
}
:is(.article-body, .ns-table) table.tablepress caption,
.top250-results table.tablepress caption {
  caption-side: bottom;
  padding: 0.55rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: left;
  border: none;
  background: none;
}
:is(.article-body, .ns-table) table.tablepress thead th,
.top250-results table.tablepress thead th {
  position: relative;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #fff;
  background: var(--accent);
  border: none;
  vertical-align: middle;
  white-space: nowrap;
}
:is(.article-body, .ns-table) table.tablepress thead th.sorting,
:is(.article-body, .ns-table) table.tablepress thead th.sorting_asc,
:is(.article-body, .ns-table) table.tablepress thead th.sorting_desc,
.top250-results table.tablepress thead th.sorting,
.top250-results table.tablepress thead th.sorting_asc,
.top250-results table.tablepress thead th.sorting_desc {
  cursor: pointer;
  padding-right: 1.85rem;
}
:is(.article-body, .ns-table) table.tablepress thead th.sorting:hover,
:is(.article-body, .ns-table) table.tablepress thead th.sorting_asc,
:is(.article-body, .ns-table) table.tablepress thead th.sorting_desc,
.top250-results table.tablepress thead th.sorting:hover,
.top250-results table.tablepress thead th.sorting_asc,
.top250-results table.tablepress thead th.sorting_desc {
  background: oklch(48% 0.25 350);
  color: #fff;
}
:is(.article-body, .ns-table) table.tablepress thead th.sorting::after,
:is(.article-body, .ns-table) table.tablepress thead th.sorting_asc::after,
:is(.article-body, .ns-table) table.tablepress thead th.sorting_desc::after,
.top250-results table.tablepress thead th.sorting::after,
.top250-results table.tablepress thead th.sorting_asc::after,
.top250-results table.tablepress thead th.sorting_desc::after {
  color: #fff;
  opacity: 0.9;
  right: 0.65rem;
}
:is(.article-body, .ns-table) table.tablepress tbody td,
.top250-results table.tablepress tbody td {
  padding: 0.72rem 1rem;
  border: none;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
:is(.article-body, .ns-table) table.tablepress tbody tr:last-child td,
.top250-results table.tablepress tbody tr:last-child td {
  border-bottom: none;
}
:is(.article-body, .ns-table) table.tablepress tbody tr.odd td,
.top250-results table.tablepress tbody tr.odd td {
  background: oklch(98.5% 0.006 280);
}
:is(.article-body, .ns-table) table.tablepress tbody tr.even td,
.top250-results table.tablepress tbody tr.even td {
  background: var(--surface);
}
:is(.article-body, .ns-table) table.tablepress tbody tr:hover td,
.top250-results table.tablepress tbody tr:hover td {
  background: oklch(97% 0.025 350);
}
:is(.article-body, .ns-table) table.tablepress tbody tr.is-top3 td,
.top250-results table.tablepress tbody tr.is-top3 td {
  background: oklch(97.5% 0.03 350);
}
:is(.article-body, .ns-table) table.tablepress tbody td.column-1,
.top250-results table.tablepress tbody td.column-1 {
  text-align: center;
  font-weight: 600;
  color: var(--muted);
}

/* Horizontal scroll shell (TablePress + Top 250) */
.sf-table-scroll {
  margin: 2rem 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.sf-table-scroll-nav {
  display: none;
  position: relative;
  min-height: 2.5rem;
  margin-bottom: 0.55rem;
}
.sf-table-scroll-nav.is-active {
  display: block;
}
.sf-table-scroll-btn {
  position: absolute;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient-brand) border-box;
  color: var(--accent);
  box-shadow: 0 2px 10px oklch(0% 0 0 / 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.sf-table-scroll-btn--prev {
  left: 0;
}
.sf-table-scroll-btn--next {
  right: 0;
}
.sf-table-scroll-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.sf-table-scroll-btn svg {
  width: 18px;
  height: 18px;
}
.sf-table-scroll-btn:hover,
.sf-table-scroll-btn:focus-visible {
  color: var(--accent);
  box-shadow: 0 4px 16px oklch(55% 0.25 350 / 0.22);
  outline: none;
}
.sf-table-scroll-btn.is-hint.sf-table-scroll-btn--next {
  animation: sf-table-scroll-nudge-right 0.85s ease-in-out 3;
}
.sf-table-scroll-btn.is-hint.sf-table-scroll-btn--prev {
  animation: sf-table-scroll-nudge-left 0.85s ease-in-out 3;
}
@keyframes sf-table-scroll-nudge-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(7px); }
}
@keyframes sf-table-scroll-nudge-left {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-7px); }
}
.sf-table-scroll-viewport {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: oklch(55% 0.25 350 / 0.45) transparent;
}
#overlay-main #overlay-popups #popup-points-event:not(.has-side-space) .sf-table-scroll-viewport {
  overflow-x: auto;
  overflow-y: auto;
}
.top250-results .sf-table-scroll-viewport {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px oklch(0% 0 0 / 0.06);
  background: var(--surface);
}
.sf-table-scroll-viewport::-webkit-scrollbar {
  height: 6px;
}
.sf-table-scroll-viewport::-webkit-scrollbar-thumb {
  background: oklch(55% 0.25 350 / 0.45);
  border-radius: 999px;
}
:is(.article-body, .ns-table) table.tablepress thead th,
:is(.article-body, .ns-table) table.tablepress tbody td {
  white-space: nowrap;
}
@media (min-width: 900px) {
  :is(.article-body, .ns-table) table.tablepress thead th,
  :is(.article-body, .ns-table) table.tablepress tbody td {
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  /* Artist / song / other text: take leftover width, wrap on words */
  :is(.article-body, .ns-table) table.tablepress thead th.is-wrap,
  :is(.article-body, .ns-table) table.tablepress tbody td.is-wrap {
    min-width: 8rem;
    width: 30% !important;
    overflow-wrap: break-word;
    hyphens: manual;
  }
  /* Score headers may wrap so # / artiest / nummer keep room */
  :is(.article-body, .ns-table) table.tablepress thead th.is-compact {
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    width: 1% !important;
    max-width: 5.75rem;
  }
  :is(.article-body, .ns-table) table.tablepress tbody td.is-compact {
    white-space: nowrap;
    overflow-wrap: normal;
    hyphens: none;
    width: 1% !important;
  }
}
.top250-results table.tablepress thead th.top250-col-year,
.top250-results table.tablepress tbody td.top250-col-year,
.top250-results table.tablepress thead th.top250-col-artist,
.top250-results table.tablepress tbody td.top250-col-artist {
  width: calc(var(--top250-thumb-w) + 0.7rem) !important;
  min-width: calc(var(--top250-thumb-w) + 0.7rem);
  max-width: calc(var(--top250-thumb-w) + 0.7rem);
  white-space: nowrap;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  vertical-align: middle;
}
.top250-results table.tablepress thead th.top250-col-year,
.top250-results table.tablepress tbody td.top250-col-year {
  padding-left: var(--top250-year-pad-left);
  padding-right: var(--top250-year-pad-right);
}
.top250-results table.tablepress thead th.top250-col-artist,
.top250-results table.tablepress tbody td.top250-col-artist {
  position: sticky;
  left: var(--top250-sticky-inset);
  z-index: 3;
  padding-left: 0.15rem;
  padding-right: 0.55rem;
  background: var(--surface);
}
.top250-results .sf-table-scroll-viewport.is-artist-stuck table.tablepress thead th.top250-col-artist::before,
.top250-results .sf-table-scroll-viewport.is-artist-stuck table.tablepress tbody td.top250-col-artist::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-1 * var(--top250-sticky-inset));
  width: var(--top250-sticky-inset);
  background: inherit;
  pointer-events: none;
}
.top250-results table.tablepress thead th.top250-col-artist {
  z-index: 6;
  background: var(--accent);
}
.top250-results table.tablepress tbody tr.odd td.top250-col-artist {
  background: oklch(98.5% 0.006 280);
}
.top250-results table.tablepress tbody tr.even td.top250-col-artist {
  background: var(--surface);
}
.top250-results table.tablepress tbody tr:hover td.top250-col-artist {
  background: oklch(97% 0.025 350);
}
.top250-results table.tablepress tbody tr.is-top3 td.top250-col-artist {
  background: oklch(97.5% 0.03 350);
}
.top250-results table.tablepress thead th.top250-col-rank,
.top250-results table.tablepress tbody td.top250-col-rank,
.top250-results table.tablepress thead th.top250-col-pts,
.top250-results table.tablepress tbody td.top250-col-pts,
.top250-results table.tablepress thead th.top250-col-pts-detail,
.top250-results table.tablepress tbody td.top250-col-pts-detail {
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  white-space: nowrap;
}
/* Mobile: keep a fixed slot for the sort icon. Column width still follows the label, so longer headers than "12p" stay clear of the icon. */
@media (max-width: 900px) {
  .top250-results table.tablepress thead th.sorting:is(.top250-col-rank, .top250-col-pts, .top250-col-pts-detail),
  .top250-results table.tablepress thead th.sorting_asc:is(.top250-col-rank, .top250-col-pts, .top250-col-pts-detail),
  .top250-results table.tablepress thead th.sorting_desc:is(.top250-col-rank, .top250-col-pts, .top250-col-pts-detail) {
    width: auto !important;
    max-width: none;
    padding-left: 0.45rem;
    padding-right: 1.5rem;
    text-align: center;
  }
  .top250-results table.tablepress thead th.sorting:is(.top250-col-rank, .top250-col-pts, .top250-col-pts-detail)::after,
  .top250-results table.tablepress thead th.sorting_asc:is(.top250-col-rank, .top250-col-pts, .top250-col-pts-detail)::after,
  .top250-results table.tablepress thead th.sorting_desc:is(.top250-col-rank, .top250-col-pts, .top250-col-pts-detail)::after {
    right: 0.4rem;
  }
}

/* ══ Geschiedenis-overzicht ══ */
.history-overview-page {
  width: 100%;
}

.decade-nav-scrim {
  position: fixed;
  left: 0;
  right: 0;
  width: 100vw;
  max-width: 100%;
  top: var(--header-h, 64px);
  z-index: 89;
  height: 5.5rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: oklch(99% 0.002 95 / 0.78);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
body.admin-bar .decade-nav-scrim {
  top: calc(32px + var(--header-h, 64px));
}
@media screen and (max-width: 782px) {
  body.admin-bar .decade-nav-scrim {
    top: calc(46px + var(--header-h, 64px));
  }
}
.decade-nav-scrim.is-liveblog {
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  background: oklch(99% 0.002 95 / 0.7);
  mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 100%);
}
.decade-nav-scrim.is-active {
  opacity: 1;
  visibility: visible;
}

.decade-nav {
  --decade-nav-gap: 0.9rem;
  position: sticky;
  top: calc(var(--header-h, 64px) + var(--decade-nav-gap));
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: oklch(99% 0.002 95 / 0.92);
  backdrop-filter: blur(8px);
}
body.admin-bar .decade-nav {
  top: calc(32px + var(--header-h, 64px) + var(--decade-nav-gap));
}
@media screen and (max-width: 782px) {
  body.admin-bar .decade-nav {
    top: calc(46px + var(--header-h, 64px) + var(--decade-nav-gap));
  }
}

.decade-nav-label {
  flex-shrink: 0;
  padding: 0.35rem 0.15rem 0.35rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(62% 0.01 280);
  opacity: 0.85;
}

.decade-nav.is-compact .decade-nav-label {
  display: none;
}

.decade-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

@media (max-width: 880px) {
  .decade-nav-label {
    display: none;
  }
  .decade-nav {
    flex-wrap: nowrap;
    padding: 0.4rem;
    gap: 0;
    max-width: 100%;
  }
  .decade-nav-links {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 0.2rem;
  }
  .decade-nav-links::-webkit-scrollbar {
    display: none;
  }
  .decade-link {
    flex-shrink: 0;
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
}

.decade-link {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.decade-link:hover {
  background: oklch(96% 0.02 350);
  color: var(--accent);
}
.decade-link.is-active {
  background: var(--accent);
  color: var(--surface);
}

.decade-section {
  margin-top: 3.25rem;
  scroll-margin-top: calc(var(--header-h, 64px) + 5.25rem);
}
body.admin-bar .decade-section {
  scroll-margin-top: calc(var(--header-h, 64px) + 5.25rem + 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar .decade-section {
    scroll-margin-top: calc(var(--header-h, 64px) + 5.25rem + 46px);
  }
}
.decade-section:first-of-type { margin-top: 0; }
.decade-count { font-size: 0.8rem; color: var(--muted); flex-shrink: 0; }

.edition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
@media (min-width: 520px) { .edition-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .edition-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .edition-grid { grid-template-columns: repeat(4, 1fr); } }

.edition-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.edition-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px oklch(0% 0 0 / 0.12);
  border-color: transparent;
}

.edition-media {
  position: relative;
  display: block;
  aspect-ratio: 475 / 250;
  overflow: hidden;
  background: oklch(30% 0.1 330);
}
.edition-media .edition-logo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s;
}
.edition-card:hover .edition-media .edition-logo { transform: scale(1.05); }
.edition-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--gradient-overlay);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease;
}
.edition-card:hover .edition-media::after {
  opacity: 0;
}
.edition-media .ed-flag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 15px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 1px 3px oklch(0% 0 0 / 0.45);
  object-fit: cover;
}

.edition-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.9rem 1rem 1rem;
  gap: 0.15rem;
  min-width: 0;
}
.edition-host {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  transition: color 0.15s;
}
.edition-card:hover .edition-host { color: var(--accent); }
.edition-country { font-size: 0.82rem; color: var(--muted); }

.edition-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.9rem;
}
.edition-links a,
.edition-note {
  font-family: var(--font-body);
  font-size: 0.71rem;
  font-weight: 600;
  padding: 0.26rem 0.58rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.edition-links a {
  color: var(--accent);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.edition-links a:hover { background: var(--accent); color: var(--surface); border-color: transparent; }
.edition-note { color: var(--muted); background: oklch(97% 0.004 320); }

/* ══ Videozone ══ */
.videos-overview-page,
.candidates-overview-page {
  width: 100%;
}
.videos-overview-embed,
.candidates-overview-embed {
  width: 100%;
}
.videos-overview-embed .section-head {
  margin-bottom: 1.25rem;
}

.videos-grid {
  gap: 1.15rem;
}
@media (min-width: 520px) { .videos-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .videos-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .videos-grid { grid-template-columns: repeat(4, 1fr); gap: 1.15rem; } }

.video-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.video-card-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}
.video-card-link:hover,
.video-card-link:focus {
  color: inherit;
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px oklch(0% 0 0 / 0.12);
  border-color: transparent;
}

.video-card .card-media {
  aspect-ratio: auto;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  flex: 0 0 auto;
  border-radius: 0;
  box-shadow: none;
}
.video-card:hover .card-media {
  transform: none;
  box-shadow: none;
}

.video-card .youtube {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: oklch(12% 0.02 280);
  z-index: 1;
}
.video-card .youtube > img:not(.play-button),
.video-card .card-media > img:not(.play-button) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.video-card .youtube iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  z-index: 3;
}
.video-card:has(.youtube.is-playing) .card-overlay,
.video-card:has(.youtube.is-playing) .card-tag,
.video-card .youtube.is-playing img.play-button,
.video-card .youtube iframe ~ img.play-button,
.video-card .youtube.is-playing > img:not(.play-button),
.video-card .youtube iframe ~ img:not(.play-button) {
  opacity: 0;
  pointer-events: none;
}
.video-card .youtube.is-playing img.play-button,
.video-card .youtube iframe ~ img.play-button {
  display: none;
}

.video-card-play {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
  background: oklch(12% 0.02 280);
}
.video-card-play img:not(.play-button) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.video-card:hover .card-media .video-card-play img:not(.play-button),
.video-card:hover .card-media > img:not(.play-button) {
  transform: scale(1.04);
}
.video-card .card-tag {
  z-index: 3;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.video-card .card-tag img {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 2px;
}
.video-card .card-media img.play-button {
  position: absolute;
  inset: auto;
  width: 4.25rem;
  max-width: 22%;
  height: auto;
  object-fit: contain;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  opacity: 0.7;
  filter: drop-shadow(0 2px 8px oklch(0% 0 0 / 0.35));
  transition: opacity 0.2s ease;
}
.video-card:hover .card-media img.play-button {
  transform: translate(-50%, -50%);
  opacity: 0.95;
}
.video-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.9rem 1rem 1rem;
  gap: 0.15rem;
  min-width: 0;
}
.video-card .card-title {
  font-weight: 700;
}
.video-card .card-title a {
  color: inherit;
}
.video-card .card-song {
  margin-bottom: 0.15rem;
}

/* ══ User profile ══ */
.profile-page {
  width: 100%;
}
.profile-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}
.profile-hero__name {
  margin-top: 0.65rem;
  font-size: 1.05rem;
  color: var(--muted);
}
.profile-hero__avatar {
  flex-shrink: 0;
  width: 4.25rem;
  height: 4.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}
.profile-card {
  max-width: 46rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 8px 24px oklch(0% 0 0 / 0.06);
}
.profile-notice {
  margin: 0 0 1.15rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid oklch(88% 0.06 350);
  background: oklch(97% 0.02 350);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}
.profile-notice--ok {
  border-color: oklch(84% 0.06 150);
  background: oklch(97% 0.02 150);
  color: oklch(38% 0.08 150);
}
.profile-notice a {
  color: inherit;
  text-decoration: underline;
}
.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .profile-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-form-grid__full {
    grid-column: 1 / -1;
  }
}
.profile-form .escdb-field input[type="text"],
.profile-form .escdb-field input[type="email"],
.profile-form .escdb-field input[type="url"],
.profile-form .escdb-field textarea {
  width: 100%;
  padding: 0 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
}
.profile-form .escdb-field input[type="text"],
.profile-form .escdb-field input[type="email"],
.profile-form .escdb-field input[type="url"] {
  height: 2.7rem;
}
.profile-form .escdb-field textarea {
  min-height: 7rem;
  padding: 0.7rem 0.95rem;
  resize: vertical;
}
.profile-form .escdb-field input:hover,
.profile-form .escdb-field textarea:hover {
  border-color: oklch(84% 0.02 280);
}
.profile-form .escdb-field input:focus,
.profile-form .escdb-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.profile-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.35rem;
}
.profile-form-actions > .bda-card-action {
  flex: 0 0 auto;
}
.profile-form-actions .bda-card-action {
  cursor: pointer;
}
.profile-form-delete,
.profile-form-delete:visited {
  color: var(--accent);
}
.profile-form-delete:hover,
.profile-form-delete:focus-visible {
  background: oklch(97% 0.02 350);
  color: var(--accent);
  border-color: oklch(88% 0.06 350);
}
.profile-delete {
  position: relative;
}
.profile-delete > summary {
  list-style: none;
  cursor: pointer;
}
.profile-delete > summary::-webkit-details-marker {
  display: none;
}
.profile-delete[open] > .profile-form-delete {
  background: oklch(97% 0.02 350);
  border-color: oklch(88% 0.06 350);
}
.profile-delete__panel {
  margin-top: 0.85rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid oklch(88% 0.06 350);
  border-radius: 14px;
  background: oklch(98% 0.015 350);
}
.profile-delete__warn {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.4;
}
.profile-delete__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.profile-form-delete-confirm,
.profile-form-delete-confirm:visited {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.profile-form-delete-confirm:hover,
.profile-form-delete-confirm:focus-visible {
  background: oklch(48% 0.2 350);
  border-color: oklch(48% 0.2 350);
  color: #fff;
}

/* ══ ESCDB ══ */
.escdb-page {
  width: 100%;
}
.escdb-filters {
  margin-bottom: 2rem;
}
.escdb-filters-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0 0 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.escdb-filters-toggle .section-title {
  margin: 0;
}
.escdb-filters-chevron {
  display: none;
  flex-shrink: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.escdb-filters.is-open .escdb-filters-chevron {
  transform: rotate(-135deg);
  margin-top: 0.35rem;
}
.escdb-search {
  --escdb-field-w: 17rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 4px 20px oklch(0% 0 0 / 0.04);
}
.escdb-filters-panel {
  display: block;
}
.escdb-filters-panel-inner {
  min-height: 0;
}
@media (max-width: 900px) {
  /* Unify page + sticky strip + table to --surface (header is already surface).
     Using --bg here left a cream band under the white header / against the white table. */
  body:has(.escdb-page) {
    background: var(--surface);
  }
  .escdb-page {
    background: var(--surface);
  }
  .escdb-filters {
    position: sticky;
    top: var(--header-h, 64px);
    z-index: 90;
    width: 100vw;
    max-width: 100vw;
    margin: 0 0 1rem;
    margin-left: calc(50% - 50vw);
    padding: 0.35rem 1.25rem 0.5rem;
    background: var(--surface);
    /* Shadow only while expanded — see .is-open below */
    box-shadow: none;
    border: 0;
  }
  .escdb-filters.is-open {
    box-shadow: 0 8px 18px -10px oklch(0% 0 0 / 0.18);
  }
  .escdb-filters-toggle {
    cursor: pointer;
    margin: 0;
    padding: 0.7rem 0;
    border: 0;
    border-bottom: 0;
    background: transparent;
  }
  .escdb-filters.is-open .escdb-filters-toggle {
    margin-bottom: 0.55rem;
    padding-bottom: 0.55rem;
  }
  .escdb-filters-chevron {
    display: inline-block;
  }
  .escdb-filters-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      grid-template-rows 0.34s ease,
      opacity 0.28s ease,
      visibility 0s linear 0.28s;
  }
  .escdb-filters.is-open .escdb-filters-panel {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      grid-template-rows 0.34s ease,
      opacity 0.28s ease,
      visibility 0s linear 0s;
  }
  .escdb-filters-panel-inner {
    overflow: hidden;
    background: transparent;
  }
  .escdb-filters.is-open .escdb-filters-panel-inner {
    max-height: min(70vh, 28rem);
    max-height: min(70dvh, 28rem);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .escdb-filters .escdb-search {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0.35rem;
  }
  .escdb-filters .escdb-select__trigger,
  .escdb-filters .escdb-field input[type="search"] {
    background: var(--bg);
  }
  /* ≥16px prevents iOS Safari zooming in on focus */
  .escdb-filters .escdb-field input[type="search"] {
    font-size: 16px;
  }
}
body.admin-bar .escdb-filters {
  top: calc(32px + var(--header-h, 64px));
}
@media screen and (max-width: 782px) {
  body.admin-bar .escdb-filters {
    top: calc(46px + var(--header-h, 64px));
  }
}
@media (min-width: 901px) {
  .escdb-filters-toggle {
    pointer-events: none;
    cursor: default;
  }
  .escdb-filters-chevron {
    display: none;
  }
}
.escdb-field {
  flex: 0 0 var(--escdb-field-w);
  width: var(--escdb-field-w);
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}
.escdb-field--grow {
  flex: 1 1 var(--escdb-field-w);
  width: var(--escdb-field-w);
  min-width: min(100%, var(--escdb-field-w));
}
.escdb-field--reveal {
  display: none;
}
@media (max-width: 480px) {
  .escdb-search {
    --escdb-field-w: 100%;
  }
  .escdb-field,
  .escdb-field--grow {
    flex: 1 1 100%;
    width: 100%;
  }
}
.escdb-field label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.escdb-select {
  position: relative;
  width: var(--escdb-field-w);
  max-width: 100%;
  min-width: 0;
}
.escdb-field--grow .escdb-select {
  width: 100%;
}
.escdb-select__native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.escdb-select__trigger,
.escdb-field input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 2.7rem;
  padding: 0 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
}
.escdb-select__trigger {
  display: flex;
  align-items: center;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
  padding-right: 2.2rem;
  cursor: pointer;
}
.escdb-select__trigger-label {
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.escdb-select__trigger:hover,
.escdb-field input[type="search"]:hover {
  border-color: oklch(84% 0.02 280);
}
.escdb-select__trigger:focus,
.escdb-select.is-open .escdb-select__trigger,
.escdb-field input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(55% 0.25 350 / 0.14);
}
.escdb-select__list {
  position: absolute;
  z-index: 50;
  top: calc(100% + 0.3rem);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  max-height: 16rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 28px oklch(0% 0 0 / 0.12);
}
.escdb-select__list[hidden] {
  display: none;
}
.escdb-select__option {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.escdb-select__option:hover,
.escdb-select__option:focus {
  outline: none;
  background: oklch(97% 0.025 350);
}
.escdb-select__option.is-selected {
  background: oklch(95% 0.04 350);
  color: var(--accent);
  font-weight: 600;
}
.escdb-search-inputwrap {
  position: relative;
  width: 100%;
  min-width: 0;
}
.escdb-search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.escdb-field input[type="search"] {
  padding-left: 2.35rem;
}
.escdb-results {
  margin-top: 0.5rem;
}
.escdb-page .title-underline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1;
  color: var(--fg);
  margin: 0 0 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.escdb-page .title-underline span {
  background: none;
}

/* ── Contacts / team ── */
.contacts-page {
  width: 100%;
}
.contacts-intro {
  max-width: 46rem;
  margin: 0 0 2.25rem;
}
.contacts-intro > * + * {
  margin-top: 1.1rem;
}
.contacts-intro p,
.contacts-intro li {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--fg);
}
.contacts-intro a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.contacts-intro a:hover,
.contacts-intro a:focus-visible {
  text-decoration: underline;
}
.contacts-intro ul,
.contacts-intro ol {
  padding-left: 1.25rem;
}
.contacts-intro ul { list-style: disc; }
.contacts-intro ol { list-style: decimal; }
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .contacts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .contacts-grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
}
.contact-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 4px 20px oklch(0% 0 0 / 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px oklch(0% 0 0 / 0.12);
  border-color: transparent;
}
.contact-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  background: oklch(94% 0.006 280);
}
.contact-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s;
}
.contact-card:hover .contact-card-media img {
  transform: scale(1.04);
}
.contact-card:hover .contact-card-media .card-overlay {
  opacity: 0;
}
.contact-card-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: #fff;
  background: var(--gradient-brand);
  z-index: 1;
}
.contact-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem 1.15rem 1.25rem;
  min-width: 0;
}
.contact-card-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.contact-card-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  margin: 0;
}
.contact-card-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}
.contact-card-social .share-btn {
  width: 32px;
  height: 32px;
}
.contact-card-social .share-btn svg {
  width: 14px;
  height: 14px;
}
.contact-card-favs {
  margin-top: 0.45rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.contact-card-favs-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}
.contact-card-favs ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}
.contact-card-favs li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
}
.contact-card-fav-icon {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.contact-card-fav-icon svg,
.contact-card-fav-icon img {
  width: 15px;
  height: 15px;
  display: block;
}
.contact-card-fav-icon svg {
  fill: currentColor;
}
.contact-card-fav-icon svg[fill="none"] {
  fill: none;
  stroke: currentColor;
}
.contact-card-fav-text {
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--fg);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.contact-card-fav-flag {
  flex: 0 0 auto;
  width: 16px !important;
  height: 11px !important;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  margin-top: 0.28em;
}
.contact-card-fav-text a,
.contact-card-fav-text > span {
  min-width: 0;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
}
.contact-card-fav-text a:hover,
.contact-card-fav-text a:focus-visible {
  color: var(--accent);
}

/* ── You're A Vision / Barbara Dex voting ── */
.bda-vote-intro p + p { margin-top: 0.75rem; }
.bda-vote-page .bda-vote-picked {
  max-width: none;
  margin: 0 0 2.5rem;
}
.bda-vote-hero .yava-title {
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
}
.bda-vote-hero .bda-card-actions {
  margin-top: 1.35rem;
  padding-top: 0;
}
.bda-vote-hero .yava-hero__photo-frame img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}
.video-card.bda-card .card-media {
  aspect-ratio: auto;
  padding-bottom: 62.5%;
}
.video-card.bda-card .card-tag {
  z-index: 3;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.video-card.bda-card .card-tag img {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 2px;
}
.video-card.bda-card .card-title a {
  color: inherit;
}
.video-card.bda-card.is-voted {
  border-color: var(--accent);
  box-shadow: 0 10px 28px oklch(55% 0.25 350 / 0.14);
}
.video-card.bda-card.is-voted .card-title {
  color: var(--accent);
}
.bda-vote-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: oklch(99% 0 0);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bda-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
}
.bda-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.bda-card-action__icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}
.bda-card-action:hover,
.bda-card-action:focus-visible {
  background: var(--accent);
  color: var(--surface);
  border-color: transparent;
}
.bda-card-action--vote,
.bda-card-action--vote:visited {
  background-color: var(--accent);
  background-image: var(--gradient-brand);
  border: 0;
  color: oklch(99% 0 0);
}
.bda-card-action.bda-card-action--vote:hover,
.bda-card-action.bda-card-action--vote:focus-visible {
  background-color: var(--accent);
  background-image: var(--gradient-brand);
  border: 0;
  color: oklch(99% 0 0);
  filter: brightness(1.06);
}

:is(.esa-vote-page, .topvote-page) .esa-vote-tray {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.4rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 8px 24px oklch(0% 0 0 / 0.06);
}
.esa-vote-tray-label,
.esa-vote-thanks {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
:is(.esa-vote-page, .topvote-page) .topvote-select-box {
  position: relative;
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  align-items: start;
}
:is(.esa-vote-page, .topvote-page) .topvote-select-box > .esa-vote-brand {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10%;
  margin: 0;
  pointer-events: none;
  line-height: 0;
}
:is(.esa-vote-page, .topvote-page) .topvote-select-box > .esa-vote-brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72%;
  object-fit: contain;
  opacity: 0.1;
  user-select: none;
}
:is(.esa-vote-page, .topvote-page) .topvote-select-box > :not(.esa-vote-brand) {
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  :is(.esa-vote-page, .topvote-page) .topvote-select-box {
    grid-template-columns: 4.35rem minmax(0, 1fr);
    gap: 0.35rem 0.55rem;
  }
}
:is(.esa-vote-page, .topvote-page) .topvote-select-box-pointsbar,
:is(.esa-vote-page, .topvote-page) .topvote-select-box-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}
:is(.esa-vote-page, .topvote-page) .topvote-select-box-pointsbar li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  box-sizing: border-box;
  min-height: 2.45rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
:is(.esa-vote-page, .topvote-page) .topvote-select-box-pointsbar li p {
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}
:is(.esa-vote-page, .topvote-page) .voteselectheart {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
  flex-shrink: 0;
}
.esa-vote-tray-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: -0.45rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}
.esa-vote-tray-hint .topvote-select-box-list-item-drag {
  width: 0.8rem;
  height: 1.05rem;
  flex-shrink: 0;
  fill: currentColor;
}
:is(.esa-vote-page, .topvote-page) .topvote-select-box-list-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 12px;
  background: oklch(96% 0.025 350 / 0.72);
  border: 1px solid oklch(90% 0.03 350 / 0.65);
  cursor: grab;
}
:is(.esa-vote-page, .topvote-page) .topvote-select-box-list-item:active,
:is(.esa-vote-page, .topvote-page) .topvote-select-box-list-item.ui-sortable-helper {
  cursor: grabbing;
}
:is(.esa-vote-page, .topvote-page) .topvote-select-box-list-item-drag {
  width: 0.85rem;
  height: 1.15rem;
  flex-shrink: 0;
  fill: currentColor;
  color: var(--muted);
}
:is(.esa-vote-page, .topvote-page) .topvote-select-box-list-item:hover .topvote-select-box-list-item-drag {
  color: var(--accent);
}
:is(.esa-vote-page, .topvote-page) .voteflag {
  width: 1.2rem;
  height: auto;
  border-radius: 2px;
  flex-shrink: 0;
}
:is(.esa-vote-page, .topvote-page) .topvote-select-box-list-item-content {
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}
@media (max-width: 900px) {
  :is(.esa-vote-page, .topvote-page) .topvote-select-box-list-item-content {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  :is(.esa-vote-page, .topvote-page) .topvote-select-box-list-item {
    align-items: flex-start;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }
  :is(.esa-vote-page, .topvote-page) .topvote-select-box-list-item-drag,
  :is(.esa-vote-page, .topvote-page) .voteflag {
    margin-top: 0.15rem;
  }
  :is(.esa-vote-page, .topvote-page) .topvote-select-box-list-item-delete {
    margin-top: 0.05rem;
  }
}
:is(.esa-vote-page, .topvote-page) .topvote-select-box-list-item-delete {
  margin-left: auto;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--muted);
}
:is(.esa-vote-page, .topvote-page) .topvote-select-box-list-item-delete:hover {
  color: var(--accent);
}
:is(.esa-vote-page, .topvote-page) .topvote-select-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
:is(.esa-vote-page, .topvote-page) #button-top-votenow {
  display: none;
}
:is(.esa-vote-page, .topvote-page) .bda-card.is-picked {
  display: none;
}
:is(.esa-vote-page, .topvote-page) .bda-card-action.fb-share i,
:is(.esa-vote-page, .topvote-page) .bda-card-action.topvote-download i {
  margin-right: 0.3rem;
}
:is(.esa-vote-page, .topvote-page) .topvote-download.is-sharing {
  opacity: 0.75;
  pointer-events: none;
}
:is(.esa-vote-page, .topvote-page) .topvote-share.is-share-hint {
  font-size: 0.82em;
  line-height: 1.25;
  white-space: normal;
  text-align: left;
}

.topvote-page:not(.is-voting) .escdb-votecol,
.topvote-page:not(.is-voting) th.escdb-voting {
  display: none;
}

/* ── Year sorter (pick-one-of-two) ── */
.topvote-page.is-yearsort #yearsort {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}
.topvote-page.is-yearsort .yearsort-tray {
  display: none !important;
}
.topvote-page.is-yearsort.is-yearsort-done .yearsort-tray {
  display: block !important;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
}
.topvote-page.is-yearsort .yearsort-tray__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}
.topvote-page.is-yearsort .yearsort-tray__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  min-width: 0;
}
.topvote-page.is-yearsort .yearsort-tray__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.topvote-page.is-yearsort .yearsort-tray .sf-share-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.topvote-page.is-yearsort .yearsort-tray .sf-share-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: oklch(96% 0.012 330);
  border: 1px solid var(--border);
  color: var(--fg);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.topvote-page.is-yearsort .yearsort-tray .sf-share-buttons a:hover,
.topvote-page.is-yearsort .yearsort-tray .sf-share-buttons a:focus-visible {
  background: var(--accent);
  border-color: transparent;
  color: oklch(99% 0 0);
  outline: none;
}
.topvote-page.is-yearsort .yearsort-tray .sf-share-buttons .sm-icon,
.topvote-page.is-yearsort .yearsort-tray .sf-share-buttons .sm-icon i {
  font-size: 1.15rem;
  line-height: 1;
}
.topvote-page.is-yearsort .yearsort-tray__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  vertical-align: middle;
}
.topvote-page.is-yearsort .yearsort-tray__download[hidden] {
  display: none !important;
}
.sf-copy-result:disabled {
  opacity: 0.45;
  pointer-events: none;
}
.topvote-page.is-yearsort .yearsort-tray__download i {
  font-size: 0.9em;
  line-height: 1;
}
.topvote-page.is-yearsort .yearsort-tray__cta {
  flex: 0 0 auto;
  margin: 0;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 640px) {
  .topvote-page.is-yearsort .yearsort-tray__bar {
    flex-direction: column;
    align-items: stretch;
  }
  .topvote-page.is-yearsort .yearsort-tray__cta,
  .topvote-page.is-yearsort .yearsort-tray__download,
  .topvote-page.is-yearsort .sf-copy-result {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Yearsort finished ranking */
.topvote-page.is-yearsort .yearsort-results__title,
.topvote-results-title {
  margin: 0.35rem 0 1rem;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.3;
}
.topvote-page.is-yearsort .yearsort-results__title[hidden] {
  display: none !important;
}
.topvote-page.is-yearsort .yearsort-results[hidden] {
  display: none !important;
}
.topvote-page.is-yearsort.is-yearsort-done .yearsort-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 1.1rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.topvote-page.is-yearsort .yearsort-results__item {
  display: grid;
  grid-template-columns: 2.6rem 5.5rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.topvote-page.is-yearsort .yearsort-results__rank {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
}
.topvote-page.is-yearsort .yearsort-results__heart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.95;
}
.topvote-page.is-yearsort .yearsort-results__num {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1;
  color: oklch(99% 0 0);
  text-shadow: 0 1px 1px oklch(0% 0 0 / 0.35);
}
.topvote-page.is-yearsort .yearsort-results__media {
  display: block;
  width: 5.5rem;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: oklch(94% 0.01 330);
}
.topvote-page.is-yearsort .yearsort-results__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.topvote-page.is-yearsort .yearsort-results__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.topvote-page.is-yearsort .yearsort-results__artist,
.topvote-page.is-yearsort .yearsort-results__song {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.topvote-page.is-yearsort .yearsort-results__artist {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
}
.topvote-page.is-yearsort .yearsort-results__artist span,
.topvote-page.is-yearsort .yearsort-results__song {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topvote-page.is-yearsort .yearsort-results__song {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.topvote-page.is-yearsort .yearsort-results__flag {
  flex: 0 0 auto;
  width: 16px;
  height: 11px;
  border-radius: 2px;
  object-fit: cover;
}
.topvote-page.is-yearsort .yearsort-results__artist:hover,
.topvote-page.is-yearsort .yearsort-results__song:hover {
  color: var(--accent);
}
@media (max-width: 800px) {
  .topvote-page.is-yearsort.is-yearsort-done .yearsort-results {
    grid-template-columns: 1fr;
  }
  .topvote-page.is-yearsort .yearsort-results__item {
    grid-template-columns: 2.4rem 4.75rem minmax(0, 1fr);
  }
  .topvote-page.is-yearsort .yearsort-results__media {
    width: 4.75rem;
  }
}
.topvote-page.is-yearsort .yearsort-lead {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}
.topvote-page.is-yearsort .yearsort-shell {
  width: 100%;
  margin: 0 0 2rem;
}
.topvote-page.is-yearsort .yearsort-progress-row {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 1.35rem;
}
.topvote-page.is-yearsort .yearsort-progress {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 1.75rem;
  margin: 0;
  border-radius: 999px;
  background: oklch(94% 0.012 330);
  border: 1px solid oklch(88% 0.02 330);
  overflow: hidden;
  box-shadow: inset 0 1px 2px oklch(0% 0 0 / 0.06);
}
.topvote-page.is-yearsort .yearsort-restart {
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  white-space: nowrap;
}
.topvote-page.is-yearsort .yearsort-restart[hidden] {
  display: none !important;
}
.topvote-page.is-yearsort .yearsort-restart i {
  font-size: 0.85em;
  line-height: 1;
}
.topvote-page.is-yearsort .yearsort-progress__fill {
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background-image: var(--gradient-brand);
  background-color: var(--accent);
  transition: width 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0.65rem;
  box-sizing: border-box;
}
.topvote-page.is-yearsort .yearsort-progress__fill span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: oklch(99% 0 0);
  text-shadow: 0 1px 1px oklch(0% 0 0 / 0.25);
  white-space: nowrap;
}
.topvote-page.is-yearsort .yearsort-progress__fill.is-empty span {
  color: var(--fg);
  text-shadow: none;
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}
.topvote-page.is-yearsort .yearsort-duel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  width: 100%;
  align-items: stretch;
}
.topvote-page.is-yearsort .yearsort-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.topvote-page.is-yearsort .yearsort-pick {
  min-width: 0;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px oklch(40% 0.04 330 / 0.1);
}
.topvote-page.is-yearsort .yearsort-pick .escdb-artist-card,
.topvote-page.is-yearsort .yearsort-pick .top250-media-card {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}
.topvote-page.is-yearsort .yearsort-pick .top250-media-thumb {
  position: relative;
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}
.topvote-page.is-yearsort .yearsort-pick .top250-media-thumb > img {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center;
}
.topvote-page.is-yearsort .yearsort-pick .top250-media-overlay {
  background: linear-gradient(180deg, oklch(0% 0 0 / 0) 38%, oklch(0% 0 0 / 0.55) 100%);
}
.topvote-page.is-yearsort .yearsort-pick .top250-media-caption {
  padding: 0.65rem 0.75rem 0.8rem;
  gap: 0.28rem;
}
.topvote-page.is-yearsort .yearsort-pick .top250-media-title {
  font-size: 0.92rem;
  padding: 0.22rem 0.55rem;
  max-width: calc(100% - 0.25rem);
}
.topvote-page.is-yearsort .yearsort-pick .top250-media-meta {
  font-size: 0.82rem;
  padding: 0.18rem 0.55rem;
  max-width: calc(100% - 0.25rem);
}
.topvote-page.is-yearsort .yearsort-pick .top250-flag {
  width: 16px;
  height: 11px;
  border-radius: 2px;
  object-fit: cover;
}
.topvote-page.is-yearsort .yearsort-pick .escdb-countrylink {
  display: none !important;
}
.topvote-page.is-yearsort .yearsort-pick .top250-media-video,
.topvote-page.is-yearsort .yearsort-pick a.video-popup {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  cursor: pointer;
}
.topvote-page.is-yearsort .yearsort-pick .top250-entry-play {
  z-index: 5;
  pointer-events: none;
}
.topvote-page.is-yearsort .yearsort-vote {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  font-size: 1rem;
  margin-top: auto;
}
.topvote-page.is-yearsort .yearsort-vote i {
  margin: 0;
  line-height: 1;
  font-size: 0.95em;
}
@media (max-width: 900px) {
  .topvote-page.is-yearsort .yearsort-pick .top250-media-thumb {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto !important;
    height: auto !important;
    overflow: visible;
  }
  .topvote-page.is-yearsort .yearsort-pick .top250-media-thumb > img {
    flex: 0 0 auto;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
  }
  .topvote-page.is-yearsort .yearsort-pick .top250-media-overlay,
  .topvote-page.is-yearsort .yearsort-pick .top250-media-video,
  .topvote-page.is-yearsort .yearsort-pick a.video-popup,
  .topvote-page.is-yearsort .yearsort-pick .top250-entry-play {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .topvote-page.is-yearsort .yearsort-pick .top250-media-caption {
    position: static;
  }
  .topvote-page.is-yearsort .yearsort-pick .top250-media-title,
  .topvote-page.is-yearsort .yearsort-pick .top250-media-meta {
    max-width: 100%;
    white-space: normal;
  }
  .topvote-page.is-yearsort .yearsort-pick .top250-media-title span {
    white-space: normal;
  }
}
@media (max-width: 720px) {
  .topvote-page.is-yearsort .yearsort-duel {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .topvote-page.is-yearsort .yearsort-side {
    gap: 0.5rem;
  }
  .topvote-page.is-yearsort .yearsort-pick {
    border-radius: 14px;
  }
  .topvote-page.is-yearsort .yearsort-pick .top250-media-caption {
    padding: 0.45rem 0.5rem 0.55rem;
    gap: 0.18rem;
  }
  .topvote-page.is-yearsort .yearsort-pick .top250-media-title {
    font-size: 0.78rem;
    padding: 0.15rem 0.4rem;
  }
  .topvote-page.is-yearsort .yearsort-pick .top250-media-meta {
    font-size: 0.7rem;
    padding: 0.12rem 0.4rem;
  }
  .topvote-page.is-yearsort .yearsort-pick .top250-flag {
    width: 13px;
    height: 9px;
  }
  .topvote-page.is-yearsort .yearsort-vote {
    min-height: 2.35rem;
    font-size: 0.88rem;
    padding: 0.35rem 0.55rem;
  }
  .topvote-page.is-yearsort .yearsort-progress-row {
    flex-wrap: wrap;
  }
  .topvote-page.is-yearsort .yearsort-restart {
    width: 100%;
    justify-content: center;
  }
}

.topvote-page tr.escdb-results-data-row.is-picked {
  display: none;
}
.topvote-page .top250votebtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background-color: var(--accent);
  background-image: var(--gradient-brand);
  border: 0;
  color: oklch(99% 0 0);
  cursor: pointer;
}
.topvote-page .top250votebtn:hover,
.topvote-page .top250votebtn:focus-visible {
  color: oklch(99% 0 0);
  filter: brightness(1.06);
}
.topvote-page .top250votebtn i {
  font-size: 0.85rem;
  line-height: 1;
}
.topvote-page .title-underline {
  margin: 1.75rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  border: 0;
}
.topvote-page #results {
  margin-top: 0.5rem;
}

#overlay-main:has(#popup-topvote-confirm) .overlay-wrap {
  justify-content: center;
  padding: 1.25rem 0;
}
#overlay-main #overlay-popups #popup-topvote-confirm {
  width: min(560px, 100%);
  margin: 0 auto;
  overflow: hidden;
  padding-top: 0.85rem;
}
#overlay-main #overlay-popups #popup-topvote-confirm::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient-brand);
}
#overlay-main #overlay-popups #popup-topvote-confirm .popup-topvote-brand {
  display: flex;
  align-items: center;
  height: 2.25rem;
  margin: 0 0 0.95rem;
  padding-right: 2.75rem;
}
#overlay-main #overlay-popups #popup-topvote-confirm .popup-topvote-brand img {
  display: block;
  width: min(340px, 100%);
  height: auto;
}
#overlay-main #overlay-popups #popup-topvote-confirm > h3 {
  margin: 0 0 0.35rem;
}
#overlay-main #overlay-popups #popup-topvote-confirm .popup-topvote-lead,
#overlay-main #overlay-popups #popup-topvote-confirm .popup-content > p:not(.popup-error):not(.popup-controls) {
  margin: 0 0 0.85rem;
  color: var(--muted);
}
#overlay-main #overlay-popups #popup-topvote-confirm .topvote-select-box {
  display: grid;
  grid-template-columns: 3.85rem minmax(0, 1fr);
  grid-template-rows: repeat(10, auto);
  grid-auto-flow: column;
  column-gap: 0.7rem;
  row-gap: 0.3rem;
  align-items: stretch;
}
#overlay-main #overlay-popups #popup-topvote-confirm .esa-vote-brand {
  display: none !important;
}
#overlay-main #overlay-popups #popup-topvote-confirm .topvote-select-box-pointsbar,
#overlay-main #overlay-popups #popup-topvote-confirm .topvote-select-box-list {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}
#overlay-main #overlay-popups #popup-topvote-confirm .topvote-select-box-pointsbar li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.4rem;
  height: auto;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
#overlay-main #overlay-popups #popup-topvote-confirm .topvote-select-box-pointsbar p {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}
#overlay-main #overlay-popups #popup-topvote-confirm .voteselectheart {
  width: 1.15rem;
  height: auto;
  flex-shrink: 0;
}
#overlay-main #overlay-popups #popup-topvote-confirm .topvote-select-box-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.4rem;
  height: 100%;
  box-sizing: border-box;
  padding: 0.32rem 0.7rem 0.32rem 0.55rem;
  border-radius: 12px;
  background: oklch(96% 0.025 350 / 0.72);
  border: 1px solid oklch(90% 0.03 350 / 0.65);
  cursor: default;
}
#overlay-main #overlay-popups #popup-topvote-confirm .topvote-select-box-list-item-drag,
#overlay-main #overlay-popups #popup-topvote-confirm .topvote-select-box-list-item-delete {
  display: none;
}
#overlay-main #overlay-popups #popup-topvote-confirm .voteflag {
  width: 1.2rem;
  height: auto;
  border-radius: 2px;
  flex-shrink: 0;
}
#overlay-main #overlay-popups #popup-topvote-confirm .topvote-select-box-list-item-content {
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}
#overlay-main #overlay-popups #popup-topvote-confirm .popup-controls {
  justify-content: flex-end;
  margin-top: 1.15rem;
}
#overlay-main #overlay-popups #popup-topvote-confirm .popup-controls .popup-submit {
  border: 0;
  border-radius: 999px;
  background-color: var(--accent);
  background-image: var(--gradient-brand);
  color: oklch(99% 0 0);
}
#overlay-main #overlay-popups #popup-topvote-confirm .popup-controls .popup-submit:hover,
#overlay-main #overlay-popups #popup-topvote-confirm .popup-controls .popup-submit:focus-visible {
  opacity: 1;
  filter: brightness(1.06);
  outline: none;
}

/* ── 404 ── */
.page-404 .yava {
  max-width: none;
  margin: 0;
}
.page-404-hero .yava-artist {
  max-width: 32rem;
}
.page-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.page-404-hero .yava-hero__photo-frame {
  aspect-ratio: 4 / 5;
  background: oklch(94% 0.006 280);
}
.page-404-hero .yava-hero__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-404-latest {
  margin-top: 4rem;
}

/* ── BDA voted popup ── */
#overlay-main #overlay-popups #popup-bda-voted {
  width: min(640px, 100%);
  overflow: hidden;
}
#overlay-main #overlay-popups #popup-bda-voted::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient-brand);
}
#overlay-main #overlay-popups #popup-bda-voted .popup-bda-lead {
  margin: 0 0 0.55rem;
  color: var(--muted);
}
#overlay-main #overlay-popups #popup-bda-voted .popup-bda-lead + .popup-bda-pick {
  margin-top: 0.7rem;
}
.bda-vote-closed-note {
  margin-top: 0.75rem;
  max-width: 32rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}
#overlay-main #overlay-popups #popup-bda-voted .popup-bda-pick {
  display: grid;
  gap: 1.1rem;
  align-items: center;
}
@media (min-width: 560px) {
  #overlay-main #overlay-popups #popup-bda-voted .popup-bda-pick {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 1.35rem;
  }
}
#overlay-main #overlay-popups #popup-bda-voted .popup-bda-photo {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: oklch(94% 0.006 280);
  box-shadow: 0 8px 28px oklch(0% 0 0 / 0.1);
}
#overlay-main #overlay-popups #popup-bda-voted .popup-bda-voted-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
#overlay-main #overlay-popups #popup-bda-voted .popup-bda-copy {
  min-width: 0;
}
#overlay-main #overlay-popups #popup-bda-voted .result-badge {
  margin-bottom: 0.15rem;
}
#overlay-main #overlay-popups #popup-bda-voted .popup-bda-voted-entrytitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.2vw, 1.7rem);
  line-height: 1.1;
  color: var(--fg);
  margin: 0.7rem 0 0;
}
#overlay-main #overlay-popups #popup-bda-voted .popup-bda-artist {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.55rem 0 0;
  font-size: 0.98rem;
  color: var(--muted);
}
#overlay-main #overlay-popups #popup-bda-voted .popup-bda-artist .yava-flag {
  flex-shrink: 0;
  width: auto;
  height: 0.85em;
  border-radius: 2px;
  object-fit: cover;
}
#overlay-main #overlay-popups #popup-bda-voted .popup-controls {
  justify-content: flex-end;
}
#overlay-main #overlay-popups #popup-bda-voted .popup-controls button {
  border-radius: 999px;
  background: var(--gradient-brand);
  color: oklch(99% 0 0);
}

/* ── DmiMag liveblog ── */
.dmilb.liveblog {
  border-top: 1px solid var(--border);
  margin: 2.25rem 0 0;
  padding-top: 2rem;
  max-width: 100%;
  overflow: visible;
}
.dmilb.liveblog .dmilb-preloader {
  margin: 0 auto 1.5rem;
}
.dmilb.liveblog .dmilb-preloader svg path {
  fill: var(--accent);
}

.dmilb.liveblog .sf-table-scroll {
  --dmilb-sticky-gap: 0.75rem;
  position: sticky;
  top: calc(var(--header-h, 64px) + var(--dmilb-sticky-gap));
  z-index: 90;
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
body.admin-bar .dmilb.liveblog .sf-table-scroll {
  top: calc(32px + var(--header-h, 64px) + var(--dmilb-sticky-gap));
}
@media screen and (max-width: 782px) {
  body.admin-bar .dmilb.liveblog .sf-table-scroll {
    top: calc(46px + var(--header-h, 64px) + var(--dmilb-sticky-gap));
  }
}
.dmilb.liveblog .sf-table-scroll-viewport {
  padding: 0.8rem 0.95rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: oklch(99% 0.002 95 / 0.88);
  box-shadow: 0 10px 36px oklch(0% 0 0 / 0.1);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}
.dmilb.liveblog .sf-table-scroll.is-stuck .sf-table-scroll-viewport {
  box-shadow: 0 16px 48px oklch(0% 0 0 / 0.14);
}
.dmilb.liveblog .sf-table-scroll-nav {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  min-height: 0;
  margin: 0;
  pointer-events: none;
}
.dmilb.liveblog .sf-table-scroll-nav.is-active {
  display: block;
}
.dmilb.liveblog .sf-table-scroll-btn {
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
}
.dmilb.liveblog .sf-table-scroll-btn--prev {
  left: -1.15rem;
}
.dmilb.liveblog .sf-table-scroll-btn--next {
  right: -1.15rem;
}
.dmilb.liveblog .sf-table-scroll-btn.is-hint.sf-table-scroll-btn--next {
  animation: sf-dmilb-nudge-right 0.85s ease-in-out 3;
}
.dmilb.liveblog .sf-table-scroll-btn.is-hint.sf-table-scroll-btn--prev {
  animation: sf-dmilb-nudge-left 0.85s ease-in-out 3;
}
@keyframes sf-dmilb-nudge-right {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(-50%) translateX(7px); }
}
@keyframes sf-dmilb-nudge-left {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(-50%) translateX(-7px); }
}

.dmilb.liveblog .dmilb-contents {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.55rem;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.15rem 0 0.35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.dmilb.liveblog:not(:has(.sf-table-scroll)) .dmilb-contents {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 4px 20px oklch(0% 0 0 / 0.04);
}
.dmilb.liveblog .dmilb-contents > .dmilb-new-day:first-child {
  margin-top: 0;
}
.dmilb.liveblog .dmilb-contents .dmilb-new-day {
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  padding: 0 0.55rem 0 0.15rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.dmilb.liveblog .dmilb-contents-title {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 0 0 15.25rem;
  width: 15.25rem;
  max-width: 15.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}
.dmilb.liveblog .dmilb-contents-title:hover,
.dmilb.liveblog .dmilb-contents-title:focus-within {
  background: oklch(97% 0.01 350);
  border-color: transparent;
}
.dmilb.liveblog .dmilb-contents-title.is-current {
  background: oklch(97% 0.018 350);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.dmilb.liveblog .dmilb-contents-date {
  grid-area: 1 / 1;
  z-index: 1;
  align-self: start;
  max-width: none;
  padding: 0.7rem 0.85rem 0;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
  pointer-events: none;
}
.article-body .dmilb-contents-title > a,
.dmilb.liveblog .dmilb-contents-title > a {
  min-width: 0;
  max-width: 100%;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--fg);
  text-decoration: none;
  background: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dmilb.liveblog .dmilb-contents-title > a {
  grid-area: 1 / 1;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 100%;
  padding: 2.05rem 0.85rem 0.75rem;
  cursor: pointer;
}
.article-body .dmilb-contents-title > a:hover,
.article-body .dmilb-contents-title > a:focus-visible,
.dmilb.liveblog .dmilb-contents-title:hover > a,
.dmilb.liveblog .dmilb-contents-title:focus-within > a,
.dmilb.liveblog .dmilb-contents-title > a:hover,
.dmilb.liveblog .dmilb-contents-title > a:focus-visible {
  color: var(--accent);
  background: none;
}

.dmilb.liveblog .dmilb-items {
  position: relative;
  margin-top: 0.35rem;
  max-width: 100%;
  padding-left: 0;
}
.dmilb.liveblog .dmilb-items::before {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: var(--dmilb-rail-top, 0.7rem);
  height: var(--dmilb-rail-height, calc(100% - 1.05rem));
  width: 2px;
  background: var(--border);
  z-index: 0;
  border-radius: 2px;
}
.dmilb.liveblog .dmilb-progress {
  position: absolute;
  left: 0.42rem;
  top: var(--dmilb-rail-top, 0.7rem);
  width: 2px;
  height: var(--dmilb-progress, 0px);
  background: var(--accent);
  z-index: 1;
  border-radius: 2px;
  pointer-events: none;
}
.dmilb.liveblog .dmilb-item {
  position: relative;
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  gap: 0;
  align-items: start;
  border: 0;
  padding: 0 0 1.65rem;
  z-index: 1;
  scroll-margin-top: calc(var(--header-h, 64px) + 7.5rem);
}
body.admin-bar .dmilb.liveblog .dmilb-item {
  scroll-margin-top: calc(var(--header-h, 64px) + 7.5rem + 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar .dmilb.liveblog .dmilb-item {
    scroll-margin-top: calc(var(--header-h, 64px) + 7.5rem + 46px);
  }
}
.dmilb.liveblog .dmilb-item:last-child {
  padding-bottom: 0;
}
.dmilb.liveblog .dmilb-item-date {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  flex: none;
  max-width: none;
  width: auto;
  padding: 0.08rem 0.55rem 0 1.35rem;
}
.dmilb.liveblog .dmilb-item-date::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--accent);
  z-index: 2;
}
.dmilb.liveblog .dmilb-item.is-current .dmilb-item-date::before,
.dmilb.liveblog .dmilb-item.is-passed .dmilb-item-date::before {
  background: var(--accent);
}
.dmilb.liveblog .dmilb-time {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--fg);
  margin: 0;
}
.dmilb.liveblog .dmilb-item.is-current .dmilb-time {
  color: var(--accent);
}
.dmilb.liveblog .dmilb-day,
.dmilb.liveblog .dmilb-year {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--muted);
}
.dmilb.liveblog .dmilb-item-content {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  margin-left: 0;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow:
    0 12px 40px oklch(0% 0 0 / 0.12),
    0 2px 10px oklch(55% 0.25 350 / 0.08);
  font-size: 1.02rem;
  line-height: 1.65;
}
.dmilb.liveblog .dmilb-item-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fg);
  margin: 0 0 0.65rem;
}
.dmilb.liveblog .dmilb-item-content p {
  margin: 0;
}
.dmilb.liveblog .dmilb-item-content p:not(:last-child) {
  margin-bottom: 0.85rem;
}
.dmilb.liveblog .dmilb-item-content img,
.dmilb.liveblog .dmilb-item-content video,
.dmilb.liveblog .dmilb-item-content figure,
.dmilb.liveblog .dmilb-item-content .wp-caption,
.dmilb.liveblog .dmilb-item-content .wp-block-image,
.dmilb.liveblog .dmilb-item-content table {
  max-width: 100% !important;
  height: auto !important;
}
.dmilb.liveblog .dmilb-item-content img {
  display: block;
  width: auto;
  border-radius: var(--radius-sm);
}
.dmilb.liveblog .dmilb-item-content iframe,
.dmilb.liveblog .dmilb-item-content embed,
.dmilb.liveblog .dmilb-item-content object {
  max-width: 100% !important;
}
.dmilb.liveblog .dmilb-item-content .instagram-media,
.dmilb.liveblog .dmilb-item-content .twitter-tweet,
.dmilb.liveblog .dmilb-item-content .fb-post,
.dmilb.liveblog .dmilb-item-content .wp-embedded-content {
  max-width: 100% !important;
  min-width: 0 !important;
}
.dmilb.liveblog .dmilb-item-content .wp-caption,
.dmilb.liveblog .dmilb-item-content figure {
  margin: 0.85rem 0;
}
.dmilb.liveblog .dmilb-item-content .wp-caption-text,
.dmilb.liveblog .dmilb-item-content figcaption {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.4rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
  font-style: italic;
}

.dmilb-scrolling-button {
  right: 1.1rem;
  bottom: 1.4rem;
  gap: 0.4rem;
}
.dmilb-scrolling-button > a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: oklch(99% 0 0);
  box-shadow: 0 8px 22px oklch(55% 0.25 350 / 0.28);
}
.dmilb-scrolling-button > a:hover {
  opacity: 1;
  filter: brightness(1.05);
}

@media only screen and (max-width: 768px) {
  .dmilb.liveblog .sf-table-scroll-btn--prev {
    left: -0.55rem;
  }
  .dmilb.liveblog .sf-table-scroll-btn--next {
    right: -0.55rem;
  }
  .dmilb.liveblog .dmilb-contents .dmilb-new-day {
    padding-left: 0.15rem;
  }
  .dmilb.liveblog .dmilb-contents-date {
    flex: none;
    max-width: none;
  }
  .dmilb.liveblog .dmilb-items::before,
  .dmilb.liveblog .dmilb-progress {
    left: 0.35rem;
  }
  .dmilb.liveblog .dmilb-item {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 1.25rem;
    padding-bottom: 1.4rem;
  }
  .dmilb.liveblog .dmilb-item-date {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    max-width: none;
    padding: 0;
    margin: 0 0 0.45rem;
  }
  .dmilb.liveblog .dmilb-item-date::before {
    left: -1.25rem;
    top: 0.18rem;
  }
  .dmilb.liveblog .dmilb-time {
    margin: 0;
  }
}
