/* ══════════════════════════════════════════════════════════════
   TEMPLATE: flash — base.css
   Shared: resets, top bar, category bar, drawer, search, footer
   CNN-inspired: red accent, dark header, bold typography
   ══════════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Country Flags", var(--font-primary); }
[dir="ltr"] { --dir: ltr; --start: left; --end: right; }
[dir="rtl"] { --dir: rtl; --start: right; --end: left; }
body { background: var(--color-fff); color: var(--color-000); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
.icon { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -3px; }

/* ── INFO BAR (date + weather) ─────────── */
.fl-infobar { background: #1a1a1a; color: #999; font-size: 12px; }
.fl-infobar__inner { max-width: var(--fl-max-w); margin: 0 auto; padding: 6px 20px; display: flex; align-items: center; justify-content: space-between; }

/* ── Weather widget ── */
.fl-weather { position: relative; }
.fl-weather__btn { display: flex; align-items: center; gap: 4px; color: #ccc; font-size: 12px; cursor: pointer; background: none; border: none; font: inherit; padding: 0; }
.fl-weather__btn:hover { color: #fff; }
.fl-weather__btn .icon { width: 12px; height: 12px; transition: transform 0.2s; }
.fl-weather__btn.open .icon { transform: rotate(180deg); }
.fl-weather__icon { font-size: 14px; }
.fl-weather__dropdown { display: none; position: absolute; inset-block-start: 100%; inset-inline-end: 0; margin-top: 6px; min-width: 220px; background: var(--color-fff); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); z-index: 200; overflow: hidden; }
.fl-weather__dropdown.open { display: block; }
.fl-weather__city-item { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; font-size: 13px; color: var(--color-000); border-bottom: 1px solid var(--color-eee); transition: background 0.1s; }
.fl-weather__city-item:last-child { border-bottom: none; }
.fl-weather__city-item:hover { background: var(--color-eee); }
.fl-weather__city-item.selected { background: color-mix(in srgb, var(--fl-accent) 8%, var(--color-fff)); }
.fl-weather__city-icon { font-size: 16px; }
.fl-weather__city-name { flex: 1; font-weight: 600; }
.fl-weather__city-temp { font-weight: 700; }
.fl-weather__city-link { color: var(--color-555); display: flex; }
.fl-weather__city-link .icon { width: 14px; height: 14px; }

/* ── TOP BAR (red/dark) ────────────────── */
.fl-topbar { background: var(--fl-accent); position: sticky; top: 0; z-index: 100; }
.fl-topbar__inner { max-width: var(--fl-max-w); margin: 0 auto; height: 56px; display: flex; align-items: center; padding: 0 20px; gap: 8px; }
.fl-topbar__btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 4px; color: #fff; transition: background 0.15s; }
.fl-topbar__btn:hover { background: rgba(255,255,255,0.15); }
.fl-topbar__btn .icon { width: 18px; height: 18px; }
.fl-topbar__logo { margin: 0 auto; }
.fl-topbar__logo img { max-height: 32px; width: auto; filter: brightness(0) invert(1); }
body.light-mode .fl-topbar__logo img { filter: brightness(0) invert(1); }
body.dark-mode .fl-topbar__logo img { filter: none; }
.fl-topbar__right { display: flex; align-items: center; gap: 4px; }
.fl-topbar__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.5); }
.fl-topbar__login { font-size: 12px; font-weight: 700; padding: 6px 14px; width: auto; color: #fff; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── User dropdown ── */
.fl-user-menu { position: relative; }
.fl-user-menu__dropdown { display: none; position: absolute; inset-block-start: 56px; inset-inline-end: 0; min-width: 200px; background: var(--color-fff); border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); z-index: 200; overflow: hidden; }
.fl-user-menu__dropdown.open { display: block; }
.fl-user-menu__dropdown a, .fl-user-menu__dropdown button { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px; color: var(--color-000); width: 100%; text-align: start; border-bottom: 1px solid var(--color-eee); }
.fl-user-menu__dropdown a:last-child, .fl-user-menu__dropdown button:last-child { border-bottom: none; }
.fl-user-menu__dropdown a:hover, .fl-user-menu__dropdown button:hover { background: var(--color-eee); }
.fl-user-menu__dropdown .icon { width: 16px; height: 16px; color: var(--color-555); }

/* ── Notification bell ── */
.fl-topbar__right { position: relative; }
.fl-topbar__notif { position: relative; }
.fl-topbar__badge { position: absolute; inset-block-start: 2px; inset-inline-end: 2px; background: #fff; color: var(--fl-accent); font-size: 9px; font-weight: 800; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.fl-notif-popup { display: none; position: absolute; inset-block-start: 56px; inset-inline-end: 0; width: 340px; max-height: 400px; background: var(--color-fff); border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); z-index: 200; overflow: hidden; }
.fl-notif-popup[popover-open] { display: block; }
.fl-notif-popup__header { padding: 12px 16px; font-size: 14px; font-weight: 700; color: var(--color-000); border-bottom: 1px solid var(--color-eee); display: flex; align-items: center; justify-content: space-between; }
.fl-notif-popup__header a { color: var(--color-555); }
.fl-notif-popup__header .icon { width: 16px; height: 16px; }
.fl-notif-popup__list { max-height: 340px; overflow-y: auto; }
.fl-notif-popup__loading { display: none; padding: 24px; text-align: center; color: var(--color-555); font-size: 13px; }
.fl-notif-popup__list .sn3 { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--color-eee); text-decoration: none; color: var(--color-000); transition: background 0.1s; }
.fl-notif-popup__list .sn3:hover { background: var(--color-eee); }
.fl-notif-popup__list .sn4 { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.fl-notif-popup__list .sn5 { flex: 1; min-width: 0; }
.fl-notif-popup__list .sn6 { font-size: 13px; line-height: 1.4; color: var(--color-000); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fl-notif-popup__list .sn7 { font-size: 11px; color: var(--color-555); margin-top: 2px; }
.fl-notif-popup__list .sn8 { width: 48px; height: 32px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.fl-notif-popup__list .sn11 { display: none; }

/* ── CATEGORY BAR ─────────────────────── */
.fl-catbar { background: var(--color-fff); border-bottom: 3px solid var(--fl-accent); overflow-x: auto; scrollbar-width: none; }
.fl-catbar::-webkit-scrollbar { display: none; }
.fl-catbar__inner { max-width: var(--fl-max-w); margin: 0 auto; display: flex; align-items: center; gap: 0; padding: 0 16px; white-space: nowrap; }
.fl-catbar__link { display: block; padding: 10px 16px; font-size: 13px; font-weight: 700; color: var(--color-000); text-transform: uppercase; letter-spacing: 0.03em; transition: color 0.15s, background 0.15s; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.fl-catbar__link:hover { color: var(--fl-accent); border-bottom-color: var(--fl-accent); }

/* ── MAINTENANCE BANNER ────────────────── */
.fl-maintenance { background: var(--fl-accent); color: #fff; text-align: center; padding: 10px 20px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.fl-maintenance p { margin: 0; }
.fl-maintenance a { color: #fff; text-decoration: underline; }

/* ── DRAWER ────────────────────────────── */
.fl-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.fl-drawer-overlay.open { opacity: 1; visibility: visible; }
.fl-drawer { position: fixed; inset-block-start: 0; inset-inline-start: 0; width: 320px; max-width: 85vw; height: 100%; background: var(--color-fff); z-index: 201; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; padding: 24px 20px; }
[dir="rtl"] .fl-drawer { transform: translateX(100%); }
.fl-drawer-overlay.open .fl-drawer { transform: translateX(0); }
.fl-drawer__close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.fl-drawer__close:hover { background: var(--color-eee); }
.fl-drawer__title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fl-accent); margin: 24px 0 8px; }
/* Reuse ns-drawer tree styles from _shared */
.ns-drawer__group { border-bottom: 1px solid var(--color-eee); }
.ns-drawer__group-head { display: flex; align-items: center; justify-content: space-between; }
.ns-drawer__link, .fl-drawer__link { display: block; padding: 10px 0; font-size: 15px; font-weight: 600; color: var(--color-000); flex: 1; }
.ns-drawer__link:hover, .fl-drawer__link:hover { color: var(--fl-accent); }
.ns-drawer__toggle { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; transition: transform 0.2s; }
.ns-drawer__toggle:hover { background: var(--color-eee); }
.ns-drawer__toggle .icon { width: 14px; height: 14px; color: var(--color-555); }
.ns-drawer__toggle.open { transform: rotate(180deg); }
.ns-drawer__sub { padding-inline-start: 16px; padding-bottom: 8px; overflow: hidden; display: none; }
.ns-drawer__sub.open { display: block; }
.ns-drawer__sublink { display: block; padding: 6px 0; font-size: 13px; font-weight: 500; color: var(--color-555); border-bottom: 1px solid var(--color-eee); }
.ns-drawer__sublink:last-child { border-bottom: none; }
.ns-drawer__sublink:hover { color: var(--fl-accent); }
.ns-drawer__sub .ns-drawer__group { border-bottom: none; }
.ns-drawer__sub .ns-drawer__link { font-size: 13px; font-weight: 500; color: var(--color-555); padding: 6px 0; }
.fl-drawer__social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.fl-drawer__social a { color: var(--color-555); }
.fl-drawer__social a:hover { color: var(--fl-accent); }
.fl-drawer__social .icon { width: 20px; height: 20px; }

/* ── SEARCH ────────────────────────────── */
.fl-search-overlay { position: fixed; inset: 0; z-index: 900; background: var(--color-fff); display: flex; align-items: flex-start; justify-content: center; padding-top: 15vh; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.fl-search-overlay.open { opacity: 1; visibility: visible; }
.fl-search-box { width: 90%; max-width: 640px; }
.fl-search-box input { width: 100%; font-size: 28px; font-weight: 800; padding: 16px 0; border: none; border-bottom: 4px solid var(--fl-accent); background: transparent; color: var(--color-000); outline: none; }
.fl-search-box input::placeholder { color: var(--color-999); }
.fl-search-close { position: absolute; inset-block-start: 20px; inset-inline-end: 20px; color: var(--color-000); }
.fl-search-results { margin-top: 16px; max-height: 60vh; overflow-y: auto; }
.fl-popular-searches { padding: 8px 0; }
.fl-popular-searches__title { font-size: 12px; font-weight: 700; color: var(--color-555); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.fl-popular-searches__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fl-popular-searches__tag { display: inline-block; padding: 6px 14px; font-size: 13px; background: var(--color-eee); color: var(--color-000); border-radius: 20px; font-weight: 500; }
.fl-popular-searches__tag:hover { background: var(--fl-accent); color: #fff; }
.search-live-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-eee); align-items: center; }
.search-live-item:last-child { border-bottom: none; }
.search-live-item__img { width: 80px; height: 54px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.search-live-item__body { flex: 1; min-width: 0; }
.search-live-item__title { font-size: 14px; font-weight: 700; color: var(--color-000); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-live-item:hover .search-live-item__title { color: var(--fl-accent); }
.search-live-item__meta { font-size: 11px; color: var(--color-555); margin-top: 2px; }
.search-live-empty { padding: 20px 0; text-align: center; color: var(--color-555); font-size: 14px; }

/* ── FOOTER ────────────────────────────── */
.fl-footer { background: #111; color: #ccc; padding: 48px 20px 0; }
.fl-footer__inner { max-width: var(--fl-max-w); margin: 0 auto; }
.fl-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid #333; }
.fl-footer__logo { max-height: 28px; width: auto; margin-bottom: 12px; }
.fl-footer__desc { font-size: 13px; line-height: 1.6; color: #999; }
.fl-footer__col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fl-accent); margin-bottom: 12px; }
.fl-footer__link { display: block; font-size: 13px; color: #ccc; padding: 4px 0; transition: color 0.15s; }
.fl-footer__link:hover { color: #fff; }
.fl-footer__social a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #ccc; padding: 4px 0; transition: color 0.15s; }
.fl-footer__social a:hover { color: #fff; }
.fl-footer__social .icon { width: 16px; height: 16px; }
.fl-footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 12px; color: #666; }
.fl-footer__bottom-links { display: flex; gap: 16px; }
.fl-footer__bottom-links a { color: #666; }
.fl-footer__bottom-links a:hover { color: #ccc; }

/* ── AD: header banner ────────────────── */
.fl-ad-banner { max-width: var(--fl-max-w); margin: 0 auto; text-align: center; padding: 8px 20px; }
.fl-ad-banner:empty { display: none; }
.fl-ad-banner img { max-width: 100%; height: auto; margin: 0 auto; display: block; }
.fl-ad-banner .ad-label { font-size: 10px; color: var(--color-999); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.fl-ad-banner .ad-hide-btn { position: absolute; inset-block-start: 4px; inset-inline-end: 4px; background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; cursor: pointer; line-height: 1; }

/* ── AD: popup ────────────────────────── */
.fl-popup-ad { position: fixed; inset: 0; z-index: 600; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); }
.fl-popup-ad.active { display: flex; }
.fl-popup-ad__box { position: relative; background: #1a1a1a; border-radius: 8px; max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; border-top: 3px solid var(--fl-accent); }
.fl-popup-ad__close { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); color: #fff; cursor: pointer; border: none; z-index: 1; }
.fl-popup-ad__close:hover { background: rgba(255,255,255,0.2); }
.fl-popup-ad__body { padding: 20px; }
.fl-popup-ad__body img { max-width: 100%; border-radius: 4px; }

/* ── AD: interstitial ─────────────────── */
.fl-interstitial { position: fixed; inset: 0; z-index: 700; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.9); }
.fl-interstitial.active { display: flex; }
.fl-interstitial__box { position: relative; max-width: 600px; width: 90%; }
.fl-interstitial__timer { position: absolute; inset-block-start: -32px; inset-inline-end: 0; color: #fff; font-size: 13px; font-weight: 700; background: var(--fl-accent); padding: 4px 12px; border-radius: 4px; }
.fl-interstitial__close { position: absolute; inset-block-start: -32px; inset-inline-end: 0; color: #fff; font-size: 24px; cursor: pointer; display: none; }
.fl-interstitial__body { background: #1a1a1a; border-radius: 8px; overflow: hidden; }
.fl-interstitial__body img { max-width: 100%; }

/* ── AD: floating ─────────────────────── */
.ad-floating { anchor-name: --floating-ad; position: fixed; inset-block-end: 0; inset-inline-start: 0; inset-inline-end: 0; z-index: 500; background: #111; text-align: center; padding: 6px 0; box-shadow: 0 -2px 12px rgba(0,0,0,0.3); }
.ad-floating img { max-height: 90px; width: 100%; object-fit: cover; display: block; }
.ad-floating .ad-hide-btn { position: absolute; inset-block-start: 4px; inset-inline-end: 8px; background: rgba(255,255,255,0.2); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; font-size: 14px; cursor: pointer; line-height: 1; }
.ad-floating .ad-hide-btn:hover { background: rgba(255,255,255,0.4); }

/* ── AD: footer banner ────────────────── */
.ad-footer { max-width: var(--fl-max-w); margin: 20px auto; text-align: center; padding: 0 20px; position: relative; }
.ad-footer img { max-width: 100%; height: auto; margin: 0 auto; display: block; border-radius: 4px; }
.ad-footer .ad-hide-btn { position: absolute; inset-block-start: 4px; inset-inline-end: 24px; background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; cursor: pointer; line-height: 1; }

/* ── AD: header banner ────────────────── */
.ad-header { max-width: var(--fl-max-w); margin: 0 auto; text-align: center; padding: 8px 20px; position: relative; }
.ad-header img { max-width: 100%; height: auto; margin: 0 auto; display: block; }
.ad-header .ad-hide-btn { position: absolute; inset-block-start: 4px; inset-inline-end: 24px; background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; cursor: pointer; line-height: 1; }

/* ── AD: sidebar ──────────────────────── */
.ad-sidebar { position: relative; margin-bottom: 20px; border-radius: 8px; overflow: hidden; }
.ad-sidebar img { max-width: 100%; display: block; }
.ad-sidebar .ad-hide-btn { position: absolute; inset-block-start: 4px; inset-inline-end: 4px; background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; cursor: pointer; line-height: 1; }

/* ── AD: common ───────────────────────── */
.ad-banner { position: relative; }
.ad-banner.ad-floating { position: fixed; }
.ad-banner .ad-hide-btn:hover { background: rgba(0,0,0,0.8); }

/* ── LOGIN MODAL ──────────────────────── */
.fl-modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.25s; }
.fl-modal.is-active { visibility: visible; }
.fl-modal.is-visible { opacity: 1; }
.fl-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.fl-modal__box { position: relative; background: var(--color-fff); border-radius: 8px; max-width: 480px; width: 90%; max-height: 90vh; overflow-y: auto; z-index: 1; border-top: 3px solid var(--fl-accent); }
.fl-modal__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--color-eee); }
.fl-modal__title { font-size: 16px; font-weight: 700; }
.fl-modal__close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.fl-modal__close:hover { background: var(--color-eee); }
.fl-modal__body { padding: 20px; }
.fl-modal__intro { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.fl-modal__list { list-style: none; margin: 0 0 16px; padding: 0; }
.fl-modal__list li { font-size: 13px; line-height: 2; display: flex; align-items: center; gap: 8px; }
.fl-modal__list .icon { width: 16px; height: 16px; color: var(--fl-accent); flex-shrink: 0; }
.fl-modal__btn { display: block; text-align: center; background: var(--fl-accent); color: #fff; padding: 12px; border-radius: 4px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.fl-modal__btn:hover { opacity: 0.9; }

/* ── TOAST / SESSION MESSAGE ──────────── */
.fl-toast { position: fixed; inset-block-start: 20px; inset-inline-end: 20px; z-index: 9999; }
.fl-toast__msg { background: var(--fl-accent); color: #fff; padding: 12px 20px; border-radius: 4px; font-size: 14px; font-weight: 600; animation: fl-toast-in 0.3s ease; }
@keyframes fl-toast-in { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }

/* ── COOKIE CONSENT (flash style) ──────── */
.fl-cookie { position: fixed; inset-block-end: 0; inset-inline-start: 0; inset-inline-end: 0; z-index: 1000; background: #111; color: #eee; padding: 20px; border-top: 3px solid var(--fl-accent); }
.fl-cookie__inner { max-width: var(--fl-max-w); margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.fl-cookie__text { flex: 1; min-width: 260px; }
.fl-cookie__text strong { display: block; font-size: 14px; margin-bottom: 4px; color: #fff; }
.fl-cookie__text p { font-size: 12px; line-height: 1.5; color: #aaa; margin: 0; }
.fl-cookie__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fl-cookie__btn { padding: 8px 16px; border-radius: 4px; font-size: 12px; font-weight: 700; cursor: pointer; border: 1px solid #444; background: transparent; color: #eee; text-transform: uppercase; letter-spacing: 0.04em; }
.fl-cookie__btn:hover { background: #333; }
.fl-cookie__btn--primary { background: var(--fl-accent); color: #fff; border-color: var(--fl-accent); }
.fl-cookie__btn--primary:hover { opacity: 0.9; }
.fl-cookie__details { display: none; max-width: var(--fl-max-w); margin: 16px auto 0; }
.fl-cookie__details.show { display: block; }
.fl-cookie__type { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #333; }
.fl-cookie__type:last-of-type { border-bottom: none; margin-bottom: 12px; }
.fl-cookie__type-name { font-size: 13px; font-weight: 600; }
.fl-cookie__required { font-size: 10px; color: #888; background: #222; padding: 2px 8px; border-radius: 4px; }
.fl-cookie__toggle { position: relative; display: inline-block; width: 36px; height: 20px; }
.fl-cookie__toggle input { opacity: 0; width: 0; height: 0; }
.fl-cookie__slider { position: absolute; cursor: pointer; inset: 0; background: #444; border-radius: 20px; transition: 0.2s; }
.fl-cookie__slider::before { content: ''; position: absolute; width: 14px; height: 14px; inset-block-start: 3px; inset-inline-start: 3px; background: #fff; border-radius: 50%; transition: 0.2s; }
.fl-cookie__toggle input:checked + .fl-cookie__slider { background: var(--fl-accent); }
.fl-cookie__toggle input:checked + .fl-cookie__slider::before { transform: translateX(16px); }
[dir="rtl"] .fl-cookie__toggle input:checked + .fl-cookie__slider::before { transform: translateX(-16px); }

/* ── SCROLL TOP ────────────────────────── */
.fl-scroll-top { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 501; width: 40px; height: 40px; border-radius: 4px; background: var(--fl-accent); color: #fff; display: none; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.3); position-anchor: --floating-ad; }
body:has(.ad-floating) .fl-scroll-top { bottom: calc(anchor(top) + 10px); }

/* ── RESPONSIVE BASE ──────────────────── */
@media (max-width: 900px) {
  .fl-footer__top { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .fl-topbar__inner { padding: 0 12px; }
  .fl-footer__top { grid-template-columns: 1fr; }
  .fl-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Notifications (ShowNotifications) — CNN-bold flash skin ── */
body {
  --notif-bg: var(--fl-accent);
  --notif-text: #fff;
  --notif-radius: 0;
  --notif-accent-bar: 4px;
  --notif-accent-color: #000;
  --notif-font: var(--font-primary), Arial, Helvetica, sans-serif;
  --notif-font-weight: 800;
  --notif-font-size: 13px;
  --notif-letter-spacing: 0.04em;
  --notif-text-transform: uppercase;
  --notif-padding: 14px 20px;
  --notif-padding-mobile: 12px 16px;
  --notif-shadow: 0 4px 0 rgba(0,0,0,0.3), 0 10px 28px rgba(204,0,0,0.35);
  --notif-max-width: 400px;
}
body.dark-mode {
  --notif-accent-color: #fff;
  --notif-shadow: 0 4px 0 rgba(0,0,0,0.5), 0 12px 32px rgba(204,0,0,0.5);
}

/* ── DELETE/CONFIRM DIALOG (shared dl1/dl2/dl3 markup) ── */
.dl1 {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: 440px;
  width: 90%;
  height: fit-content;
  max-height: 90vh;
  padding: 0;
  background: var(--color-fff);
  color: var(--color-000);
  border: none;
  border-top: 4px solid var(--fl-accent);
  border-radius: 0;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15), 0 20px 60px rgba(0,0,0,0.3);
  opacity: 0;
  scale: .96;
  transition: opacity .3s cubic-bezier(.4,0,.2,1), scale .3s cubic-bezier(.4,0,.2,1),
              overlay .3s allow-discrete, display .3s allow-discrete;
  overflow: hidden;
}
.dl1::backdrop {
  background-color: rgba(0,0,0,0);
  backdrop-filter: blur(0);
  transition: background-color .3s, backdrop-filter .3s, display .3s allow-discrete, overlay .3s allow-discrete;
}
.dl1[open] { opacity: 1; scale: 1; }
.dl1[open]::backdrop { background-color: rgba(26,26,26,.6); backdrop-filter: blur(3px); }
@starting-style {
  .dl1[open] { opacity: 0; scale: .96; }
  .dl1[open]::backdrop { background-color: rgba(0,0,0,0); backdrop-filter: blur(0); }
}
.dl2 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 20px 24px 8px;
  margin: 0;
  color: var(--color-000);
}
.dl3 {
  font-size: 14px;
  line-height: 1.5;
  padding: 0 24px 20px;
  margin: 0;
  color: var(--color-555);
}
.dl1 .npuni-btn-group {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--color-eee);
  background: color-mix(in srgb, var(--color-eee) 30%, var(--color-fff));
}
.dl1 .npuni-btn {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-radius: 0;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-555);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.dl1 .npuni-btn:hover { background: var(--color-eee); color: var(--color-000); }
.dl1 .npuni-btn + .npuni-btn { border-inline-start: 1px solid var(--color-eee); }
.dl1 .npuni-btn.filled {
  background: var(--fl-accent);
  color: #fff;
}
.dl1 .npuni-btn.filled:hover { background: #000; color: #fff; }

body.dark-mode .dl1 { background: #1a1a1a; border-top-color: var(--fl-accent); }
body.dark-mode .dl1 .npuni-btn-group { background: #111; border-top-color: #333; }
body.dark-mode .dl1 .npuni-btn { color: #ccc; }
body.dark-mode .dl1 .npuni-btn:hover { background: #222; color: #fff; }
body.dark-mode .dl1 .npuni-btn + .npuni-btn { border-inline-start-color: #333; }
body.dark-mode .dl1[open]::backdrop { background-color: rgba(0,0,0,.75); }
