/* HPW Mediathek – com_hpwmedia 1.2.0 */
/* Text colours live on :root so nested .hpwm blocks inherit the scheme of the nearest background panel */
:root { --hpwm-ink: var(--hpw-navy, #05143e); --hpwm-text: #1d2540; --hpwm-muted: #5b6478; }
.hpwm {
  --hpwm-navy: var(--hpw-navy, #05143e);
  --hpwm-blue: var(--hpw-blue, #0057a8);
  --hpwm-gold: var(--hpw-gold, #e2a63d);
  --hpwm-bg: var(--hpw-bg, #f5f7fa);
  --hpwm-radius: 18px;
  /* shadows fall mostly downwards (negative spread) so scroll containers need little room */
  --hpwm-shadow: 0 10px 22px -12px rgba(5, 20, 62, .30), 0 2px 6px rgba(5, 20, 62, .06);
  --hpwm-shadow-hover: 0 16px 28px -14px rgba(5, 20, 62, .38), 0 3px 8px rgba(5, 20, 62, .08);
  --hpwm-pad: .6rem;    /* room for shadows inside horizontal scrollers */
  --hpwm-glass: rgba(255, 255, 255, .72);
}
.hpwm-icon { width: 1em; height: 1em; flex: 0 0 auto; vertical-align: -.125em; }
.hpwm-heading { font-family: "Francois One", system-ui, sans-serif; color: var(--hpwm-ink); line-height: 1.15; margin: 0 0 .75rem; }
.hpwm-intro { margin-bottom: 1rem; color: var(--hpwm-text); }

/* Filter pills */
.hpwm-filter { display: flex; gap: .5rem; overflow-x: auto; padding: var(--hpwm-pad) var(--hpwm-pad) 1rem; margin: calc(-1 * var(--hpwm-pad)) calc(-1 * var(--hpwm-pad)) -.35rem; scroll-padding-inline: var(--hpwm-pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.hpwm-filter::-webkit-scrollbar { display: none; }
.hpwm-filter--small, .hpwm-filter--sub { padding-top: 0; }
.hpwm-filter--sub .hpwm-pill { font-size: .82rem; padding: .35rem .8rem; }
.hpwm-filter--sub .hpwm-pill.is-active { box-shadow: 0 0 0 3px rgba(226, 166, 61, .22); }
.hpwm-filter--small .hpwm-pill { font-size: .8rem; padding: .3rem .75rem; }
.hpwm-pill {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem; scroll-snap-align: start;
  padding: .45rem .95rem; border-radius: 999px; border: 1px solid rgba(5, 20, 62, .12);
  background: var(--hpwm-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--hpwm-navy); font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.hpwm-pill:hover, .hpwm-pill:focus-visible { background: #fff; box-shadow: 0 0 0 4px rgba(226, 166, 61, .2); color: var(--hpwm-navy); }
.hpwm-pill.is-active { background: linear-gradient(135deg, #f3c46b, var(--hpwm-gold)); border-color: transparent; box-shadow: 0 0 0 4px rgba(226, 166, 61, .22), 0 6px 12px -6px rgba(226, 166, 61, .6); }

/* Grid & cards */
.hpwm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.hpwm-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--hpwm-radius); background: #fff; box-shadow: var(--hpwm-shadow); transition: transform .2s, box-shadow .2s; }
.hpwm-card:hover, .hpwm-card:focus-within { transform: translateY(-3px); box-shadow: var(--hpwm-shadow-hover); }
.hpwm-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--hpwm-navy), var(--hpwm-blue)); }
.hpwm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.hpwm-card:hover .hpwm-thumb img { transform: scale(calc(var(--hpwm-zoom, 1) * 1.04)); }
.hpwm-card--audio .hpwm-thumb img { object-fit: contain; background: radial-gradient(circle at 50% 40%, rgba(226, 166, 61, .35), transparent 65%), var(--hpwm-navy); }
.hpwm-thumb-empty { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .55); font-size: 2.5rem; }
.hpwm-badge, .hpwm-dur { position: absolute; display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; line-height: 1; padding: .3rem .5rem; border-radius: 8px; color: #fff; background: rgba(5, 20, 62, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hpwm-badge { top: .6rem; left: .6rem; }
.hpwm-dur { right: .6rem; bottom: .6rem; font-variant-numeric: tabular-nums; }
.hpwm-thumb-play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; color: var(--hpwm-navy); background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 6px rgba(226, 166, 61, .35); opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; }
.hpwm-card:hover .hpwm-thumb-play, .hpwm-card:focus-within .hpwm-thumb-play { opacity: 1; transform: scale(1); }
.hpwm-card-body { padding: .8rem 1rem 1rem; }
.hpwm-card-title { font-family: "Francois One", system-ui, sans-serif; font-size: 1.05rem; font-weight: 400; line-height: 1.25; margin: 0 0 .35rem; }
.hpwm .hpwm-card-title a, .hpwm .hpwm-card-title a:hover { color: var(--hpwm-navy); text-decoration: none; }
.hpwm-card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.hpwm-card-title a:focus-visible { outline: none; }
.hpwm-card:has(a:focus-visible) { outline: 3px solid var(--hpwm-gold); outline-offset: 2px; }
.hpwm-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .8rem; color: var(--hpwm-muted); }

/* Players */
.hpwm-player { margin: 0 0 1.25rem; }
.hpwm-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--hpwm-radius); background: #000; box-shadow: var(--hpwm-shadow); }
.hpwm-frame iframe, .hpwm-frame video, .hpwm-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hpwm-poster { object-fit: cover; }
.hpwm-poster--empty { background: linear-gradient(135deg, var(--hpwm-navy), var(--hpwm-blue)); }
.hpwm-frame video { object-fit: contain; }
.hpwm-playbtn {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 2rem; color: #fff; cursor: pointer;
  background: rgba(5, 20, 62, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 8px rgba(226, 166, 61, .35); transition: transform .2s, background .2s, color .2s;
}
.hpwm-playbtn:hover, .hpwm-playbtn:focus-visible { transform: scale(1.08); background: var(--hpwm-gold); color: var(--hpwm-navy); outline: none; }
.hpwm-playbtn .hpwm-icon { margin-left: .12em; }
.hpwm-consent { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; margin-top: .5rem; font-size: .75rem; color: var(--hpwm-muted); }
.hpwm-consent a { color: inherit; text-decoration: underline; }
.hpwm-remember-label { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.is-loaded .hpwm-consent { display: none; }

.hpwm-player--audio { display: flex; align-items: center; gap: 1rem; padding: .9rem; border-radius: var(--hpwm-radius); color: #fff; background: linear-gradient(135deg, var(--hpwm-navy), #0a2a6b); box-shadow: var(--hpwm-shadow); }
.hpwm-cover { width: 84px; height: 84px; flex: 0 0 84px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 3px rgba(226, 166, 61, .4); }
.hpwm-cover--empty { display: grid; place-items: center; font-size: 2rem; background: rgba(255, 255, 255, .08); }
.hpwm-audio-main { color: #fff; flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; }
.hpwm-audio-title { font-family: "Francois One", system-ui, sans-serif; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.hpwm-audio-dur { font-size: .75rem; opacity: .75; font-variant-numeric: tabular-nums; }
.hpwm-player--audio audio { flex: 1 0 100%; width: 100%; height: 40px; margin-top: .4rem; }

/* Slider */
.hpwm-slider { position: relative; }
.hpwm-track { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  /* padding gives shadows + hover lift room, the negative margin keeps the cards aligned with the heading */
  padding: var(--hpwm-pad) var(--hpwm-pad) 1.75rem; margin: calc(-1 * var(--hpwm-pad)) calc(-1 * var(--hpwm-pad)) -1.15rem; scroll-padding-inline: var(--hpwm-pad); }
.hpwm-track::-webkit-scrollbar { display: none; }
.hpwm-track > * { scroll-snap-align: start; }
@media (min-width: 768px) { .hpwm-track { grid-auto-columns: calc((100% - 2rem) / 3); } }
.hpwm-nav { position: absolute; z-index: 5; top: calc(50% - 1.6rem); width: 42px; height: 42px; border: 0; border-radius: 50%; display: none; place-items: center; font-size: 1.2rem; cursor: pointer; color: var(--hpwm-navy); background: var(--hpwm-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--hpwm-shadow); }
.hpwm-nav--prev { left: -.6rem; }
.hpwm-nav--next { right: -.6rem; }
@media (hover: hover) and (min-width: 768px) { .hpwm-nav { display: grid; } }
.hpwm-nav:hover, .hpwm-nav:focus-visible { background: var(--hpwm-gold); }

/* List */
.hpwm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.hpwm-list .hpwm-player { margin: 0; }
.hpwm-list-link { display: flex; align-items: center; gap: .8rem; padding: .5rem; border-radius: 14px; text-decoration: none; color: var(--hpwm-text); background: var(--hpwm-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: box-shadow .2s; }
.hpwm-list-link:hover, .hpwm-list-link:focus-visible { box-shadow: 0 0 0 3px rgba(226, 166, 61, .35); }
.hpwm-list-thumb { flex: 0 0 112px; width: 112px; height: 63px; border-radius: 10px; overflow: hidden; background: var(--hpwm-navy); }
.hpwm-list-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hpwm-list-link .hpwm-thumb-empty { position: static; width: 112px; height: 63px; flex: 0 0 112px; border-radius: 10px; object-fit: cover; font-size: 1.4rem; background: var(--hpwm-navy); }
.hpwm-list-text { display: grid; gap: .15rem; min-width: 0; }
.hpwm-list-text strong { color: var(--hpwm-navy); line-height: 1.25; }
.hpwm-list-text small { color: var(--hpwm-muted); }

/* Hero (module) */
.hpwm-hero .hpwm-heading { font-size: 1.4rem; }
.hpwm-hero-text { color: var(--hpwm-text); margin: -.5rem 0 1rem; }

/* Detail */
.hpwm-back { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .75rem; font-size: .85rem; font-weight: 600; color: var(--hpwm-ink); text-decoration: none; }
.hpwm-item-head .hpwm-meta { margin: -.35rem 0 1rem; }
.hpwm-description { margin: 1.25rem 0; }
.hpwm-related { margin-top: 2rem; }
.hpwm-related h2 { font-family: "Francois One", system-ui, sans-serif; color: var(--hpwm-ink); font-size: 1.3rem; }
.hpwm-more { display: inline-flex; margin-top: 1rem; }
.hpwm-empty, .hpwm-revoke { color: var(--hpwm-muted); font-size: .85rem; }
.hpwm-pagination { margin-top: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  .hpwm *, .hpwm *::before { transition: none !important; scroll-behavior: auto !important; }
}

/* ===================================================================== Pages (v1.1) */
.hpwm-page > * + * { margin-top: 2rem; }
.hpwm .hpwm-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .95rem; line-height: 1; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .2s, background .2s, box-shadow .2s; }
.hpwm .hpwm-btn:hover, .hpwm .hpwm-btn:focus-visible { color: #fff; background: rgba(255, 255, 255, .28); transform: translateY(-1px); }
.hpwm .hpwm-btn--primary { color: var(--hpwm-navy); background: linear-gradient(135deg, #f3c46b, var(--hpwm-gold)); border-color: transparent; box-shadow: 0 0 0 5px rgba(226, 166, 61, .25), 0 6px 18px rgba(226, 166, 61, .35); }
.hpwm .hpwm-btn--primary:hover, .hpwm .hpwm-btn--primary:focus-visible { color: var(--hpwm-navy); background: linear-gradient(135deg, #f7d083, #eab14f); }

/* Stage / hero */
.hpwm-stage { position: relative; border-radius: var(--hpwm-radius); overflow: hidden; background: var(--hpwm-navy); box-shadow: 0 14px 40px rgba(5, 20, 62, .25); }
.hpwm-stage-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.hpwm-stage-track::-webkit-scrollbar { display: none; }
.hpwm-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; color: #fff; display: flex; flex-direction: column; }
.hpwm-slide-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--hpwm-navy), var(--hpwm-blue)); }
.hpwm-slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hpwm-slide-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 20, 62, 0) 45%, rgba(5, 20, 62, .95) 100%); }
.hpwm-slide-body { position: relative; z-index: 1; margin-top: -2.5rem; padding: 0 1.1rem 3rem; }
.hpwm-slide-kicker { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hpwm-gold); margin-bottom: .35rem; }
.hpwm-slide-title { font-family: "Francois One", system-ui, sans-serif; font-weight: 400; font-size: clamp(1.5rem, 5.5vw, 2.8rem); line-height: 1.08; margin: 0 0 .5rem; color: #fff; text-wrap: balance; }
.hpwm-slide-text { margin: 0 0 1rem; max-width: 46ch; font-size: .95rem; line-height: 1.45; color: rgba(255, 255, 255, .86); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hpwm-slide-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hpwm-stage-dots { position: absolute; left: 0; right: 0; bottom: .9rem; display: flex; justify-content: center; gap: .45rem; z-index: 2; }
.hpwm-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .3s, background .3s; }
.hpwm-dot.is-active { width: 26px; background: var(--hpwm-gold); }
.hpwm-stage .hpwm-nav { top: auto; bottom: 1rem; color: #fff; background: rgba(255, 255, 255, .14); }
.hpwm-stage .hpwm-nav--prev { left: auto; right: 4.2rem; }
.hpwm-stage .hpwm-nav--next { right: 1rem; }
.hpwm-stage .hpwm-nav:hover, .hpwm-stage .hpwm-nav:focus-visible { color: var(--hpwm-navy); background: var(--hpwm-gold); }

@media (min-width: 768px) {
  .hpwm-slide { display: block; }
  .hpwm-slide-media { aspect-ratio: 21 / 9; }
  .hpwm-slide-media::after { background: linear-gradient(90deg, rgba(5, 20, 62, .95) 0%, rgba(5, 20, 62, .65) 38%, rgba(5, 20, 62, 0) 70%), linear-gradient(180deg, rgba(5, 20, 62, 0) 60%, rgba(5, 20, 62, .6) 100%); }
  .hpwm-slide-body { position: absolute; inset: auto auto 0 0; max-width: 60%; margin: 0; padding: 2.5rem 2.5rem 3.2rem; }
  .hpwm-stage-dots { left: 2.5rem; right: auto; justify-content: flex-start; bottom: 1.4rem; }
}

/* Rows */
.hpwm-row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.hpwm-row-title { font-family: "Francois One", system-ui, sans-serif; font-weight: 400; font-size: 1.35rem; line-height: 1.15; color: var(--hpwm-ink); margin: 0; }
.hpwm-row-sub { margin: .15rem 0 0; font-size: .85rem; color: var(--hpwm-muted); }
.hpwm .hpwm-row-all { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .2rem; font-size: .85rem; font-weight: 700; color: var(--hpwm-ink); text-decoration: none; white-space: nowrap; }
.hpwm-row-all:hover { color: var(--hpwm-blue); }
.hpwm-scheme-light .hpwm-row-all:hover { color: var(--hpwm-gold); }
.hpwm-card-text { margin: .35rem 0 0; font-size: .85rem; line-height: 1.4; color: var(--hpwm-muted); }

.hpwm-slider--wide .hpwm-track { grid-auto-columns: 72%; }
.hpwm-slider--large .hpwm-track { grid-auto-columns: 88%; }
.hpwm-slider--portrait .hpwm-track { grid-auto-columns: 44%; }
.hpwm-slider--portrait .hpwm-thumb { aspect-ratio: 2 / 3; }
.hpwm-slider--portrait .hpwm-badge, .hpwm-slider--portrait .hpwm-meta { display: none; }
.hpwm-slider--portrait .hpwm-card-body { padding: .6rem .75rem .75rem; }
.hpwm-slider--portrait .hpwm-card-title { font-size: .95rem; }
.hpwm-slider--large .hpwm-card-title { font-size: 1.25rem; }
@media (min-width: 768px) {
  .hpwm-slider--wide .hpwm-track { grid-auto-columns: calc((100% - 3rem) / 4); }
  .hpwm-slider--large .hpwm-track { grid-auto-columns: calc((100% - 1rem) / 2); }
  .hpwm-slider--portrait .hpwm-track { grid-auto-columns: calc((100% - 5rem) / 6); }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .hpwm-slider--wide .hpwm-track { grid-auto-columns: 46%; }
  .hpwm-slider--portrait .hpwm-track { grid-auto-columns: 30%; }
}

.hpwm-slider.is-static .hpwm-nav { display: none; }

/* ===================================================================== Raster / Magazin / Top 10 (v1.1.6) */
.hpwm-row .hpwm-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
@media (max-width: 575.98px) {
  .hpwm-row .hpwm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .hpwm-row .hpwm-grid .hpwm-card-body { padding: .6rem .7rem .75rem; }
  .hpwm-row .hpwm-grid .hpwm-card-title { font-size: .95rem; }
  .hpwm-row .hpwm-grid .hpwm-badge { display: none; }
}

.hpwm-magazine { display: grid; gap: 1rem; }
.hpwm-mag-lead .hpwm-card { height: 100%; }
.hpwm-mag-lead .hpwm-card-title { font-size: clamp(1.2rem, 3.5vw, 1.6rem); }
.hpwm-mag-list { display: grid; gap: .75rem; align-content: start; }
.hpwm-mini { position: relative; display: flex; align-items: center; gap: .8rem; padding: .5rem; border-radius: 14px; background: #fff; box-shadow: var(--hpwm-shadow); transition: box-shadow .2s, transform .2s; }
.hpwm-mini:hover, .hpwm-mini:focus-within { transform: translateY(-2px); box-shadow: var(--hpwm-shadow-hover); }
.hpwm-mini-thumb { position: relative; flex: 0 0 132px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, var(--hpwm-navy), var(--hpwm-blue)); }
.hpwm-mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hpwm-mini-thumb .hpwm-thumb-empty { font-size: 1.6rem; }
.hpwm-mini-thumb .hpwm-dur { right: .35rem; bottom: .35rem; font-size: .65rem; padding: .2rem .35rem; }
.hpwm-mini-body { min-width: 0; }
.hpwm-mini-title { font-family: "Francois One", system-ui, sans-serif; font-weight: 400; font-size: 1rem; line-height: 1.2; margin: 0 0 .25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hpwm .hpwm-mini-title a, .hpwm .hpwm-mini-title a:hover { color: var(--hpwm-navy); text-decoration: none; }
.hpwm-mini-title a::after { content: ""; position: absolute; inset: 0; }
.hpwm-mini .hpwm-meta .hpwm-icon { vertical-align: -.15em; }
@media (min-width: 768px) {
  .hpwm-magazine { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .hpwm-magazine--single { grid-template-columns: minmax(0, 1fr); }
  .hpwm-mag-list { align-content: stretch; }
  .hpwm-mini-thumb { flex-basis: 150px; }
}

.hpwm-slider--top10 .hpwm-track { grid-auto-columns: 78%; }
@media (min-width: 576px) { .hpwm-slider--top10 .hpwm-track { grid-auto-columns: 46%; } }
@media (min-width: 992px) { .hpwm-slider--top10 .hpwm-track { grid-auto-columns: calc((100% - 2rem) / 3); } }
.hpwm-rank { display: flex; align-items: stretch; min-width: 0; }
.hpwm-rank-no {
  flex: 0 0 auto; align-self: flex-end; margin: 0 .2rem .35rem 0; z-index: 0;
  font-family: "Francois One", system-ui, sans-serif; font-size: clamp(5rem, 18vw, 8rem); line-height: .78; letter-spacing: -.06em;
  color: var(--hpwm-rank-fill, var(--hpwm-bg)); -webkit-text-stroke: 3px var(--hpwm-ink); paint-order: stroke fill;
  text-shadow: 0 6px 18px rgba(226, 166, 61, .35);
}
.hpwm-rank:first-child .hpwm-rank-no { -webkit-text-stroke-color: var(--hpwm-gold); }
.hpwm-rank .hpwm-card { flex: 1 1 auto; min-width: 0; z-index: 1; }

/* Filter pills: wrap instead of scrolling on larger screens – no scroll container, nothing can be clipped */
@media (min-width: 768px) {
  .hpwm-filter { flex-wrap: wrap; overflow: visible; padding: .3rem 0 .6rem; margin: 0 0 .1rem; }
}

/* ===================================================================== Backgrounds (v1.2.0) */
.hpwm-panel { position: relative; padding: clamp(1rem, 3.5vw, 1.75rem); border-radius: calc(var(--hpwm-radius) + 6px); background: var(--hpwm-panel-bg); }
.hpwm-panel + .hpwm-panel, .hpwm-page > * + .hpwm-panel, .hpwm-page > .hpwm-panel + * { margin-top: 1.5rem; }
.hpwm-page.hpwm-panel > :first-child { margin-top: 0; }
/* light text on dark backgrounds – cards keep their own (dark-on-white) colours */
.hpwm-scheme-light {
  --hpwm-ink: #fff; --hpwm-text: rgba(255, 255, 255, .9); --hpwm-muted: rgba(255, 255, 255, .72);
  --hpwm-rank-fill: transparent;
}
.hpwm-scheme-dark { --hpwm-ink: var(--hpwm-navy); --hpwm-rank-fill: var(--hpwm-bg); --hpwm-text: #1d2540; --hpwm-muted: #4b5468; }
.hpwm-card, .hpwm-mini, .hpwm-list-link { --hpwm-ink: var(--hpwm-navy); --hpwm-text: #1d2540; --hpwm-muted: #5b6478; }
.hpwm-scheme-light .hpwm-rank:first-child .hpwm-rank-no { -webkit-text-stroke-color: var(--hpwm-gold); }
.hpwm-scheme-light .hpwm-intro a { color: var(--hpwm-gold); }
.hpwm-scheme-light .hpwm-consent { color: rgba(255, 255, 255, .75); }

/* ===================================================================== Tags as badges (v1.2.0) */
.hpwm-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; padding: 0; }
.hpwm .hpwm-tag { display: inline-flex; align-items: center; padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  color: var(--hpwm-navy); background: rgba(5, 20, 62, .06); border: 1px solid rgba(5, 20, 62, .12); transition: background .2s, box-shadow .2s; }
.hpwm .hpwm-tag::before { content: "#"; opacity: .55; margin-right: .1rem; }
.hpwm .hpwm-tag:hover, .hpwm .hpwm-tag:focus-visible { color: var(--hpwm-navy); background: linear-gradient(135deg, #f3c46b, var(--hpwm-gold)); border-color: transparent; box-shadow: 0 0 0 3px rgba(226, 166, 61, .22); }
.hpwm-scheme-light .hpwm-tag { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); }

/* Category heading when the pills are switched off */
.hpwm-cat-head { margin: 0 0 1rem; }
.hpwm-cat-head .hpwm-heading { font-size: 1.5rem; margin-bottom: .3rem; }
.hpwm-cat-head p { margin: 0; color: var(--hpwm-muted); }

/* ===================================================================== Framed YouTube thumbnails (v1.2.1)
   Zoom pushes a frame baked into the thumbnail out of the rounded, overflow-hidden box.
   The frame is as wide at the sides as at top/bottom in pixels, i.e. only about half as wide relative
   to the 16:9 width – so the zoom is anchored at 30 % from the left: on the left only the frame is
   cut (logo stays intact), the remaining overhang goes to the right. */
.hpwm-crop--s { --hpwm-zoom: 1.05; }
.hpwm-crop--m { --hpwm-zoom: 1.075; }
.hpwm-crop--l { --hpwm-zoom: 1.12; }
img.hpwm-crop { transform: scale(var(--hpwm-zoom)); transform-origin: 30% 50%; }

/* ===================================================================== Header bar (v1.3.0)
   Streaming-style bar: brand left, menu right; sticky with shadow once it docks. */
.hpwm-hdr { position: relative; z-index: 30; display: flex; align-items: center; gap: 1rem; min-height: 60px; margin: 0 0 1.25rem; padding: .55rem .6rem .55rem .75rem;
  border-radius: var(--hpwm-radius); color: #fff; background: linear-gradient(100deg, #05143E 0%, #0a1f55 60%, #0d2a6e 100%);
  box-shadow: 0 8px 22px -14px rgba(5, 20, 62, .55); }
.hpwm-hdr.is-sticky { position: sticky; top: var(--hpwm-hdr-top, 0px); }
.hpwm-hdr.is-stuck { box-shadow: 0 12px 28px -12px rgba(5, 20, 62, .6); border-top-left-radius: 0; border-top-right-radius: 0; }
.hpwm-hdr::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--hpwm-gold), rgba(226, 166, 61, 0)); opacity: .8; pointer-events: none; }

.hpwm .hpwm-hdr-brand { display: inline-flex; align-items: center; gap: .6rem; flex: 0 0 auto; color: #fff; text-decoration: none; }
.hpwm-hdr-badge { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-size: 1.15rem; color: var(--hpwm-navy);
  background: linear-gradient(135deg, #f6d18a, var(--hpwm-gold)); box-shadow: 0 0 0 3px rgba(226, 166, 61, .22); transition: transform .2s; }
.hpwm-hdr-badge .hpwm-icon { margin-left: 2px; }
.hpwm-hdr-brand:hover .hpwm-hdr-badge, .hpwm-hdr-brand:focus-visible .hpwm-hdr-badge { transform: scale(1.06) rotate(-4deg); }
.hpwm-hdr-word { display: flex; flex-direction: column; line-height: 1; }
.hpwm-hdr-word small { font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--hpwm-gold); margin-bottom: .2rem; }
.hpwm-hdr-word strong { font-family: "Francois One", system-ui, sans-serif; font-weight: 400; font-size: 1.45rem; letter-spacing: .02em; text-transform: uppercase; }
.hpwm-hdr-logo { display: block; height: 40px; width: auto; max-width: 220px; }

.hpwm-hdr-nav { margin-left: auto; }
.hpwm-hdr-list, .hpwm-hdr-sub { list-style: none; margin: 0; padding: 0; }
.hpwm-hdr-list { display: flex; align-items: center; gap: .15rem; }
.hpwm-hdr-li { position: relative; display: flex; align-items: center; }
.hpwm .hpwm-hdr-link { display: block; padding: .5rem .8rem; border-radius: 999px; font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  color: rgba(255, 255, 255, .82); text-decoration: none; transition: color .2s, background .2s; }
.hpwm .hpwm-hdr-link:hover, .hpwm .hpwm-hdr-link:focus-visible { color: #fff; background: rgba(255, 255, 255, .08); }
.hpwm .hpwm-hdr-li.is-active > .hpwm-hdr-link { color: #fff; background: rgba(226, 166, 61, .16); box-shadow: inset 0 0 0 1px rgba(226, 166, 61, .45); }
.hpwm-hdr-li.has-children > .hpwm-hdr-link--label { cursor: pointer; }
.hpwm-hdr-sub-toggle, .hpwm-hdr-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; font: inherit; color: #fff; background: none; cursor: pointer; }
.hpwm-hdr-sub-toggle { width: 28px; height: 28px; margin-left: -.45rem; border-radius: 50%; color: rgba(255, 255, 255, .75); font-size: .8rem; transition: transform .2s, background .2s; }
.hpwm-hdr-sub-toggle:hover, .hpwm-hdr-sub-toggle:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; }
.hpwm-hdr-sub-toggle[aria-expanded="true"] { transform: rotate(180deg); }

/* desktop dropdown */
.hpwm-hdr-sub { position: absolute; top: calc(100% + .55rem); right: 0; min-width: 220px; padding: .4rem; border-radius: 14px;
  background: #0a1f55; box-shadow: 0 18px 40px -12px rgba(5, 20, 62, .6), 0 0 0 1px rgba(255, 255, 255, .06);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.hpwm-hdr-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; } /* hover bridge */
.hpwm-hdr-li.is-open > .hpwm-hdr-sub { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
@media (hover: hover) and (min-width: 768px) {
  .hpwm-hdr-li.has-children:hover > .hpwm-hdr-sub { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
}
.hpwm-hdr-sub .hpwm-hdr-li { display: block; }
.hpwm .hpwm-hdr-sub .hpwm-hdr-link { border-radius: 10px; font-weight: 500; }

.hpwm-hdr-toggle { display: none; margin-left: auto; padding: .45rem .8rem; border-radius: 999px; font-weight: 600; font-size: .9rem; background: rgba(255, 255, 255, .08); }
.hpwm-hdr-toggle .hpwm-icon { font-size: 1.2rem; }
.hpwm-hdr-toggle:hover, .hpwm-hdr-toggle:focus-visible, .hpwm-hdr-toggle[aria-expanded="true"] { background: rgba(226, 166, 61, .22); }

/* mobile: brand + "Menü" button, navigation folds out below */
@media (max-width: 767.98px) {
  .hpwm-hdr { flex-wrap: wrap; min-height: 56px; }
  .hpwm-hdr-word strong { font-size: 1.25rem; }
  .hpwm-hdr-badge { width: 34px; height: 34px; }
  .hpwm-hdr-toggle { display: inline-flex; }
  .hpwm-hdr-nav { display: none; flex: 1 0 100%; margin: .35rem 0 .2rem; padding-top: .5rem; border-top: 1px solid rgba(255, 255, 255, .12); }
  .hpwm-hdr.is-open .hpwm-hdr-nav { display: block; }
  .hpwm-hdr-list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .hpwm-hdr-li { flex-wrap: wrap; }
  .hpwm-hdr-li > .hpwm-hdr-link { flex: 1; border-radius: 10px; }
  .hpwm-hdr-sub-toggle { width: 40px; height: 40px; margin-left: .25rem; }
  .hpwm-hdr-sub { position: static; flex: 1 0 100%; min-width: 0; padding: .1rem 0 .3rem .9rem; border-radius: 0; background: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; display: none; }
  .hpwm-hdr-sub::before { display: none; }
  .hpwm-hdr-li.is-open > .hpwm-hdr-sub { display: block; }
}
/* Overlay over the stage: transparent at the top of the page, solid navy once it docks or the menu opens */
.hpwm-hdr--overlay { height: 60px; min-height: 0; margin-bottom: -60px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none;
  background: linear-gradient(180deg, rgba(5, 20, 62, .7) 0%, rgba(5, 20, 62, .3) 65%, rgba(5, 20, 62, 0) 100%); transition: background-color .25s, box-shadow .25s; }
.hpwm-hdr--overlay::after { opacity: 0; transition: opacity .25s; }
.hpwm-hdr--overlay .hpwm-hdr-badge { box-shadow: 0 4px 14px rgba(5, 20, 62, .45); }
.hpwm-hdr--overlay .hpwm-hdr-word { text-shadow: 0 1px 8px rgba(5, 20, 62, .6); }
.hpwm-hdr--overlay.is-stuck, .hpwm-hdr--overlay.is-open { background: linear-gradient(100deg, #05143E 0%, #0a1f55 60%, #0d2a6e 100%); box-shadow: 0 12px 28px -12px rgba(5, 20, 62, .6); }
.hpwm-hdr--overlay.is-stuck::after, .hpwm-hdr--overlay.is-open::after { opacity: .8; }
.hpwm-hdr--overlay.is-open { height: auto; border-radius: var(--hpwm-radius); }
.hpwm-hdr--overlay + .hpwm-page .hpwm-stage:first-child { border-top-left-radius: var(--hpwm-radius); border-top-right-radius: var(--hpwm-radius); }
@media (min-width: 768px) {
  .hpwm-hdr--overlay { padding-inline: 1.25rem; } /* align with the stage text */
}
@media (max-width: 767.98px) {
  .hpwm-hdr--overlay { height: 56px; margin-bottom: -56px; }
}
@media (prefers-reduced-motion: reduce) { .hpwm-hdr *, .hpwm-hdr { transition: none !important; } }
