/* 11XL News - Public theme (mobile-first, responsive) */
:root { --p: #c8102e; --s: #111; --font: system-ui, sans-serif; --bg: #fff; --card: #fff; --text: #111; --muted: #6b7280; --line: #e5e7eb; }
[data-bs-theme="dark"] { --bg: #0f1115; --card: #171a21; --text: #e5e7eb; --muted: #9ca3af; --line: #2a2f3a; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--p); }
img { max-width: 100%; }
.btn-p { background: var(--p); color: #fff; border: 0; }
.btn-p:hover { filter: brightness(.9); color: #fff; }

/* Top bar */
.topbar { background: var(--s); color: #ddd; font-size: 12px; padding: 6px 0; }
.topbar a { color: #ddd; }
.topbar a:hover { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1040; background: #f6f0ef; border-bottom: 1px solid rgba(17,17,17,.08); box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04); }
@media (max-width: 991.98px) {
  .site-header { position: sticky; top: 0; }
}
.brand-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.brand { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.brand img { height: 32px; max-width: 180px; object-fit: contain; }
.brand .brand-text { font-size: 22px; font-weight: 800; color: var(--p); letter-spacing: -.5px; }
.brand small { color: var(--muted); font-size: 10px; }
.header-ad { margin-left: auto; min-width: 300px; text-align: right; }
.nav-toggle, .search-toggle { font-size: 22px; padding: 2px 8px; color: var(--text); }
.search-toggle { margin-left: auto; }
.hs-classic .brand-row { justify-content: center; }
.hs-classic .brand { align-items: center; }
.hs-classic .header-ad { margin-left: 0; }
@media (max-width: 991.98px) { .hs-classic .brand-row { justify-content: flex-start; } .hs-classic .brand { align-items: flex-start; } }
.hs-classic .brand-row { justify-content: space-between; }
.hs-bold .site-header { background: var(--p); }
.hs-bold .brand .brand-text, .hs-bold .nav-toggle, .hs-bold .search-toggle { color: #fff; }
.hs-bold .brand small { color: rgba(255,255,255,.8); }
.main-nav { background: var(--p); color: #fff; }
.hs-bold .main-nav { background: rgba(0,0,0,.2); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list a { display: block; padding: 11px 14px; color: #fff; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; }
.nav-list a:hover, .nav-list a.active { background: rgba(0,0,0,.2); color: #fff; }
.nav-search { display: flex; }
.nav-search input { border: 0; border-radius: 4px 0 0 4px; padding: 6px 10px; font-size: 13px; width: 160px; }
.nav-search button { border: 0; background: rgba(0,0,0,.25); color: #fff; padding: 0 10px; border-radius: 0 4px 4px 0; }
.mobile-nav ul li a { display: block; padding: 12px 18px; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-nav ul li a i { color: var(--p); margin-right: 6px; }
.offcanvas {
  z-index: 100060 !important;
  background: var(--card);
  color: var(--text);
}
.offcanvas-backdrop,
.offcanvas-backdrop.show {
  z-index: 100055 !important;
}
.mobile-nav .offcanvas-header {
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
}
.mobile-nav .offcanvas-body {
  padding-bottom: 90px !important;
}

.newspaper-header { background: #f7f1f0; border-bottom: 1px solid rgba(17,17,17,.08); }
.newspaper-shell { padding-left: 0; padding-right: 0; }
.newspaper-brand-row { display: flex; align-items: center; gap: 12px; padding: 12px 0 7px; width: 100%; flex-wrap: wrap; }
.newspaper-brand {
  display: flex; align-items: center; gap: 10px; color: #171818; flex-shrink: 0; min-width: 0;
}
.newspaper-brand img {
  display: block; width: auto; height: 42px; max-width: 220px; object-fit: contain; flex-shrink: 0;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #d5222f, #b50817);
  display: grid; place-items: center; color: #fff; font-size: 18px; box-shadow: 0 8px 18px rgba(197, 27, 41, 0.2);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.08; }
@media (max-width: 991.98px) {
  .newspaper-brand-row { gap: 10px; }
  .newspaper-brand img { height: 34px; max-width: 176px; }
}
@media (max-width: 575.98px) {
  .newspaper-brand-row { gap: 8px; padding: 10px 0; }
  .newspaper-brand img { height: 28px; max-width: 150px; }
  .nav-toggle { padding-left: 0; }
}
.brand-copy .brand-title { font-size: clamp(1.15rem, 2vw, 1.8rem); font-weight: 800; letter-spacing: -.04em; color: #191919; }
.brand-copy small { font-size: 10px; color: #6b6b6b; margin-top: 2px; }
.newspaper-date-box {
  margin-left: auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  background: rgba(255,255,255,.7); border: 1px solid rgba(17,17,17,.08); border-radius: 10px; padding: 8px 12px; min-width: 115px; flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(17,17,17,.04);
}
.newspaper-date-box .date-text { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #3d3d3d; }
.newspaper-date-box .time-text { font-size: 12px; color: #666; }
.newspaper-search {
  width: min(280px, 100%); margin-left: 10px; display: flex; align-items: center; background: #fff; border: 1px solid rgba(17,17,17,.12); border-radius: 12px; overflow: hidden; box-shadow: inset 0 1px 4px rgba(0,0,0,.02); flex: 1 1 220px; max-width: 280px;
}
.newspaper-search input { width: 100%; border: 0; background: transparent; padding: 10px 12px; font-size: 14px; color: #111; }
.newspaper-search input:focus { outline: none; }
.newspaper-search button { border: 0; background: var(--p); color: #fff; width: 42px; height: 42px; }
.newspaper-nav { background: transparent; border-top: 1px solid rgba(17,17,17,.08); }
.newspaper-nav .container { padding: 0; }
.newspaper-nav ul { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 10px 0 12px; }
.newspaper-nav li { list-style: none; margin: 0; }
.newspaper-nav a { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; color: #1a1a1a; background: transparent; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .01em; text-transform: none; }
.newspaper-nav a:hover, .newspaper-nav a.active { background: var(--p); color: #fff; }
.site-header .auth-btns { margin-left: 8px; }

@media (min-width: 992px) {
  .topbar { display: block !important; }
  .site-header .auth-btns { display: none !important; }
  .main-nav:not(.newspaper-nav) { display: none !important; }
}

@media (max-width: 991.98px) {
  .topbar { display: none !important; }
  .newspaper-date-box, .newspaper-search, .newspaper-nav { display: none !important; }
  .site-header { background: #fff; }
}

/* Ticker */
.ticker { background: var(--card); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker .label { background: var(--p); color: #fff; font-weight: 700; padding: 8px 12px; font-size: 13px; white-space: nowrap; display: flex; align-items: center; }
.ticker .label::before { content: ""; width: 8px; height: 8px; background: #fff; border-radius: 50%; margin-right: 8px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.ticker .track { flex: 1; overflow: hidden; position: relative; display: flex; align-items: center; }
.ticker .mq-run a { padding: 0 24px; font-weight: 500; font-size: 14px; position: relative; }
.ticker .mq-run a::after { content: "•"; position: absolute; right: -4px; color: var(--p); }
.ticker .track:hover .mq-run { animation-play-state: paused; }
@keyframes scroll { from { transform: translateX(100%); } to { transform: translateX(-100%); } }

/* Hero grid */
.hero-grid { display: grid; grid-template-columns: 1.75fr 1fr 1fr; grid-template-rows: minmax(180px, 220px) minmax(110px, 140px); gap: 12px; }
.hero-main { grid-row: span 2; }
.hero-card, .overlay-card { display: block; position: relative; border-radius: 12px; overflow: hidden; height: 100%; background: #222; min-height: 120px; aspect-ratio: 4 / 3; }
.hero-card img, .overlay-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: none; }
.hero-card:hover img, .overlay-card:hover img { transform: none; }
.hero-card .overlay, .overlay-card .overlay { position: absolute; inset: auto 0 0 0; padding: 14px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.82)); color: #fff; }
.hero-card h2 { font-size: clamp(1.15rem, 1.8vw, 1.8rem); font-weight: 800; margin: 6px 0 4px; color: #fff; line-height: 1.18; }
.overlay-card h5 { font-size: 11.5px; font-weight: 700; margin: 6px 0 0; color: #fff; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-card .meta, .overlay-card .meta { color: rgba(255,255,255,.8); }
.hero-card .meta a { color: #fff; }
.hero-main .hero-card { min-height: 0; height: 100%; max-height: none; aspect-ratio: 4 / 3; }
@media (max-width: 991.98px) { .hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(180px, 210px) minmax(110px, 140px) minmax(110px, 140px); } .hero-main { grid-column: span 2; grid-row: span 1; } .hero-card h2 { font-size: 18px; } .overlay-card h5 { -webkit-line-clamp: 2; } }
@media (max-width: 575.98px) { .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .hero-main { grid-column: 1 / -1; } .hero-main .hero-card { min-height: 220px; } .hero-card, .overlay-card { min-height: 140px; max-height: none; border-radius: 10px; aspect-ratio: 4 / 3; } .hero-card .overlay, .overlay-card .overlay { padding: 12px 10px 8px; } .hero-card h2 { font-size: 17px; } .overlay-card h5 { font-size: 11.5px; } .news-card .thumb { aspect-ratio: 16 / 10; } .mini-card .thumb { flex-basis: 84px; } .list-card .thumb { flex-basis: 120px; aspect-ratio: 16 / 10; } }

/* Cards */
.cat-badge { display: inline-block; background: var(--p); color: #fff !important; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: .03em; }
.meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.meta a { color: var(--muted); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(200,16,46,.9); color: #fff; display: grid; place-items: center; font-size: 26px; pointer-events: none; }
.news-card { background: var(--card); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; }
.news-card .thumb { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: none; }
.news-card:hover .thumb img { transform: none; }
.news-card .thumb .cat-badge { position: absolute; left: 10px; bottom: 10px; }
.news-card .body { padding: 10px 12px 12px; }
.news-card h5 { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.meta-row .meta { flex: 1; min-width: 0; }
.voice-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(200,16,46,.28); background: rgba(200,16,46,.05); color: var(--p); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; transition: all .2s ease; padding: 0; box-shadow: 0 6px 16px rgba(200,16,46,.08); }
.voice-btn:hover { background: var(--p); color: #fff; transform: translateY(-1px); }
.voice-btn.is-speaking { background: var(--p); color: #fff; box-shadow: 0 0 0 4px rgba(200,16,46,.12); animation: voicePulse 1.2s ease-in-out infinite; }
.voice-btn.card-voice { width: 26px; height: 26px; font-size: 12px; }
.voice-btn.article-voice { width: 38px; height: 38px; font-size: 17px; }
@keyframes voicePulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200,16,46,.18); } 50% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(200,16,46,.08); } }
.list-card { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-card .thumb { position: relative; flex: 0 0 170px; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; }
.list-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: none; }
.list-card h5 { font-size: 17px; font-weight: 700; margin: 4px 0; line-height: 1.35; }
.list-card p { font-size: 13px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 575.98px) { .list-card .thumb { flex-basis: 120px; } .list-card h5 { font-size: 14px; } .list-card .cat-badge { font-size: 10px; } }
.mini-card { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini-card:last-child { border-bottom: 0; }
.mini-card .thumb { flex: 0 0 80px; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; }
.mini-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: none; }
.mini-card h6 { font-size: 14px; font-weight: 600; margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sec-title { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--p); margin-bottom: 14px; }
.sec-title h3 { font-size: 17px; font-weight: 800; margin: 0; background: var(--p); color: #fff; padding: 6px 14px; border-radius: 4px 4px 0 0; text-transform: uppercase; letter-spacing: .02em; }
.sec-title a { font-size: 13px; color: var(--muted); }
.cat-sec .sec-title { border-color: var(--c); }
.cat-sec .sec-title h3 { background: var(--c); }
.video-sec .sec-title h3 { background: #111; }
.video-sec .sec-title { border-color: #111; }

/* Sidebar */
.widget { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 18px; }
.sidebar-auto-fit .auto-fit-list { overflow: hidden; }
.sidebar-auto-fit .auto-fit-list .trend-item,
.sidebar-auto-fit .auto-fit-list .mini-card { transition: opacity .18s ease, transform .18s ease; }
.trend-list { list-style: none; padding: 0; margin: 0; }
.trend-list li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.trend-list li:last-child { border: 0; }
.trend-list .num { font-size: 28px; font-weight: 800; color: var(--p); opacity: .5; line-height: 1; width: 28px; }
.trend-list a { font-weight: 600; font-size: 14px; line-height: 1.35; display: block; }
.video-widget .video-list { display: grid; gap: 10px; }
.video-widget .video-item { display: flex; gap: 10px; align-items: flex-start; padding: 0; }
.video-widget .video-item .thumb { position: relative; display: block; flex: 0 0 110px; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; }
.video-widget .video-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-widget .video-item .play { width: 34px; height: 34px; font-size: 20px; }
.video-widget .video-item h6 { margin: 0; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag-cloud a { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; font-size: 12px; margin: 0 4px 6px 0; }
.tag-cloud a:hover { background: var(--p); color: #fff; border-color: var(--p); }
.sticky-widget { position: sticky; top: 10px; }

/* Single */
.page-head { border-left: 5px solid var(--c, var(--p)); padding-left: 14px; margin-bottom: 18px; }
.page-head h1 { font-size: 26px; font-weight: 800; margin: 0; }
.single .crumbs { color: var(--muted); margin-bottom: 8px; }
.single .title { font-size: 30px; font-weight: 800; line-height: 1.25; margin: 10px 0; }
.single .lead { font-size: 17px; color: var(--muted); font-weight: 400; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 13px; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline-main { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.byline .author { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.byline .author img, .byline .author i { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-right: 2px; }
.byline .author .text-muted { color: var(--muted); font-weight: 500; }
.byline .posted-on, .byline .meta-pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--muted); }
.share { display: flex; gap: 8px; margin: 12px 0; }
.share a, .share button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 0; font-size: 17px; }
.share .wa { background: #25d366; } .share .fb { background: #1877f2; } .share .tw { background: #000; } .share .tg { background: #229ed9; } .share .cp { background: #6b7280; } .share .fs { background: var(--card); color: var(--text); border: 1px solid var(--line); } .share .voice-btn { width: 38px; height: 38px; font-size: 17px; background: var(--p); color: #fff; border: 1px solid rgba(200,16,46,.2); border-radius: 50%; box-shadow: 0 6px 16px rgba(200,16,46,.15); }
.media-box { margin: 14px 0; border-radius: 10px; overflow: hidden; }
.media-box img { width: 100%; }
.media-box figcaption { font-size: 12px; color: var(--muted); padding: 6px 0; text-align: center; }
.single .content { font-size: 17px; line-height: 1.85; }
.single .content.lg { font-size: 20px; }
.single .content img { max-width: 100%; height: auto; border-radius: 8px; margin: 14px auto; display: block; }
.single .content p { margin-bottom: 1.1em; }
.single .content iframe { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 14px 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.author-box { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-top: 20px; align-items: flex-start; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
@media (max-width: 575.98px) { .single .title { font-size: 22px; } .single .content { font-size: 16px; } .page-head h1 { font-size: 21px; } }

/* Ads */
.ad-slot { text-align: center; margin: 12px 0; overflow: hidden; }
.ad-slot:empty { display: none; }
.ad-header { margin: 0; }
.mobile-sticky-ad { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; background: var(--card); text-align: center; }
.mobile-sticky-ad:empty, .mobile-sticky-ad .ad-slot:empty { display: none; }
.mobile-sticky-ad .ad-slot { margin: 0; }
.app-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1031; background: var(--s); color: #fff; display: flex; gap: 10px; align-items: center; padding: 8px 12px; }
.app-banner img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #fff; }

/* Footer */
.site-footer { background: var(--s); color: #bbb; padding: 40px 0 0; margin-top: 30px; font-size: 14px; }
.site-footer h6 { color: #fff; font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .05em; margin-bottom: 12px; }
.site-footer a { color: #bbb; }
.site-footer a:hover { color: #fff; }
.site-footer ul li { padding: 3px 0; }
.footer-logo { height: 44px; background: #fff; padding: 4px 8px; border-radius: 6px; }
.site-footer .social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 16px; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.1); padding: 14px 0; margin-top: 24px; font-size: 12px; }
.pagination .page-link { color: var(--text); background: var(--card); border-color: var(--line); }
.pagination .active .page-link { background: var(--p); border-color: var(--p); color: #fff; }

/* App mode (WebView / PWA) */
body.app-mode { padding-bottom: 64px; }
.app-header { position: sticky; top: 0; z-index: 1030; background: var(--p); color: #fff; display: flex; align-items: center; gap: 10px; padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); }
.app-header .brand img { height: 34px; background: #fff; border-radius: 6px; padding: 2px 6px; }
.app-header .brand b { font-size: 18px; color: #fff; }
.app-search { margin-left: auto; display: flex; }
.app-search input { border: 0; border-radius: 20px 0 0 20px; padding: 5px 12px; font-size: 13px; width: 120px; }
.app-search button { border: 0; background: rgba(0,0,0,.25); color: #fff; padding: 0 10px; border-radius: 0 20px 20px 0; }
.app-cats { display: flex; overflow-x: auto; gap: 6px; padding: 8px 12px; background: var(--card); border-bottom: 1px solid var(--line); scrollbar-width: none; position: sticky; top: 50px; z-index: 1029; }
.app-cats::-webkit-scrollbar { display: none; }
.app-cats a { white-space: nowrap; padding: 5px 12px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.app-cats a.active { background: var(--p); color: #fff; border-color: var(--p); }
.app-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; background: var(--card); border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.app-nav a { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--muted); gap: 2px; }
.app-nav a i { font-size: 20px; }
.app-nav a.active { color: var(--p); }
.app-mode .mobile-sticky-ad.app { bottom: 58px; }
.app-mode .single .title { font-size: 21px; }
.app-mode .ticker { display: none; }
@media (min-width: 992px) {
  .sidebar-col { display: flex; flex-direction: column; gap: 18px; }
  .widget { margin-bottom: 0; }
  .widget .mini-card:last-child { border-bottom: 0; }
}
@media (max-width: 991.98px) { .sidebar-col { margin-top: 10px; } .sticky-widget { position: static; } }

/* Top category strip + bottom dock (normal mode) */
.cat-strip { display: flex; overflow-x: auto; gap: 8px; padding: 9px 12px; background: var(--card); border-bottom: 1px solid var(--line); scrollbar-width: none; position: sticky; top: 0; z-index: 1020; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip a { white-space: nowrap; padding: 6px 14px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text); }
.cat-strip a.active { background: var(--p); color: #fff; border-color: var(--p); }
body.has-dock { padding-bottom: 88px; }
.dock { position: fixed; left: 50%; right: auto; transform: translateX(-50%); bottom: 12px; width: min(94vw, 480px); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 8px 28px rgba(0,0,0,.18); padding: 8px 6px; z-index: 1032; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); }
.dock a { flex: 1; padding: 2px 0; border-radius: 14px; transition: .15s; }
.dock a.active { color: var(--p); }
.dock a.active i { transform: translateY(-2px); }
.dock a:hover { color: var(--p); }
.has-dock .mobile-sticky-ad { bottom: 82px; }
.has-dock .app-banner { bottom: 82px; }
@media (min-width: 992px) {
  body.has-dock { padding-bottom: 0; }
  .dock { display: none !important; width: 460px; }
}
@media (max-width: 991.98px) {
  .dock { display: flex !important; }
}

/* Trending with thumbnails */
.trend-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.trend-item:last-child { border: 0; padding-bottom: 0; }
.trend-item .thumb { position: relative; flex: 0 0 96px; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; display: block; }
.trend-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.trend-item .num { position: absolute; left: 0; top: 0; background: var(--p); color: #fff; font-weight: 800; font-size: 13px; min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 0 0 8px 0; }
.trend-item h6 { font-size: 14px; font-weight: 700; line-height: 1.35; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trend-item .meta { font-size: 12px; color: var(--muted); }

/* Login / Sign Up buttons */
.auth-btns{display:flex;gap:6px;margin-left:auto;align-items:center}
.auth-btns .btn{font-weight:700;border-radius:20px;padding:5px 14px;white-space:nowrap}
.auth-btns .btn-login{border:1.5px solid var(--p);color:var(--p);background:#fff}
.auth-btns .btn-login:hover{background:var(--p);color:#fff}
.auth-btns .btn-signup{background:var(--p);color:#fff;border:1.5px solid var(--p)}
.auth-btns .btn-signup:hover{filter:brightness(.9);color:#fff}
@media(max-width:575px){.auth-btns .btn{padding:5px 9px;font-size:13px}.auth-btns .btn span{display:none}.auth-btns .btn i{font-size:16px}}
/* Popup ad */
#popAd {
  z-index: 100050 !important;
}
.modal-backdrop,
.modal-backdrop.show {
  z-index: 100040 !important;
}
.pop-dialog {
  max-width: min(92vw, 360px);
  margin: 105px auto 2rem auto !important;
}
.pop-content {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
}
.pop-card {
  position: relative;
  display: inline-block;
  max-width: 100%;
  border-radius: 16px;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.65);
}
.pop-media {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
}
.pop-media img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 60vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 10px;
  image-rendering: -webkit-optimize-contrast;
}
.pop-x {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
  line-height: 1;
  padding: 0;
}
.pop-x:hover {
  background: var(--p, #c8102e);
  color: #ffffff;
  transform: scale(1.1);
}
.pop-close {
  margin-top: 14px;
  border: 0;
  border-radius: 30px;
  background: #ffffff;
  color: #111827;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 22px;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
}
.pop-close:hover {
  background: var(--p, #c8102e);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0,0,0,.5);
}
#popAd.modal:not(.show) .modal-dialog {
  transform: scale(0.92);
  opacity: 0;
}
#popAd.modal.show .modal-dialog {
  transform: scale(1);
  opacity: 1;
  transition: transform .25s ease-out, opacity .25s ease-out;
}
@media(max-width:575px) {
  .pop-dialog {
    max-width: calc(100vw - 36px);
    margin: 85px auto 2rem auto !important;
  }
  .pop-x {
    top: -10px;
    right: -10px;
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .pop-close {
    font-size: 13px;
    padding: 8px 18px;
    margin-top: 10px;
  }
}

/* Marquees */
.mq-run{flex:none;display:inline-flex;white-space:nowrap;width:max-content;animation:mqmove var(--mq-s,30s) linear infinite;will-change:transform}
.mq-run>span{display:inline-flex;align-items:center;flex-shrink:0}
@keyframes mqmove{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.mq-track{flex:1;overflow:hidden;position:relative;-webkit-mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 20px),transparent)}
.mq-track:hover .mq-run{animation-play-state:paused}
.mq-notice{background:linear-gradient(90deg,#111,#2b2b2b 50%,#111);color:#ffd54a;font-weight:600;font-size:14px}
.mq-notice .mq-ico{background:var(--p);color:#fff;padding:7px 12px;margin-right:10px;display:flex;align-items:center;animation:mqpulse 1.6s ease-in-out infinite}
.mq-notice .mq-run>span{padding-right:90px}
@keyframes mqpulse{50%{filter:brightness(1.35)}}
.ticker{box-shadow:0 2px 8px rgba(0,0,0,.06)}
.ticker .label{background:linear-gradient(135deg,var(--p),#7a0a1d);text-transform:uppercase;letter-spacing:.04em;position:relative;z-index:2;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 50%,calc(100% - 10px) 100%,0 100%);padding-right:22px}
.ticker .track{overflow:hidden;display:flex;align-items:center;flex:1;min-width:0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 20px,#000 calc(100% - 20px),transparent);mask-image:linear-gradient(90deg,transparent,#000 20px,#000 calc(100% - 20px),transparent)}
.ticker .mq-run a{color:inherit;text-decoration:none;transition:color .15s;white-space:nowrap;display:inline-flex;align-items:center;padding:0 18px;position:relative}
.ticker .mq-run a::after{content:"•";margin-left:18px;color:rgba(17,17,17,.55)}
.ticker .mq-run a:last-child::after{display:none}
.ticker .mq-run a:hover{color:var(--p)}
@media (max-width: 575.98px) {
  .ticker .label { font-size: 11px; padding: 7px 10px; }
  .ticker .mq-run a { font-size: 12px; padding: 0 12px; }
}

/* Notifications */
.notif-btn{position:relative;width:36px;height:36px;border-radius:50%;border:1.5px solid var(--line);background:#fff;color:var(--p);padding:0;display:grid;place-items:center}
.notif-btn:hover{background:var(--p);color:#fff}
.notif-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;border-radius:9px;background:#e11d48;color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;padding:0 4px;animation:mqpulse 1.4s infinite}
.notif-menu{width:min(360px,92vw);border-radius:14px;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,.2);border:0}
.notif-head{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:linear-gradient(135deg,var(--p),#111 160%);color:#fff}
.notif-head .btn{color:#ffd54a;font-weight:600;text-decoration:none}
.notif-list{max-height:60vh;overflow:auto}
.notif-item{display:flex;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}
.notif-item:hover{background:rgba(0,0,0,.04)}
.notif-item.new{background:rgba(200,16,46,.07)}
.notif-item img{width:56px;height:44px;object-fit:cover;border-radius:6px;flex-shrink:0}
.notif-item .t{font-size:13.5px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.notif-item small{color:#6b7280}
@media(max-width:575px){.auth-btns{gap:4px}.notif-menu{position:fixed!important;top:56px!important;left:4vw!important;right:4vw!important;transform:none!important;width:92vw}}

.epaper-page { padding-top: 8px; }
.epaper-reader {
  background: #eaedf2;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  overflow: hidden;
}
.epaper-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #1e293b; color: #fff; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.epaper-back, .epaper-toggle, .epaper-open, .epaper-action-btn, .epaper-ctrl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
  background: rgba(255,255,255,.1); color: #fff; text-decoration: none; transition: background .15s ease, border-color .15s ease;
}
.epaper-back:hover, .epaper-toggle:hover, .epaper-open:hover, .epaper-action-btn:hover, .epaper-ctrl-btn:hover, .epaper-action-btn.active {
  background: rgba(255,255,255,.25); color: #fff; border-color: rgba(255,255,255,.45);
}
.epaper-action-btn { padding: 6px 10px; min-width: 34px; font-size: 12px; }
.epaper-meta { flex: 1; min-width: 0; }
.epaper-slide-shell {
  position: relative;
  background: #eaedf2; /* Clean PDF document canvas - NO black area! */
  min-height: 600px;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: auto;
  display: block;
  padding: 20px 12px;
  scroll-behavior: smooth;
}
.epaper-slides-viewport {
  position: relative;
  width: 100%;
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.epaper-slide {
  display: none;
  width: 100%;
  text-align: center;
}
.epaper-slide.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  animation: epaperPageFade .2s ease-out;
}
@keyframes epaperPageFade {
  0% { opacity: 0; transform: scale(.99); }
  100% { opacity: 1; transform: scale(1); }
}
.epaper-slide img {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 3px;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
}
/* Fit Page mode */
.epaper-slide-shell.is-fit-page {
  display: flex;
  align-items: center;
  justify-content: center;
}
.epaper-slide-shell.is-fit-page .epaper-slides-viewport {
  height: 100%;
  align-items: center;
}
.epaper-slide-shell.is-fit-page .epaper-slide.active {
  align-items: center;
}
.epaper-slide-shell.is-fit-page .epaper-slide img {
  max-height: calc(85vh - 50px);
  height: calc(85vh - 50px);
  width: auto;
  max-width: 100%;
}

/* Fit Width mode (Default) */
.epaper-slide-shell.is-fit-width .epaper-slide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
}

.epaper-bottom-bar {
  display: none !important;
}
.is-fullscreen.epaper-reader {
  position: fixed; inset: 0; z-index: 9999; border-radius: 0; max-height: 100vh; height: 100vh; width: 100vw; margin: 0 !important;
  background: #eaedf2;
}
.is-fullscreen .epaper-slide-shell {
  max-height: calc(100vh - 130px); min-height: calc(100vh - 130px); height: calc(100vh - 130px); padding: 16px 8px;
  background: #eaedf2 !important;
}
.is-fullscreen .epaper-slide img {
  max-width: 1050px;
}
.epaper-fullscreen .app-nav,
.epaper-fullscreen .mobile-sticky-ad {
  display: none !important;
}
.epaper-preview-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.epaper-preview-grid img {
  display: block; width: 100%; height: 88px; object-fit: cover; border-radius: 8px;
}
@media (max-width: 767.98px) {
  .epaper-reader {
    border-radius: 0;
    margin-left: calc(-1 * var(--bs-gutter-x, .75rem));
    margin-right: calc(-1 * var(--bs-gutter-x, .75rem));
    border-left: 0;
    border-right: 0;
    background: #eaedf2;
  }
  .epaper-toolbar {
    padding: 8px 10px;
    position: relative;
    border-radius: 0;
  }
  .epaper-slide-shell {
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
    padding: 0 !important;
    background: #eaedf2 !important;
    display: block !important;
    overflow: visible !important;
  }
  .epaper-slides-viewport {
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
    display: block !important;
  }
  .epaper-slide {
    display: none;
    width: 100% !important;
    height: auto !important;
  }
  .epaper-slide.active {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    animation: none;
  }
  .epaper-slide img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    object-fit: contain !important;
    margin: 0 !important;
  }
  .epaper-bottom-bar {
    padding: 10px 8px;
    border-radius: 0;
    background: #ffffff;
  }
  .epaper-thumb-btn img {
    width: 46px;
    height: 60px;
  }
  .is-fullscreen .epaper-slide-shell {
    overflow-y: auto !important;
    height: calc(100vh - 110px) !important;
    max-height: calc(100vh - 110px) !important;
    padding: 0 !important;
    background: #eaedf2 !important;
  }
}
