.m5news-head-banner{flex:1;min-width:0;display:flex;align-items:center;min-height:70px}.m5news-banner1-item{display:none;width:100%;line-height:0;text-align:left}.m5news-banner1-item a{display:block;line-height:0}.m5news-banner1-item img{display:block;width:auto;max-width:100%;height:auto;max-height:90px;border:0;margin:0}.m5news-banner1-empty{min-height:1px}@media(max-width:620px){.m5news-head-banner{margin-bottom:12px}.m5news-banner1-item{text-align:center}.m5news-banner1-item img{margin:0 auto;max-height:80px}}.m5news-page{max-width:1280px;margin:25px auto;padding:0 18px;color:#15243b;font-family:Arial,sans-serif}.m5news-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.m5news-kicker{font-size:12px;font-weight:800;letter-spacing:2px;color:#1685ef}.m5news-head h1{font-size:34px;margin:4px 0}.m5news-head p{margin:0;color:#718096}.m5news-layout{display:grid;grid-template-columns:minmax(0,2.35fr) minmax(280px,.85fr);gap:20px}.m5news-section,.m5news-side,.m5news-article,.m5news-editor{background:#fff;border:1px solid #e5eaf1;border-radius:16px;box-shadow:0 5px 20px rgba(18,39,65,.06);overflow:hidden;margin-bottom:20px}.m5news-section-title{display:flex;align-items:center;gap:12px;padding:20px 22px}.m5news-section-title>span{font-size:25px}.m5news-section-title h2{margin:0;font-size:22px}.m5news-section-title small{color:#7a8799}.m5news-section-title>a{margin-left:auto;color:#087ee9;text-decoration:none;font-weight:700}.m5news-feature-grid{display:grid;grid-template-columns:1.35fr 1fr;grid-template-rows:repeat(2,190px);gap:8px;padding:0 12px 12px}.m5news-card{position:relative;min-height:190px;border-radius:13px;background:#17263b center/cover no-repeat;overflow:hidden}.m5news-card-big{grid-row:span 2}.m5news-overlay{height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:14px;background:linear-gradient(180deg,rgba(4,17,33,.08),rgba(4,17,33,.9))}.m5news-cat{display:inline-block;align-self:flex-start;background:#087ee9;color:#fff;border-radius:6px;padding:5px 8px;font-size:10px;font-weight:800;text-transform:uppercase}.m5news-card-bottom{color:#fff}.m5news-card h3{font-size:22px;line-height:1.12;margin:8px 0}.m5news-card:not(.m5news-card-big) h3{font-size:17px}.m5news-card a{color:inherit;text-decoration:none}.m5news-meta{font-size:12px;color:#8a96a8;margin:6px 0}.m5news-card .m5news-meta{color:#e1e7ef}.m5news-card p{font-size:13px;line-height:1.45;margin:7px 0;color:#e8edf4}.m5news-vip-line{color:#ffd51b;font-weight:700;font-size:12px}.m5news-vip-line a{color:#ffd51b;text-decoration:underline}.m5news-cats{display:flex;gap:10px;flex-wrap:wrap;padding:0 22px 22px}.m5news-cats a{padding:13px 17px;border:1px solid #e3e9f1;border-radius:10px;color:#1d4e80;text-decoration:none;font-weight:700;background:#fafcff}.m5news-best-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:0 12px 18px}.m5news-best-card{border:1px solid #e5eaf1;border-radius:12px;padding:9px;overflow:hidden}.m5news-best-card img{width:100%;height:105px;object-fit:cover;border-radius:8px}.m5news-best-card h3{font-size:15px;line-height:1.2;margin:8px 2px}.m5news-best-card a{color:#15243b;text-decoration:none}.m5news-votes{display:flex;gap:15px;font-size:12px}.m5news-votes b:first-child{color:#159447}.m5news-votes b:last-child{color:#df3944}.m5news-side{padding:18px}.m5news-side h3{margin:0 0 13px;font-size:18px}.m5news-forum-row{display:block;padding:10px 0;border-bottom:1px solid #edf0f4;text-decoration:none;color:#15243b}.m5news-forum-row b{display:block;font-size:13px}.m5news-forum-row small,.m5news-ad small{display:block;color:#8994a5;margin-top:4px}.m5news-side-btn{display:block;text-align:center;background:#edf6ff;color:#087ee9;padding:11px;border-radius:9px;margin-top:12px;text-decoration:none;font-weight:700}.m5news-chat{background:linear-gradient(145deg,#f4fbf7,#fff)}.m5news-chat i{display:inline-block;width:9px;height:9px;background:#18ad63;border-radius:50%;margin-right:4px}.m5news-chat strong{display:block;font-size:30px;margin:12px 0 3px}.m5news-ad{padding:10px 0;border-bottom:1px solid #edf0f4;font-size:13px}.m5news-btn{display:inline-block;background:#087ee9;color:#fff!important;padding:11px 17px;border:0;border-radius:9px;font-weight:800;text-decoration:none;cursor:pointer}.m5news-back{display:inline-block;margin-bottom:14px;color:#087ee9;text-decoration:none;font-weight:700}.m5news-hero{width:100%;max-height:480px;object-fit:cover;display:block}.m5news-article-inner{padding:28px}.m5news-article h1{font-size:38px;line-height:1.12;margin:12px 0;color:#15243b!important;display:block}.m5news-author{color:#7d8999}.m5news-content{font-size:17px;line-height:1.7;white-space:pre-wrap;margin-top:25px}.m5news-vip-box{margin:25px 0;padding:18px;border-radius:12px;background:#fff9d9;border:1px solid #f2d84c;color:#8a6c00}.m5news-vip-box a{color:#7d6200;font-weight:800}.m5news-vote-box{display:flex;gap:10px;align-items:center;margin:24px 0;padding-top:18px;border-top:1px solid #edf0f4}.m5news-vote-box form{display:flex;gap:7px}.m5news-vote-box button{border:1px solid #dfe5ed;background:#fff;border-radius:9px;padding:9px 13px;cursor:pointer}.m5news-comments{border-top:1px solid #edf0f4;padding-top:20px}.m5news-comments textarea,.m5news-editor textarea,.m5news-editor input,.m5news-editor select{width:100%;box-sizing:border-box;border:1px solid #dfe5ed;border-radius:9px;padding:11px;margin:7px 0 15px}.m5news-comments textarea{min-height:100px}.m5news-comment{padding:12px 0;border-bottom:1px solid #edf0f4}.m5news-comment small{color:#8b96a4;margin-left:8px}.m5news-comment p{margin:7px 0}.m5news-editor{padding:28px}.m5news-editor label{display:block;font-weight:700}.m5news-editor-text{min-height:330px}.m5news-editor small{font-weight:400;color:#7d8999}.m5news-alert,.m5news-empty{padding:15px;color:#667085}.m5news-alert{background:#fff5d9;margin-bottom:15px;border-radius:9px}@media(max-width:900px){.m5news-layout{grid-template-columns:1fr}.m5news-best-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.m5news-head{display:block}.m5news-head .m5news-btn{margin-top:12px}.m5news-feature-grid{grid-template-columns:1fr;grid-template-rows:auto}.m5news-card-big{grid-row:auto;min-height:300px}.m5news-best-grid{grid-template-columns:1fr}.m5news-article h1{font-size:28px}}
.m5news-home-option{margin:0 0 22px;padding:12px 14px;background:#f7faff;border:1px solid #dfe8f3;border-radius:10px}.m5news-home-option label{display:flex;align-items:center;gap:10px!important;font-weight:700;cursor:pointer}.m5news-home-option input[type="checkbox"]{width:18px!important;height:18px!important;min-width:18px;margin:0!important;padding:0!important;box-sizing:border-box}.m5news-home-option span{line-height:1.4}

.m5news-bbcode-wrap{margin:4px 0 4px;padding:0}
.m5news-bbcode-title{font-weight:800;font-size:14px;color:#15243b;margin:0 0 8px}
.m5news-bbcode-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:10px;background:#f7faff;border:1px solid #dfe8f3;border-radius:10px 10px 0 0}
.m5news-bbcode-btn{appearance:none;border:1px solid #cfd9e7;background:#fff;color:#173c64;border-radius:7px;min-width:38px;height:34px;padding:0 10px;font-size:12px;font-weight:800;cursor:pointer;line-height:32px}
.m5news-bbcode-btn:hover{background:#edf6ff;border-color:#1685ef}
.m5news-bbcode-custom{background:#fbfcfe}
.m5news-bbcode-note{padding:8px 10px;margin-bottom:12px;border:1px solid #dfe8f3;border-top:0;border-radius:0 0 10px 10px;background:#fff;color:#718096;font-size:12px}
.m5news-editor-text{margin-top:0!important}
@media(max-width:620px){.m5news-bbcode-toolbar{gap:5px}.m5news-bbcode-btn{min-width:34px;padding:0 8px}}

/* FIX024 — podgląd newsu przed publikacją */
.m5news-editor-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:4px}
.m5news-preview-btn{background:#fff!important;color:#087ee9!important;border:1px solid #087ee9!important}
.m5news-preview-btn:hover{background:#edf6ff!important}
.m5news-preview-modal{display:none;position:fixed;inset:0;z-index:2147483000;background:rgba(9,25,43,.72);padding:24px;box-sizing:border-box;align-items:center;justify-content:center}
.m5news-preview-modal.is-open{display:flex}
.m5news-preview-dialog{width:min(980px,100%);max-height:92vh;background:#fff;border-radius:15px;box-shadow:0 24px 70px rgba(0,0,0,.35);overflow:hidden;display:flex;flex-direction:column}
.m5news-preview-head{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;border-bottom:1px solid #e5eaf1;color:#173c64;font-size:17px}
.m5news-preview-close{width:34px;height:34px;border:0;border-radius:50%;background:#edf5fc;color:#315d82;font-size:23px;line-height:1;cursor:pointer}
.m5news-preview-body{overflow:auto;padding:0;background:#f5f8fb}
.m5news-preview-article{max-width:900px;margin:20px auto;background:#fff;border:1px solid #e1e8f0;border-radius:13px;box-shadow:0 4px 18px rgba(25,70,110,.08);padding:28px}
.m5news-preview-category{display:inline-block;background:#087ee9;color:#fff;border-radius:6px;padding:5px 9px;font-size:10px;font-weight:800;text-transform:uppercase;margin-bottom:8px}
.m5news-preview-article h1{font-size:36px;line-height:1.14;color:#15243b;margin:8px 0 8px}
.m5news-preview-meta{color:#7d8999;font-size:12px;margin-bottom:18px}
.m5news-preview-image{width:100%;max-height:430px;object-fit:cover;border-radius:10px;margin:0 0 20px;display:block}
.m5news-preview-excerpt{padding:13px 15px;margin:0 0 20px;background:#f7faff;border-left:4px solid #087ee9;border-radius:7px;color:#536579;line-height:1.55}
.m5news-preview-content{font-size:17px;line-height:1.7;color:#17283d;overflow-wrap:anywhere}
.m5news-preview-content img{max-width:100%;height:auto;border-radius:8px}
.m5news-preview-content blockquote{margin:15px 0;padding:12px 16px;border-left:4px solid #087ee9;background:#f5f8fc;color:#536579}
.m5news-preview-content pre{white-space:pre-wrap;background:#18283b;color:#fff;padding:14px;border-radius:8px;overflow:auto}
.m5news-preview-content .m5news-preview-spoiler{border:1px solid #dfe5ed;border-radius:8px;padding:10px;background:#fafcff}
.m5news-preview-content .m5news-preview-spoiler-title{font-weight:800;margin-bottom:5px;color:#315d82}
.m5news-preview-actions{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid #e5eaf1;background:#fff}
.m5news-preview-edit{border:1px solid #cfd9e7;background:#fff;color:#315d82;border-radius:9px;padding:11px 17px;font-weight:800;cursor:pointer}
@media(max-width:620px){.m5news-preview-modal{padding:8px}.m5news-preview-article{margin:8px;padding:18px}.m5news-preview-article h1{font-size:27px}.m5news-preview-actions{flex-direction:column}.m5news-preview-actions button{width:100%}}
.m5news-manage{display:flex;gap:8px;align-items:center;margin:16px 0 4px}.m5news-manage form{margin:0}.m5news-delete-btn{display:inline-block;background:#fff;border:1px solid #e05a67;color:#c62838;padding:11px 17px;border-radius:9px;font-weight:800;cursor:pointer}.m5news-cancel-btn{display:inline-block;margin-left:8px;padding:11px 17px;border-radius:9px;border:1px solid #dfe5ed;color:#506176;text-decoration:none;font-weight:700}.m5news-edit-meta{margin:-4px 0 18px;color:#7d8999}.m5news-current-image{margin:0 0 18px;padding:12px;border:1px solid #e5eaf1;border-radius:10px}.m5news-current-image img{display:block;max-width:100%;max-height:260px;object-fit:cover;border-radius:8px;margin-bottom:10px}.m5news-current-image label{font-weight:600}.m5news-editor-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* FIX032 — czytelniejsza sekcja najnowszych newsów. Bez zajawki na stronie głównej. */
.m5news-feature-grid{grid-template-rows:repeat(2,240px)!important}
.m5news-card{min-height:240px!important}
.m5news-card-big{min-height:480px!important}
.m5news-card-bottom{position:relative;z-index:2}
.m5news-card h3,.m5news-card:not(.m5news-card-big) h3{font-size:27px!important;line-height:1.12!important;margin:8px 0 10px!important;text-shadow:0 2px 4px rgba(0,0,0,.65)!important}
.m5news-card:not(.m5news-card-big) h3{font-size:21px!important}
.m5news-card h3 a,.m5news-card:not(.m5news-card-big) h3 a{color:#fff!important;text-decoration:none!important;font-weight:800!important}
.m5news-card .m5news-meta{font-size:13px!important;color:#fff!important;text-shadow:0 1px 3px rgba(0,0,0,.75)!important;white-space:normal!important;display:block!important}
@media(max-width:620px){.m5news-feature-grid{grid-template-rows:auto!important}.m5news-card-big{min-height:320px!important}.m5news-card{min-height:260px!important}.m5news-card h3,.m5news-card:not(.m5news-card-big) h3{font-size:22px!important}}


/* FIX033 — pełna widoczność metadanych kart NEWS */
.m5news-card{overflow:hidden!important}
.m5news-overlay{position:relative!important;box-sizing:border-box!important;padding:14px 14px 16px!important}
.m5news-card-bottom{position:absolute!important;left:14px!important;right:14px!important;bottom:14px!important;z-index:3!important}
.m5news-card h3{margin-bottom:8px!important}
.m5news-card .m5news-meta{display:block!important;line-height:1.35!important;min-height:18px!important;white-space:nowrap!important;overflow:visible!important}
.m5news-gallery{margin-top:34px;padding-top:24px;border-top:1px solid #edf0f4}
.m5news-gallery h2{margin:0 0 14px;font-size:25px;color:#15243b}
.m5news-gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.m5news-gallery-grid a{display:block;border-radius:10px;overflow:hidden;background:#eef2f6}
.m5news-gallery-grid img{display:block;width:100%;height:220px;object-fit:cover;transition:transform .18s ease}
.m5news-gallery-grid a:hover img{transform:scale(1.025)}
.m5news-gallery-edit{margin:0 0 18px;padding:12px;border:1px solid #e5eaf1;border-radius:10px;background:#fafcff}
.m5news-gallery-edit-row{display:inline-flex;vertical-align:top;flex-direction:column;gap:7px;width:150px;margin:10px 10px 0 0}
.m5news-gallery-edit-row img{width:150px;height:100px;object-fit:cover;border-radius:8px;display:block}
.m5news-gallery-edit-row label{font-weight:600!important}
@media(max-width:900px){.m5news-gallery-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.m5news-gallery-grid{grid-template-columns:1fr}.m5news-gallery-grid img{height:240px}.m5news-card .m5news-meta{white-space:normal!important}}

/* FIX034 — podgląd zdjęć dodatkowych */
.m5news-preview-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 4px}
.m5news-preview-gallery img{display:block;width:100%;height:140px;object-fit:cover;border-radius:10px;border:1px solid #dce5ef}
@media(max-width:700px){.m5news-preview-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.m5news-preview-gallery img{height:120px}}

/* FIX036: MEDIA5 NEWS lightbox */
.m5news-lightbox-trigger{cursor:zoom-in}
.m5news-main-lightbox-trigger{display:block;text-decoration:none}
.m5news-lightbox{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:28px;box-sizing:border-box;background:rgba(5,12,24,.94);opacity:0;visibility:hidden;transition:opacity .16s ease,visibility .16s ease}
.m5news-lightbox.is-open{opacity:1;visibility:visible}
.m5news-lightbox-stage{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;max-width:1800px}
.m5news-lightbox-image{display:block;max-width:calc(100vw - 120px);max-height:calc(100vh - 90px);width:auto;height:auto;object-fit:contain;border-radius:4px;box-shadow:0 8px 40px rgba(0,0,0,.45)}
.m5news-lightbox-close,.m5news-lightbox-prev,.m5news-lightbox-next{position:absolute;border:0;color:#fff;background:rgba(255,255,255,.12);width:46px;height:46px;border-radius:50%;font-size:30px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2}.m5news-lightbox-close:hover,.m5news-lightbox-prev:hover,.m5news-lightbox-next:hover{background:rgba(255,255,255,.24)}
.m5news-lightbox-close{top:10px;right:10px;font-size:32px}.m5news-lightbox-prev{left:8px;top:50%;transform:translateY(-50%)}.m5news-lightbox-next{right:8px;top:50%;transform:translateY(-50%)}
.m5news-lightbox-counter{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);color:#fff;background:rgba(0,0,0,.45);padding:6px 10px;border-radius:999px;font-size:13px;z-index:2}
body.m5news-lightbox-open{overflow:hidden}
@media(max-width:700px){.m5news-lightbox{padding:12px}.m5news-lightbox-image{max-width:calc(100vw - 34px);max-height:calc(100vh - 100px)}.m5news-lightbox-prev,.m5news-lightbox-next{width:40px;height:40px;font-size:25px}.m5news-lightbox-prev{left:2px}.m5news-lightbox-next{right:2px}.m5news-lightbox-close{top:2px;right:2px}}

/* FIX038 — prawa kolumna: Kategorie → Ogłoszenia → Czat → Ostatnie tematy */
.m5news-side-categories{padding-bottom:16px}
.m5news-side-cats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.m5news-side-cats a{display:block;padding:10px 11px;border:1px solid #e3e9f1;border-radius:9px;color:#1d4e80;text-decoration:none;font-weight:700;background:#fafcff;font-size:13px}
.m5news-side-cats a:hover{background:#edf6ff;border-color:#bcdcff;color:#087ee9}
@media(max-width:620px){.m5news-side-cats{grid-template-columns:1fr 1fr}}


/* FIX046/FIX049 — NEWS: ukrywamy duży header forum, ale ZAWSZE zostawiamy pasek MEDIA5/nav dla zalogowanego użytkownika. */
body:has(.m5news-page) #page-header {
  display:block !important;
}
body:has(.m5news-page) #page-header .headerbar {
  display:none !important;
}
body:has(.m5news-page) #page-header > .navbar,
body:has(.m5news-page) #page-header .navbar {
  display:flex !important;
}
body:has(.m5news-page) #page-body {
  margin:0 !important;
  padding:0 !important;
}
body:has(.m5news-page) #wrap {
  margin:0 !important;
  padding:0 !important;
}
.m5news-page {
  max-width:1280px;
  margin:0 auto !important;
  padding:0 18px;
}
.m5news-head {
  display:block !important;
  width:100%;
  margin:0 0 22px !important;
  padding:0;
  text-align:center;
}
.m5news-head-banner {
  display:block !important;
  width:100%;
  min-width:0;
  min-height:0 !important;
  margin:0;
  padding:0;
  text-align:center;
}
.m5news-banner1-item {
  display:none;
  width:100%;
  line-height:0;
  text-align:center;
}
.m5news-banner1-item a {
  display:inline-block;
  line-height:0;
}
.m5news-banner1-item img {
  display:block;
  width:468px !important;
  max-width:100% !important;
  height:auto !important;
  max-height:none !important;
  margin:0 auto !important;
  border:0;
}
@media(max-width:620px){
  .m5news-page { padding:0 8px; }
  .m5news-head { margin-bottom:16px !important; }
  .m5news-banner1-item img { width:468px !important; max-width:100% !important; }
}

/* FIX056: NEWS nie modyfikuje globalnego układu strony. Pasek MEDIA5 USER PROFILE jest renderowany przez core.page_header. */
.m5news-standalone { width: 100%; box-sizing: border-box; margin: 0; padding: 0; }
.m5news-standalone .m5news-page { margin-top: 0; }

/* FIX057 — exact USER PROFILE topbar overrides used by the live profile. */
.m5up-topbar,.m5up-toptools,.m5up-toptools form{overflow:visible!important}
.m5up-toptools{align-items:center!important}
.m5up-token-balance{overflow:visible!important}
.m5up-token-balance{display:flex;align-items:center;gap:6px;height:42px;min-height:42px;padding:0 10px;border:1px solid rgba(255,255,255,.35);border-radius:21px;background:rgba(5,31,58,.82);color:#fff;text-decoration:none;white-space:nowrap;box-sizing:border-box;font-size:13px;font-weight:700;box-shadow:0 1px 4px rgba(0,0,0,.16);overflow:visible!important;position:relative;z-index:20;line-height:normal}
.m5up-token-balance img{width:23px!important;height:23px!important;max-width:23px!important;max-height:23px!important;object-fit:contain;display:block;flex:0 0 23px;filter:drop-shadow(0 1px 1px rgba(0,0,0,.3));position:relative;z-index:21;transform:translateY(2px);box-sizing:content-box}
.m5up-token-balance strong{font-size:14px;color:#ffd45a}
.m5up-token-label{font-weight:600;color:#fff}
.m5up-topbar .m5up-user-mini{display:flex!important;align-items:center!important;gap:7px!important;white-space:nowrap!important}
.m5up-topbar .m5up-user-avatar{width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;flex:0 0 34px!important;aspect-ratio:1/1!important;border-radius:50%!important;overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}
.m5up-topbar .m5up-user-avatar img{width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;display:block!important}


/* FIX059 — pasek NEWS ma być identyczny z paskiem referencyjnym MEDIA5.
   NEWS używa tego samego układu: Strona główna + 6 pozycji, ikony Font Awesome,
   większe pola nawigacji i identyczne narzędzia po prawej. */
.m5up-topbar{min-height:70px!important;height:70px!important;padding:0 10px!important}
.m5up-brand{width:190px!important;min-width:190px!important;padding:7px 14px 4px!important}
.m5up-brand strong{font-size:20px!important}
.m5up-brand small{font-size:9px!important;margin-top:4px!important}
.m5up-topnav{align-items:stretch!important;flex:1 1 auto!important}
.m5up-topnav a{width:95px!important;min-width:80px!important;padding:5px 4px 4px!important;font-size:9px!important;gap:3px!important}
.m5up-topnav a:nth-child(4){width:95px!important}
.m5up-topnav i{font-size:15px!important;line-height:15px!important;display:block!important}
.m5up-toptools{gap:6px!important}
.m5up-search{width:165px!important;height:34px!important;margin:0 2px 0 5px!important;border-radius:18px!important}
.m5up-search input{font-size:11px!important;padding:0 11px!important}
.m5up-search button{width:34px!important}
.m5up-tool-icon{width:28px!important;height:40px!important;font-size:16px!important}
.m5up-toptools .m5up-token-balance{min-width:184px!important;height:56px!important;border-radius:29px!important;padding:0 14px!important;gap:8px!important;font-size:17px!important}
.m5up-toptools .m5up-token-balance img{width:30px!important;height:30px!important}
.m5up-toptools .m5up-token-balance .m5up-token-label{font-size:17px!important}
.m5up-toptools .m5up-token-balance strong{font-size:20px!important}
.m5up-topbar .m5up-user-mini{gap:7px!important;max-width:120px!important;padding:3px 5px!important;font-size:10px!important}
.m5up-topbar .m5up-user-avatar{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;flex:0 0 40px!important}
.m5up-topbar .m5up-user-avatar img{width:100%!important;height:100%!important;object-fit:cover!important}
@media(max-width:900px){.m5up-brand{width:165px!important;min-width:165px!important}.m5up-topnav a{width:78px!important;min-width:65px!important}.m5up-search{width:135px!important}.m5up-toptools .m5up-token-balance{min-width:155px!important}}


/* FIX067 — przycisk Dodaj news po prawej stronie nagłówka NEWS. */
.m5news-head .m5news-btn{margin-left:auto;flex:0 0 auto}

/* FIX068: NEWS uses the global MEDIA5 NAVBAR only. Hide phpBB's legacy navbar on NEWS. */
body:has(.m5news-standalone) > #wrap > #page-header > .navbar, body:has(.m5news-standalone) .navbar { display:none !important; }


/* M5 FRIEND BOARD — strumień społecznościowy na stronie głównej */
/* FIX720: Polecane renderuje wspólny komponent MEDIA5 USER PROFILE. */
.m5fb-feed-section{margin-top:20px;background:#fff;border:1px solid #dce7f1;border-radius:15px;padding:16px;box-shadow:0 4px 14px rgba(19,59,92,.06);color:#173b5e}.m5fb-feed-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #e5edf4;margin-bottom:12px}.m5fb-feed-heading>div{display:flex;align-items:center;gap:10px}.m5fb-feed-icon{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#edf6ff;font-size:18px}.m5fb-feed-heading h2{font-size:17px;line-height:1.2;margin:0;color:#123f6b;font-weight:900;letter-spacing:.2px}.m5fb-feed-heading small{display:block;color:#8295a7;font-size:10px;margin-top:4px}.m5fb-feed-count{font-size:10px;color:#8a9caf;background:#f4f8fc;border:1px solid #e2ebf3;border-radius:999px;padding:5px 9px;white-space:nowrap}.m5fb-feed-list{display:flex;flex-direction:column;gap:12px}.m5fb-post{display:flex;gap:11px;padding:12px;border:1px solid #e1eaf2;border-radius:12px;background:#fff;min-width:0}.m5fb-post:hover{border-color:#cfdfed}.m5fb-post-avatar{width:42px;height:42px;min-width:42px;border-radius:50%;overflow:hidden;background:#0d3454;display:flex;align-items:center;justify-content:center;color:#fff}.m5fb-post-avatar img{width:100%;height:100%;object-fit:cover}.m5fb-post-main{min-width:0;flex:1}.m5fb-post-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.m5fb-post-head>div{min-width:0;display:flex;align-items:baseline;flex-wrap:wrap;gap:5px}.m5fb-post-author,.m5fb-post-wall-owner{font-size:12px;font-weight:900;color:#176ec3!important;text-decoration:none!important}.m5fb-post-context{font-size:10px;color:#8798a9}.m5fb-post-head time{font-size:9px;color:#8a9daf;white-space:nowrap}.m5fb-post-text{font-size:12px;line-height:1.55;color:#203f5d;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.m5fb-post-images{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}.m5fb-post-images a{display:block;max-width:160px;max-height:150px;overflow:hidden;border-radius:9px;border:1px solid #dce7ef}.m5fb-post-images img{display:block;max-width:160px;max-height:150px;object-fit:cover}.m5fb-comments-preview{display:flex;flex-direction:column;gap:6px;margin:9px 0;padding:8px 10px;background:#f7fafe;border-radius:9px}.m5fb-comment{font-size:10px;line-height:1.4;display:flex;gap:6px;align-items:baseline;overflow-wrap:anywhere}.m5fb-comment a{font-weight:800;color:#176ec3;text-decoration:none}.m5fb-comment span{color:#536f89;white-space:pre-wrap}.m5fb-post-stats{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:7px 0;border-bottom:1px solid #edf1f5;color:#8194a6;font-size:9px}.m5fb-post-stats a{margin-left:auto;color:#176ec3;text-decoration:none;font-weight:700}.m5fb-post-actions{display:flex;align-items:center;gap:7px;padding-top:8px}.m5fb-action-form{margin:0}.m5fb-post-actions button,.m5fb-comment-shortcut{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #d9e6ef;border-radius:8px;background:#f8fbfe;color:#41647f;padding:7px 11px;font-size:10px;font-weight:800;text-decoration:none!important;cursor:pointer}.m5fb-post-actions button:hover,.m5fb-comment-shortcut:hover{background:#edf6ff;border-color:#b9d6ed}.m5fb-post-actions button.is-liked{background:#e8f3ff;border-color:#a8d0f0;color:#176ec3}.m5fb-comments-closed{font-size:10px;color:#9aa9b6;padding:7px 0}.m5fb-comment-form{display:flex;align-items:flex-end;gap:7px;margin-top:9px}.m5fb-comment-form textarea{box-sizing:border-box;flex:1;min-width:0;resize:vertical;min-height:35px;max-height:100px;border:1px solid #d7e4ee;border-radius:8px;padding:8px 10px;font:inherit;font-size:11px;background:#fcfdff;color:#183e60}.m5fb-comment-form button{border:0;border-radius:8px;background:#176ec3;color:#fff;font-size:10px;font-weight:800;padding:9px 11px;cursor:pointer;white-space:nowrap}.m5fb-feed-empty{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:18px;background:#f8fbfe;border:1px dashed #d6e5f0;border-radius:10px;color:#7890a5;font-size:11px}.m5fb-feed-empty strong{color:#285578;font-size:12px}.m5fb-feed-empty a{font-weight:800;text-decoration:none;color:#176ec3;margin-top:3px}
@media(max-width:760px){.m5fb-featured-strip{align-items:stretch;flex-wrap:wrap}.m5fb-featured-heading{width:100%;min-width:0;border-right:0;border-bottom:1px solid #d9e6f0;padding:0 0 8px}.m5fb-featured-profiles{width:100%;order:2;padding:2px 0 4px}.m5fb-featured-actions{width:100%;order:3;min-width:0;flex-direction:row}.m5fb-featured-actions a{flex:1}.m5fb-feed-section{padding:10px}.m5fb-post{padding:9px;gap:8px}.m5fb-post-avatar{width:34px;height:34px;min-width:34px}.m5fb-post-head{flex-wrap:wrap}.m5fb-post-head time{margin-left:auto}.m5fb-post-stats a{margin-left:0}.m5fb-comment-form{align-items:stretch;flex-direction:column}.m5fb-comment-form button{align-self:flex-end}}


/* M5 FRIEND BOARD FIX002 — feed styled like the profile wall. */
.m5fb-feed-heading h2{font-size:17px;font-weight:900;letter-spacing:.2px;color:#123f6b}
.m5fb-post{gap:11px;padding:13px;background:#fff;border:1px solid #dce7f1;border-radius:13px;box-shadow:0 2px 8px rgba(20,60,95,.035)}
.m5fb-post-avatar{width:42px;height:42px;min-width:42px;border-radius:50%;overflow:hidden;background:#0b3153;border:1px solid #dce7f1;display:flex;align-items:center;justify-content:center}
.m5fb-post-avatar a{display:flex;width:100%;height:100%;align-items:center;justify-content:center;overflow:hidden;color:#fff;text-decoration:none}
.m5fb-post-avatar img{display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover;border-radius:50%}
.m5fb-post-identities{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0}
.m5fb-person{display:flex;flex-direction:column;gap:1px;line-height:1.1;min-width:0}
.m5fb-person small,.m5fb-comment-person small{font-size:9px;font-weight:500;color:#8295a7;line-height:1.2}
.m5fb-post-author,.m5fb-post-wall-owner{font-size:12px;line-height:1.2}
.m5fb-post-context{font-size:10px;color:#8a9aab;align-self:center}
.m5fb-post-head>time{font-size:9px;color:#8b9caf;padding-top:2px}
.m5fb-post-text{margin:8px 0;font-size:13px;line-height:1.55;color:#213f5a;white-space:pre-wrap;overflow-wrap:anywhere}
.m5fb-post-text strong{font-weight:800;color:#173f65}.m5fb-post-text a,.m5fb-comment-text a{color:#176ec3;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.m5fb-post-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:9px 0 11px;max-width:620px}
.m5fb-post-images-1{grid-template-columns:minmax(0,1fr);max-width:620px}
.m5fb-post-images-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.m5fb-post-images-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.m5fb-post-images a{display:block;min-width:0;overflow:hidden;border:1px solid #dce7ef;border-radius:9px;background:#f3f7fa;line-height:0}
.m5fb-post-images img{display:block;width:100%;height:190px;object-fit:cover;background:#f3f7fa}
.m5fb-post-images-1 img{height:auto;max-height:520px;object-fit:contain;margin:0 auto}
.m5fb-post-images-3 img,.m5fb-post-images-4 img{height:145px}
.m5fb-post-stats{margin-top:8px;padding:8px 0;border-bottom:1px solid #e8eef4;font-size:10px;color:#8293a4}
.m5fb-post-stats span{white-space:nowrap}.m5fb-post-stats a{font-size:10px}
.m5fb-post-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:8px 0 0}
.m5fb-post-actions button,.m5fb-comment-shortcut{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:7px 12px;border:1px solid #d6e2ed;border-radius:8px;background:#f8fbfe;color:#41647f;font-size:11px;font-weight:800;text-decoration:none!important;cursor:pointer}
.m5fb-post-actions button:hover,.m5fb-comment-shortcut:hover{background:#eef6fd;border-color:#bbd7ed}
.m5fb-post-actions button.is-liked,.m5fb-comment-shortcut.is-open{background:#e8f3ff;border-color:#a7cfee;color:#176ec3}
.m5fb-comments-preview{display:flex;flex-direction:column;gap:7px;margin:9px 0 2px;padding:10px 0 0;border-top:1px solid #e8eef4;background:transparent;border-radius:0}
.m5fb-comment-row{display:flex;align-items:flex-start;gap:8px;min-width:0}
.m5fb-comment-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;overflow:hidden;background:#0b3153;color:#fff;text-decoration:none;font-size:12px}
.m5fb-comment-avatar img{display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover;border-radius:50%}
.m5fb-comment-body{flex:1;min-width:0;padding:7px 10px 8px;background:#f5f8fb;border-radius:9px}
.m5fb-comment-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0 0 4px}
.m5fb-comment-person{display:flex;flex-direction:column;gap:1px;min-width:0}
.m5fb-comment-meta a{font-size:11px;font-weight:800;text-decoration:none;color:#176ec3;overflow-wrap:anywhere}
.m5fb-comment-meta time{font-size:9px;color:#95a3b2;white-space:nowrap}
.m5fb-comment-text{font-size:12px;line-height:1.45;color:#294765;white-space:pre-wrap;overflow-wrap:anywhere}
.m5fb-comment-text strong{font-weight:800}
.m5fb-more-comments{align-self:flex-start;padding-left:38px;font-size:10px;font-weight:800;color:#176ec3;text-decoration:none}
.m5fb-comment-form[hidden]{display:none!important}
.m5fb-comment-form{display:flex;align-items:flex-end;gap:8px;margin-top:10px;padding-top:9px;border-top:1px solid #edf2f6}
.m5fb-comment-form textarea{box-sizing:border-box;flex:1;min-width:0;resize:vertical;min-height:38px;max-height:120px;border:1px solid #d4e1ed;border-radius:9px;padding:9px 11px;font:inherit;font-size:12px;line-height:1.4;background:#fff;color:#294765;outline:none}
.m5fb-comment-form textarea:focus{border-color:#1976d2;box-shadow:0 0 0 2px rgba(25,118,210,.08)}
.m5fb-comment-form button{border:0;border-radius:8px;background:#1479df;color:#fff;padding:10px 12px;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}
.m5fb-comment-form button:hover{background:#1168c3}
@media(max-width:700px){.m5fb-post{padding:9px;gap:8px}.m5fb-post-avatar{width:34px;height:34px;min-width:34px}.m5fb-post-head{flex-wrap:wrap}.m5fb-post-identities{gap:5px}.m5fb-post-context{font-size:9px}.m5fb-post-images,.m5fb-post-images-3,.m5fb-post-images-4{grid-template-columns:repeat(2,minmax(0,1fr))}.m5fb-post-images img,.m5fb-post-images-3 img,.m5fb-post-images-4 img{height:135px}.m5fb-post-images-1{grid-template-columns:1fr}.m5fb-post-images-1 img{height:auto!important;max-height:420px}.m5fb-comment-form{align-items:stretch;flex-direction:column}.m5fb-comment-form button{align-self:flex-end}.m5fb-post-stats a{margin-left:0}}

/* M5 FRIEND BOARD FIX003 — AJAX pagination and Facebook-style reactions. */
.m5fb-post-identities{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.m5fb-person{display:flex;flex-direction:column;gap:1px;min-width:0}
.m5fb-person small{display:block;font-size:10px;line-height:1.25;color:#8395a8;font-weight:500}
.m5fb-post-context{font-size:10px;color:#8a99aa}
.m5fb-post-stats{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.m5fb-post-stats [data-dislike-count]{color:#b74444}
.m5fb-reaction-form{display:flex;gap:7px;flex-wrap:wrap}
.m5fb-reaction-form button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:32px;padding:7px 12px;border:1px solid #d5e2ee;border-radius:8px;background:#fff;color:#355674;font:inherit;font-size:11px;font-weight:750;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.m5fb-reaction-form button:hover{background:#f5f9fd;border-color:#b8cde0}
.m5fb-reaction-form button.is-liked{color:#126cc3;background:#eaf4ff;border-color:#94c4f0}
.m5fb-reaction-form button.is-disliked{color:#c12828;background:#fff0f0;border-color:#edaaaa}
.m5fb-reaction-form button:disabled{opacity:.6;cursor:wait}
.m5fb-comment-error{font-size:11px;color:#c12828;align-self:center}
.m5fb-load-more-wrap{display:flex;justify-content:center;padding:14px 0 2px}
.m5fb-load-more{min-width:190px;padding:11px 22px;border:1px solid #d1e0ee;border-radius:9px;background:#f3f8fd;color:#126ec7;font:inherit;font-size:11px;font-weight:800;letter-spacing:.2px;cursor:pointer;transition:background .15s,border-color .15s}
.m5fb-load-more:hover{background:#e8f3ff;border-color:#9dc4e8}
.m5fb-load-more.is-loading,.m5fb-load-more:disabled{opacity:.65;cursor:wait}
.m5fb-post-text a,.m5fb-comment-text a{color:#176ec3;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
@media(max-width:600px){.m5fb-post-identities{gap:4px}.m5fb-post-context{font-size:9px}.m5fb-reaction-form{width:100%}.m5fb-reaction-form button{flex:1}.m5fb-post-stats{gap:8px}}

/* FIX004: compact best-rated news below latest group topics; no image thumbnails. */
.m5news-best-compact .m5news-best-row{display:block;padding:10px 0;border-bottom:1px solid #edf0f4;text-decoration:none;color:#15243b}.m5news-best-compact .m5news-best-row:last-child{border-bottom:0}.m5news-best-compact .m5news-best-row strong{display:block;font-size:13px;line-height:1.35;font-weight:800}.m5news-best-compact .m5news-best-row small{display:block;margin-top:4px;color:#7d8999;font-size:11px}.m5news-best-compact .m5news-best-row span{display:block;margin-top:5px;font-size:11px;color:#536b83}.m5fb-post-text .m5up-youtube-wrap{position:relative;width:100%;max-width:560px;aspect-ratio:16/9;margin:10px 0;border-radius:10px;overflow:hidden;background:#071729}.m5fb-post-text .m5up-youtube{position:absolute;inset:0;width:100%;height:100%;border:0}


/* M5 PROMOWANE WYDARZENIA — poziomy, responsywny karuzelowy moduł strony głównej. */
.m5home-events{display:block!important;position:relative!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0 0 20px!important;padding:16px!important;background:#fff!important;border:1px solid #d7e4f0!important;border-radius:18px!important;box-shadow:0 8px 24px rgba(20,55,85,.06)!important;overflow:hidden!important}
.m5home-events-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin:0 0 12px!important}
.m5home-events-heading>div{display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important}
.m5home-events-icon{display:flex!important;align-items:center!important;justify-content:center!important;width:42px!important;height:42px!important;flex:0 0 42px!important;border-radius:13px!important;background:#edf5ff!important;font-size:22px!important}
.m5home-events-heading h2{margin:0!important;color:#123e63!important;font-size:21px!important;line-height:1.25!important}
.m5home-events-heading small{display:block!important;margin-top:3px!important;color:#70859b!important;font-size:12px!important}
.m5home-events-heading>a{flex:0 0 auto!important;color:#0874dc!important;font-weight:700!important;font-size:12px!important;text-decoration:none!important}
.m5home-events-controls{display:flex;justify-content:flex-end;gap:7px;margin:0 0 8px}
.m5home-events-arrow{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #cbdced;border-radius:50%;background:#f4f9ff;color:#1768b5;font-size:23px;line-height:1;cursor:pointer}
.m5home-events-arrow:hover:not(:disabled){background:#087ee9;color:#fff;border-color:#087ee9}
.m5home-events-arrow:disabled{opacity:.35;cursor:default}
.m5home-events-track{display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;gap:14px!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;scroll-behavior:smooth!important;overscroll-behavior-x:contain!important;scrollbar-width:thin!important;scrollbar-color:#c6d9ec transparent!important;padding:1px 1px 10px!important;box-sizing:border-box!important;-webkit-overflow-scrolling:touch!important}
.m5home-events-track::-webkit-scrollbar{height:6px}.m5home-events-track::-webkit-scrollbar-thumb{background:#c6d9ec;border-radius:8px}
.m5home-event-card{display:flex!important;flex:0 0 280px!important;flex-direction:column!important;width:280px!important;min-width:280px!important;max-width:280px!important;min-height:0!important;box-sizing:border-box!important;overflow:hidden!important;scroll-snap-align:start!important;border:1px solid #d7e4f0!important;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 16px rgba(18,62,99,.05)!important}
.m5home-event-image{position:relative!important;display:flex!important;flex:0 0 155px!important;align-items:center!important;justify-content:center!important;width:100%!important;height:155px!important;min-height:155px!important;max-height:155px!important;overflow:hidden!important;background:#e8f1f8!important;color:#52718d!important;text-decoration:none!important}
.m5home-event-image img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;transition:transform .25s ease!important}
.m5home-event-card:hover .m5home-event-image img{transform:scale(1.035)}
.m5home-event-image.is-empty{font-weight:800!important}
.m5home-event-badge{position:absolute!important;top:10px!important;left:10px!important;padding:5px 9px!important;border-radius:20px!important;background:#edf5ff!important;color:#075db1!important;font-size:10px!important;font-weight:900!important;letter-spacing:.04em!important;box-shadow:0 2px 7px #00000012!important}
.m5home-event-body{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-width:0!important;padding:12px 13px 11px!important}
.m5home-event-body h3{margin:0 0 8px!important;font-size:16px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
.m5home-event-body h3 a{color:#123e63!important;text-decoration:none!important}
.m5home-event-body h3 a:hover{color:#0874dc!important}
.m5home-event-meta{display:flex!important;flex-wrap:wrap!important;gap:6px 12px!important;color:#627e98!important;font-size:11px!important;line-height:1.4!important}
.m5home-event-body p{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;margin:7px 0 0!important;color:#516a82!important;font-size:12px!important;line-height:1.45!important;overflow-wrap:anywhere!important}
.m5home-event-footer{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-top:auto!important;padding-top:9px!important;border-top:1px solid #e8eef4!important;color:#70859b!important;font-size:11px!important}
.m5home-event-footer a{color:#123e63!important;font-weight:800!important;text-decoration:none!important;white-space:nowrap!important}
@media(max-width:620px){.m5home-events{padding:12px!important}.m5home-events-heading{gap:8px!important}.m5home-events-heading h2{font-size:18px!important}.m5home-events-heading>a{font-size:11px!important}.m5home-event-card{flex-basis:260px!important;width:260px!important;min-width:260px!important;max-width:260px!important}.m5home-event-image{flex-basis:145px!important;height:145px!important;min-height:145px!important;max-height:145px!important}.m5home-events-arrow{width:30px;height:30px}}

/* M5 FRIEND BOARD FIX004 — filters for friends and followed profiles. */
.m5fb-feed-tabs{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 13px;padding:0 0 11px;border-bottom:1px solid #e3edf6}
.m5fb-feed-tabs button{appearance:none;border:1px solid #d5e4f1;border-radius:9px;background:#f7fbff;color:#41627e;padding:9px 13px;font-size:10px;font-weight:900;letter-spacing:.25px;cursor:pointer;transition:background .15s,border-color .15s,color .15s,box-shadow .15s}
.m5fb-feed-tabs button:hover{background:#edf6ff;border-color:#b8d5ed;color:#176ec3}
.m5fb-feed-tabs button.is-active{background:#176ec3;border-color:#176ec3;color:#fff;box-shadow:0 3px 9px rgba(23,110,195,.18)}
.m5fb-feed-tabs button:disabled{opacity:.65;cursor:wait}
.m5fb-feed-section.is-loading .m5fb-feed-list{opacity:.58;pointer-events:none;transition:opacity .12s}
.m5fb-load-more-wrap[hidden],.m5fb-feed-empty[hidden]{display:none!important}
.m5fb-post-images a.is-image-error{display:flex;align-items:center;justify-content:center;min-width:150px;min-height:100px;background:#f3f7fb;color:#8295a7;font-size:11px;text-decoration:none}
.m5fb-post-images a.is-image-error::after{content:'Zdjęcie chwilowo niedostępne';padding:12px;text-align:center}
.m5fb-post-images img.m5fb-image-failed{display:none}
@media(max-width:600px){.m5fb-feed-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px}.m5fb-feed-tabs button:first-child{grid-column:1/-1}.m5fb-feed-tabs button{padding:10px 8px}}


/* Friend feed images: do not flash FarmingPro broken.png while the original is recovered. */
.m5fb-post-images img[data-m5fb-original-src]{opacity:0;transition:opacity .12s ease}
.m5fb-post-images img[data-m5fb-original-src].m5fb-image-ready{opacity:1}
.m5fb-post-images a.is-image-error{position:relative}
.m5fb-post-images a.is-image-error::after{content:'Zdjęcie chwilowo niedostępne'}

/* MEDIA5 NEWS 1.0.4: lightweight latest-public-opinion sidebar. */
.m5news-last-opinion h3{color:#153b70;margin-bottom:14px}
.m5news-opinion-card{border:1px solid #e2e8f0;border-left:4px solid #8995a4;border-radius:11px;background:#fbfcfe;padding:13px 12px;min-width:0}
.m5news-opinion-recommend{border-left-color:#1cb770;background:#f8fdfb}
.m5news-opinion-against{border-left-color:#f04b60;background:#fffafb}
.m5news-opinion-neutral{border-left-color:#8995a4;background:#fbfcfe}
.m5news-opinion-badge{display:inline-block;padding:5px 9px;border-radius:7px;font-size:11px;font-weight:800;background:#eef1f4;color:#54677a;margin:0 0 9px}
.m5news-opinion-recommend .m5news-opinion-badge{background:#e4f9ee;color:#087943}
.m5news-opinion-against .m5news-opinion-badge{background:#ffe9ed;color:#b92d44}
.m5news-opinion-title{display:block;color:#123a69!important;text-decoration:none!important;font-size:15px;font-weight:800;line-height:1.3;overflow-wrap:anywhere}
.m5news-opinion-title:hover{text-decoration:underline!important}
.m5news-opinion-body{font-size:13px;line-height:1.55;color:#34465b;white-space:normal;overflow-wrap:anywhere;margin:10px 0 12px}
.m5news-opinion-meta{padding-top:10px;border-top:1px solid #e6ebf1;display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;font-size:11px;color:#718096;overflow-wrap:anywhere}
.m5news-last-opinion .m5news-opinion-all{margin:14px auto 0;text-align:center;font-size:12px;letter-spacing:.25px;background:#eaf4ff;color:#075fbb;border:1px solid #cfe3fa}
.m5news-opinion-all:hover{background:#dbeeff}
.m5news-opinion-empty{font-size:13px;color:#718096;line-height:1.5;margin:0 0 10px}



/* BEGIN M5 NEWS — OSTATNIA OPINIA PREMIUM 1.0.8
 * Dedicated template classes and ID make this START card independent of
 * the global paragraph styles and other portal modules.
 */
#m5news-last-opinion.m5news-last-opinion-v108 {
  box-sizing: border-box !important;
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 0 20px !important;
  padding: 17px 17px 18px !important;
  border: 1px solid #393c83 !important;
  border-radius: 19px !important;
  background: linear-gradient(160deg, #1e2253 0%, #171a47 100%) !important;
  box-shadow: 0 13px 25px rgba(13,18,69,.17) !important;
  color: #fff !important;
  overflow: hidden !important;
  font-family: Arial, Helvetica, sans-serif !important;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-widget-head {
  display: flex !important;
  gap: 9px !important;
  align-items: center !important;
  min-width: 0 !important;
  margin: 0 0 14px !important;
  padding: 0 0 11px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(233,231,255,.66) !important;
  background: transparent !important;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-widget-icon {
  flex: none !important;
  display: inline-block !important;
  font-size: 19px !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-widget-head h3 {
  color: #fff !important;
  font: 800 16px/1.25 Arial,Helvetica,sans-serif !important;
  letter-spacing: -.012em !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-card {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 17px 16px 15px !important;
  border: 1px solid #edeaf4 !important;
  border-left: 4px solid #8690a9 !important;
  border-radius: 17px !important;
  background: #fff !important;
  box-shadow: 0 6px 16px rgba(10,13,49,.13) !important;
  color: #26314a !important;
  text-align: left !important;
  overflow: hidden !important;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-card.m5news-opinion-against {
  border-left-color: #f25768 !important;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-card.m5news-opinion-recommend {
  border-left-color: #22b273 !important;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-card.m5news-opinion-neutral {
  border-left-color: #8491aa !important;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-badge {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #edf1f8 !important;
  color: #53627c !important;
  padding: 6px 11px !important;
  margin: 0 0 12px !important;
  font: 700 11px/1.25 Arial,Helvetica,sans-serif !important;
  white-space: normal !important;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-against .m5news-opinion-badge {
  background: #fff0f2 !important;
  color: #c02d43 !important;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-recommend .m5news-opinion-badge {
  background: #e8f7ee !important;
  color: #11784b !important;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  color: #1a2653 !important;
  font: 800 15px/1.35 Arial,Helvetica,sans-serif !important;
  text-decoration: none !important;
  text-transform: none !important;
  overflow-wrap: anywhere !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-title:hover {
  color: #6a37b3 !important;
  text-decoration: underline !important;
}
/* This is a new DIV, not the old paragraph affected by global phpBB/theme rules. */
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-lop-excerpt {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 5 !important;
  line-clamp: 5 !important;
  overflow: hidden !important;
  position: static !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  color: #53627b !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font: normal 12px/1.64 Arial,Helvetica,sans-serif !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-decoration: none !important;
  text-transform: none !important;
  text-indent: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-lop-excerpt::before,
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-lop-excerpt::after {
  content: none !important;
  display: none !important;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-meta {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  gap: 5px 10px !important;
  margin: 0 !important;
  padding: 12px 0 0 !important;
  color: #7382a0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid #e8ebf2 !important;
  font: normal 10.5px/1.4 Arial,Helvetica,sans-serif !important;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-lop-author {
  color: #6842a7 !important;
  font-weight: 700 !important;
  overflow-wrap: anywhere !important;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-lop-date {
  color: #7382a0 !important;
  white-space: nowrap !important;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-all {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 43px !important;
  margin: 14px 0 0 !important;
  padding: 11px 13px !important;
  background: #e9dffc !important;
  color: #4c278b !important;
  border: 1px solid #d6c5f5 !important;
  border-radius: 11px !important;
  box-shadow: none !important;
  font: 800 11.5px/1.3 Arial,Helvetica,sans-serif !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  transition: background-color .16s ease, transform .16s ease;
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-all::after {content: none !important;display: none !important;}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-all span {font-size: 16px !important;line-height: 1 !important;}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-all:hover {
  background: #decaf9 !important;
  transform: translateY(-1px);
}
#m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-empty {
  margin: 0 !important;
  padding: 12px !important;
  border-radius: 10px !important;
  color: #dcdcf5 !important;
  font: 400 12px/1.6 Arial,Helvetica,sans-serif !important;
}
@media(max-width: 480px) {
  #m5news-last-opinion.m5news-last-opinion-v108 {padding: 14px !important;border-radius: 16px !important;}
  #m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-card {padding: 15px 13px 14px !important;}
  #m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-widget-head h3 {font-size: 15px !important;}
}
@media(prefers-reduced-motion:reduce) {
  #m5news-last-opinion.m5news-last-opinion-v108 .m5news-opinion-all {transition:none !important;}
}
/* END M5 NEWS — OSTATNIA OPINIA PREMIUM 1.0.8 */

/* M5 NEWS — FIX040 (12.11.2026): cztery rowne kafelki na stronie NEWSY.
   Przy 4 artykulach: 2 kolumny x 2 wiersze, bez wyrozniania pierwszego.
   Zachowaj wysokosci i odstepy rowne takze przy dluzszych tytulach. */
.m5news-feature-grid--equal {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: 250px !important;
    gap: 12px !important;
    padding: 0 12px 12px !important;
}
.m5news-feature-grid--equal > .m5news-card {
    grid-column: auto !important;
    grid-row: auto !important;
    min-width: 0 !important;
    min-height: 250px !important;
    height: 250px !important;
    box-sizing: border-box !important;
}
.m5news-feature-grid--equal .m5news-card h3,
.m5news-feature-grid--equal .m5news-card:not(.m5news-card-big) h3 {
    font-size: 20px !important;
    line-height: 1.22 !important;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.m5news-feature-grid--equal .m5news-card .m5news-meta {
    white-space: normal !important;
    overflow-wrap: anywhere;
    font-size: 12px !important;
}
@media (max-width: 620px) {
    .m5news-feature-grid--equal {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: none !important;
        grid-auto-rows: 240px !important;
    }
    .m5news-feature-grid--equal > .m5news-card {
        min-height: 240px !important;
        height: 240px !important;
    }
    .m5news-feature-grid--equal .m5news-card h3,
    .m5news-feature-grid--equal .m5news-card:not(.m5news-card-big) h3 {
        font-size: 20px !important;
    }
}

/* M5 NEWS 1.1.0 — /newsy archive: equal tiles, accessible filters, AJAX pagination */
.m5news-archive{min-height:60vh;color:#fff!important}
.m5news-archive *{box-sizing:border-box}
.m5news-archive-shell{max-width:1300px;margin:14px auto 32px;background:linear-gradient(135deg,#242654 0%,#0e2544 100%);padding:clamp(14px,2.4vw,26px);border:1px solid #5e66bd;border-radius:20px;box-shadow:0 14px 30px rgba(0,0,0,.14)}
.m5news-archive-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding:0 0 20px}
.m5news-archive-hero h1{font-size:clamp(23px,3vw,32px);line-height:1.2;color:#fff!important;margin:7px 0 5px;font-weight:800}
.m5news-archive-hero p{font-size:13px;color:#becce8;margin:0}
.m5news-archive-back{font-size:12px;color:#8bd6ff!important;text-decoration:none}
.m5news-archive-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.m5news-archive-filter{display:inline-flex;align-items:center;justify-content:center;min-height:38px;border-radius:9px;background:#143957;color:#dbe9fa!important;border:1px solid #42627e;font-size:13px;font-weight:750;padding:9px 14px;text-decoration:none!important;transition:background-color .15s,border-color .15s}
.m5news-archive-filter:hover,.m5news-archive-filter:focus-visible,.m5news-archive-filter.is-active{color:#fff!important;background:#167bd0;border-color:#6fc7ff}
.m5news-archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.m5news-archive-card{position:relative;display:block;min-width:0;height:250px;border-radius:14px;overflow:hidden;border:1px solid rgba(183,205,249,.15);background:#152d48}
.m5news-archive-card-link{position:relative;display:block;width:100%;height:100%;color:#fff!important;text-decoration:none!important}
.m5news-archive-card-link img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .3s}
.m5news-archive-card-link:hover img,.m5news-archive-card-link:focus-visible img{transform:scale(1.035)}
.m5news-archive-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,10,25,.95) 0%,rgba(0,10,25,.48) 39%,rgba(0,15,30,.12) 75%)}
.m5news-archive-category{position:absolute;top:12px;left:12px;border-radius:6px;background:#1388ec;color:#fff;padding:6px 9px;max-width:calc(100% - 24px);font-size:11px;line-height:1.2;font-weight:850;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m5news-archive-card-content{position:absolute;bottom:14px;left:15px;right:15px;display:block;min-width:0}
.m5news-archive-card-content strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;color:#fff;font-size:clamp(17px,2.2vw,23px);line-height:1.15;text-shadow:0 2px 3px #061b32}
.m5news-archive-card-content small{display:block;border-top:1px solid rgba(255,255,255,.6);padding-top:7px;margin-top:8px;color:#f3f8ff;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.m5news-archive-load-area{padding-top:24px;text-align:center}
.m5news-archive-load-button{border:1px solid #55b7f0;background:linear-gradient(90deg,#117ed3,#0d9cdd);color:#fff;font-weight:800;padding:13px 26px;border-radius:10px;min-width:210px;cursor:pointer}
.m5news-archive-load-button:not([hidden]):hover{filter:brightness(1.12)}
.m5news-archive-load-button[hidden]{display:none!important}
.m5news-archive-load-button:disabled{opacity:.65;cursor:wait}
.m5news-archive-status{font-size:13px;color:#c7ddef}
.m5news-archive-status:empty{display:none}
.m5news-archive-status:not(:empty){padding-bottom:12px}
.m5news-archive-status.is-error{color:#ffc8c8}
.m5news-archive-empty{grid-column:1/-1;color:#dfebff;text-align:center;padding:35px 12px;border:1px dashed #57728c;border-radius:11px;margin:0}
@media(max-width:700px){.m5news-archive-grid{grid-template-columns:minmax(0,1fr)}.m5news-archive-card{height:235px}.m5news-archive-hero{align-items:flex-start;flex-direction:column}}


/* M5 NEWS 1.1.1 — light additional pages, consistent with M5 BAZAR.
 * Scoped exclusively to /newsy. START/news homepage remains unchanged.
 * No global browser/body resets and no changes to AJAX data attributes. */
body:has(.m5news-archive) #wrap,
body:has(.m5news-archive) #page-body,
body:has(.m5news-archive) #page-footer {
  background-color:#f4f7ff !important;
}
body:has(.m5news-archive) #wrap {
  border-color:transparent !important;
  box-shadow:none !important;
}
.m5news-archive {
  width:100%; min-width:0; min-height:60vh; margin:0; box-sizing:border-box;
  padding:clamp(14px,2.2vw,26px) clamp(12px,2vw,24px) 48px;
  background:#f4f7ff !important; color:#102744 !important;
  font:15px/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
}
.m5news-archive-shell {
  max-width:1480px; width:100%; min-width:0; margin:0 auto;
  padding:0 !important; border:0 !important; border-radius:0;
  background:transparent !important; box-shadow:none !important;
}
.m5news-archive-hero {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  gap:18px; min-height:126px; padding:23px 26px; margin:0 0 18px;
  background:linear-gradient(115deg,#f4f9ff 0%,#daebff 57%,#a7cafa 100%);
  border:1px solid #d8e4f5; border-radius:18px;
  box-shadow:0 4px 18px rgba(10,52,102,.04);
}
.m5news-archive-hero h1 {
  font-size:clamp(24px,3vw,36px); font-weight:850; letter-spacing:-.5px;
  color:#102744 !important; margin:5px 0 4px;
}
.m5news-archive-hero p {color:#526b86; font-size:13px; margin:0;}
.m5news-archive-back {color:#0757d9 !important;font-weight:750;text-decoration:none;}
.m5news-archive-back:hover {text-decoration:underline;}
.m5news-archive-hero .m5news-btn {
  background:linear-gradient(180deg,#1674fd,#0456d3);border:1px solid #0857d8;
  color:#fff !important;border-radius:10px;white-space:nowrap;
}
.m5news-archive-filters {
  display:flex; flex-wrap:wrap; gap:9px; padding:13px; margin:0 0 16px;
  background:#fff; border:1px solid #d8e4f5; border-radius:15px;
  box-shadow:0 3px 14px rgba(10,52,102,.035);
}
.m5news-archive-filter {
  border-radius:9px; background:#f3f8ff; border:1px solid #cbdcf1;
  color:#16436f !important; min-height:38px;
  font-size:13px; font-weight:750; padding:9px 14px;
}
.m5news-archive-filter:hover,.m5news-archive-filter:focus-visible {
  background:#e7f2ff; border-color:#78acf5; color:#0757d9 !important;
}
.m5news-archive-filter.is-active,
.m5news-archive-filter.is-active:hover,
.m5news-archive-filter.is-active:focus-visible {
  background:#0757d9;border-color:#0757d9;color:#fff !important;
}
.m5news-archive-grid {gap:14px;}
.m5news-archive-card {
  background:#dfebf9; border:1px solid #d8e4f5; border-radius:15px;
  box-shadow:0 4px 14px rgba(10,52,102,.08);
}
.m5news-archive-status {color:#315676;}
.m5news-archive-status.is-error {color:#a42f34;}
.m5news-archive-empty {
  background:#fff;color:#58718b;border:1px dashed #bdd3ea;
  border-radius:13px;
}
.m5news-archive-load-button {
  border:1px solid #0757d9; background:linear-gradient(180deg,#1674fd,#0456d3);
  box-shadow:0 3px 10px rgba(7,87,217,.12); border-radius:11px;
}
@media(max-width:700px){
  .m5news-archive{padding:12px 9px 30px;}
  .m5news-archive-hero{padding:18px;align-items:flex-start;}
  .m5news-archive-hero .m5news-btn{width:100%;text-align:center;}
  .m5news-archive-filters{padding:9px;gap:7px;}
  .m5news-archive-filter{font-size:12px;padding:8px 10px;}
}

/* Standalone news article: keep white content card, light Bazar-style surrounding area. */
body:has(.m5news-article-page) #page-body,
body:has(.m5news-article-page) #wrap {background-color:#f4f7ff !important;}
body:has(.m5news-article-page) #wrap {box-shadow:none!important;}
body:has(.m5news-article-page) .m5news-article-page {padding-top:18px;padding-bottom:35px;}
body:has(.m5news-article-page) .m5news-article {border-color:#d8e4f5;box-shadow:0 3px 14px rgba(10,52,102,.05);}

/* M5 PASEK DNIA — dopasowany do jasnego wyglądu Bazarku/START */
.m5news-page .m5daybar{box-sizing:border-box;display:block;width:100%;max-width:100%;margin:12px 0 18px;padding:16px 18px;background:linear-gradient(110deg,#f7fbff,#deedff);border:1px solid #c2d9f5;border-radius:16px;box-shadow:0 7px 25px rgba(24,66,108,.08);color:#143452}
.m5daybar-heading{display:flex;gap:11px;align-items:center}.m5daybar-heading>span{font-size:27px}.m5daybar-heading strong{display:block;font-size:17px}.m5daybar-heading small{display:block;color:#567b9b;font-size:12px;margin-top:3px}
.m5daybar-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px}
.m5daybar-item{padding:11px 13px;background:#fff;border:1px solid #d6e5f7;border-radius:11px;min-width:0}.m5daybar-item span{display:block;color:#54718e;font-size:12px;margin-bottom:5px}.m5daybar-item strong{display:block;overflow-wrap:anywhere;font-size:15px;color:#102e4b}
.m5daybar-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:11px;color:#456d92;font-size:12px}.m5daybar-bottom a{color:#1868ae}.m5daybar-bottom button{background:#0874d5;border:0;border-radius:8px;color:white;font-weight:800;padding:6px 10px;cursor:pointer;margin:0 4px}
.m5daybar-error{color:#a12c32;font-size:13px;margin:7px 0 0}.m5daybar [hidden]{display:none!important}
@media(max-width:900px){.m5daybar-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.m5news-page .m5daybar{padding:12px}.m5daybar-items{gap:7px}.m5daybar-item{padding:10px}.m5daybar-item strong{font-size:13px}}

/* M5 PASEK DNIA — źródła dostępne pod dyskretną ikoną, bez napisów w pasku. */
.m5daybar-credits{position:relative;margin-left:auto;flex:0 0 auto;color:#456d92;}
.m5daybar-credits>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;border:1px solid #d4e2f2;background:#fff;color:#42739b;border-radius:50%;width:25px;height:25px;font-size:16px;line-height:1;}
.m5daybar-credits>summary::-webkit-details-marker{display:none;}
.m5daybar-credits>summary:focus-visible{outline:2px solid #0874d5;outline-offset:3px;}
.m5daybar-credits-content{position:absolute;z-index:4;right:0;top:calc(100% + 6px);width:min(280px,80vw);padding:10px 12px;display:grid;gap:8px;background:#fff;border:1px solid #cadcf0;border-radius:10px;box-shadow:0 5px 22px rgba(17,54,92,.15);font-size:12px;}
.m5daybar-credits-content a{color:#155b98;text-decoration:underline;overflow-wrap:anywhere;}

/* M5 DAYBAR v1.1.2 — dyskretne źródła w górnym prawym rogu */
.m5news-page .m5daybar{position:relative!important;}
.m5news-page .m5daybar-heading{padding-right:24px;}
.m5news-page .m5daybar-credits{position:absolute!important;top:10px;right:11px;margin:0!important;z-index:7;line-height:1;}
.m5news-page .m5daybar-credits>summary{width:17px!important;height:17px!important;min-width:17px;min-height:17px;font:11px/1 Arial,sans-serif!important;opacity:.7;border-color:#b7cee6!important;}
.m5news-page .m5daybar-credits>summary:hover,.m5news-page .m5daybar-credits[open]>summary{opacity:1;background:#eaf4ff;}
.m5news-page .m5daybar-credits-content{top:calc(100% + 8px);right:0;}

/* MEDIA5 NEWS 1.1.3 — kompaktowy przycisk redakcyjny przy nagłówku.
   Wysoka specyficzność celowo izoluje style od globalnych reguł stylu POL.FAN. */
.m5news-page .m5news-section-title > a.m5news-btn.m5news-add-next-to-title {
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex:0 0 auto;
  box-sizing:border-box;
  margin:0 0 0 4px!important;
  padding:7px 13px!important;
  min-height:35px;
  width:auto;
  max-width:100%;
  border:1px solid #792bbd!important;
  border-radius:10px!important;
  background:linear-gradient(110deg,#6d28d9 0%,#a21caf 100%)!important;
  box-shadow:0 4px 12px rgba(109,40,217,.18)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-family:Arial,sans-serif!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.2!important;
  letter-spacing:.1px;
  text-shadow:none!important;
  text-decoration:none!important;
  white-space:nowrap;
  cursor:pointer;
  transition:box-shadow .16s ease,transform .16s ease,background .16s ease;
}
.m5news-page .m5news-section-title > a.m5news-add-next-to-title *,
.m5news-page .m5news-section-title > a.m5news-add-next-to-title:visited {
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-decoration:none!important;
}
.m5news-page .m5news-section-title > a.m5news-add-next-to-title:hover {
  background:linear-gradient(110deg,#5b21b6 0%,#86198f 100%)!important;
  box-shadow:0 6px 16px rgba(109,40,217,.28)!important;
  transform:translateY(-1px);
}
.m5news-page .m5news-section-title > a.m5news-add-next-to-title:focus-visible {
  outline:3px solid rgba(109,40,217,.35)!important;
  outline-offset:3px;
}
.m5news-page .m5news-section-title > a.m5news-add-next-to-title .m5news-add-icon {
  display:inline-grid;
  place-items:center;
  flex:none;
  width:18px;
  height:18px;
  border-radius:6px;
  background:rgba(255,255,255,.2);
  font:800 16px/1 Arial,sans-serif;
}
/* "Wszystkie" pozostaje po prawej, Dodaj news bezpośrednio przy tytule. */
.m5news-page .m5news-section-title > a.m5news-all-link {
  margin-left:auto!important;
}
@media(max-width:620px) {
  .m5news-page .m5news-section-title { flex-wrap:wrap; gap:9px; padding:14px; }
  .m5news-page .m5news-section-title > a.m5news-btn.m5news-add-next-to-title {
    margin-left:0!important;
  }
}
@media(prefers-reduced-motion:reduce) {
  .m5news-page .m5news-section-title > a.m5news-btn.m5news-add-next-to-title {transition:none!important;}
}

/* MEDIA5 NEWS 1.1.4 — AJAX image upload + instant thumbnail */
.m5news-image-upload{margin:-7px 0 19px}
.m5news-image-upload-preview{position:relative;display:inline-block;vertical-align:top;border:1px solid #dbe5f7;padding:6px;background:#f6f8ff;border-radius:12px;max-width:100%}
.m5news-image-upload-preview[hidden],.m5news-image-upload-progress[hidden]{display:none!important}
.m5news-image-upload-preview img{display:block;width:min(100%,300px);max-height:220px;object-fit:contain;border-radius:8px;background:white}
.m5news-image-upload-remove{position:absolute;right:10px;top:10px;background:#d92d45;color:white;border:2px solid white;border-radius:50%;width:31px;height:31px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:21px;line-height:1}
.m5news-image-upload-remove:hover{background:#aa1e30}
.m5news-image-upload-progress{max-width:350px;height:8px;border-radius:99px;background:#e4eafb;overflow:hidden;margin:9px 0}
.m5news-image-upload-progress span{display:block;width:0;height:100%;background:#1673d4;transition:width .12s linear}
.m5news-image-upload-status{font-size:12px;line-height:1.6;color:#52647d;margin-top:7px}
.m5news-image-upload-status.is-ok{color:#117a37}
.m5news-image-upload-status.is-error{color:#ae242f}
@media (max-width:600px){.m5news-image-upload-preview img{max-height:180px}}

/* MEDIA5 NEWS 1.1.6 — image crop and multi-photo uploader */
.m5news-crop-modal[hidden]{display:none!important}
.m5news-crop-modal{position:fixed;z-index:2147483646;inset:0;padding:15px;box-sizing:border-box;overflow:auto;background:rgba(10,15,40,.82);display:flex;align-items:center;justify-content:center}
.m5news-crop-dialog{width:min(960px,100%);max-height:calc(100vh - 30px);overflow:auto;box-sizing:border-box;background:#fff;padding:22px;border-radius:15px;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.m5news-crop-dialog h2{font-size:23px;margin:0 0 6px;color:#14365b}.m5news-crop-dialog p{margin:0 0 12px;font-size:14px;color:#54647c}
.m5news-crop-canvas{max-width:720px;margin:auto;overflow:hidden;background:#111;border-radius:10px}.m5news-crop-canvas canvas{width:100%;height:auto;aspect-ratio:16/9;display:block;touch-action:none;cursor:grab}
.m5news-crop-zoom{display:block;margin:14px 0!important}.m5news-crop-zoom input{width:100%;max-width:480px;display:block}
.m5news-crop-examples{display:grid;grid-template-columns:1fr 1fr;gap:13px}.m5news-crop-examples>div>strong{display:block;font-size:13px;margin-bottom:5px}
.m5news-crop-large,.m5news-crop-small{background-color:#20324b;background-position:center;background-size:cover;border-radius:8px;color:#fff;text-shadow:0 1px 3px #000;box-sizing:border-box;display:flex;align-items:flex-end;padding:12px;font-size:12px}
.m5news-crop-large{aspect-ratio:1.25}.m5news-crop-small{aspect-ratio:1.7}
.m5news-crop-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:15px}.m5news-crop-actions button{cursor:pointer;border:1px solid #d1d9e5;border-radius:8px;padding:11px 15px}
.m5news-gallery-upload{margin:-4px 0 18px}.m5news-gallery-upload-grid{display:flex;flex-wrap:wrap;gap:11px}
.m5news-gallery-upload-item{position:relative;padding:5px;border-radius:11px;border:1px solid #cdd8ea;background:#f7faff;min-width:120px}.m5news-gallery-upload-item>img{width:120px;height:110px;object-fit:cover;display:block;border-radius:7px}
.m5news-gallery-upload-item small{display:block;padding-top:4px;font-size:11px}.m5news-gallery-upload-item.is-error{border-color:#e76e76}
.m5news-gallery-upload-item .m5news-image-upload-remove{top:7px;right:7px}
@media(max-width:620px){.m5news-crop-examples{grid-template-columns:1fr 1fr}.m5news-crop-dialog{padding:12px}}

.m5news-gallery-edit-row{position:relative}.m5news-gallery-edit-row.is-removed{opacity:.42}.m5news-gallery-existing-delete{font-size:11px!important}.m5news-gallery-existing-delete input{width:auto!important}.m5news-gallery-existing-x{position:absolute;right:5px;top:5px;border:2px solid white;border-radius:50%;width:29px;height:29px;background:#d92d45;color:#fff;cursor:pointer;font-size:21px;line-height:1}

.m5news-crop-large{aspect-ratio:1.07}.m5news-crop-small{aspect-ratio:1.6}.m5news-crop-category{display:inline-block;color:#fff;background:#087ee9;padding:4px 6px;border-radius:4px;font-size:10px;font-weight:800;text-transform:uppercase}.m5news-crop-title{display:block;font-size:17px;line-height:1.15;margin-top:9px;overflow-wrap:anywhere}.m5news-crop-small .m5news-crop-title{font-size:14px}

/* MEDIA5 NEWS 1.1.9 — czytelny status galerii przy edycji i ostrzeżenie o niepełnym zapisie. */
.m5news-gallery-warning{margin:16px 0;padding:12px 16px;border:1px solid #e6af56;background:#fff6e5;border-radius:8px;color:#704b10;font-size:14px}
.m5news-gallery-saved-status{font-size:13px;color:#3a6388;margin:8px 0}


/* M5 NEWS 1.1.12: never crop published news photographs. */
.m5news-article .m5news-main-lightbox-trigger {
  display:flex!important; align-items:center; justify-content:center;
  width:100%; background:#e9eff8; overflow:hidden;
}
.m5news-article .m5news-main-lightbox-trigger > img.m5news-hero {
  display:block!important; width:100%!important; height:auto!important;
  max-height:none!important; aspect-ratio:auto!important;
  object-fit:contain!important; object-position:center!important;
}
.m5news-article .m5news-gallery-grid a {
  aspect-ratio:16 / 9; background:#e9eff8; display:flex; align-items:center; justify-content:center;
}
.m5news-article .m5news-gallery-grid img {
  width:100%!important; height:100%!important; object-fit:contain!important;
}
/* Archive/category cards: independent 16:9 complete image and readable caption below.
   The exact same markup is generated by news_archive.js for AJAX filtering/pagination. */
.m5news-archive .m5news-archive-card {
  height:auto!important; min-height:0!important; overflow:hidden; background:#fff!important;
}
.m5news-archive .m5news-archive-card-link {
  display:flex!important; flex-direction:column; height:100%!important; min-height:0!important;
  color:#14365b!important; text-decoration:none!important;
}
.m5news-archive .m5news-archive-picture {
  position:relative; display:flex; align-items:center; justify-content:center;
  width:100%; aspect-ratio:16 / 9; flex:none; overflow:hidden;
  background:linear-gradient(140deg,#e8eef9 0%,#d1def0 100%);
}
.m5news-archive .m5news-archive-picture img {
  position:relative!important; inset:auto!important; width:100%!important; height:100%!important;
  object-fit:contain!important; object-position:center!important; transform:none!important;
}
.m5news-archive .m5news-archive-card-link:hover .m5news-archive-picture img,
.m5news-archive .m5news-archive-card-link:focus-visible .m5news-archive-picture img {transform:none!important;}
.m5news-archive .m5news-archive-shade {display:none!important;}
.m5news-archive .m5news-archive-category {
  top:12px; left:12px; z-index:2; max-width:calc(100% - 24px);
}
.m5news-archive .m5news-archive-card-content {
  position:static!important; display:block; flex:1;
  left:auto!important;right:auto!important;bottom:auto!important;
  padding:15px 17px 17px; background:#fff;
}
.m5news-archive .m5news-archive-card-content strong {
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical;
  overflow:hidden; color:#14365b!important; text-shadow:none!important;
  font-size:clamp(16px,1.8vw,21px)!important; line-height:1.3;
}
.m5news-archive .m5news-archive-card-content small {
  color:#5b728f!important; border-top:1px solid #e4ebf5!important;
}

/* M5 NEWS 1.1.13: compact fallback rather than a giant NO IMAGE graphic. */
.m5fb-sponsored-pics img[data-m5fb-original-src]{max-width:100%;object-fit:contain}
.m5fb-sponsored-pics img[data-m5fb-original-src].m5fb-image-failed{display:none!important}
.m5fb-sponsored-pics a.is-image-error{display:flex;align-items:center;justify-content:center;max-height:72px;min-height:0;padding:8px 12px;border:1px dashed #dac8f1;border-radius:8px;background:#fbf8ff;color:#674896;font-size:12px;text-decoration:none}
.m5fb-sponsored-pics a.is-image-error::after{content:'Zdjęcie chwilowo niedostępne — zobacz wpis';}
.m5fb-sponsored-pics img[data-m5fb-original-src]:not(.m5fb-image-ready){visibility:hidden}
.m5fb-sponsored-pics img[data-m5fb-original-src].m5fb-image-ready{visibility:visible}


/* M5 NEWS 1.1.14: zachowaj proporcje, ale pokazuj mniejsze zdjęcia w listach i we wpisie. */
.m5news-article .m5news-main-lightbox-trigger {
  width: calc(100% - 36px);
  max-width: 920px;
  margin: 18px auto 0;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 18px;
  background: linear-gradient(140deg,#eef3fb 0%,#dbe7f5 100%);
}
.m5news-article .m5news-main-lightbox-trigger > img.m5news-hero {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
}
.m5news-article .m5news-gallery-grid {
  max-width: 920px;
  margin: 0 auto;
}
.m5news-article .m5news-gallery-grid a {
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(140deg,#eef3fb 0%,#dbe7f5 100%);
  box-sizing: border-box;
}
.m5news-archive .m5news-archive-picture {
  width: calc(100% - 32px);
  max-width: 920px;
  min-height: 220px;
  margin: 16px auto 0;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 18px;
  background: linear-gradient(140deg,#eef3fb 0%,#dbe7f5 100%);
  aspect-ratio: auto !important;
}
.m5news-archive .m5news-archive-picture img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 360px;
}
@media (max-width: 700px) {
  .m5news-article .m5news-main-lightbox-trigger {
    width: calc(100% - 20px);
    margin-top: 12px;
    padding: 8px;
  }
  .m5news-article .m5news-main-lightbox-trigger > img.m5news-hero {
    max-height: 320px !important;
  }
  .m5news-archive .m5news-archive-picture {
    width: calc(100% - 20px);
    min-height: 160px;
    margin-top: 10px;
    padding: 8px;
  }
  .m5news-archive .m5news-archive-picture img {
    max-height: 240px;
  }
}


/* M5 NEWS 1.1.15: klikalne całe zdjęcie + kategoria w prawym dolnym rogu */
.m5news-card-link{display:block;height:100%;color:inherit!important;text-decoration:none!important}
.m5news-card-link:hover,.m5news-card-link:focus{text-decoration:none!important;color:inherit!important}
.m5news-card .m5news-overlay{justify-content:space-between!important;gap:12px!important}
.m5news-card .m5news-card-bottom{color:#fff;max-width:calc(100% - 6px)}
.m5news-card .m5news-cat{align-self:flex-end!important;margin-top:auto!important;margin-left:auto!important;background:#0f7fe8!important;box-shadow:0 2px 10px rgba(0,0,0,.24)!important}

/* M5 NEWS 1.1.16 — promowane wpisy używają oryginalnych zdjęć, tak jak profil. */
.m5fb-sponsored-pics{align-items:flex-start;}
.m5fb-sponsored-pics a{overflow:hidden;border-radius:10px;background:#eef2fc;}
.m5fb-sponsored-pics img[data-m5p-image]{width:100%;height:auto;max-height:310px;object-fit:contain;display:block;}
.m5fb-sponsored-pics a.is-image-error {background:#f6f2fc;min-height:44px;max-height:58px;}
.m5fb-sponsored-pics a.is-image-error::after {content:'Otwórz wpis i zobacz zdjęcie';}

/* M5 NEWS 1.1.17: single accessible fallback message; never overlay error text. */
.m5fb-post-images a.is-image-error::before,
.m5fb-post-images a.is-image-error::after,
.m5fb-sponsored-pics a.is-image-error::before,
.m5fb-sponsored-pics a.is-image-error::after { content:none!important; display:none!important; }
.m5fb-post-images a.is-image-error,
.m5fb-sponsored-pics a.is-image-error {
  position:relative!important; display:flex!important; align-items:center!important; justify-content:center!important;
  min-width:120px!important; max-height:none!important; min-height:100px!important;
  padding:12px!important; box-sizing:border-box!important; overflow:hidden!important;
  border:1px dashed #d4ddeb!important; background:#f4f7fc!important; line-height:1.45!important;
  font-size:12px!important; color:#526b8b!important; text-decoration:none!important;
}
.m5fb-sponsored-pics a.is-image-error { min-height:95px!important; max-height:130px!important; }
.m5fb-photo-fallback[hidden]{display:none!important}
.m5fb-photo-fallback:not([hidden]){display:block!important; padding:0!important; text-align:center!important; white-space:normal!important; overflow-wrap:anywhere!important}
.m5fb-post-images a.is-image-error img,
.m5fb-sponsored-pics a.is-image-error img{display:none!important}
