/* Median.Az 2025 — new editorial identity */
:root {
  --m-ink: #0a1d3a;
  --m-ink-soft: #142d52;
  --m-blue: #1554d1;
  --m-blue-deep: #0c3ba8;
  --m-cyan: #22c6eb;
  --m-cyan-soft: #e6f9ff;
  --m-paper: #f4f8fc;
  --m-white: #fff;
  --m-text: #16243a;
  --m-muted: #74849a;
  --m-line: #e1e9f2;
  --m-shadow: 0 16px 40px rgba(10, 29, 58, .10);
  --m-side-top: 214px;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--m-text);
  background: var(--m-paper) !important;
  font-family: Inter, "PT Sans", Arial, sans-serif !important;
  font-size: 15px;
  line-height: 1.6;
}
body, body * { box-sizing: border-box; }
a { transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }

/* Masthead and new Median mark */
.header {
  position: relative;
  z-index: 100;
  min-height: 0;
  margin: 0;
  background: #fff !important;
  box-shadow: 0 8px 26px rgba(9, 30, 63, .075);
  white-space: normal;
}
.mobile-top-banner { display: none !important; }
.main-top {
  clear: both;
  margin: 0;
  padding: 13px 24px;
  background: linear-gradient(110deg, #071a39 0%, #0c2a57 65%, #1241a0 100%);
}
.main-top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1320px, 100%);
  min-height: 66px;
  margin: 0 auto;
}
.main-top .logo.median-logo {
  display: block;
  float: none;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 0;
}
.median-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 11px;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.median-mark {
  display: block;
  width: 48px;
  height: 48px;
  color: #fff;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.16));
}
.median-wordmark { display: flex; flex-direction: column; line-height: 1; }
.median-name {
  color: #fff;
  font-size: clamp(27px, 2.4vw, 36px);
  font-weight: 800;
  letter-spacing: -1.8px;
}
.median-name > span { color: var(--m-cyan); }
.median-tagline {
  margin-top: 6px;
  color: #bdd3f5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.main-top .weather_widget, .main-top .current_date {
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  color: #e9f2ff;
}
.main-top .weather_widget { flex: 1 1 auto; text-align: center; }
.main-top .social_menu { float: none; margin: 0; }
.main-top .social_menu li { display: block !important; }
.main-top .social_menu li a { border-radius: 50%; }

/* Category navigation */
.nav-wrap {
  width: 100% !important;
  height: auto;
  min-height: 58px;
  margin: 0;
  padding: 0 max(22px, calc((100% - 1320px) / 2)) !important;
  background: #fff !important;
  border-bottom: 1px solid var(--m-line);
}
.nav { display: flex; align-items: center; min-height: 58px; overflow: visible; }
.nav ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.nav li { float: none; margin: 0; }
.nav li a {
  position: relative;
  float: none;
  display: block;
  padding: 0 9px;
  border-radius: 0;
  color: var(--m-ink) !important;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 750;
  line-height: 56px;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav li a::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--m-cyan);
  content: "";
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav li a:hover { background: transparent !important; color: var(--m-blue) !important; }
.nav li a:hover::after { transform: scaleX(1); }
.nav li:first-child a { color: var(--m-blue) !important; font-size: 16px; }
.nav-btn { display: none; }
.searchblock { flex: 0 0 42px; position: relative; }
.searchblock .search_btn { border-radius: 10px; }
.ticker {
  min-height: 42px;
  margin: 0;
  padding: 0 22px;
  overflow: hidden;
  color: #fff;
  background: var(--m-ink) !important;
}
.ticker__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(1320px, 100%);
  min-height: 42px;
  margin: 0 auto;
}
.ticker-label {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 5px;
  color: var(--m-ink);
  background: var(--m-cyan);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
}
.ticker__wrap { min-width: 0; overflow: hidden; }
.ticker__wrap ul { display: flex; gap: 28px; width: max-content; margin: 0; padding: 0; list-style: none; }
.ticker__wrap li { display: inline-block; float: none; white-space: nowrap; }
.ticker__wrap a { color: #e9f2ff; font-size: 12px; text-decoration: none; }
.ticker__wrap a:hover { color: var(--m-cyan); }

/* Main layout and large, undistorted photo slider */
#mains.container {
  width: min(1320px, calc(100% - 40px)) !important;
  max-width: 1320px !important;
  margin: 0 auto;
  padding: 0 !important;
  overflow: visible;
}
.slider-wrapper { width: 100%; margin: 28px auto 32px; }
.slider-container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 34%);
  align-items: stretch;
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  gap: 20px;
}
.slider-container .swiper, .slider-inner .swiper, .swiper.mySwiper {
  position: relative;
  width: 100%;
  height: clamp(360px, 34vw, 490px) !important;
  overflow: hidden;
  border-radius: 16px;
  background: #d7e4f5;
  box-shadow: var(--m-shadow);
}
.swiper-slide { position: relative; height: 100%; overflow: hidden; }
.swiper-slide > a { display: block; width: 100%; height: 100%; }
.swiper-slide img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
  transform: scale(1.001);
  transition: transform .6s ease;
}
.swiper-slide:hover img { transform: scale(1.025); }
.swiper-slide::after {
  position: absolute;
  inset: 35% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 17, 38, .18) 25%, rgba(4, 17, 38, .88) 100%);
  content: "";
  pointer-events: none;
}
.slide-title {
  position: absolute !important;
  z-index: 2;
  right: 28px !important;
  bottom: 32px !important;
  left: 28px !important;
  width: auto !important;
  padding: 0 !important;
  color: #fff !important;
  background: transparent !important;
  font-size: clamp(24px, 2.25vw, 36px) !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  text-align: left !important;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.swiper-pagination { bottom: 12px !important; z-index: 4; }
.swiper-pagination-bullet { width: 8px; height: 8px; background: #fff; opacity: .65; }
.swiper-pagination-bullet-active { width: 24px; border-radius: 8px; background: var(--m-cyan); opacity: 1; }
.slider-banner { display: block; min-width: 0; }
.slider-ad-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 340px;
  padding: clamp(24px, 3vw, 42px);
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #0a2861 0%, #1554d1 58%, #1aaee1 100%);
  box-shadow: var(--m-shadow);
}
.slider-ad-card::before, .slider-ad-card::after {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.slider-ad-card::before { top: -120px; right: -68px; box-shadow: 0 0 0 28px #ffffff09, 0 0 0 58px #ffffff08; }
.slider-ad-card::after { right: -110px; bottom: -190px; width: 310px; height: 310px; }
.slider-ad-card > * { position: relative; z-index: 1; }
.slider-ad-card .ad-eyebrow { color: #bfeeff; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.slider-ad-card .ad-orbit {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 20px 0 14px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: #ffffff14;
}
.slider-ad-card .ad-orbit::after { width: 9px; height: 9px; margin: auto; border-radius: 50%; background: var(--m-cyan); content: ""; }
.slider-ad-card strong { max-width: 340px; font-size: clamp(23px, 2.2vw, 32px); font-weight: 850; line-height: 1.12; }
.slider-ad-card p { max-width: 300px; margin: 14px 0 24px; color: #e2f3ff; font-size: 14px; line-height: 1.6; }
.slider-ad-card a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: fit-content;
  padding: 12px 16px;
  border: 1px solid #9ceaff66;
  border-radius: 9px;
  color: var(--m-ink) !important;
  background: var(--m-cyan);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-decoration: none;
}
.slider-ad-card a:hover { transform: translateY(-2px); background: #6ee4ff; }
.slider-ad-card small { position: absolute; right: 4px; bottom: -12px; color: #ffffff8a; font-size: 9px; letter-spacing: .12em; }

/* Tall Mojo placements follow the desktop viewport until the footer */
.side-banner {
  position: fixed !important;
  top: var(--m-side-top) !important;
  bottom: auto !important;
  z-index: 30 !important;
  display: block;
  width: clamp(112px, 8vw, 150px);
  height: calc(100vh - var(--m-side-top) - 14px);
  overflow: hidden;
  border: 1px solid rgba(21,84,209,.18);
  border-radius: 12px;
  background: var(--m-ink);
  box-shadow: 0 10px 28px rgba(4, 24, 54, .18);
  opacity: 1;
  transition: opacity .2s ease, visibility .2s ease;
}
.side-banner.left { left: max(12px, calc(50% - 660px - clamp(112px, 8vw, 150px) - 18px)) !important; right: auto !important; }
.side-banner.right { right: max(12px, calc(50% - 660px - clamp(112px, 8vw, 150px) - 18px)) !important; left: auto !important; }
.side-banner img { display: block; width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center top; border-radius: 11px; }
.side-banner.is-footer-visible { visibility: hidden; opacity: 0; pointer-events: none; }

/* 3-column DLE news feed, 15 items per page from DLE config */
.row.row-offcanvas { margin: 0; }
.row-offcanvas > .col-md-12 { width: 100%; padding: 0; }
#dle-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}
#dle-content > .short, .article-latest-grid > .short, .article-featured > .short {
  display: flex;
  float: none;
  flex-direction: column;
  width: auto !important;
  min-width: 0;
  min-height: 0;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(10,29,58,.045);
  transition: transform .2s ease, box-shadow .2s ease;
}
#dle-content > .short:hover, .article-latest-grid > .short:hover, .article-featured > .short:hover {
  transform: translateY(-4px);
  box-shadow: var(--m-shadow);
}
.news-card-main { display: block; color: inherit !important; text-decoration: none !important; }
.img-short {
  position: relative;
  width: 100%;
  height: auto !important;
  aspect-ratio: 1.58 / 1;
  flex: 0 0 auto;
  overflow: hidden;
  background: #e1eaf4;
}
.img-short > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
  transition: transform .4s ease;
}
.news-card:hover .img-short > img { transform: scale(1.04); }
.news-category {
  position: absolute;
  bottom: 11px;
  left: 12px;
  z-index: 1;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 5px;
  color: #fff;
  background: rgba(7, 28, 62, .84);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.img-short-title { display: none; }
.short-desc {
  height: auto !important;
  min-height: 88px;
  padding: 14px 16px 12px;
  color: var(--m-text);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.42;
}
.short-desc h3, .short-desc p { margin: 0; color: var(--m-text) !important; font: inherit; }
.short-bott {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 11px 15px;
  border-top: 1px solid #edf1f6;
  color: var(--m-muted);
  background: #fff;
  font-size: 10px;
}
.short-bott time { margin-left: auto; white-space: nowrap; }
.short-bott a.news-category-link { color: var(--m-blue) !important; font-weight: 800; text-decoration: none; }
.news-views { white-space: nowrap; }
.navigation-holder { grid-column: 1 / -1; height: auto; margin: 10px 0 35px; }
.navigation { display: inline-flex; align-items: center; gap: 5px; }
.navigation span, .navigation a, .navigation b {
  min-width: 38px;
  height: 38px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--m-line);
  border-radius: 9px;
  color: var(--m-ink);
  background: #fff;
  line-height: 36px;
}
.navigation b { border-color: var(--m-blue); color: #fff; background: var(--m-blue); }

/* Mojo API listings are grouped at the bottom of the homepage/article */
.mojo-section {
  width: 100%;
  margin: 38px auto 12px;
  padding: 22px 24px 26px;
  overflow: hidden;
  border: 1px solid #dfeafa;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #edf6ff);
  box-shadow: 0 8px 28px rgba(10, 29, 58, .06);
}
.mojo-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.mojo-section-head > div { display: flex; align-items: baseline; gap: 12px; }
.mojo-kicker { color: var(--m-blue); font-size: 15px; font-weight: 900; letter-spacing: -.03em; }
.mojo-section-head h2 { margin: 0; color: var(--m-ink); font-size: 18px; font-weight: 800; }
.mojo-section-head > a { color: var(--m-blue); font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.mojo-section .mojo-wrapper { margin: 0; }
.mojo-section .mojo-swiper { padding: 4px 2px 10px; overflow: hidden; }
.mojo-section .mojo-swiper .swiper-wrapper { align-items: stretch; }
.mojo-section .mojo-swiper .swiper-slide { height: auto; }
.mojo-section .mojo-card {
  height: 100%;
  min-height: 250px;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(10,29,58,.06);
}
.mojo-section .mojo-card:hover { transform: translateY(-3px); }
.mojo-section .mojo-img { height: 175px; background-position: center; }
.mojo-section .mojo-price { border-radius: 7px; background: var(--m-blue); }
.mojo-section .mojo-title { color: var(--m-ink); font-size: 13px; line-height: 1.4; }
.mojo-section .mojo-prev, .mojo-section .mojo-next { top: 92px; border: 1px solid var(--m-line); }
.mojo-section .mojo-prev::before, .mojo-section .mojo-next::before { border-color: var(--m-blue); }

/* Article page: readable story + topic and latest-news sidebar */
.fullstory-container, .article-after-content {
  width: min(1320px, calc(100% - 40px)) !important;
  max-width: 1320px !important;
  margin: 28px auto 0;
  padding: 0 !important;
}
.fullstory-container > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 28px;
  margin: 0;
}
.fullstory-container .col-lg-8, .fullstory-container .col-lg-4 {
  float: none;
  width: auto;
  min-width: 0;
  padding: 0;
}
.fullstory-container .col-lg-4 { display: block !important; }
.fs-main, .full-article { min-width: 0; }
.full-article {
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid var(--m-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(10,29,58,.045);
}
.article-breadcrumb { margin: 0 0 12px; color: var(--m-muted); font-size: 11px; }
.article-breadcrumb a { color: var(--m-blue); text-decoration: none; }
.full-title { margin: 0 0 15px; color: var(--m-ink); font-size: clamp(28px, 3vw, 42px); font-weight: 850; line-height: 1.16; letter-spacing: -.035em; }
.full-meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 22px; color: var(--m-muted); font-size: 12px; }
.full-meta i { margin-right: 5px; color: var(--m-blue); }
.full-image { margin: 0 0 26px; overflow: hidden; border-radius: 12px; background: #edf2f8; }
.full-image img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; }
.full-body { color: #26364b; font-size: 17px; line-height: 1.8; }
.full-body p { margin: 0 0 1.25em; }
.full-body img { max-width: 100%; height: auto; border-radius: 10px; }
.full-body iframe { max-width: 100%; }
.full-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0; }
.full-tags a { padding: 5px 10px; border-radius: 20px; color: var(--m-blue) !important; background: #edf5ff; font-size: 11px; text-decoration: none; }
.edit-info { padding: 12px 14px; border-left: 3px solid var(--m-cyan); border-radius: 0 8px 8px 0; color: var(--m-muted); background: #f1f8fc; font-size: 12px; }
.story-sidebar { position: sticky; top: 20px; display: grid; gap: 18px; }
.sidebar-panel { padding: 18px; border: 1px solid var(--m-line); border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(10,29,58,.045); }
.sidebar-panel h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: var(--m-ink); font-size: 16px; font-weight: 850; }
.sidebar-panel h2::before { width: 4px; height: 20px; border-radius: 4px; background: var(--m-cyan); content: ""; }
.topic-list { margin: 0; padding: 0; list-style: none; }
.topic-list li { padding: 10px 0; border-bottom: 1px solid #edf1f6; }
.topic-list li:last-child { border-bottom: 0; }
.topic-list a { color: #26364b; font-size: 12px; font-weight: 700; line-height: 1.45; text-decoration: none; }
.topic-list a:hover { color: var(--m-blue); }
.scroll-news { max-height: 530px; overflow: auto; }
.scroll-news ul { margin: 0; padding: 0; list-style: none; }
.scroll-news li { padding: 10px 0; border-bottom: 1px solid #edf1f6; }
.scroll-news li:last-child { border-bottom: 0; }
.scroll-news a { color: #26364b; font-size: 12px; font-weight: 650; line-height: 1.45; text-decoration: none; }
.scroll-news a:hover { color: var(--m-blue); }
.article-after-content { margin-top: 34px; }
.article-latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-latest .editorial-section-title, .article-featured .editorial-section-title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.section-index { color: var(--m-blue); font-size: 13px; font-weight: 900; letter-spacing: .05em; }
.editorial-section-title h2 { margin: 0; color: var(--m-ink); font-size: 21px; font-weight: 850; }
.section-rule { flex: 1; height: 1px; background: var(--m-line); }
.section-caption { color: var(--m-muted); font-size: 11px; font-weight: 750; }
.article-featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.article-featured > .editorial-section-title { grid-column: 1 / -1; }
.article-featured .short-desc { min-height: 66px; font-size: 14px; }
.article-featured .img-short { aspect-ratio: 1.7 / 1; }
.story-mojo-section { margin-top: 36px; }

/* Footer, search and scroll-to-top */
.footer {
  position: relative;
  z-index: 40;
  min-height: 0;
  margin: 42px 0 0;
  padding: 0;
  background: linear-gradient(110deg, #071a39, #0b2c60) !important;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1320px, calc(100% - 40px));
  max-width: 1320px;
  padding: 25px 0;
  color: #d6e4f7;
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.8;
}
.footer .footer-img { width: auto !important; }
.footer .median-brand { gap: 8px; }
.footer .median-mark { width: 38px; height: 38px; }
.footer .median-name { font-size: 23px; }
.footer .median-tagline { font-size: 8px; }
.footer-text { color: #d6e4f7; }
.footer-text a { color: #fff; }
.scrollup { z-index: 1000; background: var(--m-blue) !important; box-shadow: 0 6px 20px rgba(21,84,209,.25); }
.scrollup:hover { background: var(--m-blue-deep) !important; }

@media (max-width: 1670px) {
  .side-banner { display: none !important; }
  #mains.container, .fullstory-container, .article-after-content { width: min(1320px, calc(100% - 32px)) !important; }
}
@media (max-width: 1199px) {
  .main-top { padding: 11px 18px; }
  .main-top .wrap { min-height: 60px; gap: 16px; }
  .median-tagline { display: none; }
  .nav-wrap { padding: 0 14px !important; }
  .nav li a { padding: 0 6px; font-size: 10px; }
  .slider-container { grid-template-columns: minmax(0, 1fr) 285px; gap: 14px; }
  .slider-container .swiper, .swiper.mySwiper { height: 380px !important; }
  #dle-content { gap: 16px; }
  .short-desc { min-height: 82px; padding: 12px; font-size: 14px; }
  .fullstory-container > .row { grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; }
}
@media (max-width: 991px) {
  .main-top .weather_widget { display: none !important; }
  .main-top .wrap { justify-content: space-between; }
  .nav-wrap { min-height: 52px; }
  .nav { min-height: 52px; }
  .nav-btn { display: block; min-height: 52px; padding: 5px 10px; }
  .nav-btn img { width: 30px !important; height: 30px !important; }
  .nav ul {
    position: absolute;
    top: 52px;
    right: 0;
    left: 0;
    z-index: 200;
    display: none;
    max-height: calc(100vh - 170px);
    padding: 8px;
    overflow-y: auto;
    border-radius: 0 0 12px 12px;
    background: var(--m-blue-deep);
    box-shadow: 0 14px 26px rgba(5,25,60,.25);
  }
  .nav ul.active { display: block; }
  .nav li { float: none; }
  .nav li a { padding: 0 14px; color: #fff !important; line-height: 42px; font-size: 13px; }
  .nav li a:hover { color: #fff !important; background: #ffffff16 !important; }
  .nav li a::after { display: none; }
  .searchblock { margin-left: auto; }
  .ticker { padding: 0 14px; }
  #mains.container, .fullstory-container, .article-after-content { width: calc(100% - 28px) !important; }
  .slider-wrapper { margin: 20px auto 24px; }
  .slider-container { grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; }
  .slider-container .swiper, .swiper.mySwiper { height: 330px !important; border-radius: 12px; }
  .slider-ad-card { min-height: 300px; padding: 20px; border-radius: 12px; }
  .slider-ad-card strong { font-size: 22px; }
  #dle-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fullstory-container > .row { grid-template-columns: minmax(0, 1fr); }
  .fullstory-container .col-lg-4 { display: none !important; }
  .article-latest-grid, .article-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer .container { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .main-top { padding: 9px 14px; }
  .main-top .wrap { min-height: 52px; }
  .median-mark { width: 38px; height: 38px; }
  .median-name { font-size: 26px; }
  .main-top .social_menu { display: none !important; }
  .nav-wrap { padding: 0 12px !important; }
  .nav-btn { padding-left: 0; }
  .mobile-topbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
  .ticker { min-height: 38px; padding: 0 12px; }
  .ticker__inner { min-height: 38px; gap: 9px; }
  .ticker-label { padding: 4px 7px; font-size: 8px; }
  .ticker__wrap a { font-size: 10px; }
  .slider-wrapper { margin: 14px auto 20px; }
  .slider-container { display: flex !important; flex-direction: column; gap: 12px; }
  .slider-container .swiper, .swiper.mySwiper { height: clamp(280px, 72vw, 390px) !important; }
  .slide-title { right: 16px !important; bottom: 22px !important; left: 16px !important; font-size: clamp(20px, 5vw, 27px) !important; }
  .slider-ad-card { min-height: 150px; padding: 18px; }
  .slider-ad-card .ad-orbit { display: none; }
  .slider-ad-card strong { max-width: 250px; font-size: 20px; }
  .slider-ad-card p { margin: 8px 0 12px; font-size: 12px; }
  .slider-ad-card a { padding: 9px 12px; }
  .slider-ad-card small { right: 14px; bottom: 12px; }
  #dle-content { gap: 12px; }
  .img-short { aspect-ratio: 1.28 / 1; }
  .short-desc { min-height: 74px; padding: 10px; font-size: 13px; }
  .short-bott { flex-wrap: wrap; gap: 6px; padding: 9px 10px; font-size: 9px; }
  .short-bott time { width: 100%; margin-left: 0; }
  .news-category { bottom: 7px; left: 7px; padding: 4px 6px; font-size: 8px; }
  .mojo-section { margin-top: 24px; padding: 16px 12px 18px; border-radius: 12px; }
  .mojo-section-head { align-items: start; }
  .mojo-section-head > div { display: block; }
  .mojo-section-head h2 { margin-top: 3px; font-size: 15px; }
  .mojo-section-head > a { font-size: 10px; }
  .mojo-section .mojo-img { height: 145px; }
  .fullstory-container, .article-after-content { margin-top: 16px; }
  .full-article { padding: 18px 15px; border-radius: 12px; }
  .full-title { font-size: 27px; }
  .full-meta { gap: 10px; font-size: 10px; }
  .full-body { font-size: 16px; }
  .article-latest-grid, .article-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .editorial-section-title h2 { font-size: 17px; }
  .article-featured .short-desc { min-height: 58px; font-size: 12px; }
  .footer { margin-top: 28px; }
  .footer .container { display: block; width: calc(100% - 28px); padding: 19px 0; text-align: center; }
  .footer .footer-img { display: flex !important; justify-content: center; float: none !important; margin: 0 0 12px; }
}
@media (max-width: 420px) {
  #dle-content { grid-template-columns: 1fr; }
  .article-latest-grid, .article-featured { grid-template-columns: 1fr; }
  .img-short { aspect-ratio: 1.55 / 1; }
  .short-desc { min-height: 60px; }
}
