
/* ═══════════════════════ NAVIGATION ═══════════════════════ */

/* ── 1. Standard Sticky (existing nui-header — see main CSS) ── */

/* ── 2. Mega-Menu Nav ── */
.lib-nav--mega { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: relative; z-index: 100; }
.lib-nav--mega .mega-inner { display: flex; align-items: center; padding: 0 5%; height: 60px; gap: 0; }
.lib-nav--mega .mega-item { position: relative; }
.lib-nav--mega .mega-link {
  padding: 0 18px; height: 60px; display: flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 600; color: var(--nui-text,#111); text-decoration: none;
  border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap;
}
.lib-nav--mega .mega-link:hover, .lib-nav--mega .mega-link.is-active { color: var(--nui-brand,#d6173a); border-bottom-color: var(--nui-brand,#d6173a); }
.lib-nav--mega .mega-link .chevron { font-size: 10px; opacity: .5; transition: transform .2s; }
.lib-nav--mega .mega-item:hover .chevron { transform: rotate(180deg); }
.lib-nav--mega .mega-drop {
  position: absolute; top: 100%; left: -20px;
  background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.12); min-width: 600px;
  padding: 28px; display: none; grid-template-columns: repeat(3, 1fr); gap: 20px;
  border-top: 3px solid var(--nui-brand,#d6173a); z-index: 200;
}
.lib-nav--mega .mega-item:hover .mega-drop { display: grid; }
.lib-nav--mega .mega-drop-item { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.lib-nav--mega .mega-drop-item .drop-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; }
.lib-nav--mega .mega-drop-item .drop-cat { font-size: 10px; color: var(--nui-brand,#d6173a); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.lib-nav--mega .mega-drop-item .drop-title { font-size: 13px; font-weight: 700; color: var(--nui-text,#111); line-height: 1.3; }

/* ── 3. Category Ribbon ── */
.lib-nav--ribbon { background: #fff; border-bottom: 1px solid var(--nui-border,#eee); overflow: hidden; }
.lib-nav--ribbon .ribbon-inner { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 0 5%; }
.lib-nav--ribbon .ribbon-inner::-webkit-scrollbar { display: none; }
.lib-nav--ribbon .ribbon-link {
  padding: 14px 16px; font-size: 13px; font-weight: 600; color: var(--nui-text-muted,#666);
  text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.lib-nav--ribbon .ribbon-link:hover { color: var(--nui-text,#111); }
.lib-nav--ribbon .ribbon-link.is-active { color: var(--nui-brand,#d6173a); border-bottom-color: var(--nui-brand,#d6173a); font-weight: 700; }

/* ── 4. Logo-Center Minimal ── */
.lib-nav--logo-center {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 5%; height: 72px; background: #fff; border-bottom: 1px solid var(--nui-border,#eee);
}
.lib-nav--logo-center .nc-left, .lib-nav--logo-center .nc-right { display: flex; align-items: center; gap: 28px; }
.lib-nav--logo-center .nc-right { justify-content: flex-end; }
.lib-nav--logo-center .nc-logo { text-align: center; }
.lib-nav--logo-center .nc-logo a { font-family: Tajawal, Georgia, serif; font-size: 26px; font-weight: 900; color: #111; text-decoration: none; letter-spacing: 2px; text-transform: uppercase; }
.lib-nav--logo-center a { font-size: 13px; font-weight: 600; color: var(--nui-text,#666); text-decoration: none; transition: color .2s; }
.lib-nav--logo-center a:hover { color: var(--nui-brand,#d6173a); }

/* ── 5. Dark Editorial ── */
.lib-nav--dark-editorial {
  background: #111; padding: 0 5%; height: 60px; display: flex; align-items: center; gap: 40px;
}
.lib-nav--dark-editorial .de-logo { font-size: 20px; font-weight: 900; color: #fff; text-decoration: none; letter-spacing: 3px; text-transform: uppercase; margin-right: auto; }
.lib-nav--dark-editorial a { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.5); text-decoration: none; text-transform: uppercase; letter-spacing: 1.5px; transition: color .2s; padding: 4px 0; border-bottom: 2px solid transparent; }
.lib-nav--dark-editorial a:hover, .lib-nav--dark-editorial a.is-active { color: #fff; border-bottom-color: #d6173a; }

/* ── 6. Top-Topbar + Main ── */
.lib-nav--double { border-bottom: 1px solid var(--nui-border,#eee); }
.lib-nav--double .nav-topbar { background: #f8f5ef; padding: 6px 5%; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--nui-text-muted,#888); border-bottom: 1px solid var(--nui-border,#eee); }
.lib-nav--double .nav-topbar a { color: inherit; text-decoration: none; }
.lib-nav--double .nav-topbar a:hover { color: var(--nui-brand,#d6173a); }
.lib-nav--double .nav-main { display: flex; align-items: center; gap: 32px; padding: 0 5%; height: 64px; background: #fff; }
.lib-nav--double .nav-main .main-logo { font-family: Tajawal, Georgia, serif; font-size: 24px; font-weight: 900; color: #111; text-decoration: none; margin-right: auto; }
.lib-nav--double .nav-main a { font-size: 14px; font-weight: 600; color: var(--nui-text,#444); text-decoration: none; transition: color .2s; }
.lib-nav--double .nav-main a:hover, .lib-nav--double .nav-main a.is-active { color: var(--nui-brand,#d6173a); }

/* ── 7. Tab-Style Section ── */
.lib-nav--tabs { border-bottom: 2px solid var(--nui-border,#eee); display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.lib-nav--tabs::-webkit-scrollbar { display: none; }
.lib-nav--tabs .tab-link {
  padding: 14px 20px; font-size: 13px; font-weight: 700; color: var(--nui-text-muted,#888);
  text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .2s, border-color .2s; background: transparent; border-top: none; border-left: none; border-right: none; cursor: pointer; font-family: inherit;
}
.lib-nav--tabs .tab-link:hover { color: var(--nui-text,#111); }
.lib-nav--tabs .tab-link.is-active { color: var(--nui-brand,#d6173a); border-bottom-color: var(--nui-brand,#d6173a); }

/* ── 8. Sidebar Vertical ── */
.lib-nav--sidebar { display: flex; flex-direction: column; width: 220px; background: #fff; border-right: 1px solid var(--nui-border,#eee); }
.lib-nav--sidebar .sb-logo { padding: 24px 20px; font-family: Tajawal, Georgia, serif; font-size: 20px; font-weight: 900; color: #111; text-decoration: none; display: block; border-bottom: 1px solid var(--nui-border,#eee); }
.lib-nav--sidebar .sb-section { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--nui-text-muted,#aaa); padding: 16px 20px 8px; font-weight: 700; }
.lib-nav--sidebar .sb-link { padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--nui-text,#444); text-decoration: none; display: flex; align-items: center; gap: 10px; transition: all .2s; border-left: 3px solid transparent; }
.lib-nav--sidebar .sb-link:hover { color: var(--nui-brand,#d6173a); background: rgba(214,23,58,.04); }
.lib-nav--sidebar .sb-link.is-active { color: var(--nui-brand,#d6173a); border-left-color: var(--nui-brand,#d6173a); background: rgba(214,23,58,.06); }
[dir="rtl"] .lib-nav--sidebar { border-right: none; border-left: 1px solid var(--nui-border,#eee); }
[dir="rtl"] .lib-nav--sidebar .sb-link { border-left: none; border-right: 3px solid transparent; }
[dir="rtl"] .lib-nav--sidebar .sb-link.is-active { border-right-color: var(--nui-brand,#d6173a); }

/* ── 9. Search-Forward ── */
.lib-nav--search-first { background: #fff; padding: 12px 5%; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--nui-border,#eee); }
.lib-nav--search-first .sf-logo { font-family: Tajawal, Georgia, serif; font-size: 20px; font-weight: 900; color: #111; text-decoration: none; flex-shrink: 0; }
.lib-nav--search-first .sf-search { flex: 1; max-width: 500px; position: relative; }
.lib-nav--search-first .sf-search input { width: 100%; padding: 10px 16px 10px 44px; border: 2px solid var(--nui-border,#eee); border-radius: 24px; font-size: 14px; color: var(--nui-text,#333); background: var(--nui-surface-alt,#f9f9f9); outline: none; transition: border-color .2s; font-family: inherit; }
.lib-nav--search-first .sf-search input:focus { border-color: var(--nui-brand,#d6173a); }
.lib-nav--search-first .sf-search .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--nui-text-muted,#aaa); font-size: 16px; }
[dir="rtl"] .lib-nav--search-first .sf-search input { padding: 10px 44px 10px 16px; }
[dir="rtl"] .lib-nav--search-first .sf-search .search-icon { left: auto; right: 16px; }
.lib-nav--search-first .sf-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }
[dir="rtl"] .lib-nav--search-first .sf-actions { margin-left: 0; margin-right: auto; }

/* ── 10. Breaking-Integrated Nav ── */
.lib-nav--breaking-integrated { background: #111; }
.lib-nav--breaking-integrated .bi-breaking { background: #d6173a; padding: 6px 5%; display: flex; align-items: center; gap: 16px; font-size: 12px; color: rgba(255,255,255,.8); overflow: hidden; }
.lib-nav--breaking-integrated .bi-badge { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.2); padding: 2px 10px; border-radius: 2px; flex-shrink: 0; }
.lib-nav--breaking-integrated .bi-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-nav--breaking-integrated .bi-main { display: flex; align-items: center; gap: 32px; padding: 0 5%; height: 56px; }
.lib-nav--breaking-integrated .bi-logo { font-family: Tajawal, Georgia, serif; font-size: 20px; font-weight: 900; color: #fff; text-decoration: none; margin-right: auto; }
[dir="rtl"] .lib-nav--breaking-integrated .bi-logo { margin-right: 0; margin-left: auto; }
.lib-nav--breaking-integrated .bi-main a { font-size: 13px; color: rgba(255,255,255,.6); text-decoration: none; font-weight: 600; transition: color .2s; }
.lib-nav--breaking-integrated .bi-main a:hover { color: #fff; }

/* ── 11. Floating Minimal ── */
.lib-nav--floating {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.65); backdrop-filter: blur(12px);
  border-radius: 50px; padding: 10px 28px;
  display: flex; align-items: center; gap: 32px; z-index: 20; white-space: nowrap;
}
.lib-nav--floating .fl-logo { font-size: 15px; font-weight: 900; color: #fff; text-decoration: none; letter-spacing: 2px; margin-right: 8px; }
.lib-nav--floating a { font-size: 13px; color: rgba(255,255,255,.65); text-decoration: none; font-weight: 600; transition: color .2s; }
.lib-nav--floating a:hover, .lib-nav--floating a.is-active { color: #fff; }


/* ═══════════════════════ WIDGETS ═══════════════════════ */

/* ── Base ── */
.lib-widget { border-radius: 8px; overflow: hidden; background: var(--nui-surface,#fff); }
.lib-widget-title {
  font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--nui-text,#111); margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.lib-widget-title::after { content: ''; flex: 1; height: 1px; background: var(--nui-border,#eee); }

/* 1. Breaking News Widget */
.lib-widget--breaking { padding: 0; border: 2px solid #d6173a; }
.lib-widget--breaking .widget-header { background: #d6173a; padding: 10px 16px; display: flex; align-items: center; gap: 8px; }
.lib-widget--breaking .widget-header .wh-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: live-pulse 1s infinite; }
.lib-widget--breaking .widget-header span { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.lib-widget--breaking .widget-body { padding: 16px; }
.lib-widget--breaking .bn-items { display: flex; flex-direction: column; gap: 12px; }
.lib-widget--breaking .bn-item { display: flex; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--nui-border,#eee); align-items: flex-start; }
.lib-widget--breaking .bn-item:last-child { border-bottom: none; padding-bottom: 0; }
.lib-widget--breaking .bn-time { font-size: 11px; color: #d6173a; font-weight: 700; flex-shrink: 0; padding-top: 2px; }
.lib-widget--breaking .bn-text { font-size: 13px; color: var(--nui-text,#333); line-height: 1.5; }

/* 2. Most Read */
.lib-widget--most-read { padding: 20px; border: 1px solid var(--nui-border,#eee); }
.lib-widget--most-read .mr-list { display: flex; flex-direction: column; gap: 0; counter-reset: mrn; }
.lib-widget--most-read .mr-item { counter-increment: mrn; display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--nui-border,#eee); }
.lib-widget--most-read .mr-item:last-child { border-bottom: none; }
.lib-widget--most-read .mr-item::before { content: counter(mrn); font-size: 28px; font-weight: 900; color: rgba(0,0,0,.07); font-family: Tajawal, Georgia, serif; flex-shrink: 0; line-height: 1; min-width: 32px; }
[data-theme="dark"] .lib-widget--most-read .mr-item::before { color: rgba(255,255,255,.07); }
.lib-widget--most-read .mr-title { font-size: 13px; font-weight: 700; color: var(--nui-text,#333); line-height: 1.4; }
.lib-widget--most-read .mr-meta { font-size: 11px; color: var(--nui-text-muted,#888); margin-top: 4px; }

/* 3. Newsletter Subscribe */
.lib-widget--newsletter { padding: 24px; background: linear-gradient(135deg, #1a1a2e, #0f3460); text-align: center; }
.lib-widget--newsletter .nl-icon { font-size: 32px; margin-bottom: 12px; }
.lib-widget--newsletter h3 { font-size: 16px; font-weight: 800; color: #fff; margin: 0 0 8px; }
.lib-widget--newsletter p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.6; margin-bottom: 16px; }
.lib-widget--newsletter .nl-form { display: flex; flex-direction: column; gap: 10px; }
.lib-widget--newsletter .nl-input { padding: 12px 16px; border: none; border-radius: 4px; font-size: 13px; background: rgba(255,255,255,.1); color: #fff; outline: none; font-family: inherit; }
.lib-widget--newsletter .nl-input::placeholder { color: rgba(255,255,255,.3); }
.lib-widget--newsletter .nl-input:focus { background: rgba(255,255,255,.15); }
.lib-widget--newsletter .nl-btn { padding: 12px; background: #d6173a; color: #fff; font-size: 13px; font-weight: 700; border: none; border-radius: 4px; cursor: pointer; font-family: inherit; transition: background .2s; }
.lib-widget--newsletter .nl-btn:hover { background: #b5102d; }

/* 4. Social Follow */
.lib-widget--social { padding: 20px; border: 1px solid var(--nui-border,#eee); }
.lib-widget--social .social-items { display: flex; flex-direction: column; gap: 10px; }
.lib-widget--social .soc-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 6px; text-decoration: none; transition: opacity .2s; }
.lib-widget--social .soc-item:hover { opacity: .85; }
.lib-widget--social .soc-fb { background: #1877f2; }
.lib-widget--social .soc-tw { background: #000; }
.lib-widget--social .soc-yt { background: #ff0000; }
.lib-widget--social .soc-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.lib-widget--social .soc-item .soc-icon { color: #fff; font-size: 18px; width: 24px; text-align: center; }
.lib-widget--social .soc-item .soc-label { font-size: 13px; font-weight: 700; color: #fff; flex: 1; }
.lib-widget--social .soc-item .soc-count { font-size: 13px; color: rgba(255,255,255,.8); font-weight: 600; }

/* 5. Tag Cloud */
.lib-widget--tags { padding: 20px; border: 1px solid var(--nui-border,#eee); }
.lib-widget--tags .tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-widget--tags .tag-pill {
  padding: 5px 13px; border-radius: 20px; font-size: 12px; font-weight: 600;
  text-decoration: none; background: var(--nui-surface-alt,#f3f4f6); color: var(--nui-text,#555);
  transition: background .2s, color .2s;
}
.lib-widget--tags .tag-pill:hover { background: var(--nui-brand,#d6173a); color: #fff; }

/* 6. Author Bio */
.lib-widget--author { padding: 24px; border: 1px solid var(--nui-border,#eee); text-align: center; }
.lib-widget--author .auth-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; margin: 0 auto 12px; border: 3px solid #fff; box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.lib-widget--author .auth-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lib-widget--author .auth-name { font-size: 16px; font-weight: 800; color: var(--nui-text,#111); margin-bottom: 4px; }
.lib-widget--author .auth-role { font-size: 11px; color: var(--nui-brand,#d6173a); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.lib-widget--author .auth-bio { font-size: 13px; color: var(--nui-text-muted,#666); line-height: 1.7; margin-bottom: 16px; }
.lib-widget--author .auth-stats { display: flex; justify-content: center; gap: 20px; }
.lib-widget--author .auth-stat span { display: block; font-size: 18px; font-weight: 900; color: var(--nui-text,#111); line-height: 1; }
.lib-widget--author .auth-stat small { font-size: 10px; color: var(--nui-text-muted,#888); letter-spacing: 1px; text-transform: uppercase; }

/* 7. Related Topics */
.lib-widget--topics { padding: 20px; border: 1px solid var(--nui-border,#eee); }
.lib-widget--topics .topics-list { display: flex; flex-direction: column; gap: 0; }
.lib-widget--topics .topic-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--nui-border,#eee); text-decoration: none; }
.lib-widget--topics .topic-item:last-child { border-bottom: none; }
.lib-widget--topics .topic-item:hover .topic-name { color: var(--nui-brand,#d6173a); }
.lib-widget--topics .topic-name { font-size: 14px; font-weight: 600; color: var(--nui-text,#333); display: flex; align-items: center; gap: 8px; }
.lib-widget--topics .topic-icon { font-size: 16px; }
.lib-widget--topics .topic-count { font-size: 11px; color: var(--nui-text-muted,#888); background: var(--nui-surface-alt,#f3f4f6); padding: 2px 10px; border-radius: 12px; }

/* 8. Ad Placeholder */
.lib-widget--ad { background: var(--nui-surface-alt,#f8f8f8); border: 2px dashed var(--nui-border,#ddd); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; min-height: 200px; }
.lib-widget--ad .ad-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--nui-text-muted,#bbb); font-weight: 700; margin-bottom: 8px; }
.lib-widget--ad .ad-size { font-size: 20px; font-weight: 900; color: var(--nui-border,#ddd); }

/* 9. Upcoming Events */
.lib-widget--events { padding: 20px; border: 1px solid var(--nui-border,#eee); }
.lib-widget--events .event-items { display: flex; flex-direction: column; gap: 0; }
.lib-widget--events .ev-item { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--nui-border,#eee); }
.lib-widget--events .ev-item:last-child { border-bottom: none; }
.lib-widget--events .ev-date { flex-shrink: 0; text-align: center; background: var(--nui-brand,#d6173a); color: #fff; border-radius: 6px; padding: 8px 12px; min-width: 52px; }
.lib-widget--events .ev-date .ev-day { font-size: 22px; font-weight: 900; line-height: 1; display: block; }
.lib-widget--events .ev-date .ev-month { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.lib-widget--events .ev-info .ev-title { font-size: 14px; font-weight: 700; color: var(--nui-text,#333); line-height: 1.3; margin-bottom: 4px; }
.lib-widget--events .ev-info .ev-time { font-size: 11px; color: var(--nui-text-muted,#888); display: flex; align-items: center; gap: 5px; }

/* 10. Poll Widget */
.lib-widget--poll { padding: 20px; border: 1px solid var(--nui-border,#eee); border-top: 3px solid var(--nui-brand,#d6173a); }
.lib-widget--poll .poll-q { font-size: 15px; font-weight: 700; color: var(--nui-text,#111); margin-bottom: 16px; line-height: 1.4; }
.lib-widget--poll .poll-choices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.lib-widget--poll .poll-choice { cursor: pointer; }
.lib-widget--poll .poll-choice label { cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--nui-text,#333); }
.lib-widget--poll .poll-choice input[type="radio"] { accent-color: var(--nui-brand,#d6173a); width: 16px; height: 16px; }
.lib-widget--poll .poll-footer { display: flex; justify-content: space-between; align-items: center; }
.lib-widget--poll .poll-footer .poll-count { font-size: 11px; color: var(--nui-text-muted,#888); }
.lib-widget--poll .poll-submit { padding: 8px 20px; background: var(--nui-brand,#d6173a); color: #fff; font-size: 13px; font-weight: 700; border: none; border-radius: 4px; cursor: pointer; font-family: inherit; }

/* 11. Live Scores Widget */
.lib-widget--scores { padding: 0; background: #0a0a1a; border-radius: 8px; overflow: hidden; }
.lib-widget--scores .scores-header { padding: 12px 16px; background: #d6173a; display: flex; align-items: center; gap: 8px; }
.lib-widget--scores .scores-header .sh-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: live-pulse 1s infinite; }
.lib-widget--scores .scores-header span { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.lib-widget--scores .score-list { padding: 12px 0; }
.lib-widget--scores .sc-item { display: flex; align-items: center; padding: 10px 16px; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.05); }
.lib-widget--scores .sc-item:last-child { border-bottom: none; }
.lib-widget--scores .sc-league { font-size: 10px; color: rgba(255,255,255,.3); letter-spacing: 1px; text-transform: uppercase; flex-shrink: 0; width: 40px; }
.lib-widget--scores .sc-teams { flex: 1; }
.lib-widget--scores .sc-team { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.8); display: flex; justify-content: space-between; margin-bottom: 4px; }
.lib-widget--scores .sc-team:last-child { margin-bottom: 0; }
.lib-widget--scores .sc-team .sc-score { font-weight: 900; color: #fff; }
.lib-widget--scores .sc-status { font-size: 10px; color: #d6173a; font-weight: 700; flex-shrink: 0; }

/* 12. Weather Widget */
.lib-widget--weather { padding: 20px; background: linear-gradient(135deg, #1a6ca8, #38b2e5); color: #fff; border-radius: 8px; }
.lib-widget--weather .wx-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.lib-widget--weather .wx-city { font-size: 16px; font-weight: 700; }
.lib-widget--weather .wx-date { font-size: 12px; color: rgba(255,255,255,.6); }
.lib-widget--weather .wx-main { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.lib-widget--weather .wx-icon { font-size: 52px; line-height: 1; }
.lib-widget--weather .wx-temp-big { font-size: 56px; font-weight: 900; line-height: 1; }
.lib-widget--weather .wx-temp-big small { font-size: 20px; opacity: .7; vertical-align: top; margin-top: 8px; display: inline-block; }
.lib-widget--weather .wx-desc { font-size: 14px; color: rgba(255,255,255,.75); }
.lib-widget--weather .wx-details { display: flex; gap: 16px; }
.lib-widget--weather .wx-detail { text-align: center; }
.lib-widget--weather .wx-detail span { display: block; font-size: 16px; font-weight: 700; }
.lib-widget--weather .wx-detail small { font-size: 10px; color: rgba(255,255,255,.6); letter-spacing: 1px; text-transform: uppercase; }


/* ═══════════════════════ MEDIA / GALLERY ═══════════════════════ */

/* ── 1. Standard Lightbox Grid ── */
.lib-gallery--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.lib-gallery--grid .gal-item { aspect-ratio: 1/1; overflow: hidden; cursor: pointer; border-radius: 4px; position: relative; }
.lib-gallery--grid .gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lib-gallery--grid .gal-item:hover img { transform: scale(1.08); }
.lib-gallery--grid .gal-item .gal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; display: flex; align-items: center; justify-content: center; transition: opacity .3s; }
.lib-gallery--grid .gal-item:hover .gal-overlay { opacity: 1; }
.lib-gallery--grid .gal-item .gal-overlay::after { content: '⊕'; color: #fff; font-size: 28px; }

/* ── 2. Hero Asymmetric ── */
.lib-gallery--hero { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 16/9; }
.lib-gallery--hero .gh-main { grid-row: 1 / 3; overflow: hidden; cursor: pointer; border-radius: 6px 0 0 6px; }
.lib-gallery--hero .gh-item { overflow: hidden; cursor: pointer; border-radius: 0; }
.lib-gallery--hero .gh-item:last-child { border-radius: 0 0 6px 0; }
.lib-gallery--hero .gh-main img, .lib-gallery--hero .gh-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lib-gallery--hero .gh-main:hover img, .lib-gallery--hero .gh-item:hover img { transform: scale(1.06); }

/* ── 3. Filmstrip ── */
.lib-gallery--filmstrip { display: flex; flex-direction: column; gap: 8px; }
.lib-gallery--filmstrip .fs-main { aspect-ratio: 16/9; overflow: hidden; border-radius: 6px; cursor: pointer; }
.lib-gallery--filmstrip .fs-main img { width: 100%; height: 100%; object-fit: cover; }
.lib-gallery--filmstrip .fs-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.lib-gallery--filmstrip .fs-strip::-webkit-scrollbar { height: 3px; }
.lib-gallery--filmstrip .fs-strip::-webkit-scrollbar-thumb { background: var(--nui-border,#ddd); }
.lib-gallery--filmstrip .fs-thumb { flex-shrink: 0; width: 80px; height: 56px; border-radius: 3px; overflow: hidden; cursor: pointer; opacity: .65; border: 2px solid transparent; transition: opacity .2s, border-color .2s; }
.lib-gallery--filmstrip .fs-thumb.is-active { opacity: 1; border-color: var(--nui-brand,#d6173a); }
.lib-gallery--filmstrip .fs-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── 4. Before / After Comparison ── */
.lib-gallery--compare { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 6px; cursor: ew-resize; user-select: none; }
.lib-gallery--compare .cmp-before, .lib-gallery--compare .cmp-after { position: absolute; inset: 0; }
.lib-gallery--compare .cmp-before img, .lib-gallery--compare .cmp-after img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-gallery--compare .cmp-after { clip-path: inset(0 0 0 50%); transition: clip-path .05s; }
.lib-gallery--compare .cmp-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; z-index: 5; pointer-events: none; }
.lib-gallery--compare .cmp-handle::after { content: '⟺'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #fff; color: #111; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.lib-gallery--compare .cmp-label { position: absolute; top: 16px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: rgba(0,0,0,.5); color: #fff; padding: 4px 10px; border-radius: 3px; z-index: 4; }
.lib-gallery--compare .cmp-label--before { left: 16px; }
.lib-gallery--compare .cmp-label--after { right: 16px; }
[dir="rtl"] .lib-gallery--compare .cmp-label--before { left: auto; right: 16px; }
[dir="rtl"] .lib-gallery--compare .cmp-label--after { right: auto; left: 16px; }
