

:root {
	--red: #a81c32;
	--orange: #f39a2b;
	--ink: #111;
	--muted: #777;
	--line: #e5e5e5;
	--bg: #fff;
	--page: #f4f4f4;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.55 "Roboto", "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1200px; margin: 0 auto; background: var(--bg); }
.pad { padding: 0 16px; }

/* Başlıq */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 16px; }
.logo { display: flex; align-items: center; gap: 2px; font: 900 44px/1 "Roboto Slab", Georgia, serif; letter-spacing: 1px; color: #222; }
.logo .a { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff; font-size: 46px; }
.logo img { max-height: 64px; width: auto; }
.social { display: flex; gap: 8px; margin-top: 8px; }
.social a { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 12px/1 Arial; }
.social .fb { background: #3b5998; } .social .yt { background: #e52d27; } .social .ig { background: #c13584; } .social .tw { background: #1da1f2; }
.search-form input { border: 1px solid var(--line); padding: 8px 10px; width: 240px; font: inherit; }

/* Menyu */
.nav { display: flex; align-items: stretch; background: #000; border-top: 3px solid #000; }
.nav .home { background: #000; color: #fff; padding: 0 18px; display: flex; align-items: center; font-weight: 700; text-transform: uppercase; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; background: #fff; flex-wrap: wrap; }
.nav li a { display: block; padding: 12px 20px; font-size: 13px; text-transform: uppercase; letter-spacing: .3px; }
.nav li.current-cat a, .nav li a:hover { color: var(--red); }
.ticker { display: flex; align-items: center; background: var(--orange); color: #fff; overflow: hidden; }
.ticker b { background: var(--red); padding: 8px 18px; text-transform: uppercase; white-space: nowrap; }
.ticker a { padding: 8px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker a:hover { color: #000; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding: 20px 16px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } .masthead { flex-direction: column; align-items: flex-start; } .logo { font-size: 30px; } .logo .a { width: 38px; height: 38px; font-size: 32px; } }

/* Manşet slayderi */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 2px; }
.hero a { position: relative; display: block; overflow: hidden; background: #ddd; min-height: 200px; }
.hero img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }
.hero span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: rgba(0,0,0,.55); color: #fff; font-size: 18px; }
.hero a:first-child span { font-size: 22px; }
@media (max-width: 700px) { .hero { grid-template-columns: 1fr; } }

/* Bölmə başlıqları */
.sec { margin: 26px 0 0; }
.sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 16px; text-transform: uppercase; color: var(--orange); border-bottom: 2px solid var(--orange); padding-bottom: 6px; }
.sec h2 a:hover { color: var(--red); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card .thumb { position: relative; display: block; background: #eee url("img/placeholder.svg") center/40% no-repeat; aspect-ratio: 16/10; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .date { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; padding: 1px 6px; }
.card h3 { font-size: 15px; font-weight: 500; margin: 8px 0 0; line-height: 1.35; }
.more { display: inline-block; margin-top: 14px; background: #000; color: #fff; padding: 8px 18px; font-size: 13px; }
.more:hover { background: var(--red); color: #fff; }

/* Yan panel: Xəbər axışı */
.feed h2 { text-align: center; font-size: 14px; text-transform: uppercase; border-bottom: 2px solid #000; padding-bottom: 8px; margin: 0 0 6px; }
.feed ul { list-style: none; margin: 0; padding: 0; }
.feed li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.feed time { display: block; font-size: 12px; color: var(--ink); }
.feed a { color: #444; font-size: 14px; }

/* Xəbər səhifəsi */
.post h1 { font-size: 34px; line-height: 1.2; font-weight: 400; margin: 0 0 14px; }
.post .meta { font: italic 17px/1.4 Georgia, serif; color: #333; border-bottom: 3px solid #000; padding-bottom: 12px; margin: 12px 0 18px; }
.post .meta b { color: var(--red); font-style: normal; }
.post .body { font-size: 16px; line-height: 1.65; }
.post .body > div, .post .body > p, .post .body article > div { margin: 0 0 .7em; }
.post .body img { margin: 12px 0; }
.post .body iframe { max-width: 100%; }
.post .cats a { display: inline-block; background: var(--red); color: #fff; font-size: 12px; padding: 2px 8px; text-transform: uppercase; margin-bottom: 10px; }

.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 24px; }
.pager .page-numbers { border: 1px solid var(--line); padding: 6px 12px; }
.pager .current { background: var(--red); color: #fff; border-color: var(--red); }

.footer { background: #111; color: #aaa; padding: 24px 16px; font-size: 13px; text-align: center; }

.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.masthead { position: sticky; top: 0; z-index: 50; background: var(--bg); transition: box-shadow .2s; }
.scrolled .masthead { box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.layout { align-items: start; }
.feed { position: sticky; top: calc(var(--hh, 90px) + 12px); }
.feed-box { position: relative; }
.feed ul { max-height: calc(100vh - var(--hh, 90px) - 120px); overflow-y: auto; padding-right: 10px; scrollbar-width: thin; scrollbar-color: var(--red) var(--line); }
.feed ul::-webkit-scrollbar { width: 6px; } .feed ul::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; } .feed ul::-webkit-scrollbar-track { background: var(--line); }
.feed-box::after { content: ""; position: absolute; left: 0; right: 10px; bottom: 0; height: 56px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; transition: opacity .2s; }
.feed-hint { margin: 8px 0 0; font-size: 12px; font-weight: 700; color: var(--red); text-align: center; text-transform: uppercase; letter-spacing: .3px; }
.feed.at-end .feed-box::after { opacity: 0; } .feed.at-end .feed-hint { visibility: hidden; }
.footer { padding: 28px 16px; font-size: 14px; color: #ccc; }

.menu-btn, .card .cd { display: none; }
.post .body div:empty, .post .body div:has(> br:only-child), .post .body p:has(> br:only-child) { display: none; }
@media (max-width: 760px) {
  .masthead { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; }
  .masthead > div:first-child { flex: 1; }
  .logo { font-size: 26px; } .logo .a { width: 34px; height: 34px; font-size: 28px; }
  .menu-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; background: #000; cursor: pointer; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { content: ""; display: block; width: 20px; height: 2px; background: #fff; position: relative; transition: .2s; }
  .menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }
  .menu-open .menu-btn span { background: transparent; }
  .menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); } .menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }
  .search-form { display: none; order: 3; width: 100%; } .search-form input { width: 100%; font-size: 16px; }
  .menu-open .search-form { display: block; }
  .nav { display: none; flex-direction: column; border-top: 0; }
  .menu-open .nav { display: flex; }
  .nav .home { padding: 12px 16px; }
  .nav ul { display: grid; grid-template-columns: 1fr 1fr; }
  .nav li a { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav li:nth-child(odd) a { border-right: 1px solid var(--line); }
  .ticker b { padding: 8px 10px; font-size: 12px; } .ticker a { padding: 8px 10px; font-size: 13px; }
  .hero span { font-size: 16px !important; padding: 10px 12px; }
  .hero { grid-template-columns: 1fr; }
  .hero a + a { display: none; }
  .layout { padding: 4px 16px 20px; gap: 8px; }
  .sec { margin-top: 20px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; }
  .card .thumb { aspect-ratio: 4/3; }
  .card .date { display: none; }
  .card .cd { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
  .card h3 { margin: 0; font-size: 15px; }
  .noimg { font-size: 12px; } .hero .noimg { font-size: 22px; }
  .post h1 { font-size: 24px; } .post .meta { font-size: 14px; }
  .post .body { font-size: 17px; }
  .feed { position: static; } .feed ul { max-height: 440px; }
  .home-grid > .card:nth-child(n+4) { display: none; }
  .menu-open .nav { position: fixed; top: var(--hh); left: 0; right: 0; z-index: 49; max-height: calc(100vh - var(--hh)); overflow-y: auto; box-shadow: 0 8px 16px rgba(0, 0, 0, .15); }
  .pager .page-numbers { padding: 8px 12px; }
}

.search-form { margin-left: auto; }
.search-form input { background: var(--bg); color: var(--ink); }
.theme-btn { display: grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: var(--bg); color: var(--ink); cursor: pointer; }
.theme-btn:hover { border-color: var(--red); color: var(--red); }
.theme-btn svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-btn .i-sun path { fill: none; } .theme-btn .i-sun { display: none; }
@media (max-width: 760px) {
  .masthead { gap: 8px; flex-wrap: wrap; }
  .logo { font-size: 22px; } .logo .a { width: 30px; height: 30px; font-size: 24px; }
  .theme-btn, .menu-btn { width: 38px; height: 38px; }
}
.logo { color: var(--ink); }
.nav ul { background: var(--bg); }
.feed h2 { border-bottom-color: var(--ink); }
.feed time { color: var(--ink); } .feed a { color: var(--muted2, #444); }
.post .meta { color: var(--ink2, #333); border-bottom-color: var(--ink); }
.card .thumb, .card .thumb img, .hero img { background-color: var(--thumb, #eee); }

.noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap; background: linear-gradient(135deg, #1a1a1a, #3a1214); color: #fff; font: 900 20px/1 "Roboto Slab", Georgia, serif; letter-spacing: 1px; }
.noimg b { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; margin-right: 2px; border-radius: 50%; background: var(--red); }
.hero .noimg { font-size: 30px; }
.post .body iframe { width: 100%; height: auto; aspect-ratio: 16/9; border: 0; }
.card .thumb img, .hero img { background: var(--thumb, #eee); }
.post .lead { margin: 0 0 12px; }
.search-results p { color: var(--muted); }
.post .lead { position: relative; }
.photo-credit { position: absolute; left: 0; bottom: 0; z-index: 2; max-width: 85%; padding: 4px 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; line-height: 1.35; }

.card .thumb img, .hero img, .mx img { object-position: 50% 30%; }
.bf { position: absolute; inset: -24px; background: center/cover no-repeat; filter: blur(20px) brightness(.75); }
img.fit { position: relative; object-fit: contain !important; }
.lead.fitbox { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #222; }
.lead.fitbox img { width: 100%; height: 100%; }
.mx { position: relative; overflow: hidden; background: #111; padding: 22px 0 34px; }
.mx-track { position: relative; height: clamp(240px, 30vw, 400px); }
.mx-s { position: absolute; top: 0; left: 50%; width: 46%; height: 100%; overflow: hidden; background: #222; color: #fff;
  transform: translateX(-50%) scale(.5); opacity: 0; z-index: 0; pointer-events: none; }
.mx.on .mx-s { transition: transform .7s cubic-bezier(.3,.7,.3,1), opacity .7s, filter .7s; }
.mx-s > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mx-s .noimg { font-size: 30px; }
.mx-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; background: linear-gradient(transparent, rgba(0,0,0,.85));
  font: 700 clamp(17px, 2vw, 26px)/1.25 "Roboto Slab", Georgia, serif; }
.mx.on .mx-t { transition: opacity .5s; }
.mx-t small { display: block; margin-bottom: 6px; font: 700 12px/1 Arial, sans-serif; letter-spacing: .5px; text-transform: uppercase; color: #ff6b70; }
.mx-s.p0 { transform: translateX(-50%) scale(1); opacity: 1; z-index: 3; pointer-events: auto; }
.mx-s.p1, .mx-s.m1 { opacity: .85; z-index: 2; pointer-events: auto; cursor: pointer; filter: brightness(.6); }
.mx-s.p1 { transform: translateX(15%) scale(.7); } .mx-s.m1 { transform: translateX(-115%) scale(.7); }
.mx-s.p2, .mx-s.m2 { opacity: .45; z-index: 1; filter: brightness(.45); }
.mx-s.p2 { transform: translateX(48%) scale(.5); } .mx-s.m2 { transform: translateX(-148%) scale(.5); }
.mx-s:not(.p0) .mx-t { opacity: 0; }
.mx-b { position: absolute; top: calc(22px + clamp(240px, 30vw, 400px) / 2); z-index: 5; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #111; font: 700 30px/40px Arial, sans-serif; cursor: pointer; }
.mx-prev { left: 14px; } .mx-next { right: 14px; }
.mx-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 7px; }
.mx-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #666; cursor: pointer; }
.mx-dots button.on { width: 26px; border-radius: 5px; background: var(--red); }
@media (max-width: 760px) {
  .mx { padding: 12px 0 30px; }
  .mx-track { height: 54vw; }
  .mx-s { width: 80%; }
  .mx-s.p1 { transform: translateX(12%) scale(.8); } .mx-s.m1 { transform: translateX(-112%) scale(.8); }
  .mx-s.p2, .mx-s.m2 { opacity: 0; }
  .mx-b { display: none; }
  .mx-t { padding: 30px 14px 12px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .mx.on .mx-s { transition: none; } }

@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { --page: #0d0d0d; --bg: #161616; --ink: #e6e6e6; --ink2: #cfcfcf; --muted: #9a9a9a; --muted2: #c4c4c4; --line: #2e2e2e; --thumb: #242424; --red: #e5484e; color-scheme: dark; }
:root:not([data-theme="light"]) .nav { background: #000; border-top-color: #000; }
:root:not([data-theme="light"]) .nav ul { background: #1c1c1c; }
:root:not([data-theme="light"]) .more { background: #2c2c2c; }
:root:not([data-theme="light"]) .menu-btn { background: #2c2c2c; }
:root:not([data-theme="light"]) .footer { background: #0a0a0a; }
:root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
:root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
:root:not([data-theme="light"]) img:not(.fit) { filter: brightness(.92); }
}
:root[data-theme="dark"] { --page: #0d0d0d; --bg: #161616; --ink: #e6e6e6; --ink2: #cfcfcf; --muted: #9a9a9a; --muted2: #c4c4c4; --line: #2e2e2e; --thumb: #242424; --red: #e5484e; color-scheme: dark; }
:root[data-theme="dark"] .nav { background: #000; border-top-color: #000; }
:root[data-theme="dark"] .nav ul { background: #1c1c1c; }
:root[data-theme="dark"] .more { background: #2c2c2c; }
:root[data-theme="dark"] .menu-btn { background: #2c2c2c; }
:root[data-theme="dark"] .footer { background: #0a0a0a; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] img:not(.fit) { filter: brightness(.92); }

:root { --orange: var(--red); }
.ticker { background: #14233a; }
.logo { gap: 10px; font-family: Poppins, "Helvetica Neue", Arial, sans-serif; font-weight: 700; letter-spacing: .5px; }
.logo .a { background: none; display: block; flex: none; }
.logo .a svg { display: block; width: 100%; height: 100%; }
.mx-t small { color: #ff7d86; }
