:root {
  --mp-primary: #e11d48;
  --mp-accent: #2563eb;
  --mp-container: 1440px;
  --mp-bg: #f4f6fb;
  --mp-surface: #ffffff;
  --mp-text: #111827;
  --mp-muted: #6b7280;
  --mp-border: #e5e7eb;
  --mp-gap: 24px;
}

html[data-theme="dark"] {
  --mp-bg: #0b1221;
  --mp-surface: #111a2f;
  --mp-text: #edf2ff;
  --mp-muted: #9cb0d9;
  --mp-border: #233152;
}

* { box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body { margin: 0; background: var(--mp-bg); color: var(--mp-text); font-family: Inter, sans-serif; font-size: clamp(15px, 0.35vw + 14px, 18px); }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.mp-container { width: min(var(--mp-container), calc(100% - 40px)); margin: 0 auto; }
.mp-header { background: var(--mp-surface); border-bottom: 1px solid var(--mp-border); position: sticky; top: 0; z-index: 30; }
.mp-topbar, .mp-mainbar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.mp-topbar { font-size: 13px; color: var(--mp-muted); border-bottom: 1px solid var(--mp-border); }
.mp-site-title { font-size: 28px; font-weight: 800; color: var(--mp-primary); }
.mp-controls { display: inline-flex; gap: 8px; align-items: center; }
.mp-icon-btn { border: 1px solid var(--mp-border); background: var(--mp-surface); color: var(--mp-text); border-radius: 999px; width: 40px; height: 40px; cursor: pointer; }
#mp-menu-toggle { display: none; }
.mp-primary-nav { min-height: 50px; display: flex; align-items: center; }
.mp-menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; font-weight: 600; }
.mp-menu a:hover { color: var(--mp-primary); }
.mp-header.style-2 .mp-mainbar { background: linear-gradient(90deg, var(--mp-primary), var(--mp-accent)); color: #fff; border-radius: 0 0 14px 14px; padding: 8px 10px; }
.mp-header.style-2 .mp-site-title { color: #fff; }
.mp-header.style-3 .mp-mainbar { border: 2px solid var(--mp-border); border-radius: 14px; margin-top: 10px; padding: 8px 12px; }

.mp-content { padding: 24px 0 40px; }
.mp-breadcrumbs { width: min(var(--mp-container), calc(100% - 32px)); margin: 10px auto 0; font-size: 13px; color: var(--mp-muted); }
.mp-ad-header { margin-top: 8px; margin-bottom: 8px; }
.mp-search-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(8,12,20,0.72); backdrop-filter: blur(4px); display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.mp-search-overlay.is-open { display: flex; }
.mp-search-overlay-inner { width: min(860px, calc(100% - 32px)); background: var(--mp-surface); border: 1px solid var(--mp-border); border-radius: 16px; padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.25); position: relative; }
.mp-search-close { position: absolute; right: 10px; top: 8px; width: 36px; height: 36px; border: 1px solid var(--mp-border); background: var(--mp-surface); border-radius: 999px; color: var(--mp-text); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.mp-search-overlay .search-form { display: flex; gap: 10px; align-items: stretch; margin-right: 42px; }
.mp-search-overlay .search-field { width: 100%; border: 1px solid var(--mp-border); background: var(--mp-surface); color: var(--mp-text); border-radius: 12px; padding: 12px 14px; font-size: 1rem; }
.mp-search-overlay .search-submit { border: 0; background: linear-gradient(135deg, var(--mp-primary), var(--mp-accent)); color: #fff; border-radius: 12px; padding: 12px 16px; font-weight: 600; cursor: pointer; }
.mp-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr); gap: var(--mp-gap); }
.mp-main { min-width: 0; }
.mp-sidebar { display: grid; gap: 14px; }
.mp-widget { background: var(--mp-surface); border: 1px solid var(--mp-border); border-radius: 14px; padding: 14px; }
.mp-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.mp-card { background: var(--mp-surface); border: 1px solid var(--mp-border); border-radius: 14px; overflow: hidden; }
.mp-layout-marker { margin: 0 0 10px; font-size: 12px; color: var(--mp-muted); }
.mp-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.mp-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-card-body { padding: 14px; }
.mp-card-title { margin: 0 0 10px; font-size: 1.2rem; }
.mp-meta { display: flex; gap: 10px; font-size: 12px; color: var(--mp-muted); margin-bottom: 8px; flex-wrap: wrap; }
.mp-single, .mp-page { background: var(--mp-surface); border: 1px solid var(--mp-border); border-radius: 14px; padding: 20px; }
.mp-single-cover img { border-radius: 10px; margin-bottom: 16px; }
.mp-footer { border-top: 1px solid var(--mp-border); margin-top: 26px; padding: 26px 0; background: var(--mp-surface); }
.mp-footer.style-2 { background: linear-gradient(180deg, var(--mp-surface), color-mix(in srgb, var(--mp-surface) 75%, var(--mp-accent))); }
.mp-footer.style-3 { border-top: 3px solid var(--mp-primary); }
.mp-footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mp-footer-bottom { margin-top: 18px; color: var(--mp-muted); display: flex; justify-content: space-between; gap: 10px; }
.mp-load-more { margin-top: 14px; border: 0; background: var(--mp-primary); color: #fff; border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.mp-live-search-results { display: grid; gap: 6px; margin-top: 6px; font-size: 13px; }
.mp-live-search-results a { background: var(--mp-surface); border: 1px solid var(--mp-border); border-radius: 8px; padding: 6px 8px; }
#mp-reading-progress { position: fixed; left: 0; top: 0; width: 100%; height: 3px; z-index: 99; background: transparent; }
#mp-reading-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mp-primary), var(--mp-accent)); }
.mp-cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; background: var(--mp-surface); border: 1px solid var(--mp-border); border-radius: 12px; display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 10px 12px; box-shadow: 0 8px 28px rgba(0,0,0,0.15); }
.mp-cookie-bar button { border: 0; background: var(--mp-primary); color: #fff; border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.mp-carousel { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.mp-carousel-item { background: var(--mp-surface); border: 1px solid var(--mp-border); border-radius: 10px; padding: 10px; }
.mp-category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mp-tab-link { border: 1px solid var(--mp-border); border-radius: 999px; padding: 6px 10px; background: var(--mp-surface); font-size: 13px; }
.mp-timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mp-timeline li { border-left: 3px solid var(--mp-primary); padding-left: 10px; }
.mp-author-box { display: flex; gap: 12px; align-items: center; border: 1px solid var(--mp-border); border-radius: 12px; padding: 12px; background: var(--mp-surface); }
.mp-social-share-shortcode { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-social-share-shortcode a { padding: 6px 10px; border: 1px solid var(--mp-border); border-radius: 999px; background: var(--mp-surface); }
.mp-newsletter-shortcode form { display: flex; gap: 8px; flex-wrap: wrap; }
.mp-newsletter-shortcode input { border: 1px solid var(--mp-border); border-radius: 8px; padding: 8px; min-width: 220px; background: var(--mp-surface); color: var(--mp-text); }
.mp-newsletter-shortcode button { border: 0; background: var(--mp-primary); color: #fff; border-radius: 8px; padding: 8px 12px; }
.mp-counter { border: 1px solid var(--mp-border); border-radius: 12px; padding: 10px 12px; background: var(--mp-surface); display: inline-flex; gap: 8px; align-items: baseline; }
.mp-counter strong { font-size: 1.6rem; color: var(--mp-primary); }
.mp-progress-wrap { display: grid; gap: 6px; }
.mp-progress { height: 8px; border-radius: 99px; overflow: hidden; background: var(--mp-border); }
.mp-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--mp-primary), var(--mp-accent)); }
.mp-pricing { border: 1px solid var(--mp-border); border-radius: 12px; padding: 14px; background: var(--mp-surface); max-width: 260px; }
.mp-price { font-size: 1.8rem; color: var(--mp-primary); font-weight: 700; margin: 8px 0; }
.mp-testimonial { border-left: 3px solid var(--mp-primary); background: var(--mp-surface); padding: 12px; border-radius: 8px; }
.mp-video-popup { display: inline-block; padding: 8px 12px; border-radius: 999px; background: var(--mp-accent); color: #fff; }
.mp-accordion { border: 1px solid var(--mp-border); border-radius: 10px; padding: 8px 10px; background: var(--mp-surface); }
.mp-tabs { border: 1px solid var(--mp-border); border-radius: 10px; padding: 10px 12px; background: var(--mp-surface); }
.mp-entry img,
.mp-entry video,
.mp-entry iframe,
.mp-entry .wp-block-image img,
.wp-caption img { max-width: 100%; height: auto; display: block; }
.mp-entry iframe { width: 100%; border: 0; }

.mp-carousel-wrap { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.mp-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow: hidden; scroll-behavior: smooth; }
.mp-carousel-nav { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--mp-border); background: var(--mp-surface); color: var(--mp-text); cursor: pointer; }
.mp-carousel-item { min-width: 0; }
.mp-carousel-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: 10px; margin-bottom: 8px; }
.mp-carousel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-carousel-title { font-size: .95rem; line-height: 1.35; margin: 0; }

/* Modern comments */
.mp-comments { margin-top: 22px; border: 1px solid var(--mp-border); background: var(--mp-surface); border-radius: 16px; padding: 16px; }
.mp-comments-title { margin: 0 0 14px; font-size: clamp(1.1rem, 0.7vw + 1rem, 1.5rem); }
.mp-comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mp-comment-list .children { list-style: none; margin: 10px 0 0; padding: 0 0 0 18px; display: grid; gap: 10px; }
.mp-comment-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; border: 1px solid var(--mp-border); border-radius: 12px; padding: 12px; background: color-mix(in srgb, var(--mp-surface) 92%, var(--mp-border)); }
.mp-comment-avatar img { border-radius: 999px; display: block; }
.mp-comment-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.mp-comment-author { font-size: 0.95rem; }
.mp-comment-time { font-size: 12px; color: var(--mp-muted); }
.mp-comment-content p { margin: 0 0 8px; }
.mp-comment-actions { font-size: 13px; color: var(--mp-muted); }
.mp-comment-actions a { color: var(--mp-primary); }
.mp-comment-reply-title { margin: 18px 0 8px; }
.mp-comment-note { color: var(--mp-muted); font-size: 13px; }
.mp-comments .comment-form-author,
.mp-comments .comment-form-email,
.mp-comments .comment-form-url,
.mp-comments .comment-form-comment { display: grid; gap: 6px; margin: 0 0 10px; }
.mp-comments input[type="text"],
.mp-comments input[type="email"],
.mp-comments input[type="url"],
.mp-comments textarea { width: 100%; border: 1px solid var(--mp-border); border-radius: 10px; padding: 10px; background: var(--mp-surface); color: var(--mp-text); }
.mp-comments .form-submit { margin: 10px 0 0; }
.mp-comment-submit { border: 0; background: var(--mp-primary); color: #fff; border-radius: 10px; padding: 10px 14px; cursor: pointer; }

@media (max-width: 1600px) {
  :root { --mp-container: 1360px; }
}

@media (max-width: 1366px) {
  :root { --mp-container: 1240px; --mp-gap: 20px; }
  .mp-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 1280px) {
  :root { --mp-container: 1180px; }
  .mp-layout { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
}

@media (max-width: 1024px) {
  :root { --mp-gap: 18px; }
  .mp-layout { grid-template-columns: 1fr; }
  .mp-mainbar { flex-wrap: wrap; row-gap: 10px; }
  .mp-footer-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
  #mp-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mp-topbar { display: none; }
  body.mp-bors-site .mp-topbar.mp-bors-topbar {
    display: flex;
  }
  .mp-primary-nav {
    display: none;
    width: 100%;
    margin-top: 8px;
    border: 1px solid var(--mp-border);
    border-radius: 12px;
    background: var(--mp-surface);
    padding: 10px 12px;
  }
  .mp-primary-nav.is-open { display: block; }
  .mp-menu { flex-direction: column; gap: 10px; }
  .mp-menu > li > a { display: block; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--mp-surface) 82%, var(--mp-border)); }
}

@media (max-width: 768px) {
  .mp-container { width: min(var(--mp-container), calc(100% - 24px)); }
  .mp-content { padding-top: 16px; }
  .mp-card-body, .mp-single, .mp-page { padding: 14px; }
  .mp-footer-widgets, .mp-footer-bottom { grid-template-columns: 1fr; display: grid; }
  .mp-footer-bottom { gap: 6px; }
  .mp-carousel-wrap { grid-template-columns: 1fr; }
  .mp-carousel-nav { display: none; }
  .mp-carousel-track { grid-auto-columns: 78%; overflow-x: auto; padding-bottom: 6px; }
}

@media (max-width: 640px) {
  .mp-grid { grid-template-columns: 1fr; gap: 14px; }
  .mp-cookie-bar { flex-direction: column; align-items: flex-start; }
  .mp-cookie-bar button { width: 100%; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .mp-site-title { font-size: 22px; }
  .mp-icon-btn { width: 36px; height: 36px; }
  .mp-newsletter-shortcode input { min-width: 0; width: 100%; }
}

@media (max-width: 992px) {
  /* Mobilon is maradjon a kereső, ha a Bors-elrendezés aktív */
  body:not(.mp-bors-site) #mp-search-toggle,
  body:not(.mp-bors-site) .mp-search-overlay {
    display: none !important;
  }
}

@media (max-width: 375px) {
  .mp-container { width: min(var(--mp-container), calc(100% - 16px)); }
  .mp-card-title { font-size: 1.05rem; }
}

@media (max-width: 320px) {
  .mp-site-title { font-size: 20px; }
  .mp-meta { font-size: 11px; gap: 6px; }
}

/* --- Bors-like dark magazine layout --- */
body.mp-bors-site {
  --mp-bors-bg: #27324b;
  --mp-bors-bg-deep: #1c2538;
  --mp-bors-red: #e60012;
  --mp-bors-text: #f1f5ff;
  --mp-bors-muted: #aeb8cf;
}

body.mp-bors-site .mp-breadcrumbs {
  display: none;
}

body.mp-home-bors {
  background: var(--mp-bors-bg);
  color: var(--mp-bors-text);
}

html[data-theme="light"] body.mp-home-bors {
  --mp-bg: var(--mp-bors-bg);
  --mp-surface: #24314b;
  --mp-text: var(--mp-bors-text);
}

html[data-theme="dark"] body.mp-home-bors {
  --mp-bg: #141b2a;
  --mp-surface: #1a253c;
  --mp-text: #f4f7ff;
}

body.mp-home-bors #content.mp-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

body.mp-bors-site .mp-header {
  background: var(--mp-bors-bg-deep);
  border-bottom: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

body.mp-bors-site .mp-topbar {
  background: var(--mp-bors-bg-deep);
  color: var(--mp-bors-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 40px;
  font-size: 12px;
}

body.mp-bors-site .mp-topbar a {
  color: var(--mp-bors-muted) !important;
}

body.mp-bors-site .mp-bors-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.mp-bors-site .mp-bors-topbar-aside {
  margin-left: auto;
}

body.mp-bors-site .mp-bors-topbar-meta {
  color: #d3dbef;
}

body.mp-bors-site .mp-bors-red-bar {
  background: var(--mp-bors-red);
}

body.mp-bors-site .mp-bors-red-bar-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
  min-height: 56px;
}

body.mp-bors-site .mp-bors-logo-wrap {
  flex: 0 0 auto;
  background: #fff;
  border-radius: 2px;
  padding: 4px 12px;
}

body.mp-bors-site .mp-bors-logo-wrap .custom-logo-link img {
  max-height: 38px;
  width: auto;
  display: block;
}

body.mp-bors-site .mp-bors-logo-wrap .mp-site-title {
  color: var(--mp-bors-red) !important;
  font-family: "Oswald", Inter, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
}

body.mp-bors-site .mp-bors-primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
}

body.mp-bors-site .mp-bors-primary-nav .mp-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

body.mp-bors-site .mp-bors-primary-nav .mp-menu a {
  color: #fff !important;
  font-family: "Oswald", Inter, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 6px;
  white-space: nowrap;
}

body.mp-bors-site .mp-bors-header-controls {
  margin-left: auto;
}

body.mp-bors-site .mp-bors-red-bar .mp-icon-btn {
  background: transparent;
  border: 0;
  color: #fff;
}

body.mp-bors-site .mp-bors-hamburger {
  display: none;
}

.mp-home-bors-wrap {
  background: var(--mp-bors-bg);
  padding-bottom: 40px;
}

.mp-bors-container {
  width: min(1440px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.mp-bors-hero {
  padding: 0 0 18px;
}

.mp-bors-hero-media {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  min-height: clamp(360px, 52vh, 560px);
  min-width: 0;
}

.mp-bors-hero-cell {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
}

.mp-bors-hero-img,
.mp-bors-hero-img img,
.mp-bors-hero-ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.mp-bors-hero-ph {
  background: linear-gradient(135deg, #4b5a7a 0%, #26334f 100%);
}

.mp-bors-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 8px;
  border-radius: 2px;
}

.mp-bors-hero-text {
  text-align: center;
  padding: 18px 16px 10px;
}

.mp-bors-hero-title {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 2.9vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
}

.mp-bors-hero-title a {
  color: #fff;
}

.mp-bors-hero-kicker {
  margin: 0;
  color: #dfe7fa;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mp-bors-teasers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.mp-bors-teaser {
  background: color-mix(in srgb, #2b3854 85%, #fff 2%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(4, 8, 16, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mp-bors-teaser:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(4, 8, 16, 0.42);
}

.mp-bors-teaser-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: inherit;
}

.mp-bors-teaser-thumb {
  position: relative;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--mp-cat) 45%, #fff 12%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mp-bors-teaser-thumb img,
.mp-bors-teaser-thumb .mp-bors-hero-ph {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.mp-bors-teaser .mp-bors-badge {
  left: auto;
  right: -2px;
  bottom: -2px;
  font-size: 8px;
  padding: 3px 5px;
  border-radius: 999px;
}

.mp-bors-teaser-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mp-bors-teaser-title {
  color: #fff;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.18;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mp-bors-teaser-cat {
  margin: 0;
  color: color-mix(in srgb, var(--mp-cat) 65%, #fff 35%);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Category quick nav */
.mp-bors-cat-nav {
  position: sticky;
  top: 0;
  z-index: 25;
  padding: 10px 0;
  background: color-mix(in srgb, var(--mp-bors-bg-deep) 92%, transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mp-bors-cat-nav-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.mp-bors-cat-pill {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff !important;
  background: color-mix(in srgb, var(--mp-cat) 88%, #000);
  border: 1px solid color-mix(in srgb, var(--mp-cat) 60%, transparent);
}

.mp-bors-cat-pill.is-active {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.mp-bors-cat-section {
  padding: 22px 0 10px;
  scroll-margin-top: 88px;
}

.mp-bors-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid color-mix(in srgb, var(--mp-cat) 72%, #fff);
}

.mp-bors-cat-title {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 800;
  text-transform: uppercase;
}

.mp-bors-cat-title a {
  color: #fff !important;
}

.mp-bors-cat-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: #d9e2f6 !important;
  text-transform: uppercase;
}

.mp-bors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mp-bors-card {
  background: #24314b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  overflow: hidden;
}

.mp-bors-card-link {
  display: grid;
  grid-template-rows: auto auto auto;
  height: 100%;
  color: inherit;
}

.mp-bors-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.mp-bors-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-bors-card-title {
  margin: 0;
  padding: 10px 12px 6px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.mp-bors-card-cat {
  display: block;
  padding: 0 12px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #d3dcf0;
}

.mp-bors-empty {
  color: #d3dbef;
  font-size: 0.95rem;
}

@media (max-width: 1100px) {
  .mp-bors-teasers,
  .mp-bors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  body.mp-bors-site .mp-bors-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  body.mp-bors-site .mp-bors-primary-nav {
    display: none;
    width: 100%;
    order: 4;
    padding: 8px 0 4px;
    background: color-mix(in srgb, var(--mp-bors-red) 88%, #000);
  }
  body.mp-bors-site .mp-bors-primary-nav.is-open {
    display: block;
  }
  body.mp-bors-site .mp-bors-primary-nav .mp-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: visible;
  }
  body.mp-bors-site .mp-bors-primary-nav .mp-menu a {
    padding: 9px 12px;
  }
}

@media (max-width: 860px) {
  .mp-bors-hero-media {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .mp-bors-teasers,
  .mp-bors-grid {
    grid-template-columns: 1fr;
  }
  .mp-bors-container {
    width: calc(100% - 20px);
  }
  .mp-bors-teaser-link {
    gap: 9px;
    padding: 8px;
  }
  .mp-bors-teaser-thumb {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }
}

/* Colored category badges (cards + single) */
.mp-cat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.mp-cat-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--mp-cat) 28%, transparent);
  color: var(--mp-cat) !important;
  border: 1px solid color-mix(in srgb, var(--mp-cat) 45%, transparent);
  transition: background 0.2s ease, transform 0.2s ease;
}

a.mp-cat-badge:hover {
  background: color-mix(in srgb, var(--mp-cat) 42%, transparent);
  transform: translateY(-1px);
}

.mp-card-cats {
  margin-bottom: 8px;
}

.mp-card-cats .mp-cat-badge {
  font-size: 0.68rem;
  padding: 3px 8px;
}

body.mp-home-bors .mp-footer {
  background: #ececec;
  border-top: 3px solid var(--mp-bors-red, #e60012);
  color: #444;
}

body.mp-home-bors .mp-footer a {
  color: #1a1a1a;
}

body.mp-home-bors .mp-footer a:hover {
  color: var(--mp-bors-red, #e60012);
}

@media (prefers-reduced-motion: reduce) {
  .mp-bors-hero-cell,
  .mp-bors-cat-pill,
  .mp-bors-card,
  .mp-bors-card-media img,
  .mp-cat-badge {
    transition: none;
  }
  .mp-bors-card:hover .mp-bors-card-media img {
    transform: none;
  }
}

/* Scroll ad break popup */
.mp-scroll-adbreak {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
}
.mp-scroll-adbreak.is-open {
  display: block;
}
.mp-scroll-adbreak-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.7);
  backdrop-filter: blur(3px);
}
.mp-scroll-adbreak-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(740px, calc(100% - 28px));
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 16px;
  padding: 18px 16px 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.mp-scroll-adbreak-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--mp-border);
  background: var(--mp-surface);
  color: var(--mp-text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.mp-scroll-adbreak-label {
  margin: 0 38px 10px 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--mp-muted);
}
.mp-scroll-adbreak-content > * {
  max-width: 100%;
}
.mp-scroll-adbreak-placeholder {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--mp-border);
  border-radius: 10px;
  color: var(--mp-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Modern recent posts widget (Legutobbi bejegyzesek) */
.mp-recent-modern {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.mp-latest-modern-list,
.wp-block-latest-posts {
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.mp-recent-modern-item {
  margin: 0;
}
.mp-recent-modern-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--mp-border) 75%, transparent);
  background: color-mix(in srgb, var(--mp-surface) 86%, var(--mp-border));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.mp-recent-modern-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--mp-primary) 44%, var(--mp-border));
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.14);
}
.mp-recent-modern-thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--mp-primary) 28%, transparent);
  background: color-mix(in srgb, var(--mp-surface) 78%, var(--mp-border));
  display: block;
}
.mp-recent-modern-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mp-recent-modern-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--mp-primary);
}
.mp-recent-modern-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.mp-recent-modern-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.24;
  font-weight: 700;
}
.mp-recent-modern-date {
  font-size: 12px;
  color: var(--mp-muted);
}

/* Interactive home rotator and auto sliders */
.mp-bors-hero-rotator {
  position: relative;
}
.mp-bors-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s ease;
}
.mp-bors-hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mp-bors-hero-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  gap: 8px;
  z-index: 3;
}

.mp-auto-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.mp-auto-slider-track {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
.mp-auto-slider-track::-webkit-scrollbar {
  height: 8px;
}
.mp-auto-slider-track::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--mp-border) 65%, transparent);
  border-radius: 999px;
}
.mp-auto-slider-item {
  min-width: 0;
}

.mp-bors-teasers {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 12px;
  padding-bottom: 4px;
}
.mp-bors-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 14px;
  padding-bottom: 4px;
}
.mp-auto-slider-item.is-hidden-desktop {
  display: block;
}

@media (max-width: 1100px) {
  .mp-auto-slider {
    grid-template-columns: 1fr;
  }
  .mp-auto-slider .mp-carousel-nav {
    display: none;
  }
  .mp-bors-teasers {
    grid-auto-columns: minmax(220px, 78%);
  }
  .mp-bors-grid {
    grid-auto-columns: minmax(240px, 82%);
  }
}

@media (max-width: 640px) {
  .mp-bors-hero-controls {
    right: 8px;
    bottom: 8px;
  }
  .mp-bors-hero-controls .mp-carousel-nav {
    width: 30px;
    height: 30px;
  }
}
