/* Jashpur Sandesh — Desktop redesign theme */
:root {
  --js-blue: #1d4ed8;
  --js-blue-dark: #1e3a8a;
  --js-red: #e11d27;
  --js-red-dark: #be123c;
  --js-text: #0f172a;
  --js-muted: #64748b;
  --js-line: #e8ecf1;
  --js-bg: #f5f7fa;
  --js-navy: #0a1629;
  --js-nav: #0a1629;
}

@media (min-width: 992px) {
  body {
    background: var(--js-bg) !important;
    font-family: "Noto Sans Devanagari", "Hind", system-ui, sans-serif !important;
  }

  /* Hide legacy desktop chrome */
  .js-legacy-header .top-bar,
  .js-legacy-header .logo-banner,
  .js-legacy-header .main-menu,
  .js-legacy-header .featured,
  .js-legacy-header .scrollmenu,
  .desktop-home,
  .legacy-post-fallback,
  #footer.legacy-footer {
    display: none !important;
  }

  .js-site-header { display: block; }
  .js-home { display: block; }
  .js-post { display: block; }
  .js-footer { display: block; }

  .js-container {
    max-width: 1480px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* ===== Top bar ===== */
  .js-topbar {
    background: var(--js-navy);
    color: #e2e8f0;
    font-size: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .js-topbar .js-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .js-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
  }
  .js-breaking-pill {
    background: var(--js-red);
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .02em;
    padding: 5px 11px;
    border-radius: 4px;
    flex-shrink: 0;
  }
  .js-topbar-ticker {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .js-topbar-ticker a,
  .js-topbar-ticker span {
    color: #f1f5f9 !important;
    text-decoration: none !important;
    font-weight: 600;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .js-topbar-ticker a:hover {
    color: #fff !important;
  }
  .js-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    color: #cbd5e1;
  }
  .js-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }
  .js-meta-item svg { opacity: .9; flex-shrink: 0; }
  .js-live-clock time {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    letter-spacing: 0.02em;
    min-width: 6.5ch;
  }

  /* Topbar weather — light color accent */
  #jsTopWeather.js-meta-item {
    gap: 7px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(251, 191, 36, 0.16));
    border: 1px solid rgba(125, 211, 252, 0.28);
    color: #e0f2fe;
    font-weight: 600;
  }
  #jsTopWeather svg {
    opacity: 1;
    color: #38bdf8;
    stroke: #38bdf8;
  }
  #jsTopWeather .js-top-weather-text {
    background: linear-gradient(90deg, #7dd3fc 0%, #fde68a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .js-epaper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    font-weight: 700;
  }
  .js-epaper:hover { color: #fff !important; }
  .js-theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #e2e8f0;
    cursor: pointer;
    padding: 0;
  }
  .js-theme-icon { font-size: 13px; line-height: 1; }
  .js-theme-switch {
    width: 34px;
    height: 18px;
    border-radius: 999px;
    background: #475569;
    position: relative;
    display: inline-block;
  }
  .js-theme-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: left .18s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,.25);
  }
  .js-theme-switch.on { background: var(--js-red); }
  .js-theme-switch.on::after { left: 18px; }

  /* ===== Main header ===== */
  .js-main-header {
    background: #fff;
    border-bottom: 1px solid var(--js-line);
    padding: 18px 0;
  }
  .js-main-header-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .js-logo {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
  }
  .js-logo-main {
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
  }
  .js-logo-red { color: var(--js-red); }
  .js-logo-dark { color: #0f172a; }
  .js-logo-tag { display: none; }
  .js-header-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
  }
  .js-search {
    display: flex !important;
    align-items: center;
    flex: 1 1 auto;
    width: auto;
    max-width: 520px;
    min-width: 220px;
    margin: 0 !important;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #f1f5f9;
    padding: 0 6px 0 16px;
  }
  .js-search-ico { color: #94a3b8; display: inline-flex; }
  .js-search input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 13px 12px;
    font-size: 14px;
    outline: none;
    color: var(--js-text);
    min-width: 0;
  }
  .js-search input::placeholder { color: #94a3b8; }
  .js-search-mic,
  .js-search button {
    border: 0;
    background: transparent;
    color: #64748b;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .js-search-mic:hover { color: var(--js-red); }
  .js-btn-desk {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: var(--js-red) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 18px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(225, 29, 39, 0.25);
  }
  .js-btn-desk:hover { filter: brightness(1.05); color: #fff !important; }
  .js-btn-login { display: none !important; }

  /* ===== Nav ===== */
  .js-main-nav {
    background: var(--js-navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,.14);
  }
  .js-nav-inner {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .js-nav-inner::-webkit-scrollbar { display: none; }
  .js-nav-item { position: relative; display: flex; }
  .js-nav-link,
  .js-nav-home {
    color: #e2e8f0 !important;
    text-decoration: none !important;
    padding: 14px 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }
  .js-nav-link:hover,
  .js-nav-item:hover > .js-nav-link {
    color: #fff !important;
  }
  .js-nav-home.active,
  .js-nav-home:hover {
    background: var(--js-red);
    color: #fff !important;
    border-radius: 8px;
    margin: 8px 4px;
    padding: 8px 14px !important;
  }
  .js-nav-ico { display: inline-flex; opacity: .92; }
  .js-caret { display: none; }
  .js-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    background: #fff;
    border: 1px solid var(--js-line);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
    padding: 8px;
    z-index: 1200;
  }
  .js-nav-item.has-drop:hover .js-dropdown { display: block; }
  .js-dropdown a {
    display: block;
    padding: 8px 10px;
    color: var(--js-text) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
  }
  .js-dropdown a:hover {
    background: #f1f5f9;
    color: var(--js-red) !important;
  }
  .js-nav-more { margin-left: auto; }
  .js-nav-more .js-dropdown { left: auto; right: 0; }

  /* Home */
  .js-home { padding: 20px 0 40px; }
  .js-hero-trio {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr 0.85fr;
    gap: 16px;
    margin-bottom: 16px;
    align-items: stretch;
  }
  .js-hero-primary { min-width: 0; }
  .js-hero-slider {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 420px;
    background: #0f172a;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  }
  .js-hero-track {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .js-hero-main,
  .js-hero-slide {
    display: block;
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
    text-decoration: none !important;
  }
  .js-hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
  }
  .js-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 6s ease;
  }
  .js-hero-slide.is-active img { transform: scale(1); }
  .js-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.86) 100%);
  }
  .js-badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--js-red); color: #fff;
    font-size: 11px; font-weight: 800;
    padding: 5px 11px; border-radius: 6px; z-index: 2;
  }
  .js-hero-text {
    position: absolute; left: 20px; right: 20px; bottom: 28px; z-index: 2; color: #fff;
  }
  .js-hero-text h1 {
    margin: 0 0 8px; font-size: 24px; font-weight: 800; line-height: 1.35; color: #fff !important;
  }
  .js-hero-text p { margin: 0 0 10px; opacity: .9; font-size: 13px; line-height: 1.5; }
  .js-hero-meta {
    display: flex; gap: 14px; font-size: 12px; opacity: .9; align-items: center;
  }
  .js-hero-meta span { display: inline-flex; align-items: center; gap: 5px; }

  .js-hero-controls {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: flex;
    gap: 8px;
  }
  .js-hero-nav {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .js-hero-nav:hover { background: var(--js-red); }
  .js-hero-prev, .js-hero-next { position: static; transform: none; }

  .js-hero-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    z-index: 5;
    display: flex;
    gap: 7px;
  }
  .js-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
  }
  .js-hero-dot.is-active {
    width: 22px;
    background: #fff;
  }

  .js-hero-mid {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--js-line);
    border-radius: 14px;
    overflow: hidden;
    min-height: 420px;
  }
  .js-mid-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    padding: 14px;
    text-decoration: none !important;
    color: inherit;
    border-bottom: 1px solid var(--js-line);
    flex: 1;
    align-items: start;
    transition: background .15s ease;
  }
  .js-mid-card:last-child { border-bottom: 0; }
  .js-mid-card:hover { background: #f8fafc; }
  .js-mid-thumb {
    width: 92px;
    height: 78px;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
  }
  .js-mid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .js-mid-cat {
    display: inline-block;
    color: #fff !important;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
  }
  .js-mid-body h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--js-text);
  }
  .js-mid-card:hover h3 { color: var(--js-red); }
  .js-mid-time { font-size: 12px; color: var(--js-muted); }

  .js-trending {
    background: #fff;
    border: 1px solid var(--js-line);
    border-radius: 14px;
    padding: 16px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
  }
  .js-trending-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
  }
  .js-trending-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--js-text);
  }
  .js-trending-head a {
    font-size: 12px;
    font-weight: 700;
    color: var(--js-red) !important;
    text-decoration: none !important;
    border: 1px solid #fecaca;
    padding: 5px 10px;
    border-radius: 999px;
  }
  .js-trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
  }
  .js-trending-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--js-line);
  }
  .js-trending-list li:last-child { border-bottom: 0; }
  .js-trend-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--js-red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .js-trending-list a {
    color: var(--js-text) !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.45;
  }
  .js-trending-list a:hover { color: var(--js-red) !important; }

  .js-top-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--js-line);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 18px;
    overflow: hidden;
  }
  .js-top-search-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--js-red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .js-top-search-tags {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .js-top-search-tags::-webkit-scrollbar { display: none; }
  .js-top-search-tags a {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
  }
  .js-top-search-tags a:hover {
    background: #fee2e2;
    color: var(--js-red) !important;
  }

  .js-breaking-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--js-red);
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    overflow: hidden;
  }
  .js-breaking-bar strong {
    background: rgba(0, 0, 0, 0.25);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
  }
  .js-breaking-track {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  }
  .js-breaking-scroll {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    width: max-content;
    animation: js-breaking-marquee 160s linear infinite;
  }
  .js-breaking-scroll:hover {
    animation-play-state: paused;
  }
  .js-breaking-scroll a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    padding: 0 4px;
  }
  .js-breaking-scroll a:hover {
    text-decoration: underline !important;
  }
  .js-breaking-sep {
    display: inline-block;
    padding: 0 18px;
    opacity: 0.55;
    font-size: 12px;
  }
  @keyframes js-breaking-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  .js-section { margin-bottom: 28px; }
  .js-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 2px solid var(--js-blue);
  }
  .js-section-head h2 {
    margin: 0; font-size: 20px; font-weight: 800; color: var(--js-text);
  }
  .js-section-head a {
    color: var(--js-blue) !important; font-weight: 700; font-size: 13px; text-decoration: none !important;
  }

  .js-card-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    width: 100%;
  }
  .js-card-grid::before,
  .js-card-grid::after {
    display: none !important;
    content: none !important;
  }
  .js-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--js-line);
    overflow: hidden;
    margin: 0;
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
  }
  .js-news-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
  }
  .js-card-img {
    position: relative;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
  }
  .js-card-img-sm { height: 140px; }
  .js-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .js-cat-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    display: inline-block;
    margin: 0;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
  }
  .js-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 14px 14px;
    min-height: 0;
  }
  .js-news-card h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--js-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .js-news-card p { display: none; }
  .js-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 0;
    font-size: 12px;
    color: var(--js-muted);
  }

  .js-video-card { display: block; text-decoration: none !important; margin-bottom: 16px; }
  .js-video-thumb {
    position: relative; border-radius: 10px; overflow: hidden;
    height: 120px; background: #111;
  }
  .js-video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
  .js-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 28px;
  }
  .js-video-card h4 {
    margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--js-text); line-height: 1.35;
  }

  .js-list-feed {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .js-list-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
  }
  .js-section-full {
    width: 100%;
    margin-top: 8px;
  }
  .js-list-item {
    display: flex;
    gap: 18px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--js-line);
    border-radius: 14px;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    min-width: 0;
    width: 100%;
  }
  .js-list-item:last-child { border-bottom: 1px solid var(--js-line); }
  .js-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
  }
  .js-list-thumb {
    position: relative;
    width: 140px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e5e7eb;
  }
  .js-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
  }
  .js-list-item:hover .js-list-thumb img {
    transform: scale(1.06);
  }
  .js-list-num {
    position: absolute;
    left: 8px;
    top: 8px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .js-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2px 4px 2px 0;
  }
  .js-list-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--js-blue);
  }
  .js-list-item h4 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--js-text);
    letter-spacing: -0.01em;
  }
  .js-list-item:hover h4 {
    color: var(--js-red);
  }
  .js-list-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--js-muted);
    font-weight: 600;
  }
  .js-list-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  .js-list-meta svg {
    opacity: 0.75;
    flex-shrink: 0;
  }
  .js-list-more {
    margin-left: auto;
    color: var(--js-blue) !important;
    font-weight: 800;
    font-size: 12px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .18s ease, transform .18s ease;
  }
  .js-list-item:hover .js-list-more {
    opacity: 1;
    transform: translateX(0);
  }

  /* Sidebar */
  .js-sidebar { position: sticky; top: 56px; }
  .js-widget {
    background: #fff; border-radius: 10px;
    border: 1px solid var(--js-line);
    padding: 14px; margin-bottom: 16px;
  }
  .js-widget-head h4 { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: var(--js-text); }

  /* Live widget — larger, pro */
  .js-widget-live {
    background:
      radial-gradient(circle at 90% 20%, rgba(225, 29, 72, 0.35), transparent 42%),
      radial-gradient(circle at 10% 90%, rgba(29, 78, 216, 0.25), transparent 40%),
      linear-gradient(145deg, #1e293b 0%, #0f172a 55%, #111827 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 22px 20px 24px;
    min-height: 180px;
    border: 0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
  }
  .js-live-glow {
    position: absolute;
    inset: -40% -20% auto auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.35), transparent 70%);
    pointer-events: none;
  }
  .js-live-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--js-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 5px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4);
  }
  .js-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: js-live-pulse 1.4s ease-out infinite;
  }
  @keyframes js-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  }
  .js-live-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
  }
  .js-live-body {
    padding-top: 0;
    flex: 1;
    min-width: 0;
  }
  .js-live-body h4 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }
  .js-live-body p {
    font-size: 13px;
    opacity: 0.88;
    margin: 0 0 16px;
    line-height: 1.5;
  }
  .js-btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #f43f5e, var(--js-red));
    color: #fff !important;
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .js-btn-watch:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(225, 29, 72, 0.42);
    color: #fff !important;
  }
  .js-btn-watch-ico {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    align-items: center;
    justify-content: center;
    font-size: 10px;
  }
  .js-live-visual {
    position: relative;
    width: 78px;
    height: 78px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .js-live-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.04);
  }
  .js-live-ring::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px dashed rgba(248, 113, 113, 0.55);
    animation: js-live-spin 12s linear infinite;
  }
  @keyframes js-live-spin {
    to { transform: rotate(360deg); }
  }
  .js-live-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(225, 29, 72, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.45);
    z-index: 1;
  }

  /* Weather widget — larger, pro */
  .js-widget-weather {
    padding: 20px;
    min-height: 160px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  }
  .js-weather-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }
  .js-weather-loc {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--js-muted);
    margin-bottom: 6px;
  }
  .js-weather-loc strong {
    color: var(--js-text);
    font-size: 15px;
    font-weight: 800;
  }
  .js-weather-live {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #dc2626;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
    animation: js-weather-pulse 1.8s ease-in-out infinite;
  }
  @keyframes js-weather-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
  }
  .js-weather-updated {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    text-align: right;
  }
  .js-temp {
    font-size: 42px;
    font-weight: 900;
    color: var(--js-blue);
    line-height: 1;
    letter-spacing: -0.03em;
  }
  .js-temp span {
    font-size: 22px;
    font-weight: 700;
    margin-left: 2px;
  }
  .js-weather-cond {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
  }
  .js-weather-feel {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
  }
  .js-weather-feel em {
    font-style: normal;
    font-weight: 800;
    color: #334155;
  }
  .js-weather-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(145deg, #eff6ff, #f0f9ff);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .js-weather-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid var(--js-line);
  }
  .js-weather-stat {
    text-align: center;
    padding: 10px 6px;
    border-radius: 10px;
    background: #f8fafc;
  }
  .js-ws-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
  }
  .js-ws-val {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--js-text);
    line-height: 1.2;
  }
  .js-weather-sun {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff7ed;
    font-size: 12px;
    color: #9a3412;
  }
  .js-weather-sun small {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #c2410c;
    opacity: 0.85;
    margin-bottom: 2px;
  }
  .js-weather-sun strong {
    font-weight: 800;
    color: #9a3412;
  }
  .js-popular-list { list-style: none; padding: 0; margin: 0; }
  .js-popular-list li {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 8px 0; border-bottom: 1px solid var(--js-line);
  }
  .js-popular-list li:last-child { border-bottom: 0; }
  .js-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--js-blue); color: #fff;
    font-size: 12px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .js-popular-list a {
    color: var(--js-text) !important; font-size: 13px; font-weight: 600;
    line-height: 1.4; text-decoration: none !important;
  }
  .js-widget-more {
    display: inline-block; margin-top: 8px;
    color: var(--js-blue) !important; font-weight: 700; font-size: 13px; text-decoration: none !important;
  }
  .js-social-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; border-radius: 8px; margin-bottom: 8px;
    color: #fff !important; text-decoration: none !important; font-weight: 600;
  }
  .js-social-row em { font-style: normal; font-size: 12px; opacity: .9; }
  .js-social-row.fb { background: #1877f2; }
  .js-social-row.yt { background: #ff0000; }
  .js-social-row.ig { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); }
  .js-social-row.tw { background: #1da1f2; }
  .js-newsletter-form { display: flex; flex-direction: column; gap: 8px; }
  .js-newsletter-form input {
    border: 1px solid var(--js-line); border-radius: 8px; padding: 10px 12px;
  }
  .js-newsletter-form button {
    background: var(--js-red); color: #fff; border: 0;
    border-radius: 8px; padding: 10px; font-weight: 700; cursor: pointer;
  }

  /* Hide legacy scrollup on desktop — footer has its own */
  a.scrollup {
    display: none !important;
  }
}

/* ===== Footer (desktop + mobile) ===== */
.js-footer {
  background: #fff;
  color: #1f2937;
  padding: 0 0 0;
  margin-top: 32px;
  border-top: 0;
  position: relative;
  display: none;
}

.js-footer-topline {
  height: 4px;
  background: linear-gradient(90deg, var(--js-red) 0%, #ff4b5c 50%, var(--js-red) 100%);
}

.js-footer-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1.2fr) !important;
  gap: 28px 24px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 44px 0 36px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Kill Bootstrap .row clearfix ghosts if class ever reappears */
.js-footer-grid::before,
.js-footer-grid::after {
  display: none !important;
  content: none !important;
}

.js-footer-col {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
}

.js-footer-brand {
  grid-column: span 1;
}

.js-footer-aside {
  min-width: 0;
}

.js-footer-aside .js-footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.js-footer-aside .js-fn-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.js-footer-aside .js-fn-form input[type="email"],
.js-footer-aside .js-fn-form button {
  width: 100%;
}

@media (max-width: 1199px) and (min-width: 992px) {
  .js-footer-grid {
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.8fr)) minmax(0, 1.15fr) !important;
    gap: 22px 16px !important;
  }

  .js-footer-brand {
    grid-column: auto !important;
  }
}

@media (min-width: 992px) {
  .js-footer .js-container {
    max-width: 1480px;
  }

  .js-footer-about {
    max-width: none !important;
  }
}

  .js-footer-logo {
    display: inline-block;
    font-size: 30px;
    font-weight: 900;
    color: #1a1d2e !important;
    text-decoration: none !important;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    line-height: 1.15;
  }

  .js-footer-logo span {
    color: var(--js-red);
  }

  .js-footer-tag {
    color: #4b5563;
    font-size: 13px !important;
    font-weight: 600;
    margin: 0 0 14px !important;
  }

  .js-footer-divider {
    width: 42px;
    height: 3px;
    background: var(--js-red);
    border-radius: 2px;
    margin-bottom: 16px;
  }

  .js-footer-about {
    font-size: 13px;
    line-height: 1.75;
    color: #374151;
    margin: 0 0 18px;
    max-width: none;
    font-weight: 500;
  }

  .js-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
  }

  .js-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.55;
    color: #1f2937;
    font-weight: 500;
  }

  .js-footer-contact a {
    color: #1f2937 !important;
    text-decoration: none !important;
    font-weight: 600;
  }

  .js-footer-contact a:hover {
    color: var(--js-red) !important;
  }

  .js-fc-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1.5px solid rgba(225, 29, 72, 0.45);
    color: var(--js-red);
    background: rgba(225, 29, 72, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
  }

  .js-footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
  }

  .js-footer-social .js-soc {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    color: #fff !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  }

  .js-footer-social .js-soc svg {
    display: block;
  }

  .js-footer-social .js-soc.fb {
    background: #1877f2;
  }

  .js-footer-social .js-soc.tw {
    background: #0f1419;
  }

  .js-footer-social .js-soc.ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  }

  .js-footer-social .js-soc.yt {
    background: #ff0000;
  }

  .js-footer-social .js-soc.wa {
    background: #25d366;
  }

  .js-footer-social .js-soc.rss {
    background: #f97316;
  }

  .js-footer-social .js-soc:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    filter: brightness(1.08);
    color: #fff !important;
  }

  .js-footer-social .js-soc.wa:hover,
  .js-footer-social .js-soc.rss:hover {
    border-color: transparent;
    color: #fff !important;
  }

  .js-footer-heading {
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 18px;
    position: relative;
    padding-bottom: 10px;
  }

  .js-footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--js-red);
    border-radius: 2px;
  }

  .js-footer-links-list,
  .js-footer-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .js-footer-links-list li {
    border-bottom: 1px solid #e5e7eb;
  }

  .js-footer-links-list li:last-child {
    border-bottom: 0;
  }

  .js-footer-links-list a {
    display: block;
    padding: 9px 0;
    color: #374151 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: color .15s, padding-left .15s;
  }

  .js-footer-links-list a::before {
    content: "›";
    color: #9ca3af;
    margin-right: 8px;
    font-weight: 700;
  }

  .js-footer-links-list a:hover {
    color: var(--js-red) !important;
    padding-left: 4px;
  }

  .js-footer-cat-list li {
    border-bottom: 1px solid #e5e7eb;
  }

  .js-footer-cat-list li:last-child {
    border-bottom: 0;
  }

  .js-footer-cat-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #374151 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: color .15s;
  }

  .js-footer-cat-list a:hover {
    color: var(--js-red) !important;
  }

  .js-cat-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
  }

  .js-cat-icon.c1 { background: #fce4ec; }
  .js-cat-icon.c2 { background: #e3f2fd; }
  .js-cat-icon.c3 { background: #fff3e0; }
  .js-cat-icon.c4 { background: #f3e5f5; }
  .js-cat-icon.c5 { background: #e8f5e9; }
  .js-cat-icon.c6 { background: #e0f7fa; }

  .js-footer-app-tag {
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
    margin: 0 0 14px;
  }

  .js-app-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
    max-width: 220px;
  }

  .js-store-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    text-decoration: none !important;
    color: #111827 !important;
    transition: border-color .18s, box-shadow .18s;
  }

  .js-store-badge:hover {
    border-color: #ccc;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
  }

  .js-store-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .js-store-icon.gp {
    color: #4285f4;
  }

  .js-store-icon.ap {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1a1d2e;
    position: relative;
  }

  .js-store-icon.ap::after {
    content: "";
    position: absolute;
    inset: 5px 6px 6px 5px;
    background: #fff;
    border-radius: 50% 50% 45% 45%;
    clip-path: polygon(50% 20%, 65% 35%, 65% 65%, 50% 80%, 35% 65%, 35% 35%);
  }

  .js-store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  .js-store-text small {
    font-size: 9px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
  }

  .js-store-text strong {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
  }

  .js-footer-newsletter {
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    max-width: 100%;
  }

  .js-fn-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--js-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .js-fn-body {
    flex: 1;
    min-width: 0;
  }

  .js-fn-body strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #1a1d2e;
    margin-bottom: 4px;
  }

  .js-fn-body > p {
    font-size: 12px;
    color: #4b5563;
    margin: 0 0 12px;
    line-height: 1.4;
    font-weight: 500;
  }

  .js-fn-form {
    display: flex;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
  }

  .js-fn-form input[type="email"] {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 10px 12px;
    font-size: 12px;
    outline: none;
    background: #fafafa;
  }

  .js-fn-form button {
    flex-shrink: 0;
    border: 0;
    background: var(--js-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 10px 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
  }

  .js-fn-form button:hover {
    background: var(--js-red-dark);
  }

  .js-footer-bottom {
    background: #f3f4f6;
    border-top: 1px solid #d1d5db;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #374151;
  }

  .js-footer-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-weight: 600;
  }

  .js-footer-copy svg {
    color: var(--js-red);
    flex-shrink: 0;
  }

  .js-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .js-footer-bottom-links a {
    color: #374151 !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
  }

  .js-footer-bottom-links a:hover {
    color: var(--js-red) !important;
  }

  .js-fbl {
    color: #9ca3af;
    user-select: none;
  }

  .js-footer-top {
    width: 36px;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #374151 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: border-color .15s, color .15s, transform .15s;
    flex-shrink: 0;
  }

  .js-footer-top:hover {
    border-color: var(--js-red);
    color: var(--js-red) !important;
    transform: translateY(-2px);
  }

@media (min-width: 992px) {
  .js-footer { display: block; }
}

@media (max-width: 991px) {
  .js-site-header,
  .js-home,
  .js-post { display: none !important; }

  .legacy-post-fallback { display: block !important; }

  /* Full desktop redesign footer — compact on mobile */
  .js-footer {
    display: block !important;
    background: #fff !important;
    color: #1f2937;
    margin-top: 10px;
    padding: 0;
    border: 0;
  }

  #footer.legacy-footer {
    display: none !important;
  }

  .js-footer-topline {
    display: block !important;
    height: 3px;
    background: linear-gradient(90deg, var(--js-red) 0%, #ff4b5c 50%, var(--js-red) 100%);
  }

  .js-footer .js-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .js-footer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 16px 0 10px !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .js-footer-col,
  .js-footer-brand,
  .js-footer-aside,
  .js-footer-col:nth-child(2),
  .js-footer-col:nth-child(3),
  .js-footer-col:nth-child(4),
  .js-footer-col:nth-child(5) {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
  }

  .js-footer-aside {
    display: block !important;
  }

  .js-footer-aside .js-footer-newsletter,
  .js-footer-newsletter {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 14px !important;
    box-sizing: border-box !important;
  }

  .js-footer-aside .js-fn-form,
  .js-fn-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .js-footer-aside .js-fn-form input[type="email"],
  .js-footer-aside .js-fn-form button,
  .js-fn-form input[type="email"],
  .js-fn-form button {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .js-footer-logo {
    font-size: 22px;
    margin-bottom: 2px;
  }

  .js-footer-tag {
    margin: 0 0 8px !important;
    font-size: 12px !important;
  }

  .js-footer-divider {
    margin-bottom: 8px;
    width: 32px;
    height: 2px;
  }

  .js-footer-about {
    max-width: none !important;
    font-size: 12px;
    line-height: 1.45;
    margin: 0 0 10px;
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
  }

  .js-footer-contact {
    margin: 0 0 10px;
  }

  .js-footer-contact li {
    margin-bottom: 6px;
    font-size: 12px;
    gap: 8px;
  }

  .js-fc-icon {
    width: 24px;
    height: 24px;
  }

  .js-footer-social {
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
  }

  .js-footer-social .js-soc {
    width: 34px;
    height: 34px;
  }

  .js-footer-heading {
    font-size: 13px;
    margin: 0 0 8px;
    padding-bottom: 6px;
  }

  .js-footer-heading::after {
    width: 22px;
    height: 2px;
    bottom: 0;
  }

  /* Single-column lists — avoid squeeze/overlap on phones */
  .js-footer-links-list,
  .js-footer-cat-list {
    display: block !important;
    grid-template-columns: none !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .js-footer-links-list li,
  .js-footer-cat-list li {
    margin: 0 !important;
    border-bottom: 1px solid #eef2f7 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .js-footer-links-list li:last-child,
  .js-footer-cat-list li:last-child {
    border-bottom: 0 !important;
  }

  .js-footer-links-list a,
  .js-footer-cat-list a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }

  .js-footer-links-list a::before {
    margin-right: 0;
    font-size: 11px;
  }

  .js-footer-cat-list .js-cat-icon {
    width: 22px;
    height: 22px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .js-footer-app-tag {
    font-size: 12px;
    margin: 0 0 8px;
  }

  .js-app-badges {
    max-width: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }

  .js-store-badge {
    flex: 1 1 140px;
    padding: 8px 12px;
  }

  .js-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    background: #f3f4f6;
    border-top: 1px solid #d1d5db;
    color: #374151;
    padding: 12px 14px calc(68px + env(safe-area-inset-bottom));
    margin: 0 -14px;
    width: calc(100% + 28px);
  }

  .js-footer-copy {
    justify-content: center;
    color: #374151;
    font-weight: 600;
    font-size: 11px;
    flex-wrap: wrap;
  }

  .js-footer-copy svg {
    display: inline-block;
    color: var(--js-red);
    width: 12px;
    height: 12px;
  }

  .js-footer-bottom-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .js-footer-bottom-links a {
    color: #374151 !important;
    font-weight: 600;
    font-size: 11px;
  }

  .js-footer-bottom-links .js-fbl {
    display: inline;
    color: #9ca3af;
  }

  .js-footer-top {
    display: inline-flex !important;
    width: 32px;
    height: 32px;
  }
}

/* ===== Dark mode — redesign overrides (no page reload) ===== */
body.js-dark-mode {
  background: #0f1419 !important;
  color: #e5e7eb !important;
}

@media (min-width: 992px) {
  body.js-dark-mode {
    background: #0f1419 !important;
    color: #e5e7eb !important;
  }

  body.js-dark-mode .js-main-header {
    background: #151a22 !important;
    border-bottom-color: #252b36 !important;
  }

  body.js-dark-mode .js-logo-dark { color: #f8fafc !important; }
  body.js-dark-mode .js-logo-tag { color: #94a3b8 !important; }

  body.js-dark-mode .js-search {
    background: #1c2330 !important;
    border-color: #2a3344 !important;
  }
  body.js-dark-mode .js-search input {
    background: transparent !important;
    color: #f1f5f9 !important;
  }
  body.js-dark-mode .js-search input::placeholder { color: #94a3b8 !important; }
  body.js-dark-mode .js-search-ico,
  body.js-dark-mode .js-search button { color: #94a3b8 !important; }

  body.js-dark-mode .js-btn-login {
    background: #1c2330 !important;
    border-color: #2a3344 !important;
    color: #f1f5f9 !important;
  }

  body.js-dark-mode .js-main-nav {
    background: #111827 !important;
    border-bottom-color: #1f2937 !important;
  }
  body.js-dark-mode .js-nav-link,
  body.js-dark-mode .js-nav-home {
    color: #e5e7eb !important;
  }
  body.js-dark-mode .js-dropdown {
    background: #1c2330 !important;
    border-color: #2a3344 !important;
  }
  body.js-dark-mode .js-dropdown a {
    color: #e5e7eb !important;
  }
  body.js-dark-mode .js-dropdown a:hover {
    background: #252b36 !important;
    color: #fff !important;
  }

  body.js-dark-mode .js-home,
  body.js-dark-mode .js-container {
    color: #e5e7eb;
  }

  /* News cards — were still white */
  body.js-dark-mode .js-news-card {
    background: #151a22 !important;
    border-color: #2a3344 !important;
    color: #e5e7eb !important;
  }
  body.js-dark-mode .js-news-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
  body.js-dark-mode .js-news-card h3 {
    color: #f8fafc !important;
  }
  body.js-dark-mode .js-news-card p,
  body.js-dark-mode .js-card-meta,
  body.js-dark-mode .js-card-meta span {
    color: #94a3b8 !important;
  }

  body.js-dark-mode .js-hero-side-item {
    background: #151a22 !important;
    border-color: #2a3344 !important;
  }
  body.js-dark-mode .js-hero-side-body h3 {
    color: #f8fafc !important;
  }
  body.js-dark-mode .js-hero-side-body span {
    color: #94a3b8 !important;
  }
  body.js-dark-mode .js-hero-side-thumb {
    background: #1c2330 !important;
  }
  body.js-dark-mode .js-topbar {
    background: #151a22 !important;
    border-bottom-color: #2a3344 !important;
    color: #cbd5e1 !important;
  }
  body.js-dark-mode .js-topbar-ticker a,
  body.js-dark-mode .js-topbar-ticker span,
  body.js-dark-mode .js-topbar-right,
  body.js-dark-mode .js-epaper,
  body.js-dark-mode .js-theme-toggle-btn {
    color: #e5e7eb !important;
  }
  body.js-dark-mode .js-hero-mid,
  body.js-dark-mode .js-trending,
  body.js-dark-mode .js-top-search {
    background: #151a22 !important;
    border-color: #2a3344 !important;
  }
  body.js-dark-mode .js-mid-card { border-bottom-color: #2a3344 !important; }
  body.js-dark-mode .js-mid-card:hover { background: #1a2230 !important; }
  body.js-dark-mode .js-mid-body h3,
  body.js-dark-mode .js-trending-head h3,
  body.js-dark-mode .js-trending-list a { color: #e5e7eb !important; }
  body.js-dark-mode .js-trending-list li { border-bottom-color: #2a3344 !important; }
  body.js-dark-mode .js-top-search-tags a {
    background: #1f2937 !important;
    color: #e5e7eb !important;
  }

  body.js-dark-mode .js-section-head {
    border-bottom-color: #3b82f6 !important;
  }
  body.js-dark-mode .js-section-head h2,
  body.js-dark-mode .js-section-head h3 {
    color: #f8fafc !important;
  }
  body.js-dark-mode .js-section-head a {
    color: #93c5fd !important;
  }

  body.js-dark-mode .js-video-card h4 {
    color: #f8fafc !important;
  }

  body.js-dark-mode .js-list-feed {
    background: transparent !important;
    border: 0 !important;
  }
  body.js-dark-mode .js-list-item {
    background: #151a22 !important;
    border-color: #2a3344 !important;
    color: #e5e7eb !important;
  }
  body.js-dark-mode .js-list-item:hover {
    border-color: #3b4558 !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }
  body.js-dark-mode .js-list-item h4 {
    color: #f8fafc !important;
  }
  body.js-dark-mode .js-list-item:hover h4 {
    color: #fb7185 !important;
  }
  body.js-dark-mode .js-list-meta {
    color: #94a3b8 !important;
  }
  body.js-dark-mode .js-list-more {
    color: #93c5fd !important;
  }
  body.js-dark-mode .js-list-thumb {
    background: #1c2330 !important;
  }

  body.js-dark-mode .js-widget {
    background: #151a22 !important;
    border-color: #2a3344 !important;
    color: #e5e7eb !important;
  }
  body.js-dark-mode .js-widget-head h4 {
    color: #f8fafc !important;
  }
  body.js-dark-mode .js-popular-list li {
    border-bottom-color: #2a3344 !important;
  }
  body.js-dark-mode .js-popular-list a {
    color: #e5e7eb !important;
  }
  body.js-dark-mode .js-widget-weather {
    background: linear-gradient(180deg, #151a22 0%, #111827 100%) !important;
    border-color: #2a3344 !important;
  }
  body.js-dark-mode .js-weather-loc,
  body.js-dark-mode .js-weather-cond {
    color: #94a3b8 !important;
  }
  body.js-dark-mode .js-weather-feel {
    color: #64748b !important;
  }
  body.js-dark-mode .js-weather-feel em {
    color: #e2e8f0 !important;
  }
  body.js-dark-mode .js-weather-loc strong,
  body.js-dark-mode .js-ws-val {
    color: #f8fafc !important;
  }
  body.js-dark-mode .js-weather-icon {
    background: linear-gradient(145deg, #1c2330, #0f172a) !important;
  }
  body.js-dark-mode .js-weather-row {
    border-top-color: #2a3344 !important;
  }
  body.js-dark-mode .js-weather-stat {
    background: #1c2330 !important;
  }
  body.js-dark-mode .js-ws-label {
    color: #94a3b8 !important;
  }
  body.js-dark-mode .js-weather-sun {
    background: #1c1917 !important;
    color: #fdba74 !important;
  }
  body.js-dark-mode .js-weather-sun small {
    color: #fb923c !important;
  }
  body.js-dark-mode .js-weather-sun strong {
    color: #fdba74 !important;
  }
  body.js-dark-mode .js-temp {
    color: #60a5fa !important;
  }
  body.js-dark-mode .js-newsletter-form input {
    background: #1c2330 !important;
    border-color: #2a3344 !important;
    color: #f1f5f9 !important;
  }
  body.js-dark-mode .js-widget-more {
    color: #93c5fd !important;
  }

  body.js-dark-mode .js-card,
  body.js-dark-mode .js-hero,
  body.js-dark-mode .js-sidebar .js-widget {
    background: #151a22 !important;
    border-color: #2a3344 !important;
    color: #e5e7eb !important;
  }

  body.js-dark-mode .js-widget-head h4,
  body.js-dark-mode .js-section-head h2,
  body.js-dark-mode .js-section-head h3 {
    color: #f8fafc !important;
  }

  body.js-dark-mode .js-popular-list a,
  body.js-dark-mode a.js-card-title {
    color: #e5e7eb !important;
  }

  body.js-dark-mode .js-footer {
    background: #111827 !important;
    color: #cbd5e1 !important;
  }
  body.js-dark-mode .js-footer-logo { color: #f8fafc !important; }
  body.js-dark-mode .js-footer-tag,
  body.js-dark-mode .js-footer-about,
  body.js-dark-mode .js-footer-app-tag,
  body.js-dark-mode .js-fn-body > p { color: #94a3b8 !important; }
  body.js-dark-mode .js-footer-heading { color: #f8fafc !important; }
  body.js-dark-mode .js-footer-contact li,
  body.js-dark-mode .js-footer-contact a { color: #e5e7eb !important; }
  body.js-dark-mode .js-footer-links-list li,
  body.js-dark-mode .js-footer-cat-list li { border-bottom-color: #252b36 !important; }
  body.js-dark-mode .js-footer-links-list a,
  body.js-dark-mode .js-footer-cat-list a { color: #cbd5e1 !important; }
  body.js-dark-mode .js-footer-social .js-soc {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    color: #fff !important;
  }
  body.js-dark-mode .js-store-badge {
    background: #1c2330 !important;
    border-color: #2a3344 !important;
    color: #f8fafc !important;
  }
  body.js-dark-mode .js-store-text strong { color: #f8fafc !important; }
  body.js-dark-mode .js-store-text small { color: #94a3b8 !important; }
  body.js-dark-mode .js-footer-newsletter {
    background: #151a22 !important;
    border-color: #252b36 !important;
  }
  body.js-dark-mode .js-fn-body strong { color: #f8fafc !important; }
  body.js-dark-mode .js-fn-form {
    border-color: #2a3344 !important;
  }
  body.js-dark-mode .js-fn-form input[type="email"] {
    background: #1c2330 !important;
    color: #f1f5f9 !important;
  }
  body.js-dark-mode .js-footer-bottom {
    background: #0b1220 !important;
    border-top-color: #1f2937 !important;
    color: #94a3b8 !important;
  }
  body.js-dark-mode .js-footer-copy,
  body.js-dark-mode .js-footer-bottom-links a {
    color: #cbd5e1 !important;
  }
  body.js-dark-mode .js-footer-top {
    background: #1c2330 !important;
    border-color: #2a3344 !important;
    color: #e5e7eb !important;
  }
}

/* ===== Post page redesign ===== */
.js-post { display: none; padding: 18px 0 48px; }

@media (min-width: 992px) {
  .js-post { display: block; }

  .js-post-bc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--js-muted);
    margin-bottom: 18px;
  }
  .js-post-bc a { color: var(--js-muted); text-decoration: none; }
  .js-post-bc a:hover { color: var(--js-blue); }
  .js-bc-sep { opacity: 0.5; }
  .js-bc-current { color: var(--js-text); max-width: 48%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .js-post-layout { align-items: flex-start; }

  .js-article {
    background: #fff;
    border: 1px solid var(--js-line);
    border-radius: 14px;
    padding: 28px 32px 36px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  .js-article-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }
  .js-article-cat {
    display: inline-block;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 5px 12px;
    border-radius: 6px;
    text-decoration: none !important;
  }
  .js-article-edit {
    font-size: 12px;
    color: var(--js-blue);
    text-decoration: none;
  }

  .js-article-title {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.35;
    font-weight: 800;
    color: var(--js-text);
    letter-spacing: -0.02em;
  }

  .js-article-summary {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.65;
    color: #4b5563;
    border-left: 3px solid var(--js-red);
    padding-left: 14px;
  }

  .js-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    padding: 14px 0;
    border-top: 1px solid var(--js-line);
    border-bottom: 1px solid var(--js-line);
    margin-bottom: 16px;
    color: var(--js-muted);
    font-size: 13px;
  }
  .js-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--js-text);
    font-weight: 600;
    text-decoration: none;
  }
  .js-meta-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
  }
  .js-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .js-share-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
  }
  .js-share {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }
  .js-share:hover { transform: translateY(-1px); opacity: 0.92; }
  .js-share.fb { background: #1877f2; }
  .js-share.tw { background: #0ea5e9; }
  .js-share.wa { background: #16a34a; }
  .js-share.star {
    background: #f3f4f6;
    color: #374151 !important;
    padding: 0 12px;
  }
  .js-share.star.is-on { background: #fef3c7; color: #b45309 !important; }

  .js-article-media {
    margin: 0 0 24px;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
  }
  .js-article-media .post-image,
  .js-article-media .post-image-inner { margin: 0; }
  .js-article-media img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 520px;
    object-fit: cover;
  }
  .js-article-media .img-description {
    background: #111827;
    color: #d1d5db;
    font-size: 13px;
    padding: 10px 14px;
    margin: 0;
  }
  .js-article-media .post-detail-slider-nav {
    bottom: 16px;
  }

  .js-article-body {
    font-size: 17.5px;
    line-height: 1.85;
    color: #1f2937;
  }
  .js-article-body p { margin: 0 0 1.15em; }
  .js-article-body h2,
  .js-article-body h3 {
    margin: 1.4em 0 0.6em;
    font-weight: 800;
    color: var(--js-text);
    line-height: 1.35;
  }
  .js-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 12px 0;
  }
  .js-article-body a { color: var(--js-blue); }
  .js-article-body blockquote {
    margin: 1.2em 0;
    padding: 14px 18px;
    border-left: 4px solid var(--js-red);
    background: #f8fafc;
    color: #374151;
    font-size: 16px;
  }
  .js-article-body ul,
  .js-article-body ol { padding-left: 1.3em; margin-bottom: 1.1em; }

  .js-article-cta { margin: 22px 0 8px; }
  .js-article-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--js-blue);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 8px;
  }

  .js-article-files { margin-top: 22px; }
  .js-article-files h3 {
    font-size: 16px;
    margin: 0 0 10px;
    font-weight: 800;
  }
  .js-article-files button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    text-align: left;
    border: 1px solid var(--js-line);
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--js-text);
    cursor: pointer;
  }
  .js-article-files button:hover { border-color: var(--js-blue); background: #eff6ff; }

  .js-article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--js-line);
  }
  .js-tags-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--js-muted);
  }
  .js-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .js-tags-list a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
  }
  .js-tags-list a:hover { background: #e0e7ff; color: var(--js-blue) !important; }

  .js-after-article {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .js-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .js-post-nav.js-post-nav-single {
    grid-template-columns: 1fr;
  }
  .js-post-nav-item {
    display: block;
    background: #fff;
    border: 1px solid var(--js-line);
    border-radius: 12px;
    padding: 16px 18px;
    text-decoration: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    min-height: 92px;
  }
  .js-post-nav-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.08);
    transform: translateY(-1px);
  }
  .js-post-nav-item.next { text-align: right; }
  .js-nav-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--js-blue);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .js-post-nav-item strong {
    display: block;
    color: var(--js-text);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
  }

  .js-reactions {
    background: #fff;
    border: 1px solid var(--js-line);
    border-radius: 12px;
    padding: 16px 18px;
  }
  .js-reactions h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
  }

  .js-after-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
  }
  .js-after-split.has-ad {
    grid-template-columns: minmax(240px, 320px) 1fr;
  }

  .js-post-ad {
    background: #fff;
    border: 1px solid var(--js-line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }
  .js-post-ad-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(90deg, #f8fafc, #eff6ff);
    border-bottom: 1px solid var(--js-line);
  }
  .js-post-ad-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
  }
  .js-post-ad-note {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
  }
  .js-post-ad-frame {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background:
      radial-gradient(circle at top, rgba(29, 78, 216, 0.06), transparent 55%),
      #f8fafc;
    min-height: 280px;
  }
  .js-post-ad-frame .js-post-ad-codes,
  .js-post-ad-frame section,
  .js-post-ad-frame .row,
  .js-post-ad-frame .col-sm-12 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }
  .js-post-ad-frame img,
  .js-post-ad-frame iframe,
  .js-post-ad-frame ins,
  .js-post-ad-frame embed {
    display: block !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 460px !important;
    margin: 0 auto !important;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  }

  .js-author-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--js-line);
    border-radius: 14px;
    padding: 20px;
    min-height: 100%;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }
  .js-author-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
  }
  .js-author-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #e0e7ff;
  }
  .js-author-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--js-muted);
    margin-bottom: 4px;
  }
  .js-author-body h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
  }
  .js-author-body h3 a { color: var(--js-text); text-decoration: none; }
  .js-author-body h3 a:hover { color: var(--js-blue); }
  .js-author-body p { margin: 0; color: #4b5563; font-size: 14px; line-height: 1.6; }
  .js-author-link {
    display: inline-flex;
    align-self: flex-start;
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--js-blue) !important;
    text-decoration: none !important;
    padding: 8px 12px;
    border-radius: 8px;
    background: #eff6ff;
  }
  .js-author-link:hover { background: #dbeafe; }

  @media (max-width: 1100px) {
    .js-after-split.has-ad {
      grid-template-columns: 1fr;
    }
    .js-post-ad-frame {
      min-height: 220px;
    }
    .js-post-ad-frame img,
    .js-post-ad-frame iframe {
      max-height: 380px !important;
    }
  }

  .js-related { margin-top: 28px; }
  .js-related-full {
    width: 100%;
    clear: both;
    margin-top: 32px;
  }
  .js-related-full .js-section-head {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dbeafe;
  }
  .js-related-full .js-section-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--js-text);
    position: relative;
    padding-left: 12px;
  }
  .js-related-full .js-section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: var(--js-red);
  }

  .js-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    width: 100%;
  }
  .js-related-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--js-line);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .js-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }
  .js-related-thumb {
    aspect-ratio: 16 / 10;
    background: #e5e7eb;
    overflow: hidden;
  }
  .js-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
  }
  .js-related-card:hover .js-related-thumb img { transform: scale(1.05); }
  .js-related-body { padding: 12px 14px 16px; }
  .js-related-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--js-red);
    margin-bottom: 6px;
  }
  .js-related-body h3 {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--js-text);
  }
  .js-related-meta { font-size: 12px; color: var(--js-muted); }

  .js-comments {
    margin-top: 28px;
    background: #fff;
    border: 1px solid var(--js-line);
    border-radius: 12px;
    padding: 20px 22px 24px;
  }
  .js-comments .js-section-head { margin-bottom: 16px; }
  .js-comment-box .nav-tabs {
    border-bottom: 1px solid var(--js-line);
    margin-bottom: 16px;
  }
  .js-comment-box .nav-tabs > li > a {
    border: 0 !important;
    border-radius: 8px 8px 0 0;
    color: var(--js-muted);
    font-weight: 700;
  }
  .js-comment-box .nav-tabs > li.active > a {
    color: var(--js-blue) !important;
    background: transparent !important;
    box-shadow: inset 0 -2px 0 var(--js-blue);
  }

  .js-widget-related-side { margin-top: 14px; }
  .js-side-related { list-style: none; margin: 0; padding: 0; }
  .js-side-related li { margin-bottom: 12px; }
  .js-side-related a {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    text-decoration: none !important;
    align-items: start;
  }
  .js-side-rel-thumb {
    width: 72px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #e5e7eb;
  }
  .js-side-rel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .js-side-related strong {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: var(--js-text);
    font-weight: 700;
    margin-bottom: 4px;
  }
  .js-side-related span { font-size: 11px; color: var(--js-muted); }
  .js-side-related a:hover strong { color: var(--js-blue); }

  body.js-dark-mode .js-article,
  body.js-dark-mode .js-post-nav-item,
  body.js-dark-mode .js-reactions,
  body.js-dark-mode .js-author-card,
  body.js-dark-mode .js-post-ad,
  body.js-dark-mode .js-related-card,
  body.js-dark-mode .js-comments {
    background: #151a22 !important;
    border-color: #2a3344 !important;
  }
  body.js-dark-mode .js-post-ad-head {
    background: linear-gradient(90deg, #1a2230, #152033) !important;
    border-bottom-color: #2a3344 !important;
  }
  body.js-dark-mode .js-post-ad-frame {
    background:
      radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 55%),
      #0f1419 !important;
  }
  body.js-dark-mode .js-post-ad-label,
  body.js-dark-mode .js-post-ad-note {
    color: #94a3b8 !important;
  }
  body.js-dark-mode .js-author-card img {
    border-color: #334155 !important;
  }
  body.js-dark-mode .js-author-link {
    background: #1e293b !important;
    color: #93c5fd !important;
  }
  body.js-dark-mode .js-article-title,
  body.js-dark-mode .js-article-body,
  body.js-dark-mode .js-post-nav-item strong,
  body.js-dark-mode .js-author-body h3 a,
  body.js-dark-mode .js-related-body h3,
  body.js-dark-mode .js-section-head h2,
  body.js-dark-mode .js-side-related strong {
    color: #e5e7eb !important;
  }
  body.js-dark-mode .js-article-summary,
  body.js-dark-mode .js-article-body,
  body.js-dark-mode .js-author-body p {
    color: #cbd5e1 !important;
  }
  body.js-dark-mode .js-article-summary { border-left-color: var(--js-red); }
  body.js-dark-mode .js-article-body blockquote {
    background: #0f1419;
    color: #cbd5e1;
  }
  body.js-dark-mode .js-article-meta {
    border-color: #2a3344;
  }
  body.js-dark-mode .js-share.star {
    background: #1f2937;
    color: #e5e7eb !important;
  }
  body.js-dark-mode .js-tags-list a {
    background: #1f2937;
    color: #e5e7eb !important;
  }
  body.js-dark-mode .js-article-files button {
    background: #0f1419;
    border-color: #2a3344;
    color: #e5e7eb;
  }
}
