/* ==========================================================================
   RegionFootball.az — Design System
   1. Tokens (light + dark)
   2. Reset & base
   3. Layout
   4. Header / Nav
   5. Components
   6. Slider
   7. Pages
   8. Footer
   9. Responsive
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* Brend — loqo rəngləri */
  --brand:          #FFC20E;
  --brand-600:      #F0B200;
  --brand-700:      #D99E00;
  --brand-soft:     rgba(255, 194, 14, .14);
  --brand-ink:      #111214;   /* sarı üzərində mətn */

  --ink:            #0D0E10;   /* loqodaki qara */

  /* Səthlər — LIGHT */
  --bg:             #F2F3F5;
  --surface:        #FFFFFF;
  --surface-2:      #F7F8FA;
  --surface-3:      #EDEFF2;
  --surface-inv:    #14161A;

  /* Mətn */
  --text:           #14161A;
  --text-2:         #414751;
  --text-3:         #6E757F;
  --text-inv:       #F4F5F7;

  /* Sərhədlər */
  --border:         #E2E5E9;
  --border-2:       #D3D7DD;

  /* İdman yaşılı — kateqoriya etiketlərinin fonu */
  --sport:          #1E9E52;
  --sport-ink:      #FFFFFF;

  /* Status */
  --success:        #17A24A;
  --danger:         #E23A3A;
  --info:           #2A7BD4;
  --warn:           #E8930C;
  --live:           #E23A3A;

  /* Kölgələr */
  --shadow-1:       0 1px 2px rgba(15, 18, 23, .06);
  --shadow-2:       0 2px 10px rgba(15, 18, 23, .08);
  --shadow-3:       0 12px 34px rgba(15, 18, 23, .14);

  /* Ölçülər — qol.az kimi 1024px mərkəzi konteyner.
     Navbar və topbar tam ekran boyu uzanır, içindəki .wrap isə 1024px-də mərkəzləşir. */
  --wrap:           1024px;
  --side:           300px;      /* sidebar eni */
  --gap:            20px;
  --radius:         10px;
  --radius-sm:      6px;
  --radius-lg:      16px;
  --header-h:       64px;

  /* Tipoqrafiya */
  --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Inter", "Segoe UI", Roboto, Arial, sans-serif;

  /* --- TOPBAR — hər iki rejimdə tünd qalır (brend zolağı) --- */
  --topbar-bg:      #1D2026;
  --topbar-text:    #A8AFB9;
  --topbar-line:    rgba(255,255,255,.12);

  /* --- NAVBAR — TEMAYA GÖRƏ DƏYİŞİR ---
     Light: ağ fon, qara mətn. Dark: qara fon, ağ mətn.
     Loqodaki "REGION" sözü də bu rəngi alır ("FOOTBALL" həmişə sarı qalır). */
  --nav-bg:         #FFFFFF;
  --nav-text:       #14161A;
  --nav-text-dim:   #6E757F;
  --nav-border:     #E2E5E9;
  --nav-tool-bg:    rgba(20, 22, 26, .06);

  /* --- FOOTER — hər iki rejimdə tünd qalır --- */
  --foot-bg:        #14161A;
  --foot-text:      #EDEFF2;
  --foot-text-dim:  #A8AFB9;

  /* --- SABİT ÖLÇÜLƏR — layout admin mətnindən asılı olmasın ---
     Başlıqlar 2 sətirdə "…" ilə bitir, sətirlər sabit hündürlükdədir.
     Beləliklə uzun/qısa başlıq yazılmasından asılı olmayaraq blok hündürlükləri
     həmişə eyni qalır və heç nə "keçmir". */
  --ticker-row:     76px;  /* sidebar-da bir xəbər sətrinin hündürlüyü */
  --clamp:          2;     /* başlıqlarda maksimum sətir sayı */

  --sbw:            0px;   /* scrollbar eni (JS təyin edir) */
  --tr:             .18s ease;
}

/* --- DARK MODE ------------------------------------------------------------ */
html[data-theme="dark"] {
  --bg:             #0C0E11;
  --surface:        #14171B;
  --surface-2:      #1A1E23;
  --surface-3:      #22272E;
  --surface-inv:    #F4F5F7;

  --text:           #E7EAEE;
  --text-2:         #B4BBC4;
  --text-3:         #868E99;
  --text-inv:       #14161A;

  --border:         #262B32;
  --border-2:       #333A43;

  --brand-soft:     rgba(255, 194, 14, .12);

  --sport:          #24B05E;
  --sport-ink:      #06210F;

  --success:        #2FBF63;
  --danger:         #F45858;
  --info:           #4E9BEE;
  --warn:           #F5A623;

  --shadow-1:       0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2:       0 2px 10px rgba(0, 0, 0, .45);
  --shadow-3:       0 12px 34px rgba(0, 0, 0, .55);

  /* Navbar dark rejimdə — topbar və footer dəyişmir */
  --nav-bg:         #0A0C0E;
  --nav-text:       #E7EAEE;
  --nav-text-dim:   #9AA2AC;
  --nav-border:     #1E2329;
  --nav-tool-bg:    rgba(255, 255, 255, .08);

  color-scheme: dark;
}

html[data-theme="light"] { color-scheme: light; }

/* Şəkillər dark rejimdə bir az yumşaldılır — göz yormasın */
html[data-theme="dark"] img:not(.no-dim) { filter: brightness(.92) contrast(1.02); }

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  transition: background-color var(--tr), color var(--tr);
  overflow-x: hidden;
}

/* Tema keçidində "flash" olmaması üçün */
html.theme-anim, html.theme-anim * { transition: background-color .22s ease, border-color .22s ease, color .22s ease !important; }

img, video { max-width: 100%; height: auto; display: block; }

/* SVG-lər öz width/height atributlarını saxlayır.
   Əvvəl burada `height: auto` var idi və atributsuz ikonları nəhəng edirdi. */
svg { max-width: 100%; display: block; flex: none; }

a { color: inherit; text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--brand-700); }
html[data-theme="dark"] a:hover { color: var(--brand); }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-family: var(--font-head); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 2rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; } h5 { font-size: .95rem; } h6 { font-size: .85rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

::selection { background: var(--brand); color: var(--brand-ink); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- BAŞLIQ MƏHDUDLAŞDIRICISI ---
   Başlıq maksimum 2 sətirdə göstərilir və sonunda "…" qoyulur.
   Bu, sərt kəsmə deyil — mətn səliqəli bitir (qol.az və digər xəbər saytlarında
   istifadə olunan standart üsul). Sayəsində uzun başlıq bloku uzatmır. */
.clamp {
  display: -webkit-box;
  -webkit-line-clamp: var(--clamp);
  line-clamp: var(--clamp);
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* Səhifə sonu → footer boşluğu (PC).
   Əvvəl: son bölmə margin 28 + main padding 44 + footer margin 10 = 82px.
   İndi: son elementin margin-i sıfırlanır, main padding 36, footer margin 0 → 36px. */
.main { padding: 20px 0 36px; }
.main .wrap > *:last-child { margin-bottom: 0; }

/* --- Şəbəkələr ---
   .grid-side-left  → ana səhifə 1-ci hissə: sidebar SOLDA, məzmun sağda
   .grid-side-right → daxili səhifələr:      məzmun solda, sidebar SAĞDA */
.grid-side-left {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}
.grid-side-right {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side);
  gap: var(--gap);
  align-items: start;
}
.col-sticky { position: sticky; top: calc(var(--header-h) + 12px); }
.col-sticky > * + * { margin-top: var(--gap); }

/* --- Ana səhifə 1-ci hissə: sol sidebar sağ sütunla EYNİ YERDƏ bitir ---
   Sidebar sütunu tam hündürlüyə uzanır, "Son xəbərlər" lenti isə qalan
   boşluğu doldurur — nəticədə sidebar dəqiq video blokunun altında bitir.
   Bu sütunda `sticky` söndürülür: sütun ekrandan uzun olduğu üçün
   yapışqan davranış onsuz da işləməzdi. */
.grid-side-left { align-items: stretch; margin-bottom: 34px; }

/* --- SİDEBAR HÜNDÜRLÜYÜ SAĞ SÜTUNA BƏRABƏRLƏNİR ---
   PROBLEM: qridin sətir hündürlüyü ƏN UZUN sütuna görə hesablanır.
   Sidebar məzmunu (18 xəbər ≈ 1742px) sağ sütundan (≈1508px) uzun olduğu üçün
   sətri ÖZÜ uzadırdı və sağ sütunun altında boş sahə qalırdı.
   `overflow: hidden` bunu tuta bilmirdi — daşan element yox, sətrin özü böyüyürdü.

   HƏLL: sidebar məzmunu `position: absolute` ilə axından çıxarılır →
   sətir hündürlüyünə HEÇ NƏ əlavə etmir. Sətri yalnız sağ sütun müəyyən edir,
   sidebar isə `inset` ilə həmin hündürlüyü dəqiq doldurur.
   `bottom: 2px` — sağ sütundan 2px qısa bitir (istənilən kimi). */
.grid-side-left > .col-side {
  position: relative; min-height: 0;
}
.grid-side-left > .col-side > .col-sticky {
  position: absolute; inset: 0 0 2px 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* SAĞ SÜTUN MİNİMUM HÜNDÜRLÜYÜ
   Sidebar sağ sütunun hündürlüyünü götürür. Saytda hələ az xəbər olanda
   (məs. yalnız slayder) sağ sütun qısa qalırdı, 250px reklam bütün yeri tuturdu
   və "Son xəbərlər" kartı 0 hündürlüyə düşüb GÖRÜNMÜRDÜ.
   İndi sağ sütun ən azı: reklam + boşluq + lent başlığı/altı + 5 xəbər sətri. */
.grid-side-left > .col-main {
  min-height: calc(250px + var(--gap) + 110px + 5 * var(--ticker-row));
}

/* REKLAM — sabit 300 × 250, nə böyüyür, nə kiçilir */
.grid-side-left > .col-side > .col-sticky > .ad { flex: 0 0 250px; }

/* SON XƏBƏRLƏR kartı qalan bütün boşluğu tutur.
   Sətirlər sabit hündürlükdə (--ticker-row) olduğu üçün neçə sətir sığacağı
   dəqiq bilinir; sığmayanlar lentin öz daxilində sürüşdürülür.
   Beləliklə admin nə qədər uzun başlıq yazsa da:
     · lent nə daşır, nə də altında boş sahə qalır
     · heç bir başlıq yarımçıq kəsilmir (2 sətir + "…") */
.grid-side-left > .col-side > .col-sticky > .card {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
}
.grid-side-left > .col-side > .col-sticky > .card .block-head,
.grid-side-left > .col-side > .col-sticky > .card .ticker-foot { flex: 0 0 auto; }
.grid-side-left > .col-side > .col-sticky > .card .ticker {
  position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto;
}

/* Lentin altında zərif solğunluq — "aşağı sürüşdürülə bilər" işarəsi.
   Yarımçıq görünən sətir kəsik yox, davam edən siyahı kimi oxunur. */
.grid-side-left > .col-side > .col-sticky > .card .ticker::after {
  content: ""; position: sticky; bottom: 0; left: 0; right: 0;
  display: block; height: 26px; margin-top: -26px; pointer-events: none;
  background: linear-gradient(to top, var(--surface), transparent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.card-pad { padding: 16px; }

/* QEYD: burada `.card + .card { margin-top }` qaydası YOXDUR.
   O qayda qrid daxilində 2-ci, 3-cü, 4-cü kartlara da tətbiq olunurdu və
   onları aşağı itələyirdi — nəticədə 1-ci kart digərlərindən yuxarıda dayanırdı.
   Ardıcıl kartlar arasında məsafə `.col-sticky > * + *` və ya
   səhifədə birbaşa `style="margin-top:var(--gap)"` ilə verilir. */

/* Qrid daxilində kartlar eyni hündürlükdə olsun */
.g2 > .card, .g3 > .card, .g4 > .card { height: 100%; }

/* Blok başlığı — sarı aksentli */
.block-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.block-head h2, .block-head h3 { margin: 0; font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; }
.block-head::before {
  content: ""; width: 4px; height: 17px; border-radius: 3px;
  background: var(--brand); flex: none;
}
.block-head .more { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.block-head .more:hover { color: var(--brand-700); }
html[data-theme="dark"] .block-head .more:hover { color: var(--brand); }

/* "Hamısı" linkləri — mətn və ox ikonu eyni xətdə dayansın.
   Baza qaydada `svg { display:block }` olduğu üçün inline-flex olmadan
   ikon aşağı düşür və düzülüş pozulurdu. */
.block-head .more,
.section-head .more {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.block-head .more svg,
.section-head .more svg { width: 13px; height: 13px; margin-top: 1px; }

.section { margin-bottom: 28px; }
.section-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--border);
}
.section-head h2 { margin: 0; font-size: 1.15rem; position: relative; }
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: -12px;
  width: 100%; height: 2px; background: var(--brand);
}
.section-head .more { margin-left: auto; font-size: .8rem; font-weight: 700; color: var(--text-3); }

/* ==========================================================================
   4. HEADER / NAV
   ========================================================================== */

/* --- Üst zolaq: tarix, canlı hesablar, sosial, tema --- */
/* Topbar hər iki rejimdə tünd qalır — yalnız navbar temaya görə dəyişir */
.topbar {
  background: var(--topbar-bg);
  color: var(--topbar-text);
  font-size: .78rem;
}
.topbar .icon-btn { color: var(--topbar-text); }
.topbar .icon-btn:hover { background: var(--brand); color: var(--brand-ink); }
.topbar .wrap { display: flex; align-items: center; gap: 14px; height: 34px; }
.topbar-date { display: flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; }
.topbar-date svg { width: 13px; height: 13px; opacity: .7; }
.topbar-date .date-short { display: none; }   /* mobildə açılır */
.topbar-slogan {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-left: 14px; border-left: 1px solid var(--topbar-line);
}
.topbar-right { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px;
  color: var(--nav-text-dim); transition: var(--tr);
}
.icon-btn:hover { background: var(--brand); color: var(--brand-ink); }
.icon-btn svg { width: 15px; height: 15px; }

/* --- Əsas header --- */
.header {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  transition: background-color var(--tr), border-color var(--tr);
}
/* 3 hissəli header: SOL loqo | ORTA menyu | SAĞ alətlər.
   Flex istifadə olunur, grid yox: menyu LOQO İLƏ ALƏTLƏRİN ARASINDA mərkəzləşir.
   (grid `1fr auto 1fr` menyunu səhifənin mərkəzinə qoyurdu — loqo alətlərdən
   enli olduğu üçün menyu vizual olaraq sağa sürüşmüş görünürdü.) */
.header-inner {
  display: flex;
  align-items: center; gap: 12px;
  height: var(--header-h);
  min-width: 0;
}
.header-left { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-width: 0; }

/* Loqo — sıxıla bilər, amma nişan heç vaxt kiçilmir */
.logo { display: flex; align-items: center; gap: 9px; flex: 0 1 auto; min-width: 0; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.logo-text b {
  font-family: var(--font-head); font-size: 1.12rem; font-weight: 900;
  letter-spacing: -.02em; color: var(--nav-text); white-space: nowrap;
  transition: color var(--tr);
}
.logo-text b i { font-style: normal; color: var(--brand); }
.logo-text span {
  font-size: .6rem; color: var(--nav-text-dim); letter-spacing: .12em;
  text-transform: uppercase; margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* --- Naviqasiya ---
   .nav-wrap sıxıla bilən (flex:1 1 auto + min-width:0) konteynerdir.
   Bu, .header-tools-un (axtarış + tema düyməsi) heç bir halda ekrandan
   kənara itələnməməsini təmin edir — menyu bəndi əlavə olunsa belə.
   Dropdown-ların kəsilməməsi üçün burada overflow:hidden İSTİFADƏ OLUNMUR. */
/* flex:1 → loqo ilə alətlər arasındaki bütün boşluğu tutur,
   justify-content:center → menyu həmin boşluğun tam ortasında dayanır. */
.nav-wrap { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.nav { display: flex; align-items: center; flex-wrap: nowrap; gap: 0; margin: 0; padding: 0; }
.nav > li { list-style: none; position: relative; flex: none; }

.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 0 8px; height: var(--header-h);
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0; color: var(--nav-text); white-space: nowrap;
  position: relative;
}
.nav-link:hover { color: var(--brand); }
.nav-link::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 0;
  height: 3px; background: var(--brand); border-radius: 3px 3px 0 0;
  transform: scaleX(0); transform-origin: center; transition: transform var(--tr);
}
.nav-link:hover::after, .nav > li.is-active > .nav-link::after { transform: scaleX(1); }
.nav > li.is-active > .nav-link { color: var(--brand); }
.nav-link .caret { width: 9px; height: 9px; opacity: .6; transition: transform var(--tr); }
.nav > li:hover .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 208px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-3); padding: 6px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--tr), transform var(--tr), visibility var(--tr);
  border-top: 3px solid var(--brand);
}
.nav > li:hover > .dropdown, .nav > li:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: .84rem; font-weight: 600; color: var(--text-2);
}
.dropdown a:hover { background: var(--brand-soft); color: var(--brand-700); }
html[data-theme="dark"] .dropdown a:hover { color: var(--brand); }

/* Header sağ alətlər — heç vaxt sıxılmır və sıradan çıxmır */
.header-tools { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-left: auto; }

.tool-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px;
  color: var(--nav-text); background: var(--nav-tool-bg);
  transition: var(--tr);
}
.tool-btn:hover { background: var(--brand); color: var(--brand-ink); }
.tool-btn svg { width: 17px; height: 17px; }

/* Tema dəyişdiricisi */
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle .i-sun, .theme-toggle .i-moon {
  position: absolute; transition: transform .32s cubic-bezier(.4,0,.2,1), opacity .2s;
}
html[data-theme="light"] .theme-toggle .i-sun  { transform: translateY(0);     opacity: 1; }
html[data-theme="light"] .theme-toggle .i-moon { transform: translateY(140%);  opacity: 0; }
html[data-theme="dark"]  .theme-toggle .i-sun  { transform: translateY(-140%); opacity: 0; }
html[data-theme="dark"]  .theme-toggle .i-moon { transform: translateY(0);     opacity: 1; }

/* Burger */
.burger { display: none; }
.burger span { display: block; width: 19px; height: 2px; background: currentColor; border-radius: 2px; transition: var(--tr); }
.burger span + span { margin-top: 4px; }

/* --- Axtarış overlay --- */
.search-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(10, 12, 15, .72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 14vh 16px 16px;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-box { width: 100%; max-width: 640px; }
.search-box form {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow-3);
}
.search-box input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font-size: 1.05rem; padding: 12px 0; color: var(--text);
}
.search-box input::placeholder { color: var(--text-3); }
.search-box button[type="submit"] {
  flex: none; padding: 12px 22px; border-radius: 12px;
  background: var(--brand); color: var(--brand-ink);
  font-weight: 800; font-size: .88rem;
}
.search-box button[type="submit"]:hover { background: var(--brand-600); }
.search-hint { margin-top: 12px; color: rgba(255,255,255,.62); font-size: .8rem; text-align: center; }
.search-hint kbd {
  background: rgba(255,255,255,.14); border-radius: 4px; padding: 1px 6px;
  font-family: inherit; font-size: .75rem;
}

/* --- Mobil menyu --- */
.mobile-menu {
  position: fixed; inset: 0 auto 0 0; z-index: 500;
  width: min(88vw, 340px); background: var(--surface);
  border-right: 1px solid var(--border);
  transform: translateX(-102%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.mobile-menu.is-open { transform: none; }
.mm-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
}
.mm-head .logo-text b { font-size: 1rem; }
.mm-close { margin-left: auto; color: var(--nav-text); }
.mm-head .logo-text b { color: var(--nav-text); }
.mm-close svg { width: 20px; height: 20px; }
.mm-body { flex: 1; overflow-y: auto; padding: 8px 0 20px; }
.mm-body > ul { list-style: none; padding: 0; margin: 0; }
.mm-body a, .mm-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 12px 18px; font-size: .92rem; font-weight: 700;
  color: var(--text); border-bottom: 1px solid var(--border);
  text-align: left;
}
.mm-body a:hover, .mm-toggle:hover { background: var(--brand-soft); color: var(--brand-700); }
html[data-theme="dark"] .mm-body a:hover { color: var(--brand); }
.mm-toggle .caret { margin-left: auto; width: 11px; height: 11px; transition: transform var(--tr); }
.mm-item.is-open .mm-toggle .caret { transform: rotate(180deg); }
.mm-item.is-open .mm-toggle { color: var(--brand-700); }
html[data-theme="dark"] .mm-item.is-open .mm-toggle { color: var(--brand); }
.mm-sub { list-style: none; padding: 0; margin: 0; display: none; background: var(--surface-2); }
.mm-item.is-open .mm-sub { display: block; }
.mm-sub a { padding-left: 34px; font-weight: 600; font-size: .87rem; color: var(--text-2); }
.mm-foot { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.mm-foot .icon-btn { width: 34px; height: 34px; background: var(--surface-2); color: var(--text-2); }
.mm-foot .icon-btn:hover { background: var(--brand); color: var(--brand-ink); }

.backdrop {
  position: fixed; inset: 0; z-index: 450; background: rgba(8,10,13,.55);
  opacity: 0; visibility: hidden; transition: opacity .24s, visibility .24s;
}
.backdrop.is-open { opacity: 1; visibility: visible; }

/* Scroll kilidi — JS body-yə padding-right verir ki, səhifə sıçramasın (bax: main.js lockScroll) */
body.no-scroll { overflow: hidden; }
/* Sabit elementlər də scrollbar eni qədər sürüşsün */
.to-top { right: calc(18px + var(--sbw, 0px)); }

/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* --- Kateqoriya etiketi --- */
.tag {
  display: inline-block; padding: 2px 7px; border-radius: 4px;
  font-size: .66rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; line-height: 1.6;
}
.tag-brand   { background: var(--brand);   color: var(--brand-ink); }
.tag-ink     { background: var(--surface-3); color: var(--text-2); }
.tag-success { background: var(--success);  color: #fff; }
.tag-danger  { background: var(--danger);   color: #fff; }
.tag-info    { background: var(--info);     color: #fff; }
.tag-warn    { background: var(--warn);     color: #1a1300; }

.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .72rem; color: var(--text-3); }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.meta time { font-variant-numeric: tabular-nums; }
.meta .views { display: inline-flex; align-items: center; gap: 4px; }
.meta .views svg { width: 12px; height: 12px; }

/* --- Media thumb --- */
.thumb {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  background: var(--surface-3); flex: none;
}
.thumb::after { content: ""; display: block; padding-top: 62.5%; }
.thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .45s cubic-bezier(.2,.6,.2,1);
}
/* Foto üzərindəki kateqoriya etiketi — HƏMİŞƏ idman yaşılı,
   kateqoriyanın öz rəng tonundan asılı olmayaraq (vahid görünüş üçün). */
.thumb-tag { position: absolute; left: 8px; top: 8px; z-index: 2; }
.thumb-tag .tag {
  background: var(--sport);
  color: var(--sport-ink);
  box-shadow: 0 1px 6px rgba(0,0,0,.28);
}
/* Play işarəsi — xəbərin içində video olduğunu bildirir (videoplayer deyil) */
.thumb-play {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
  transition: var(--tr);
}
.thumb-play i {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); box-shadow: 0 4px 16px rgba(0,0,0,.35);
  transition: transform var(--tr);
}
.thumb-play svg { width: 18px; height: 18px; margin-left: 2px; }

.thumb-count {
  position: absolute; right: 7px; bottom: 7px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 4px; background: rgba(8,10,13,.82);
  color: #fff; font-size: .68rem; font-weight: 700;
}
.thumb-count svg { width: 11px; height: 11px; }

/* --- Xəbər kartı (şəkil üstdə) --- */
.ncard { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr); }
.ncard:hover { box-shadow: var(--shadow-2); border-color: var(--border-2); } /* yerindən tərpənmir (06.10.2026) */
/* .ncard:hover .thumb img — şəkil zoom-u ləğv edildi (06.10.2026) */
.ncard .thumb { border-radius: 0; }
.ncard-body { padding: 12px 14px 15px; }

/* Meta sətri: SOLDA saat, SAĞDA oxunma sayı */
.ncard-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 7px;
  font-size: .73rem; color: var(--text-3);
}
.ncard-meta time { font-variant-numeric: tabular-nums; }
.ncard-meta .views { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }

/* Başlıq — meta-nın altında, iri şriftlə.
   HƏMİŞƏ 2 sətir yer tutur: qısa başlıq da 2 sətirlik hündürlük saxlayır,
   uzun başlıq isə 2 sətirdə "…" ilə bitir. Nəticədə bütün kartlar eyni hündürlükdə. */
.ncard-title {
  margin: 0; font-size: 1.06rem; font-weight: 700;
  line-height: 1.34; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(2 * 1.34em);
}
.ncard:hover .ncard-title { color: var(--brand-700); }
html[data-theme="dark"] .ncard:hover .ncard-title { color: var(--brand); }
.ncard.is-lg .ncard-title { font-size: 1.28rem; }
.ncard.is-sm .ncard-title { font-size: .95rem; }

/* --- Sətir kartı (şəkil solda) --- */
.rowcard {
  display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 13px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
  align-items: start;
}
.rowcard:last-child { border-bottom: 0; }
.rowcard .thumb { width: 128px; }
/* .rowcard:hover .thumb img — şəkil zoom-u ləğv edildi (06.10.2026) */
.rowcard h3 {
  margin: 6px 0 6px; font-size: .95rem; font-weight: 700; line-height: 1.38;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.rowcard:hover h3 { color: var(--brand-700); }
html[data-theme="dark"] .rowcard:hover h3 { color: var(--brand); }
.rowcard p { margin: 0 0 6px; font-size: .81rem; color: var(--text-3); }
.rowcard.is-lg { grid-template-columns: 220px minmax(0,1fr); gap: 18px; padding: 18px 0; }
.rowcard.is-lg .thumb { width: 220px; }
.rowcard.is-lg h3 { font-size: 1.16rem; }

/* --- Ticker (Son xəbərlər) --- */
/* --- SON XƏBƏRLƏR lenti ---
   HƏR SƏTİR SABİT HÜNDÜRLÜKDƏDİR (--ticker-row). Başlıq 2 sətirdə "…" ilə bitir.
   Nəticə: admin uzun və ya qısa başlıq yazsa da lentin hündürlüyü dəyişmir və
   ümumi layout həmişə eyni qalır. */
.ticker { overflow-y: auto; }
.ticker ul { list-style: none; margin: 0; padding: 0; }
.ticker li { border-bottom: 1px solid var(--border); }
.ticker li:last-child { border-bottom: 0; }
.ticker a {
  display: flex; flex-direction: column; justify-content: center;
  height: var(--ticker-row);          /* sabit sətir hündürlüyü */
  padding: 0 15px; transition: var(--tr);
}
.ticker a:hover { background: var(--brand-soft); }
.ticker .t {
  display: block; font-size: .7rem; font-weight: 800; color: var(--brand-700);
  font-variant-numeric: tabular-nums; margin-bottom: 4px; letter-spacing: .02em;
  flex: none;
}
html[data-theme="dark"] .ticker .t { color: var(--brand); }
.ticker .h {
  font-size: .84rem; font-weight: 600; line-height: 1.4; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.ticker a:hover .h { color: var(--brand-700); }
html[data-theme="dark"] .ticker a:hover .h { color: var(--brand); }
.ticker-foot { padding: 12px 15px; border-top: 1px solid var(--border); }

/* --- Redaktor seçimi (sol sidebar) --- */
.pick {
  display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 11px;
  padding: 12px 15px; border-bottom: 1px solid var(--border); align-items: start;
}
.pick:last-child { border-bottom: 0; }
.pick:hover { background: var(--brand-soft); }
.pick .thumb { width: 92px; border-radius: var(--radius-sm); }
/* .pick:hover .thumb img — şəkil zoom-u ləğv edildi (06.10.2026) */
.pick-body { min-width: 0; }
.pick .h {
  font-size: .83rem; font-weight: 700; line-height: 1.38; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.pick:hover .h { color: var(--brand-700); }
html[data-theme="dark"] .pick:hover .h { color: var(--brand); }
.pick time { display: block; margin-top: 5px; font-size: .7rem; color: var(--text-3); }

/* --- VİDEO KARTI — başlıq fotonun içində, kölgəli alt hissədə ---
   Slayderlə eyni məntiq: kartın hündürlüyü yalnız şəkil nisbətindən asılıdır,
   başlığın uzunluğu bloku uzatmır. Bu, sol sidebar-ın dəqiq bu blokda
   bitməsini mümkün edir. */
.vcard {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); background: var(--surface-3);
  box-shadow: var(--shadow-1); transition: box-shadow var(--tr), transform var(--tr);
}
.vcard:hover { box-shadow: var(--shadow-2); } /* yerindən tərpənmir (06.10.2026) */
.vcard-media { position: relative; }
.vcard-media::after { content: ""; display: block; padding-top: 56%; }
.vcard-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .45s cubic-bezier(.2,.6,.2,1);
}
/* .vcard:hover .vcard-media img — şəkil zoom-u ləğv edildi (06.10.2026) */
.vcard-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,10,13,.94) 0%, rgba(8,10,13,.70) 28%, rgba(8,10,13,.10) 62%, transparent 100%);
}
.vcard .thumb-tag { z-index: 4; }
.vcard .thumb-play { z-index: 3; }
.vcard:hover .thumb-play i { transform: scale(1.1); }
/* Play dairəsi mətn blokunun üstünə düşməsin — bir az yuxarı sürüşdürülür */
.vcard .thumb-play { align-items: start; padding-top: 22%; }
.vcard.is-sm .thumb-play i { width: 34px; height: 34px; }
.vcard.is-sm .thumb-play svg { width: 14px; height: 14px; }
.vcard-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 20px 22px 20px; color: #fff;
}
.vcard-title {
  margin: 0 0 6px; font-size: 1.28rem; font-weight: 900;
  line-height: 1.28; color: #fff; letter-spacing: -.015em;
  max-width: 40ch; text-shadow: 0 2px 14px rgba(0,0,0,.55);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.vcard:hover .vcard-title { color: var(--brand); }
.vcard-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; font-size: .73rem; color: rgba(255,255,255,.78);
  font-variant-numeric: tabular-nums;
}
.vcard-meta .views { display: inline-flex; align-items: center; gap: 4px; }

/* Kiçik video kartı */
.vcard.is-sm .vcard-body { padding: 12px 13px 12px; }
.vcard.is-sm .vcard-title { font-size: .92rem; font-weight: 800; margin-bottom: 4px; }
.vcard.is-sm .vcard-meta { font-size: .68rem; }

/* Sağ sütunun SON bloku — alt boşluğu yoxdur ki, sol sidebar
   dəqiq video kartının alt kənarında bitsin (artıq 28px quyruq qalmasın). */
.section-video { margin-bottom: 0; }

/* --- Video lenti: böyük videonun altında kiçiklər --- */
.video-strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-top: 12px;
}

/* --- Düymələr --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 9px;
  font-size: .86rem; font-weight: 800; letter-spacing: .01em;
  transition: var(--tr); border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-600); color: var(--brand-ink); }
.btn-dark { background: var(--surface-inv); color: var(--text-inv); }
.btn-dark:hover { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { background: var(--surface); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-soft); }
html[data-theme="dark"] .btn-ghost:hover { color: var(--brand); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .8rem; }

/* --- "Daha çox xəbər" düyməsi (JS ilə yükləmə) --- */
.load-more-wrap { margin-top: 24px; }
.load-more { position: relative; }
.load-more-spin { display: none; }
.load-more.is-busy { pointer-events: none; opacity: .85; }
.load-more.is-busy .load-more-label { visibility: hidden; }
.load-more.is-busy .load-more-icon  { display: none; }
.load-more.is-busy .load-more-spin {
  display: block; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid rgba(17,18,20,.28); border-top-color: var(--brand-ink);
  border-radius: 50%; animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Yeni əlavə olunan kartlar yumşaq görünür */
.is-new { animation: card-in .34s ease both; }
@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* --- Banner yeri --- */
/* Boş reklam sahəsi — "Sizin reklam burada" + əlaqə nömrəsi */
.ad {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 20px 16px;
  border-radius: var(--radius);
  background: var(--surface-2); border: 1px dashed var(--border-2);
  overflow: hidden;
}
.ad-title {
  font-family: var(--font-head);
  font-size: 1.28rem; font-weight: 900; line-height: 1.2;
  letter-spacing: -.02em; color: var(--text);
}
.ad-phone {
  display: inline-block;
  font-size: .95rem; font-weight: 800; color: var(--brand-700);
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.ad-phone:hover { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] .ad-phone { color: var(--brand); }

.ad-300 { min-height: 250px; }
/* Enli banner — məzmun bir sırada */
.ad-wide {
  min-height: 90px; margin-bottom: var(--gap);
  flex-direction: row; gap: 16px; flex-wrap: wrap;
}
.ad-wide .ad-title { font-size: 1.1rem; }

/* --- STANDART BANNER ÖLÇÜLƏRİ ---
   Hər biri real ölçüdə, mərkəzdə dayanır; dar ekranda enə sığır. */
.ad-728 {                              /* 728 × 90 — PC, məqalədən sonra */
  width: 100%; max-width: 728px; height: 90px; margin: 0 auto;
  flex-direction: row; gap: 18px; padding: 0 20px;
}
.ad-728 .ad-title { font-size: 1.15rem; }
.ad-320 {                              /* 320 × 100 — mobil, səhifənin başı */
  width: 100%; max-width: 320px; height: 100px; margin: 0 auto;
  gap: 5px; padding: 0 14px;
}
.ad-320 .ad-title { font-size: 1.05rem; }
.ad-320 .ad-phone { font-size: .86rem; }
.ad-300-fixed {                        /* 300 × 250 — mobil, məqalədən sonra */
  width: 100%; max-width: 300px; height: 250px; min-height: 0; margin: 0 auto;
}

/* Reklam yerləri (slot) — banner ətrafında sabit boşluq */
.ad-slot { display: flex; justify-content: center; }
.ad-slot-top   { margin: 0 0 14px; }
/* Məqalə sütununun içində: yuxarıda və aşağıda qrid boşluğu qədər məsafə,
   banner sütunun tam enini tutur → xəbər bloku ilə eyni hizada */
.ad-slot-after { margin: var(--gap) 0 26px; }
.ad-slot-after .ad-728 { max-width: none; }

/* Cihaza görə göstərmə — hədd 900px (sidebar-ın alta keçdiyi nöqtə) */
.only-mobile, .ad.only-mobile { display: none; }

/* --- Səhifələmə --- */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 26px; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); font-size: .85rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pager a:hover { border-color: var(--brand); color: var(--brand-700); background: var(--brand-soft); }
html[data-theme="dark"] .pager a:hover { color: var(--brand); }
.pager .is-current { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pager .is-dots { border: 0; background: none; color: var(--text-3); }

/* --- Breadcrumb --- */
.crumbs { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: .76rem; color: var(--text-3); margin-bottom: 14px; }
.crumbs a { font-weight: 600; }
.crumbs a:hover { color: var(--brand-700); }
html[data-theme="dark"] .crumbs a:hover { color: var(--brand); }
.crumbs svg { width: 11px; height: 11px; opacity: .55; }
.crumbs .is-current { color: var(--text); font-weight: 600; }

/* --- Tablar --- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button {
  flex: none; padding: 11px 15px; font-size: .84rem; font-weight: 700;
  color: var(--text-3); border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .is-active { color: var(--brand-700); border-bottom-color: var(--brand); }
html[data-theme="dark"] .tabs .is-active { color: var(--brand); }

/* --- Stat qutusu (haqqımızda / reklam səhifələri) --- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat {
  padding: 15px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border);
}
.stat b {
  display: block; font-size: 1.45rem; font-weight: 900; line-height: 1.1;
  color: var(--brand-700); font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .stat b { color: var(--brand); }
.stat span { font-size: .73rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }

/* --- Sadə cədvəl (reklam formatları) --- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.tbl th, table.tbl td {
  padding: 11px 10px; text-align: left;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.tbl thead th {
  background: var(--surface-2); font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; color: var(--text-3);
}
table.tbl tbody tr:hover { background: var(--brand-soft); }
table.tbl td.num, table.tbl th.num { text-align: center; font-variant-numeric: tabular-nums; }
table.tbl td.name { white-space: normal; min-width: 150px; }

/* --- Formalar --- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 6px; }
.field .req { color: var(--danger); }
.input, .textarea, .select {
  width: 100%; padding: 11px 13px; border-radius: 9px;
  border: 1px solid var(--border-2); background: var(--surface);
  color: var(--text); font-size: .9rem; transition: var(--tr);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: .74rem; color: var(--text-3); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.alert { padding: 13px 15px; border-radius: 9px; font-size: .85rem; border: 1px solid; margin-bottom: 16px; }
.alert-ok   { background: rgba(23,162,74,.1);  border-color: rgba(23,162,74,.35);  color: var(--success); }
.alert-err  { background: rgba(226,58,58,.1);  border-color: rgba(226,58,58,.35);  color: var(--danger); }
.alert-info { background: var(--brand-soft);   border-color: rgba(255,194,14,.4);  color: var(--text); }

/* --- Empty state --- */
.empty { text-align: center; padding: 56px 20px; }
.empty svg { width: 54px; height: 54px; color: var(--text-3); opacity: .5; margin: 0 auto 14px; }
.empty h3 { margin: 0 0 6px; }
.empty p { color: var(--text-3); max-width: 420px; margin: 0 auto 18px; }

/* --- Newsletter --- */
/* ==========================================================================
   6. SLIDER (ana səhifə)
   ========================================================================== */
.slider {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface-3); box-shadow: var(--shadow-2);
  margin-bottom: var(--gap);
}
.slider-track { display: flex; will-change: transform; transition: transform .55s cubic-bezier(.35,.8,.25,1); }
.slider.no-anim .slider-track { transition: none; }
.slide { position: relative; flex: 0 0 100%; min-width: 100%; }
.slide-media { position: relative; }
.slide-media::after { content: ""; display: block; padding-top: 56%; }
.slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Kölgəli "footer" — slaydın aşağı hissəsində yalnız başlıq görünür.
   Bütün foto klikləndikdə xəbərə keçir (slayd <a> ilə tam örtülüb). */
.slide-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,10,13,.94) 0%, rgba(8,10,13,.70) 28%, rgba(8,10,13,.10) 62%, transparent 100%);
}
.slide-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 22px 24px 24px; color: #fff;
}
/* Slayderdəki kateqoriya etiketi də idman yaşılı — kartlarla eyni */
.slide-body .tag {
  margin-bottom: 9px;
  background: var(--sport);
  color: var(--sport-ink);
  box-shadow: 0 1px 6px rgba(0,0,0,.28);
}
/* Slayder başlığı BÜTÖV verilir — kəsilmir, neçə sətir olsa da tam görünür.
   Oxlarla toqquşmasın deyə oxlar sönük (kölgə kimi) saxlanılır — aşağıya bax. */
.slide-title {
  margin: 0 0 7px; font-size: clamp(1.05rem, 2.1vw, 1.6rem);
  font-weight: 900; line-height: 1.26; color: #fff; letter-spacing: -.015em;
  max-width: 40ch;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.slide:hover .slide-title { color: var(--brand); }
.slide-meta { display: flex; align-items: center; gap: 7px; font-size: .73rem; color: rgba(255,255,255,.75); }
.slide-meta svg { width: 12px; height: 12px; }

/* Oxlar — HƏMİŞƏ SÖNÜK (kölgə kimi), yalnız üzərinə gələndə tam görünür.
   Beləliklə başlıq uzun olub oxun altından keçsə belə görünüşü pozmur:
   ox arxa planda zəif bir işarə kimi qalır, mətn rahat oxunur. */
.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(12,14,17,.22); color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.10);
  opacity: .55;
  transition: opacity var(--tr), background-color var(--tr), color var(--tr), border-color var(--tr);
}
.slider-nav:hover,
.slider-nav:focus-visible {
  opacity: 1;
  background: var(--brand); color: var(--brand-ink); border-color: var(--brand);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
/* Slayderin üzərinə gələndə oxlar bir az da aydınlaşır (amma tam deyil) */
.slider:hover .slider-nav { opacity: .8; }
.slider:hover .slider-nav:hover { opacity: 1; }
.slider-nav svg { width: 18px; height: 18px; }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }

/* Nöqtələr + progress */
.slider-dots {
  position: absolute; right: 30px; bottom: 32px; z-index: 6;
  display: flex; gap: 7px;
}
.slider-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.42); transition: var(--tr);
}
.slider-dots button:hover { background: rgba(255,255,255,.75); }
.slider-dots button.is-active { background: var(--brand); width: 26px; border-radius: 6px; }

.slider-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255,255,255,.16); z-index: 6; }
.slider-bar i { display: block; height: 100%; width: 0; background: var(--brand); }

/* Slayder alt lentləri (kiçik seçimlər) */
/* ==========================================================================
   7. PAGES
   ========================================================================== */

/* --- Səhifə başlığı --- */
.page-head { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--border); }
.page-head h1 { margin: 0 0 5px; font-size: clamp(1.4rem, 3vw, 2rem); }
.page-head p { margin: 0; color: var(--text-3); font-size: .88rem; }

/* --- Məqalə --- */
.article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); }
.article-inner { padding: 26px 28px 24px; }
.article h1 { font-size: clamp(1.35rem, 3.2vw, 2.05rem); margin: 0 0 12px; line-height: 1.24; }

/* Başlıq bloku: etiket → başlıq → meta */
.article-head .tag { display: inline-flex; margin-bottom: 12px; }
.article .prose { font-size: 1.05rem; line-height: 1.8; }
.tags-row svg { width: 15px; height: 15px; color: var(--text-3); }
.article-head h1 { margin: 0 0 16px; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.22; letter-spacing: -.015em; }
.article-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 11px 0; margin-bottom: 18px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: .8rem; color: var(--text-3);
}
.article-meta time, .article-meta .views { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.article-meta .spacer { margin-left: auto; }
.article-meta .share { margin-left: auto; }
/* Meta sətrindəki bütün ikonlar mətn ölçüsündə qalsın */
.article-meta svg { width: 13px; height: 13px; flex: none; }
.article-meta .share svg { width: 14px; height: 14px; }
.article-meta .share a { width: 32px; height: 32px; }

/* Əsas şəkil — nisbət sabitdir, şəkil yüklənənə qədər yer tutur (sıçrayış yoxdur) */
.article-hero { margin: 0 0 20px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); }
.article-hero img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.article-hero figcaption { padding: 8px 12px; font-size: .74rem; color: var(--text-3); background: var(--surface-2); }

/* Giriş abzası (lead) — mətndən iri və qalın */
.prose .article-lead {
  font-size: 1.1em; line-height: 1.62; font-weight: 700; color: var(--text);
  margin-bottom: 1.2em;
}

/* Cədvəl dar ekranda səhifəni genişləndirmir — öz daxilində sürüşür */
.table-wrap { overflow-x: auto; margin: 1.4em 0; -webkit-overflow-scrolling: touch; }
.table-wrap table { margin: 0; min-width: 420px; }

/* Video (xəbərin sonunda) */
.article .prose .embed, .article .embed { position: relative; padding-top: 0; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; margin: 1.6em 0 .4em; background: #000; }
.article .embed img, .article .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; border: 0; border-radius: 0; }
.embed-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.embed-play svg { margin-left: 3px; }

/* Məqalə sonu paylaşım zolağı */
.article-share {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.article-share-label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text); }
.article-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.article-share-btns a {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 13px; border-radius: 9px;
  font-size: .8rem; font-weight: 700; color: #fff;
  transition: filter .15s, transform .15s;
}
.article-share-btns a:hover { filter: brightness(1.08); }
.article-share-btns .sh-facebook { background: #1877f2; }
.article-share-btns .sh-whatsapp { background: #25d366; }
.article-share-btns .sh-telegram { background: #229ed9; }
.article-share-btns .sh-x        { background: #111214; }
.article-share-btns .sh-copy     { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
html[data-theme="dark"] .article-share-btns .sh-x { background: #2a2c31; }
/* Ümumi `a:hover` (tünd rejimdə sarı) düymə mətnini dəyişməsin */
html[data-theme] .article-share-btns a:hover { color: #fff; }
html[data-theme] .article-share-btns .sh-copy:hover { color: var(--text); border-color: var(--brand); }

/* Məqalə səhifəsi: sidebar yapışqan deyil (lent uzun ola bilər),
   qrid ilə "Oxşar xəbərlər" arasında sabit boşluq */
.article-layout { margin-bottom: 26px; }
.article-side .col-sticky { position: static; }
.section-related { margin-bottom: 0; }

/* Mətn ölçüsü dəyişdiricisi */
.font-ctl { display: inline-flex; gap: 3px; }
.font-ctl button {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface); font-weight: 900; font-size: .78rem; color: var(--text-2);
}
.font-ctl button:hover { border-color: var(--brand); color: var(--brand-700); }
html[data-theme="dark"] .font-ctl button:hover { color: var(--brand); }
.font-ctl button.is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* Paylaş */
.share { display: inline-flex; gap: 5px; }
.share a {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.share a svg { width: 14px; height: 14px; }
.share a:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* Məqalə mətni */
.prose { font-size: 1rem; line-height: 1.78; color: var(--text-2); }
.prose[data-size="sm"] { font-size: .93rem; }
.prose[data-size="lg"] { font-size: 1.1rem; }
.prose[data-size="xl"] { font-size: 1.22rem; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose strong, .prose b { color: var(--text); font-weight: 700; }
.prose h2, .prose h3 { color: var(--text); margin: 1.6em 0 .6em; }
.prose h2 { font-size: 1.3rem; } .prose h3 { font-size: 1.1rem; }
.prose a { color: var(--brand-700); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brand-soft); text-underline-offset: 3px; }
html[data-theme="dark"] .prose a { color: var(--brand); }
.prose img { border-radius: var(--radius-sm); margin: 1.4em 0; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { font-size: .8rem; color: var(--text-3); text-align: center; margin-top: 8px; }
.prose blockquote {
  margin: 1.5em 0; padding: 14px 18px;
  border-left: 4px solid var(--brand); background: var(--brand-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.03rem; font-style: italic; color: var(--text);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brand-700); font-weight: 700; }
html[data-theme="dark"] .prose li::marker { color: var(--brand); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .9rem; }
.prose th, .prose td { padding: 9px 11px; border: 1px solid var(--border); }
.prose th { background: var(--surface-2); font-weight: 800; }
.prose hr { margin: 1.8em 0; }
.prose .embed { position: relative; padding-top: 56.25%; border-radius: var(--radius-sm); overflow: hidden; margin: 1.4em 0; background: var(--surface-3); }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Teqlər */
.tags-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.tags-row a {
  padding: 6px 11px; border-radius: 20px; background: var(--surface-2);
  border: 1px solid var(--border); font-size: .78rem; font-weight: 600; color: var(--text-2);
}
.tags-row a:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* Grid variantları */
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--gap); }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--gap); }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--gap); }

/* --- 404 --- */
.err-page { text-align: center; padding: 70px 16px 90px; }
.err-code {
  font-size: clamp(5rem, 20vw, 11rem); font-weight: 900; line-height: .88;
  letter-spacing: -.05em; margin: 0 0 6px;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-700) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.err-page h1 { font-size: clamp(1.3rem, 4vw, 2rem); margin: 0 0 10px; }
.err-page p { color: var(--text-3); max-width: 480px; margin: 0 auto 24px; }
.err-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.err-ball { width: 96px; height: 96px; margin: 0 auto 22px; animation: roll 3.2s ease-in-out infinite; }
@keyframes roll { 0%,100% { transform: translateX(-16px) rotate(-22deg); } 50% { transform: translateX(16px) rotate(22deg); } }

/* --- Digər idman blokları --- */
.sport-col .block-head h3 { font-size: .82rem; }
.sport-list { list-style: none; margin: 0; padding: 0; }
.sport-list li { border-bottom: 1px solid var(--border); }
.sport-list li:last-child { border-bottom: 0; }
.sport-list a { display: block; padding: 11px 15px; }
.sport-list a:hover { background: var(--brand-soft); }
.sport-list b {
  font-size: .84rem; font-weight: 600; line-height: 1.42;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.sport-list a:hover b { color: var(--brand-700); }
html[data-theme="dark"] .sport-list a:hover b { color: var(--brand); }
.sport-list time { display: block; font-size: .7rem; color: var(--text-3); margin-top: 4px; }

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.footer { background: var(--foot-bg); color: var(--foot-text-dim); margin-top: 0; }
.footer .logo-text b { color: #fff; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 30px;
  padding: 38px 0 30px;
}
.footer h4 {
  color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em;
  margin: 0 0 14px; padding-bottom: 9px; position: relative;
}
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--brand); }
.footer p { font-size: .84rem; line-height: 1.65; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer li a { font-size: .84rem; }
.footer li a:hover { color: var(--brand); padding-left: 4px; }
.footer li a { transition: color var(--tr), padding-left var(--tr); }
.footer .logo { margin-bottom: 14px; }
.footer-social { display: flex; gap: 7px; margin-top: 15px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: var(--foot-text);
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { background: var(--brand); color: var(--brand-ink); }
.footer-contact li { display: flex; gap: 9px; align-items: flex-start; font-size: .84rem; }
.footer-contact svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--brand); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .78rem;
}
.footer-bottom .links { display: flex; gap: 16px; margin-left: auto; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--brand); }
/* Hazırlayan — gözə çox girməyən, zəif görünən imza */
.footer-bottom .dev-credit {
  font-size: .7rem; letter-spacing: .02em; opacity: .45;
  transition: opacity var(--tr), color var(--tr);
}
.footer-bottom .dev-credit:hover { opacity: 1; }

/* Yuxarı qalx */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 150;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink);
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--tr), transform var(--tr), visibility var(--tr);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-600); }
.to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */
/* --- Sidebar-lı şəbəkələr dar ekranda daralır --- */
@media (max-width: 1000px) {
  :root { --side: 270px; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1.3fr; }
  .footer-top > div:nth-child(3) { display: none; }

  /* Masaüstü menyu → burger.
     Hədd 1000px-dir: 6 menyu bəndi 1024px konteynerdə rahat yerləşir,
     bundan aşağıda isə loqo/alətlərlə toqquşur.
     Bəndləri gizlətmək yolu seçilməyib — o zaman onlara giriş yolu qalmır.
     Menyuya bənd ƏLAVƏ edilərsə bu hədd yoxlanmalıdır (bax: includes/config.php → $MENU). */
  .nav-wrap { display: none; }
  .burger { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
  /* Menyu gizlənəndə alətlər margin-left:auto ilə onsuz da sağa dayanır */
}

@media (max-width: 900px) {
  :root { --gap: 16px; }
  /* Sidebar məzmunun altına keçir — hər iki variant üçün.
     Tək sütunda "uzanma" qaydaları ləğv olunur, ticker öz hündürlüyünə qayıdır. */
  .grid-side-left, .grid-side-right { grid-template-columns: minmax(0, 1fr); }
  .grid-side-left { margin-bottom: 24px; }
  /* Tək sütunda mütləq mövqe ləğv olunur — sidebar normal axına qayıdır */
  .grid-side-left > .col-side { display: block; position: static; }
  .grid-side-left > .col-side > .col-sticky {
    position: static; display: block; overflow: visible;
  }
  .grid-side-left > .col-side > .col-sticky > .ad { min-height: 250px; }
  .grid-side-left > .col-main { min-height: 0; }

  /* --- MOBİLDƏ GİZLƏNƏNLƏR ---
     Ana səhifədə sidebar-ın "Son xəbərlər" lenti mobildə məzmunun altında
     uzun siyahı kimi qalırdı — gizlədilir (reklam sahəsi qalır).
     Ən aşağıdaki "Digər idman növləri" bloku da gizlədilir — səhifəni
     lazımsız uzadırdı. Hər ikisinə menyudan giriş var. */
  .grid-side-left > .col-side > .col-sticky > .card { display: none; }
  .section-other-sports { display: none; }
  .grid-side-left  > .col-side { order: 2; }
  .grid-side-left  > .col-main { order: 1; }
  .grid-side-right > .col-side { order: 2; }

  /* --- XƏBƏR SƏHİFƏSİ (mobil) ---
     Reklamlar görünən yerlərə keçir: 320×100 başda, 300×250 məqalədən sonra.
     Sağ sidebar (300×250 + Son xəbərlər) gizlənir — reklam təkrarlanmasın,
     səhifə uzanmasın; oxucu birbaşa "Oxşar xəbərlər"ə keçir. */
  .only-desktop, .ad.only-desktop { display: none !important; }
  .ad-slot.only-mobile, .ad.only-mobile { display: flex; }
  .article-side { display: none; }
  .ad-slot-after { margin-bottom: 22px; }
  .col-sticky { position: static; }
  .col-sticky > * + * { margin-top: var(--gap); }
  /* Mobildə lent 6 sətirlə məhdudlaşır (sabit sətir hündürlüyü ilə dəqiq hesablanır) */
  .ticker { max-height: calc(6 * var(--ticker-row)); }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-top > div:nth-child(3) { display: block; }
}

@media (max-width: 768px) {
  body { font-size: 14.5px; }
  .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .video-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .video-strip > *:nth-child(3) { display: none; }
  .vcard-body { padding: 14px 15px 14px; }
  .vcard-title { font-size: 1.05rem; }
  /* Mobildə yalnız şüar gizlənir — tarix qalır ki, topbar-ın solu boş görünməsin */
  .topbar-slogan { display: none; }

  /* Slayder mobildə daha böyük — şəkil hündürlüyü artırılır (56% → 70%)
     və başlıq buna uyğun iriləşir. */
  .slide-media::after { padding-top: 70%; }
  .slide-body { padding: 18px 18px 22px; }
  .slide-title { font-size: 1.24rem; line-height: 1.3; max-width: none; }
  .slide-meta { font-size: .76rem; }
  .slider-dots { right: 16px; bottom: 20px; }

  /* Oxlar mətn blokunun üstündə dayanır.
     50% (mərkəz) mobildə kateqoriya etiketi ilə toqquşurdu; 30% isə həddən
     artıq yuxarı idi. 40% — hesablanmış təhlükəsiz maksimuma (45–70%) yaxın,
     390px-də mətn blokuna 30px, 768px-də 161px boşluq qalır. */
  /* Mobildə də sönük qalır (hover yoxdur) — başlıq uzun olsa da mane olmur */
  .slider-nav { width: 36px; height: 36px; opacity: .5; top: 40%; }
  .slider-prev { left: 8px; } .slider-next { right: 8px; }

  /* Video kartı da eyni nisbətə uyğunlaşır */
  .vcard-media::after { padding-top: 64%; }
  .rowcard.is-lg { grid-template-columns: 128px minmax(0,1fr); gap: 13px; }
  .rowcard.is-lg .thumb { width: 128px; }
  .rowcard.is-lg h3 { font-size: 1rem; }
  .article-inner { padding: 16px; }
  .field-row { grid-template-columns: 1fr; }

  /* Səhifə sonu ilə footer arasındaki boşluq azaldılır.
     Əvvəl: bölmə margin 28 + main padding 44 + footer margin 10 = 82px.
     İndi: son bölmənin margin-i sıfırlanır, main padding 18, footer margin 0 → 18px. */
  .main { padding-bottom: 18px; }
  .main .wrap > .section:last-child,
  .main .wrap > *:last-child { margin-bottom: 0; }
  .footer { margin-top: 0; }

  /* --- FOOTER (mobil) ---
     Əvvəl alt menyu yalnız `margin-left: 0` alırdı: linklər sol kənara
     yapışır, mətnlə birləşir və səliqəsiz görünürdü.
     İndi footer-ə əlavə yan boşluq verilir, alt zolaq sütuna çevrilir və
     linklər arasında rahat sətir aralığı olur. */
  .footer .wrap { padding-left: 22px; padding-right: 22px; }
  .footer-top { padding: 30px 0 26px; gap: 26px; }
  .footer-bottom {
    flex-direction: column; align-items: flex-start;
    gap: 14px; padding: 18px 0 26px;
  }
  .footer-bottom .links {
    margin-left: 0;
    column-gap: 18px; row-gap: 10px;
  }
}

@media (max-width: 560px) {
  .g2, .g3, .g4 { grid-template-columns: minmax(0,1fr); }
  .video-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }

  /* Topbar dar ekranda: qısa tarix + yalnız 4 sosial ikon.
     Hesablama (360px): tarix ~94px + 4 ikon ~116px + padding 32px = 242px → rahat sığır. */
  .topbar-date .date-full  { display: none; }
  .topbar-date .date-short { display: inline; }
  .topbar-right .icon-btn { width: 26px; height: 26px; }
  .topbar-right .icon-btn svg { width: 14px; height: 14px; }
  .topbar-right .icon-btn:nth-child(n+5) { display: none; }

  /* Ən dar ekranlarda slayder daha da hündür — şəkil tam görünsün */
  .slide-media::after { padding-top: 82%; }
  .slide-title { font-size: 1.15rem; }
  .vcard-media::after { padding-top: 72%; }

  .logo-mark { width: 34px; height: 34px; }
  .logo-text b { font-size: 1rem; }
  .pick { grid-template-columns: 78px minmax(0,1fr); }
  .pick .thumb { width: 78px; }
  .rowcard, .rowcard.is-lg { grid-template-columns: 104px minmax(0,1fr); gap: 11px; }
  .rowcard .thumb, .rowcard.is-lg .thumb { width: 104px; }
  .rowcard p { display: none; }
  .rowcard h3, .rowcard.is-lg h3 { font-size: .89rem; margin-top: 3px; }
  /* Tək sütunlu footer — bloklar arasında ayırıcı xətt qoyulur ki,
     bir-birinə qarışmasın */
  .footer-top { grid-template-columns: 1fr; gap: 0; }
  .footer-top > div + div {
    padding-top: 22px; margin-top: 22px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .err-actions .btn { width: 100%; }
  .hide-xs { display: none !important; }

  /* --- Xəbər səhifəsi (dar ekran) ---
     Şəkil kartın kənarlarına qədər açılır (daha böyük görünür),
     başlıq altındakı paylaş ikonları gizlənir — meta sətri sıxlaşmasın;
     paylaşım məqalə sonundakı zolaqdan (5 bərabər düymə) edilir. */
  .article-inner { padding: 16px 15px 18px; }
  .article-head h1 { font-size: 1.36rem; line-height: 1.26; margin-bottom: 12px; }
  .article-meta { gap: 14px; margin-bottom: 14px; padding: 9px 0; }
  .article-meta .share { display: none; }
  .article-hero { margin: 0 -15px 16px; border-radius: 0; }
  .article-hero figcaption { padding: 7px 15px; }
  .article .prose { font-size: 1rem; line-height: 1.74; }
  .article .embed { margin-left: -15px; margin-right: -15px; border-radius: 0; }
  .article-share { gap: 10px; }
  .article-share-label { flex: 0 0 100%; }
  .article-share-btns { flex: 1 1 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
  .article-share-btns a { justify-content: center; height: 42px; padding: 0; }
  .article-share-btns a span { display: none; }
  .tags-row { margin-top: 18px; padding-top: 14px; }
  /* Naviqasiya yolu bir sətirdə qalır, uzun başlıq "…" ilə qısalır */
  .crumbs { flex-wrap: nowrap; white-space: nowrap; }
  .crumbs a, .crumbs svg { flex: none; }
  .crumbs .is-current { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* Ən kiçik ekranlar (320–380px): slaydın hündürlüyünə görə mətn bloku
   nisbətən çox yer tutur, ona görə oxlar bir az yuxarı alınır.
   320px-də belə mətn blokuna 11px boşluq qalır. */
@media (max-width: 380px) {
  .slider-nav { top: 34%; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .topbar, .header, .footer, .to-top, .col-side,
  .slider-nav, .slider-dots, .share, .font-ctl, .ad { display: none !important; }
  body { background: #fff; color: #000; }
  .article { border: 0; box-shadow: none; }
  .grid-side-left, .grid-side-right { display: block; }
}

/* Hərəkəti azalt */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   10. WORDPRESS
   Redaktorun (Gutenberg / klassik) yaratdığı siniflər + tema əlavələri.
   Statik şablonda olmayan, yalnız WordPress-də lazım olan üslublar.
   ========================================================================== */

/* Ekran oxuyucu mətni (WP standart sinfi) */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Real reklam (vidjet) — yer tutucu çərçivəsi olmadan */
.ad.ad-live { background: none; border: 0; padding: 0; border-radius: 0; gap: 0; }
.ad.ad-live.ad-300, .ad.ad-live.ad-728, .ad.ad-live.ad-320 { height: auto; min-height: 0; }
.rf-ad-widget { width: 100%; display: flex; justify-content: center; }
.rf-ad-widget img, .rf-ad-widget iframe { max-width: 100%; height: auto; }

/* Axtarış səhifəsindəki forma */
.search-inline { display: flex; gap: 9px; margin-bottom: 22px; }
.search-inline .input { flex: 1; }

/* Əlaqə səhifəsi: açıq fonda sosial ikonlar */
.footer-social-light a { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }

/* Səhifələmə (paginate_links) — .pager üslubuna uyğun */
.pager .page-numbers svg { width: 14px; height: 14px; }

/* --- Məqalə mətni: redaktor blokları --- */
.prose img { height: auto; }
.prose .alignleft  { float: left;  margin: .4em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .4em 0 1em 1.4em; max-width: 50%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; display: block; text-align: center; }
.prose .alignwide, .prose .alignfull { margin-left: 0; margin-right: 0; }
.prose::after { content: ""; display: table; clear: both; }
.prose .wp-caption, .prose .wp-block-image { max-width: 100%; margin: 1.4em 0; }
.prose .wp-block-image img, .prose .wp-caption img { border-radius: var(--radius-sm); margin: 0; }
.prose .wp-caption-text, .prose .wp-element-caption,
.prose .wp-block-image figcaption, .prose .wp-block-embed figcaption {
  font-size: .8rem; color: var(--text-3); text-align: center; margin-top: 8px;
}
.prose .wp-block-quote { margin: 1.5em 0; }
.prose .wp-block-quote cite, .prose blockquote cite { display: block; margin-top: 8px; font-size: .85rem; font-style: normal; color: var(--text-3); }
.prose .wp-block-pullquote { margin: 1.6em 0; padding: 18px 0; border-top: 3px solid var(--brand); border-bottom: 3px solid var(--brand); text-align: center; }
.prose .wp-block-pullquote blockquote { background: none; border: 0; padding: 0; margin: 0; }
.prose .wp-block-table { overflow-x: auto; margin: 1.4em 0; }
.prose .wp-block-table table { margin: 0; }
.prose .has-text-align-center { text-align: center; }
.prose .has-text-align-right  { text-align: right; }
.prose .wp-block-separator { border: 0; border-top: 1px solid var(--border); margin: 1.8em 0; }
.prose .wp-block-gallery, .prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 1.4em 0; }
.prose .wp-block-gallery figure, .prose .gallery figure { margin: 0; }
.prose .wp-block-gallery img, .prose .gallery img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.prose .wp-block-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 1.2em 0; }
.prose .wp-block-button__link { display: inline-flex; padding: 11px 20px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font-weight: 800; text-decoration: none; }

/* Video (YouTube, Vimeo, Facebook …) — həmişə 16:9, sütunun tam eni */
.prose .wp-block-embed { margin: 1.6em 0; }
.prose .wp-block-embed__wrapper { position: relative; }
.prose iframe { max-width: 100%; border: 0; }
.prose .wp-block-embed.is-type-video iframe,
.prose .wp-block-embed-youtube iframe,
.prose .wp-block-embed-vimeo iframe,
.prose > p > iframe,
.prose iframe[src*="youtube.com"], .prose iframe[src*="youtube-nocookie.com"],
.prose iframe[src*="player.vimeo.com"] {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm); background: #000;
}
.prose video { width: 100%; height: auto; border-radius: var(--radius-sm); background: #000; }
.prose .wp-block-video { margin: 1.6em 0; }

@media (max-width: 560px) {
  .prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin: 1.2em 0; }
  .search-inline .btn { padding-left: 14px; padding-right: 14px; }
}

/* Əlaqə formu pluginləri (Contact Form 7, WPForms) — temanın .input görünüşü */
.prose .wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.prose .wpcf7 textarea, .prose .wpcf7 select,
.prose .wpforms-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.prose .wpforms-form textarea, .prose .wpforms-form select {
  width: 100%; padding: 11px 13px; border-radius: 9px;
  border: 1px solid var(--border-2); background: var(--surface);
  color: var(--text); font-size: .9rem; transition: var(--tr);
}
.prose .wpcf7 input:focus, .prose .wpcf7 textarea:focus, .prose .wpcf7 select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.prose .wpcf7 label { display: block; font-size: .85rem; font-weight: 700; color: var(--text); }
.prose .wpcf7 input[type="submit"], .prose .wpforms-submit {
  display: inline-flex; padding: 11px 22px; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: .88rem;
}
.prose .wpcf7 input[type="submit"]:hover { background: var(--brand-600); }

/* --- Xəbər səhifəsi (05.10.2026) ---
   · Başlıq altındakı paylaş ikonları götürüldü → baxış sayı sətrin sağında
   · "Oxşar xəbərlər" grid-dən çıxdı, səhifənin tam enində — reklam sütunun
     sonuncu elementidir, onun alt boşluğu qridin öz boşluğu ilə təkrarlanmasın */
.article-meta .views { margin-left: auto; }
.article-layout .ad-slot-after { margin-bottom: 0; }

/* Loqo yazısı "REGIONFOOTBALL.AZ" (08.10.2026) — dar telefonlarda header-ə sığsın.
   Canlı saytda ölçülüb: 360px-də 1rem 7px daşırdı, .9rem 12px boşluqla sığır;
   320px-də .7rem sığır. */
@media (max-width: 400px) {
  .header .logo-text b { font-size: .9rem; }
}
@media (max-width: 370px) {
  .header .logo-text b { font-size: .84rem; }
}
@media (max-width: 340px) {
  .header .logo-text b { font-size: .7rem; letter-spacing: -.01em; }
}

/* Başlıqda qırmızı hissə — redaktor {mötərizə} ilə işarələyir (inc/title-marks.php).
   Kartın üzərinə gələndə başlıq sarı olsa da, qırmızı hissə qırmızı qalır. */
.t-red { color: var(--danger) !important; }
/* Tünd foto üzərində (slayder, video kartı) daha parlaq qırmızı — oxunsun */
.slide-title .t-red, .vcard-title .t-red { color: #FF4D4D !important; }

/* ==========================================================================
   TURNİR CƏDVƏLİ (inc/standings.php) — ana səhifə sol sidebar + ayrıca səhifə
   ========================================================================== */
/* Sidebar-da: kart öz məzmunu qədər hündürdür (lent kimi bütün yeri tutmur).
   Sidebar sağ sütundan uzun olsa, cədvəl kartın içində sürüşür — sütun uzanmır. */
.grid-side-left > .col-side > .col-sticky > .card.standings {
  flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column;
}
.standings .standings-pane { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.standings .block-head, .standings .tabs, .standings .ticker-foot { flex: none; }

.standings-tabs { margin: 0; padding: 0 8px; gap: 0; }
.standings-tabs button { padding: 10px 10px 9px; font-size: .78rem; }
.standings-empty { margin: 0; padding: 22px 16px; font-size: .84rem; color: var(--text-3); text-align: center; }

.st-table { width: 100%; border-collapse: collapse; font-size: .82rem; font-variant-numeric: tabular-nums; }
.st-table th {
  padding: 8px 6px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-3); text-align: center; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.st-table td { padding: 0 6px; height: 34px; text-align: center; border-bottom: 1px solid var(--border); color: var(--text-2); }
.st-table tr:last-child td { border-bottom: 0; }
.st-table tbody tr:hover td { background: var(--brand-soft); }
.st-table .n { width: 30px; color: var(--text-3); font-weight: 700; }
.st-table .t {
  text-align: left; font-weight: 700; color: var(--text);
  max-width: 0; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-table th.t { color: var(--text-3); }
.st-table .x { font-weight: 900; color: var(--text); }
/* İlk 3 yer — sarı nömrə */
.st-table tbody tr:nth-child(-n+3) .n { color: var(--brand-700); }
html[data-theme="dark"] .st-table tbody tr:nth-child(-n+3) .n { color: var(--brand); }

/* Tam səhifə */
.standings-page .tabs { margin: -4px -4px 14px; }
.st-full { font-size: .9rem; min-width: 480px; }
.st-full td { height: 40px; }
.st-full .t { max-width: none; width: auto; min-width: 160px; }
.st-full small { color: var(--danger); font-weight: 700; }
.st-note { margin: 12px 0 0; font-size: .76rem; color: var(--text-3); }

/* Mobil: ana səhifədə sidebar kartları gizlənirdi — cədvəl GÖRÜNSÜN */
@media (max-width: 900px) {
  .grid-side-left > .col-side > .col-sticky > .card.standings { display: flex; }
  .standings .standings-pane { overflow: visible; }
}

/* Sağ sütuna MİNİMUM HÜNDÜRLÜK VERİLMİR (08.10.2026).
   Əvvəl 926px verilmişdi — sağ sütunun məzmunu (slayder + video ≈ 820px) ondan qısa
   olanda 1-ci və 2-ci hissə arasında ~100px artıq boşluq yaranırdı.
   İndi 1-ci hissənin hündürlüyünü YALNIZ sağ sütun müəyyən edir; cədvəl kartı
   sığmasa, öz içində sürüşür (son sətirlər aşağı sürüşdürüləndə görünür). */
@media (min-width: 901px) {
  .grid-side-left > .col-main { min-height: 0; }
}

/* Komanda loqosu (PFL.az-dan) — adın solunda */
.st-table .st-logo {
  display: inline-block; width: 18px; height: 18px; object-fit: contain;
  vertical-align: -4px; margin-right: 7px;
}
.st-full .st-logo { width: 22px; height: 22px; vertical-align: -6px; margin-right: 9px; }

/* --- XƏBƏR SƏHİFƏSİ: sidebar sol sütundan uzun OLMUR (08.10.2026) ---
   Qridin sətri ən uzun sütun qədər olur. Sidebar (lent + 300×250 + turnir cədvəli)
   uzun, xəbər mətni qısa olanda sol sütun da həmin hündürlüyə UZANIR:
   məqalə kartı boş yeri öz içində (mətnin sonunda) doldurur, 728×90 banner
   ən aşağıda — sidebar-ın sonu ilə eyni xətdə qalır. Mətn uzundursa heç nə dəyişmir. */
@media (min-width: 901px) {
  .article-layout { align-items: stretch; }
  .article-layout > .col-main { display: flex; flex-direction: column; }
  .article-layout > .col-main > .article { flex: 1 1 auto; }
  .article-layout > .col-main > .ad-slot-after { flex: none; }
  .article-side .col-sticky > .card.standings { display: block; }
}

/* ==========================================================================
   XƏBƏRDƏ VİDEO (inc/video.php) — "Video" panelindən, mətnin sonunda
   ========================================================================== */
.rf-video {
  position: relative; aspect-ratio: 16 / 9; margin: 1.6em 0 .4em;
  background: #000; border-radius: var(--radius-sm); overflow: hidden;
}
/* .prose iframe[src*="youtube…"] qaydasından güclü olsun deyə .prose ilə də yazılıb */
.rf-video iframe, .rf-video video,
.prose .rf-video iframe, .prose .rf-video video {
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
  border: 0; margin: 0; border-radius: 0;
}
.rf-video.is-vertical { aspect-ratio: 9 / 16; max-width: 360px; margin-left: auto; margin-right: auto; }  /* YouTube Shorts */
.rf-video-social { aspect-ratio: auto; background: none; max-width: 540px; margin-left: auto; margin-right: auto; }
.rf-video-social iframe, .prose .rf-video-social iframe { position: static; height: 640px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.rf-video-oembed { aspect-ratio: auto; background: none; overflow: visible; }
.rf-video-oembed iframe, .prose .rf-video-oembed iframe { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.rf-video-oembed blockquote { margin: 0 auto !important; }   /* TikTok */
@media (max-width: 560px) {
  .article .rf-video:not(.is-vertical):not(.rf-video-social):not(.rf-video-oembed) { margin-left: -15px; margin-right: -15px; border-radius: 0; }
  .rf-video-social iframe, .prose .rf-video-social iframe { height: 560px; }
}

/* Bombardirlər səhifəsi (page-bombardirler.php) */
.sc-table .t b { color: var(--text); font-weight: 800; }
.sc-table td.c { color: var(--text-2); font-weight: 600; min-width: 140px; }
.sc-table .x { font-size: 1rem; }
