/* fonmedia.az — əsas üslub faylı (mobil-uyğun, açıq/tünd rejim) */

/* ---------- Dizayn tokenləri ---------- */
:root {
  /* FonMedia palitrası: sarı #FFD600, açıq sarı #FFF3B0, qara #111111, tünd boz #4B5563,
     boz #E5E7EB, açıq boz #F5F5F5, ağ #FFFFFF, qırmızı #EF4444, yaşıl #22C55E */
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --surface-2: #F3F4F6;
  --surface-3: #E5E7EB;
  --text: #111111;
  --text-2: #4B5563;
  --muted: #6B7280;
  --line: #E5E7EB;
  --brand: #FFD600;
  --brand-2: #FFC400;
  --brand-soft: #FFF3B0;
  --brand-text: #111111;   /* sarı fon olmayan yerdə vurğulu mətn: ağ fonda sarı oxunmur */
  --brand-hl: #FFD600;     /* mətnin altından keçən sarı marker xətti */
  --on-brand: #111111;     /* sarı düymə üzərində mətn */
  --grad: linear-gradient(135deg, #FFD600 0%, #FFC800 100%);
  --ok: #22C55E;
  --bad: #EF4444;
  --ok-text: #15803D;      /* kiçik mətn üçün oxunaqlı yaşıl */
  --bad-text: #DC2626;     /* kiçik mətn üçün oxunaqlı qırmızı */
  --live: #EF4444;
  --ink: #111111;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 8px 24px rgba(17, 17, 17, .06);
  --shadow-lg: 0 24px 60px rgba(17, 17, 17, .18);
  --header-h: 110px;
  --bottom-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
[data-theme=dark] {
  --bg: #0E0E0E;
  --surface: #171717;
  --surface-2: #1F1F1F;
  --surface-3: #2B2B2B;
  --text: #F5F5F5;
  --text-2: #D1D5DB;
  --muted: #9CA3AF;
  --line: #2A2A2A;
  --brand-soft: rgba(255, 214, 0, .14);
  --brand-text: #FFD600;
  --brand-hl: transparent;
  --ok-text: #4ADE80;
  --bad-text: #F87171;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand); color: var(--on-brand); }
input[type=range] { accent-color: var(--brand); }
.i { flex-shrink: 0; }

.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(860px, 100% - 32px); }
.muted { color: var(--muted); }
.center { text-align: center; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grad-text { color: var(--brand-text); box-shadow: inset 0 -.34em 0 var(--brand-hl); }
.show-m { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 80; transition: width .1s linear; pointer-events: none; }

/* ---------- Düymələr və formlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 0;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, filter .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; pointer-events: none; }
.btn-primary { background: var(--grad); color: var(--on-brand); box-shadow: 0 6px 18px rgba(255, 196, 0, .28); }
.btn-primary:hover { filter: brightness(.96); box-shadow: 0 10px 24px rgba(255, 196, 0, .36); }
.btn-outline { background: var(--surface); border: 1.5px solid var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-text); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-ghost.danger { color: var(--bad-text); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-block + .btn-block { margin-top: 8px; }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; flex-shrink: 0;
  border: 0; border-radius: 12px; background: transparent; color: var(--text-2);
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.on { background: var(--brand-soft); color: var(--brand-text); }
.icon-btn.txt { font-weight: 800; font-size: 14px; }

.link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--brand-text); font-weight: 600; font-size: 14px; }
.link-btn:hover { text-decoration: underline; }
.more { display: inline-flex; align-items: center; gap: 2px; color: var(--brand-text); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.more:hover { gap: 6px; }
.more.sm { font-size: 13px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.hint .i { vertical-align: -2px; color: var(--brand-text); }
.hint.center { display: block; text-align: center; }
.hint a { color: var(--brand-text); font-weight: 600; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .field > span { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field-row .input { min-width: 0; width: 100%; }
.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.input:focus { outline: 0; border-color: var(--brand-text); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }
.input:disabled { opacity: .65; }
select.input { padding-right: 8px; }
.form-error { color: var(--bad-text); font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.form-error:empty { display: none; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); margin: 4px 0 14px; cursor: pointer; }
.check-row input { accent-color: var(--brand); margin-top: 3px; }
.interest-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-chips label { cursor: pointer; position: relative; }
.interest-chips input { position: absolute; opacity: 0; pointer-events: none; }
.interest-chips span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: all .2s; }
.interest-chips input:checked + span { background: var(--c); border-color: var(--c); color: #fff; }
.interest-chips input:focus-visible + span { outline: 2px solid var(--c); outline-offset: 2px; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.tabs button:hover { color: var(--text); }
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(17, 17, 17, .1); }
.tabs.full { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.tabs.scroll { display: flex; width: max-content; margin-bottom: 20px; }
.tabs .count, .c-title .count { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; background: var(--c, var(--brand)); color: #fff; white-space: nowrap; }
.chip.soft { background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
/* profildəki ümumi .live bloku (mobildə sütun) etiketə təsir etməsin */
.chip.live { display: inline-flex; flex-direction: row; gap: 6px; background: var(--bad); }
.chip.live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kicker { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c); }
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 99px; border: 0; background: var(--surface-2); color: var(--text-2); font-size: 13px; font-weight: 600; transition: background .2s, color .2s; }
.tag:hover { background: var(--brand-soft); color: var(--brand-text); }
.lvl-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-text); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex-shrink: 0; letter-spacing: .02em; }
/* Profil şəkli olan avatar */
.avatar.pic { overflow: hidden; background: var(--surface-3); }
.avatar.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Səviyyə halqası: --p faizlə doldurulur */
.lvl-ring { --p: 0; --s: 34px; position: relative; width: var(--s); height: var(--s); flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand), var(--brand-2) calc(var(--p) * 1%), var(--surface-3) 0); }
.lvl-ring::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--surface); }
.lvl-ring > span { position: relative; font-weight: 800; font-size: 13px; line-height: 1; text-align: center; }
/* Başlıqda şəkil halqanın içində, səviyyə kiçik nişanda */
.lvl-ring > .lr-n { position: absolute; right: -5px; bottom: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; display: grid; place-items: center; background: var(--grad); color: var(--on-brand); font-size: 10px; font-weight: 900; box-shadow: 0 0 0 2px var(--surface-2); }
.lvl-ring.lg { --s: 56px; }
.lvl-ring.lg::before { inset: 5px; }
.lvl-ring.lg > span { font-size: 19px; }
.lvl-ring.xl { --s: 120px; }
.lvl-ring.xl::before { inset: 8px; }
.lvl-ring.xl > span, .lvl-ring.xxl > span { display: grid; gap: 4px; }
.lvl-ring.xl b { font-size: 32px; }
.lvl-ring.xl small, .lvl-ring.xxl small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.lvl-ring.xxl { --s: 180px; }
.lvl-ring.xxl::before { inset: 10px; }
.lvl-ring.xxl b { font-size: 60px; font-weight: 900; }

.xpbar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 14px 0 8px; }
.xpbar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .7s var(--ease); }
.xpbar.lg { height: 12px; }
.xp-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.xp-row b { color: var(--text); }
.qbar { display: block; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.qbar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }

/* Animasiyalı bloklar */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 100%; background: currentColor; border-radius: 1px; transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-duration: .7s; animation-delay: -.3s; }
.eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -.5s; }
.eq i:nth-child(4) { animation-duration: .8s; animation-delay: -.2s; }
.spin { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }

.sk { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 8px; margin-bottom: 8px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
#view { min-height: 60vh; outline: 0; }
#view.view-enter { animation: viewIn .4s var(--ease) both; }

.empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; text-align: center; color: var(--muted); }
.empty > .i { opacity: .55; }
.empty.big { padding: 90px 20px; }
.empty.big h2 { color: var(--text); font-size: 26px; }

/* ---------- Üst zolaq ---------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, .72); font-size: 12.5px; }
.topbar .container { display: flex; align-items: center; gap: 18px; height: 36px; }
.tb-item, .tb-right a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tb-right { margin-left: auto; display: flex; gap: 18px; }
.tb-right a:hover { color: #fff; }
[data-theme=dark] .topbar, [data-theme=dark] .footer { background: #0A0A0A; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .3s;
}
.header.scrolled { box-shadow: 0 6px 24px rgba(17, 17, 17, .08); }
.to-top { position: fixed; left: 20px; bottom: 20px; z-index: 55; width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 22px rgba(17, 17, 17, .22); opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand-2); }
@media (max-width: 768px) { .to-top { left: 12px; bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + 12px); } }
.bar { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.mark { width: 38px; height: 38px; flex-shrink: 0; }
.wordmark { font-size: 21px; letter-spacing: -.03em; color: var(--text); font-weight: 600; }
.wordmark b { font-weight: 900; box-shadow: inset 0 -.28em 0 var(--brand); }
.wordmark i { font-style: normal; color: var(--brand-text); font-weight: 700; }
.search-pill { flex: 1; max-width: 460px; margin: 0 auto; height: 42px; display: inline-flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 14px; transition: border-color .2s, background .2s; }
.search-pill:hover { border-color: var(--brand); background: var(--surface); }
.search-pill span { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-pill { min-width: 0; }
.search-pill > svg, .search-pill kbd { flex: none; }
@media (max-width: 1100px) { .search-pill kbd { display: none; } }
kbd { font-family: inherit; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.hdr-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.radio-btn { position: relative; }
.live-mark { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px var(--surface); animation: pulse 1.6s infinite; }
.user-area { display: flex; align-items: center; }
.user-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .2s; }
.user-chip:hover { border-color: var(--brand); }
.uc-text { display: flex; flex-direction: column; line-height: 1.15; }
.uc-text b { font-size: 13.5px; }
.uc-text small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.xp-float { position: absolute; top: -4px; right: 10px; font-size: 13px; font-weight: 900; color: var(--brand-text); pointer-events: none; animation: floatUp 1.4s var(--ease) forwards; }

.catbar { border-top: 1px solid var(--line); }
.catbar-wrap { position: relative; }
.catbar-in { display: flex; align-items: center; gap: 4px; height: 46px; overflow-x: auto; scrollbar-width: none; }
/* Sığmayan bölmələr üçün kənar kölgəsi: yalnız həmin tərəfdə gizli bölmə olanda görünür */
.cb-shade { position: absolute; top: 0; bottom: 0; z-index: 2; width: calc(50vw - 50% + 40px); pointer-events: none; transition: opacity .25s; --sh: rgba(17, 17, 17, .16); }
/* Kölgə ekranın kənarından başlayır (konteynerin boşluğunu da örtür) və içəri doğru düz xətlə solur */
.cb-shade.l { left: calc(50% - 50vw); background: linear-gradient(90deg, var(--sh), transparent); }
.cb-shade.r { right: calc(50% - 50vw); background: linear-gradient(270deg, var(--sh), transparent); }
[data-theme="dark"] .cb-shade { --sh: rgba(0, 0, 0, .6); }
/* Geniş ekranda kölgə əvəzinə oxlar */
.cb-arrow { position: absolute; top: 0; bottom: 0; z-index: 2; width: 52px; border: 0; display: flex; align-items: center; color: var(--text); cursor: pointer; transition: opacity .2s; }
.cb-arrow .i { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(17, 17, 17, .12); }
.cb-arrow:hover .i { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.cb-arrow.l { left: 0; justify-content: flex-start; padding-left: 8px; background: linear-gradient(90deg, var(--surface) 45%, transparent); }
.cb-arrow.r { right: 0; justify-content: flex-end; padding-right: 8px; background: linear-gradient(270deg, var(--surface) 45%, transparent); }
.catbar-wrap.at-start .cb-arrow.l, .catbar-wrap.at-end .cb-arrow.r { opacity: 0; pointer-events: none; }
@media (min-width: 769px) { .cb-shade { display: none; } }
@media (max-width: 768px) { .cb-arrow { display: none; } }
.catbar-in.dragging { cursor: grabbing; user-select: none; }
.catbar-in.dragging a { pointer-events: none; }
.catbar-in a { -webkit-user-drag: none; }
.catbar-wrap.at-start .cb-shade.l, .catbar-wrap.at-end .cb-shade.r { opacity: 0; }
/* Sığmayan tab sətri (hsHTML): kateqoriya sətrinin eyni oxları və kölgəsi */
.hs { position: relative; margin-bottom: 20px; }
.hs > .tabs.scroll { margin-bottom: 0; }
.hs .cb-arrow.l { border-radius: 14px 0 0 14px; background: linear-gradient(90deg, var(--surface-2) 45%, transparent); }
.hs .cb-arrow.r { border-radius: 0 14px 14px 0; background: linear-gradient(270deg, var(--surface-2) 45%, transparent); }
.hs.at-start .cb-arrow.l, .hs.at-end .cb-arrow.r { opacity: 0; pointer-events: none; }
.hs.at-start .cb-shade.l, .hs.at-end .cb-shade.r { opacity: 0; }
.hs-in.dragging { cursor: grabbing; user-select: none; }
.catbar-in::-webkit-scrollbar { display: none; }
.catbar a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: background .2s, color .2s; }
.catbar a:hover { background: var(--surface-2); color: var(--text); }
.catbar a.active { background: var(--brand); color: var(--on-brand); }
.catbar a.hot { color: var(--brand-text); }
.catbar a.hot.active { color: var(--on-brand); }

/* ---------- Son dəqiqə lenti ---------- */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); }
.ticker .container { display: flex; align-items: center; gap: 14px; height: 42px; overflow: hidden; }
.ticker-label { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: var(--on-brand); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 5px 10px; border-radius: 8px; }
.ticker-viewport { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { display: inline-flex; align-items: center; gap: 18px; white-space: nowrap; animation: ticker 70s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-track a { font-size: 14px; font-weight: 500; color: var(--text-2); }
.ticker-track a:hover { color: var(--brand-text); }
.ticker-track b { color: var(--brand-text); margin-right: 8px; }
.ticker .sep { color: var(--surface-3); }

/* ---------- Səhifə başlıqları ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin: 30px 0 22px; }
.page-head h1 { display: flex; align-items: center; gap: 14px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.page-head p { color: var(--muted); margin-top: 8px; }
.ph-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: var(--on-brand); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(255, 196, 0, .3); }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 38px 0 16px; }
.sec-head h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.sec-head h2 .i { color: var(--brand-text); }
.sec-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.sec-ic .i { color: inherit !important; }
.sec-t { font-size: 24px; font-weight: 800; margin: 40px 0 16px; }

/* ---------- Hekayələr ---------- */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 20px 2px 8px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: 0 0 auto; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; font-size: 12px; font-weight: 600; color: var(--text-2); text-align: center; line-height: 1.2; }
.story .ring { width: 72px; height: 72px; padding: 3px; border-radius: 50%; background: var(--grad); transition: transform .2s var(--ease); }
.story:hover .ring { transform: scale(1.06); }
.story .ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--bg); background: var(--surface-2); }
.story.seen .ring { background: var(--surface-3); }
.story.seen { color: var(--muted); }

/* ---------- Əsas xəbərlər (hero) ---------- */
.hero { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; margin: 10px 0 8px; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.hero-sk { min-height: 480px; border-radius: var(--radius); margin: 0; }
.hero-side .sk { border-radius: var(--radius); margin: 0; min-height: 200px; }
.hero-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 230px; border-radius: var(--radius); overflow: hidden; color: #fff; background: color-mix(in srgb, var(--c) 60%, #000); }
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.hero-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 10, 0) 25%, rgba(10, 10, 10, .55) 55%, rgba(10, 10, 10, .92)); }
.hero-card:hover img { transform: scale(1.05); }
.hero-card .body { padding: 22px; }
.hero-card h2 { font-size: 20px; font-weight: 800; margin: 10px 0 8px; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.hero-card.big { min-height: 480px; }
.hero-card.big .body { padding: 30px; }
.hero-card.big h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.02em; line-height: 1.15; }
.hero-card.big p { font-size: 15.5px; opacity: .88; max-width: 62ch; margin-bottom: 12px; }
.hero-card .meta { color: rgba(255, 255, 255, .82); }

/* ---------- Səhifə düzümü ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.main-col { min-width: 0; }
.main-col > .tabs { margin: 4px 0 18px; }
.sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; margin-top: 38px; }
.cat-hero + .container .sidebar, .cat-hero + .container .main-col { margin-top: 0; }

/* ---------- Kartlar ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, opacity .6s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card > a { display: flex; flex-direction: column; height: 100%; }
.card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: color-mix(in srgb, var(--c, var(--brand)) 22%, var(--surface-2)); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .thumb img { transform: scale(1.06); }
.card .thumb .chip { position: absolute; top: 12px; left: 12px; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 17px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover h3 { color: var(--brand-text); }
.card p { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.meta > span { display: inline-flex; align-items: center; gap: 5px; }

.list-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .thumb { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--c) 20%, var(--surface-2)); }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.list-item:hover .thumb img { transform: scale(1.06); }
.list-item h4 { font-size: 15px; font-weight: 600; line-height: 1.38; margin: 3px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-item:hover h4 { color: var(--brand-text); }

.fchips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchips.dragging { cursor: grabbing; user-select: none; }
.fchips.dragging .fchip { pointer-events: none; }
.fchip { flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: all .2s; }
.fchip:hover { border-color: var(--c, var(--brand)); color: var(--c, var(--brand-text)); }
.fchip.active { background: var(--c, var(--brand)); border-color: transparent; color: #fff; }
.fchip.active:not([style]) { color: var(--on-brand); }
.center { text-align: center; }
.main-col > .center, #trendBody > .center { margin: 22px 0 6px; }

.cat-section .sec-head h2 { color: var(--text); }
.cat-block { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.cat-list { display: flex; flex-direction: column; }

/* Kitab rəfi */
.shelf { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 22px; scrollbar-width: none; perspective: 900px; }
.shelf::-webkit-scrollbar { display: none; }
.shelf { cursor: grab; }
.shelf a, .shelf img { -webkit-user-drag: none; }
.shelf.dragging { cursor: grabbing; user-select: none; }
.shelf.dragging a { pointer-events: none; }
.book { flex: 0 0 140px; }
.cover {
  aspect-ratio: 2 / 3; border-radius: 4px 12px 12px 4px; padding: 16px 12px 12px 18px;
  display: flex; flex-direction: column; gap: 6px; color: #fff;
  background: linear-gradient(150deg, var(--b1), var(--b2));
  box-shadow: inset 7px 0 0 rgba(0, 0, 0, .2), inset 9px 0 0 rgba(255, 255, 255, .12), 0 12px 24px rgba(17, 17, 17, .22);
  transform-origin: left center; transition: transform .45s var(--ease), box-shadow .45s;
}
.book:hover .cover { transform: rotateY(-16deg) translateY(-4px); box-shadow: inset 7px 0 0 rgba(0, 0, 0, .2), 18px 18px 30px rgba(17, 17, 17, .3); }
.b-author { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.b-title { font-family: Georgia, 'Times New Roman', serif; font-size: 17px; font-weight: 700; line-height: 1.2; }
.b-logo { margin-top: auto; font-size: 9.5px; opacity: .7; letter-spacing: .04em; }

.ad-slot { display: grid; place-items: center; min-height: 250px; border-radius: var(--radius); border: 1.5px dashed var(--surface-3); color: var(--muted); font-size: 13px; font-weight: 600; background: repeating-linear-gradient(45deg, transparent 0 12px, color-mix(in srgb, var(--surface-3) 35%, transparent) 12px 13px); }
.ad-slot.wide { min-height: 100px; margin: 36px 0 0; }

/* ---------- Vidcetlər ---------- */
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.widget-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.widget-title .t { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.widget-title .t .i { color: var(--brand-text); }

.trend-list { list-style: none; counter-reset: t; }
.trend-list li a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.trend-list li:last-child a { border-bottom: 0; padding-bottom: 0; }
.trend-num { font-size: 26px; font-weight: 900; line-height: 1; color: var(--brand-text); box-shadow: inset 0 -.3em 0 var(--brand-hl); }
.trend-list li:nth-child(n+4) .trend-num { background: none; color: var(--surface-3); -webkit-text-fill-color: var(--surface-3); }
.trend-list h4 { font-size: 14.5px; font-weight: 600; line-height: 1.38; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trend-list a:hover h4 { color: var(--brand-text); }

/* Xal kartı */
.xp-top { display: flex; align-items: center; gap: 12px; }
.xp-who { flex: 1; min-width: 0; }
.xp-name { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-rank { font-size: 13px; font-weight: 600; color: var(--brand-text); }
.quests { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.q-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-2); }
.quest { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.qc { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.quest.done .qc { background: var(--ok); border-color: var(--ok); color: #111111; }
.quest.done .qt { color: var(--muted); text-decoration: line-through; }
.qt em { font-style: normal; color: var(--brand-text); font-size: 12px; font-weight: 700; }
.qv { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.quests.big { margin: 0; padding: 0; border: 0; }
.quests.big .quest { grid-template-columns: 28px minmax(0, 1fr) 110px 36px; padding: 9px 0; }
.quests.big .qc { width: 28px; height: 28px; }

.guest-card { position: relative; overflow: hidden; background: var(--ink); color: #fff; border: 0; padding: 24px 20px 20px; }
.gc-glow { position: absolute; top: -90px; right: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 0, .55), transparent 70%); pointer-events: none; }
.guest-card h3 { position: relative; font-size: 23px; font-weight: 900; line-height: 1.2; }
.guest-card h3 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guest-card p { position: relative; font-size: 14px; opacity: .75; margin: 8px 0 14px; }
.xp-rules-mini { position: relative; list-style: none; display: grid; gap: 4px; margin-bottom: 16px; }
.xp-rules-mini li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.xp-rules-mini .i { color: var(--brand-2); }
.xp-rules-mini b { margin-left: auto; color: #FFD600; }

.leaders-mini { display: flex; flex-direction: column; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; }
.lb-row.me { background: var(--brand-soft); }
.lb-rank { width: 22px; text-align: center; font-weight: 800; color: var(--muted); }
.lb-rank.r1 { color: #EAB308; }
.lb-rank.r2 { color: #94A3B8; }
.lb-rank.r3 { color: #C2773A; }
.lb-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Radio vidceti */
.rw-now { position: relative; overflow: hidden; display: grid; grid-template-columns: 56px minmax(0, 1fr) 48px; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.rw-art { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; text-align: center; font-size: 12px; font-weight: 800; line-height: 1.1; background: rgba(255, 255, 255, .18); }
.rw-info { min-width: 0; }
.rw-info b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-info span { font-size: 12px; opacity: .88; }
.rw-play { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.rw-play:hover { transform: scale(1.08); }
.rw-wave { position: absolute; top: 10px; right: 72px; color: #fff; opacity: .85; }
.rw-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rw-st { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-weight: 600; transition: all .2s; }
.rw-st i { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.rw-st:hover, .rw-st.on { border-color: var(--c1); color: var(--text); background: var(--surface); }

/* Məzənnə və hava */
.fx-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 14px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fx-code { font-weight: 800; }
.fx-name { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-rate { font-weight: 700; font-variant-numeric: tabular-nums; }
.fx-ch { font-size: 10px; color: var(--muted); text-align: right; }
.fx-ch.up { color: var(--ok-text); }
.fx-ch.down { color: var(--bad-text); }
.weather { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.weather > .i { color: #0EA5E9; }
.weather b { display: block; }
.weather span { font-size: 13px; color: var(--muted); }
.tag-demo { margin-left: auto; font-size: 10px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); }

/* ---------- Anket ---------- */
.poll-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.poll-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ok-text); }
.poll-status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.poll-status.ended { color: var(--muted); }
.poll-q { font-size: 17px; font-weight: 700; line-height: 1.38; margin-bottom: 14px; }
.poll-author { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin: -6px 0 12px; }
.poll-opts { display: flex; flex-direction: column; gap: 8px; }
.poll-opt {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  font-size: 14.5px; font-weight: 500; text-align: left; transition: border-color .2s, background .2s, transform .15s;
}
button.poll-opt:hover { border-color: var(--brand); background: var(--brand-soft); }
button.poll-opt:active { transform: scale(.99); }
.radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--surface-3); flex-shrink: 0; transition: border .2s; }
.poll-opt.picked .radio-dot { border: 6px solid var(--brand-text); }
.poll.busy { pointer-events: none; opacity: .85; }
.poll-opt.res { cursor: default; }
.poll-opt .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--surface-3); opacity: .7; transition: width 1s var(--ease); }
.poll-opt.top .bar { background: color-mix(in srgb, var(--brand) 20%, transparent); opacity: 1; }
.poll-opt.mine { border-color: var(--brand); }
.poll-opt .txt, .poll-opt .pct { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.poll-opt .txt .i { color: var(--brand-text); }
.poll-opt .pct { font-weight: 800; font-variant-numeric: tabular-nums; }
.poll-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.xp-tag { color: var(--brand-text); font-weight: 700; }

/* ---------- Xəbər səhifəsi ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 22px 0 18px; min-width: 0; }
.crumbs a { white-space: nowrap; flex-shrink: 0; }
.crumbs svg { flex-shrink: 0; }
.crumbs a:hover { color: var(--brand-text); }
.crumbs span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.article-wrap { display: grid; grid-template-columns: 56px minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.share-rail { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rail-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rail-xp { font-size: 11px; font-weight: 800; color: var(--brand-text); text-align: center; }
.share-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--sc) 12%, transparent); color: var(--sc); transition: background .2s, color .2s, transform .2s var(--ease); }
.share-btn:hover { background: var(--sc); color: #fff; transform: translateY(-2px); }
[data-theme=dark] [data-platform=x] { --sc: #A1A9B8 !important; }

.article { min-width: 0; }
.article h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.16; letter-spacing: -.025em; margin: 14px 0 14px; }
.article .lead { font-size: 19px; line-height: 1.55; color: var(--text-2); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 0; margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.by-info { display: flex; flex-direction: column; }
.by-info b { font-size: 15px; }
.by-info span { font-size: 13px; color: var(--muted); }
.by-stats { display: flex; gap: 16px; margin-left: auto; }
.by-stats > * { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--text-2); }
.by-stats small { color: var(--muted); }
.by-c:hover { color: var(--brand-text); }
.by-tools { display: flex; gap: 2px; }
.article figure { margin: 0 0 28px; }
.article figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.article figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.prose { font-size: calc(18px * var(--fs, 1)); line-height: 1.78; color: var(--text); }
.prose p { margin: 0 0 1.25em; }
.prose > p:first-child::first-letter { float: left; font-size: 3.3em; line-height: .9; font-weight: 900; margin: .08em .12em 0 0; color: var(--c); }
.prose h3 { font-size: 1.3em; font-weight: 800; margin: 1.6em 0 .6em; }
.prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--c, var(--brand)); font-size: 1.12em; font-weight: 600; font-style: italic; color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }

.reactions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; margin: 32px 0; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.react-q b { display: block; font-size: 17px; }
.react-q span { font-size: 14px; color: var(--muted); }
.react-btns { display: flex; gap: 10px; }
.react-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text-2); font-size: 16px; font-weight: 700; transition: all .2s var(--ease); }
.react-btn.like:hover { border-color: var(--ok); color: var(--ok-text); }
.react-btn.dislike:hover { border-color: var(--bad); color: var(--bad-text); }
.react-btn.like.on { background: color-mix(in srgb, var(--ok) 14%, transparent); border-color: var(--ok); color: var(--ok-text); }
.react-btn.dislike.on { background: color-mix(in srgb, var(--bad) 12%, transparent); border-color: var(--bad); color: var(--bad-text); }
.react-btn.pop { animation: pop .45s var(--ease); }
.xp-hint { position: absolute; top: -10px; right: -8px; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--grad); color: var(--on-brand); box-shadow: 0 4px 10px rgba(255, 196, 0, .3); }
.react-btn.on .xp-hint { display: none; }
.ratio { grid-column: 1 / -1; height: 6px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--bad) 70%, var(--surface-3)); }
.ratio i { display: block; height: 100%; background: var(--ok); transition: width .6s var(--ease); }
.react-share { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.react-share > span { font-size: 14.5px; font-weight: 700; }
.react-share em { font-style: normal; color: var(--brand-text); font-size: 12px; margin-left: 6px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-poll { margin: 28px 0; }

.comments { margin: 40px 0 10px; }
.c-title { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.comment-form { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; margin: 18px 0 22px; }
.comment-form textarea { width: 100%; min-height: 96px; resize: vertical; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); line-height: 1.5; transition: border-color .2s, background .2s; }
.comment-form textarea:focus { outline: 0; border-color: var(--brand-text); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }
.cf-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cf-foot .hint { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.c-guest { display: flex; align-items: center; gap: 14px; padding: 18px; margin: 18px 0; border-radius: 16px; background: var(--surface-2); }
.c-guest > .i { color: var(--brand-text); }
.c-guest div { flex: 1; }
.c-guest b { display: block; }
.c-guest span { font-size: 13px; color: var(--muted); }
.c-empty { padding: 16px 0; }
.comment { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment.new { animation: flashBg 1.6s ease; border-radius: 12px; }
.c-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.c-head .muted { font-size: 12.5px; }
.c-text { margin: 6px 0 6px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.c-like { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; margin-left: -8px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.c-like:hover { background: var(--surface-2); }
.c-like.on { color: var(--brand-text); }
.article-aside { display: flex; flex-direction: column; gap: 20px; }
.related { margin: 46px 0 10px; }

/* ---------- Kateqoriya ---------- */
.cat-hero { position: relative; overflow: hidden; padding: 42px 0; margin-bottom: 26px; background: linear-gradient(120deg, color-mix(in srgb, var(--c) 20%, var(--bg)), var(--bg) 70%); border-bottom: 1px solid var(--line); }
.cat-hero::after { content: ''; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); pointer-events: none; }
.ch-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; }
.ch-ic { width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; flex-shrink: 0; background: var(--c); color: #fff; box-shadow: 0 12px 28px color-mix(in srgb, var(--c) 40%, transparent); }
.cat-hero h1 { font-size: 36px; font-weight: 900; letter-spacing: -.02em; }
.cat-hero p { color: var(--text-2); margin-top: 4px; }
.ch-count { margin-left: auto; padding: 6px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ---------- Trend ---------- */
.trend-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; margin-bottom: 26px; }
.tt-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 340px; border-radius: var(--radius); overflow: hidden; color: #fff; background: color-mix(in srgb, var(--c) 60%, #000); }
.tt-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.tt-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 10, .1), rgba(10, 10, 10, .9)); }
.tt-card:hover img { transform: scale(1.05); }
.tt-rank { position: absolute; top: 12px; left: 16px; font-size: 54px; font-weight: 900; line-height: 1; letter-spacing: -.04em; color: #fff; text-shadow: 0 4px 20px rgba(0, 0, 0, .35); }
.tt-card.r1 .tt-rank { background: linear-gradient(180deg, #FFF3B0, #FFD600); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35)); }
.tt-body { padding: 20px; }
.tt-body h3 { font-size: 19px; font-weight: 800; line-height: 1.3; margin: 10px 0; }
.tt-card.r1 .tt-body h3 { font-size: 24px; }
.tt-body .meta { color: rgba(255, 255, 255, .85); }
.trend-rows { display: flex; flex-direction: column; gap: 10px; }
.trend-row { display: grid; grid-template-columns: 44px 120px minmax(0, 1fr) 96px; gap: 16px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s, opacity .6s var(--ease); }
.trend-row:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.tr-rank { font-size: 24px; font-weight: 900; color: var(--muted); text-align: center; }
.trend-row .thumb { aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--c) 20%, var(--surface-2)); }
.trend-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tr-body h3 { font-size: 16px; font-weight: 600; line-height: 1.38; margin: 3px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trend-row:hover h3 { color: var(--brand-text); }
.tr-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.tr-bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
.tr-views { text-align: right; }
.tr-views b { display: block; font-size: 18px; font-weight: 800; }
.tr-views span { font-size: 12px; color: var(--muted); }

/* ---------- Anketlər səhifəsi ---------- */
.poll-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.ps { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ps b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ps span { font-size: 13px; color: var(--muted); }
.ps.accent { background: var(--grad); border: 0; color: var(--on-brand); }
.ps.accent span { color: rgba(255, 255, 255, .85); }
.poll-focus { border: 2px solid var(--brand); margin-bottom: 24px; box-shadow: 0 0 0 6px var(--brand-soft); }
.pf-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--brand-text); margin-bottom: 10px; }
.poll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 18px; align-items: start; }
.poll-grid > .sk { margin: 0; }
.widget.flash { animation: flashRing 2s ease; }
.opt-inputs { display: flex; flex-direction: column; gap: 8px; }
.opt-input { display: flex; gap: 6px; align-items: center; }
.poll-form .link-btn { margin-top: 4px; justify-self: start; }

/* ---------- Radio ---------- */
.radio-hero {
  --c1: #FFD600; --c2: #FFC400;
  position: relative; overflow: hidden; color: #fff; padding: 52px 0; margin-bottom: 28px;
  background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 55%),
              radial-gradient(circle at 85% 90%, color-mix(in srgb, var(--c2) 45%, transparent), transparent 50%), #111111;
}
.rh-in { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 36px; align-items: center; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px; background: rgba(239, 68, 68, .92); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.rh-text h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 900; letter-spacing: -.03em; margin: 14px 0 10px; }
.rh-text p { opacity: .8; max-width: 46ch; font-size: 17px; }
.rh-xp { display: inline-flex !important; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: 14px !important; opacity: 1 !important; }
.rh-xp .i { color: var(--brand-2); }
.rh-now { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; padding: 22px; border-radius: 24px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.rh-art { width: 88px; height: 88px; border-radius: 20px; display: grid; place-items: center; text-align: center; font-size: 15px; font-weight: 900; line-height: 1.1; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.rh-info { min-width: 0; }
.rh-info small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .65; font-weight: 700; }
.rh-info b { display: block; font-size: 22px; font-weight: 800; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-info span { font-size: 14px; opacity: .85; }
.rh-info .err { color: #FCA5A5; opacity: 1; }
.viz { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 3px; height: 52px; }
.viz i { flex: 1; height: 100%; border-radius: 2px; background: rgba(255, 255, 255, .25); transform-origin: bottom; transform: scaleY(.12); transition: transform .4s; }
.viz.on i { background: linear-gradient(to top, var(--c1), #fff); animation: viz var(--d, 1s) ease-in-out infinite alternate; }
.viz i:nth-child(3n) { --d: .8s; animation-delay: -.4s; }
.viz i:nth-child(3n+1) { --d: 1.25s; animation-delay: -.2s; }
.viz i:nth-child(4n) { --d: .65s; animation-delay: -.6s; }
.viz i:nth-child(5n) { --d: 1.45s; animation-delay: -.75s; }
.viz i:nth-child(7n) { --d: .9s; animation-delay: -.1s; }
.rh-ctrl { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; }
.rh-play { width: 66px; height: 66px; flex-shrink: 0; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s var(--ease); }
.rh-play:hover { transform: scale(1.07); }
.rh-vol { flex: 1; display: flex; align-items: center; gap: 10px; opacity: .9; }
.rh-skip { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; transition: background .2s, transform .2s var(--ease); }
.rh-skip:hover { background: rgba(255, 255, 255, .22); }
.rh-skip:active { transform: scale(.9); }
.rh-vol input { width: 100%; accent-color: #fff; }
.radio-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.search-inline { display: flex; align-items: center; gap: 8px; height: 44px; min-width: 280px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); color: var(--muted); transition: border-color .2s; }
.search-inline:focus-within { border-color: var(--brand-text); }
.search-inline input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.station-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.station { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr) auto auto; grid-template-areas: 'freq info fav play'; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); }
.station:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c1) 50%, var(--line)); }
.station.on { border-color: var(--c1); box-shadow: 0 10px 28px color-mix(in srgb, var(--c1) 25%, transparent); }
.station .freq { grid-area: freq; width: 62px; height: 62px; border-radius: 14px; display: grid; place-items: center; text-align: center; font-size: 12px; font-weight: 800; line-height: 1.1; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.station.on .freq { align-items: start; padding-top: 12px; }
.station > div:not(.freq) { grid-area: info; min-width: 0; }
.station .name { font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station .genre { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station .eq { position: absolute; left: 12px; bottom: 18px; width: 62px; justify-content: center; color: #fff; }
.station .fav { grid-area: fav; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.station .fav:hover { background: var(--surface-2); }
.station .fav.on { color: #EAB308; }
.station .play { grid-area: play; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 6px 16px color-mix(in srgb, var(--c1) 35%, transparent); }
.st-err { position: absolute; left: 86px; bottom: 5px; font-size: 11px; font-weight: 600; color: var(--bad-text); }
.station.err { border-color: color-mix(in srgb, var(--bad) 50%, var(--line)); }
.note { display: flex; gap: 14px; padding: 18px 20px; margin: 30px 0 0; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.note > .i { color: var(--brand-text); margin-top: 2px; }
.note b { display: block; margin-bottom: 4px; }
.note p { font-size: 14px; line-height: 1.6; color: var(--text-2); }

/* ---------- Kabinet ---------- */
.profile-guest { max-width: 600px; margin: 48px auto; padding: 40px 28px; text-align: center; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pg-ic { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-brand); box-shadow: 0 14px 34px rgba(255, 196, 0, .35); }
.profile-guest h1 { font-size: 30px; font-weight: 900; }
.profile-guest p { color: var(--muted); margin: 10px auto 0; max-width: 46ch; }
.xp-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0; }
.xp-pills span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.xp-pills b { color: var(--brand-text); }
.pg-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }

.profile-hero { position: relative; overflow: hidden; color: #fff; padding: 38px 0; margin-bottom: 24px; background: linear-gradient(120deg, #111111, #1C1C1C 70%, #2B2508); }
.profile-hero::before { content: ''; position: absolute; left: -100px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 0, .4), transparent 70%); pointer-events: none; }
.ph-in { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.big-ring { --p: 0; position: relative; width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#FFD600, #FFC400 calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); }
.big-ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #1A1A1A; }
.big-ring .avatar { position: relative; }
.br-lvl { position: absolute; right: -2px; bottom: -2px; min-width: 42px; height: 42px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: var(--grad); border: 3px solid #1A1A1A; color: var(--on-brand); font-size: 16px; font-weight: 900; }
.br-cam { position: absolute; left: -2px; bottom: -2px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; border: 3px solid #1A1A1A; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.br-cam:hover { transform: scale(1.08); background: var(--brand); }
.br-cam:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.ph-main { max-width: 560px; min-width: 0; }
.ph-tier { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--tc); background: color-mix(in srgb, var(--tc) 18%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent); }
.ph-main h1 { font-size: 30px; font-weight: 900; margin: 10px 0 2px; overflow-wrap: anywhere; }
.ph-rank { opacity: .75; font-size: 14px; }
.profile-hero .xpbar { background: rgba(255, 255, 255, .12); }
.profile-hero .xp-row { color: rgba(255, 255, 255, .7); }
.profile-hero .xp-row b { color: #fff; }
.ph-stats { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 10px; }
.ph-stats > div { padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); }
.ph-stats b { display: flex; align-items: center; gap: 4px; font-size: 20px; font-weight: 800; }
.ph-stats b .i { color: var(--brand-2); }
.ph-stats span { font-size: 12px; opacity: .7; }

.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.span2 { grid-column: 1 / -1; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.panel-t { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.panel-t .i { color: var(--brand-text); }
.panel-t.mt { margin-top: 26px; }
.panel .more { margin-top: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.st-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 6px; background: var(--surface); color: var(--brand-text); }
.stat b { font-size: 22px; font-weight: 800; }
.st-l { font-size: 13px; font-weight: 600; color: var(--text-2); }
.st-xp { font-size: 12px; font-weight: 700; color: var(--brand-text); }
.live { display: flex; align-items: center; gap: 20px; }
.live p + p { margin-top: 8px; font-size: 13.5px; }
.badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 8px; border-radius: 14px; background: var(--surface-2); text-align: center; }
.badge b { font-size: 13px; }
.badge small { font-size: 11.5px; color: var(--muted); }
.badge .qbar { width: 80%; margin-top: 6px; }
.bd-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; background: var(--surface-3); color: var(--muted); }
.badge.done .bd-ic { background: var(--grad); color: var(--on-brand); box-shadow: 0 8px 18px rgba(255, 196, 0, .3); }
.badge:not(.done) { opacity: .8; }
.roadmap { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.rm { padding: 14px 10px; border-radius: 14px; background: var(--surface-2); text-align: center; border: 1.5px solid transparent; }
.rm-l { display: block; font-size: 24px; font-weight: 900; color: var(--brand-text); }
.rm b { display: block; font-size: 13px; }
.rm small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.rm.rank { border-color: var(--brand); background: var(--brand-soft); }
.rm.rank small { color: var(--brand-text); font-weight: 700; }
.history { list-style: none; }
.history li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: 0; }
.h-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); }
.h-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.h-body b { font-size: 14.5px; }
.h-ref { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.h-ref a:hover { color: var(--brand-text); }
.h-body small { font-size: 12px; color: var(--muted); }
.h-xp { font-size: 15px; font-weight: 800; color: var(--brand-text); }
.t-minute { --tc: #EA580C; }
.t-like { --tc: #16A34A; }
.t-dislike { --tc: #DC2626; }
.t-poll { --tc: #7C3AED; }
.t-share { --tc: #0891B2; }
.t-comment { --tc: #2563EB; }
.t-game { --tc: #7C3AED; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font-weight: 600; }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(17, 17, 17, .1); }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; cursor: pointer; }
.switch { appearance: none; -webkit-appearance: none; position: relative; width: 44px; height: 26px; flex-shrink: 0; margin: 0; border-radius: 99px; background: var(--surface-3); cursor: pointer; transition: background .2s; }
.switch::before { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.switch:checked { background: var(--brand); }
.switch:checked::before { transform: translateX(18px); }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pic-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }

/* ---------- Liderlər ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 16px; max-width: 720px; margin: 12px auto 26px; }
.pd { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.pd .avatar { border: 4px solid var(--surface); box-shadow: var(--shadow-lg); }
.pd.me .avatar { outline: 3px solid var(--brand); }
.crown { color: #EAB308; animation: float 2.4s ease-in-out infinite; }
.pd-name { font-size: 15px; font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 6px; }
.pd-rank { font-size: 12px; color: var(--muted); }
.pd-xp { font-size: 13.5px; font-weight: 800; color: var(--brand-text); }
.pd-step { width: 100%; margin-top: 10px; border-radius: 16px 16px 4px 4px; display: flex; justify-content: center; padding-top: 12px; }
.pd-step span { font-size: 36px; font-weight: 900; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.p1 .pd-step { height: 150px; background: linear-gradient(180deg, #FACC15, #CA8A04); }
.p2 .pd-step { height: 112px; background: linear-gradient(180deg, #CBD5E1, #64748B); }
.p3 .pd-step { height: 86px; background: linear-gradient(180deg, #E8A06A, #9A5626); }
.lb-me { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 18px; border-radius: 16px; background: var(--brand-soft); border: 1.5px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.lb-me > div { flex: 1; min-width: 0; }
.lb-me b { display: block; }
.lb-me span { font-size: 13px; color: var(--muted); }
.lb-me .lb-gap { flex-shrink: 0; color: var(--text-2); }
.lb-gap b { display: inline; color: var(--brand-text); }
.lb-me.guest { background: var(--surface); border-color: var(--line); }
.lb-me.guest > .i { color: var(--brand-text); }
.lb-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lb-tr { display: grid; grid-template-columns: 52px minmax(0, 1fr) 190px 90px 100px; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.lb-tr:last-child { border-bottom: 0; }
.lb-tr.head { background: var(--surface-2); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lb-tr.head > :last-child, .lb-xp { text-align: right; }
.lb-tr.me { background: var(--brand-soft); }
.lb-n { text-align: center; font-weight: 800; color: var(--muted); }
.lb-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-user b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-user em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--brand); color: var(--on-brand); }
.lb-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); }
.lb-status i, .lt-tier i { width: 9px; height: 9px; border-radius: 50%; background: var(--tc); flex-shrink: 0; }
.lb-xp { font-weight: 800; font-variant-numeric: tabular-nums; }
.lb-table + .hint { margin: 16px 0 0; }

/* ---------- Xal sistemi ---------- */
.xp-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 40px; margin: 28px 0 0; border-radius: 28px; color: #fff; background: linear-gradient(120deg, #111111, #1C1C1C 70%, #2B2508); }
.xp-hero::before { content: ''; position: absolute; right: 10%; top: -40%; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 0, .35), transparent 70%); pointer-events: none; }
.xp-hero > * { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-2); }
.xp-hero h1 { font-size: clamp(30px, 4.5vw, 50px); font-weight: 900; letter-spacing: -.03em; line-height: 1.08; margin: 12px 0 14px; }
.xp-hero p { opacity: .82; max-width: 54ch; margin-bottom: 22px; font-size: 16.5px; }
.xp-hero .lvl-ring { background: conic-gradient(#FFD600, #FFC400 calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); }
.xp-hero .lvl-ring::before { background: #1A1A1A; }
.xp-hero .lvl-ring small { color: rgba(255, 255, 255, .7); }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 14px; }
.rule { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s, opacity .6s var(--ease); }
.rule:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.rule-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); }
.rule-xp { font-size: 32px; font-weight: 900; letter-spacing: -.02em; color: var(--tc); line-height: 1.1; }
.rule-xp small { font-size: 14px; }
.rule-l { font-size: 15px; font-weight: 600; }
.rule small.muted { font-size: 12.5px; }
.xp-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 22px; }
.formula { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 14px 16px; margin-bottom: 10px; border-radius: 12px; background: var(--surface-2); }
.formula span { font-size: 14px; color: var(--text-2); }
.formula b { font-size: 17px; font-weight: 800; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.xp-split .panel > p.muted { font-size: 14.5px; line-height: 1.6; margin-top: 14px; }
.xp-split .panel > p.muted b { color: var(--text); }
.calc-res { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; line-height: 1.5; }
.lvl-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lt-row { display: grid; grid-template-columns: 90px 1fr 1fr 1.4fr 1fr; gap: 12px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; }
.lt-row:last-child { border-bottom: 0; }
.lt-row.head { background: var(--surface-2); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lt-row.me { background: var(--brand-soft); font-weight: 700; }
.lt-row.more { color: var(--muted); font-style: italic; }
.lt-tier { display: inline-flex; align-items: center; gap: 7px; }
.tiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tier { padding: 20px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.tier-gem { width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 55%, #000)); box-shadow: 0 10px 22px color-mix(in srgb, var(--tc) 35%, transparent); transform: rotate(-6deg); }
.tier b { display: block; font-size: 16px; }
.tier small { color: var(--muted); }
.fair { margin: 30px 0 0; }
.checks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.55; }
.checks .i { color: var(--ok-text); margin-top: 3px; }

/* ---------- Axtarış ---------- */
.search-page { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; margin: 30px 0 16px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.search-page:focus-within { border-color: var(--brand-text); }
.search-page > .i { color: var(--muted); }
.search-input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 17px; }
.search-input::-webkit-search-cancel-button { cursor: pointer; }
.s-count { color: var(--muted); margin: 6px 0 8px; }
.s-count b { color: var(--text); }
.search-box { display: flex; align-items: center; gap: 10px; padding: 0 44px 10px 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; color: var(--muted); }
.search-box .search-input { font-size: 18px; height: 48px; }
.search-results { max-height: min(60vh, 560px); overflow-y: auto; }
.search-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 8px 0 18px; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pills a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 99px; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); font-size: 14px; font-weight: 600; transition: background .2s; }
.cat-pills a:hover { background: color-mix(in srgb, var(--c) 22%, transparent); }

/* ---------- Bölmələr ---------- */
.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ql { display: flex; flex-direction: column; gap: 3px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s, opacity .6s var(--ease); }
.ql:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ql-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; background: var(--c); color: #fff; }
.ql b { font-size: 15px; }
.ql small { font-size: 12.5px; color: var(--muted); }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); transition: border-color .2s, transform .25s var(--ease), opacity .6s var(--ease); }
.cat-tile:hover { border-color: var(--c); transform: translateY(-2px); }
.ct-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.cat-tile > div { flex: 1; min-width: 0; }
.cat-tile b { display: block; font-size: 16px; }
.cat-tile small { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct-n { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(10, 10, 10, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .2s ease both; overflow-y: auto; }
.modal-back.closing { animation: fadeOut .18s ease both; }
.modal { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-lg); animation: modalIn .3s var(--ease) both; }
.modal.wide { width: min(660px, 100%); }
.modal.top { align-self: start; margin-top: 8vh; }
.modal.center { text-align: center; overflow: hidden; }
.modal .close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.modal-title { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; margin-bottom: 6px; padding-right: 40px; }
.modal-title .i { color: var(--brand-text); }
.share-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.share-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; transition: border-color .2s, transform .2s var(--ease); }
.share-tile:hover { border-color: var(--sc); transform: translateY(-2px); }
.share-tile span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--sc); color: #fff; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { font-size: 13px; }

.auth-head { text-align: center; margin-bottom: 18px; }
.auth-head .mark { width: 54px; height: 54px; margin: 0 auto 12px; }
.auth-head h3 { font-size: 22px; font-weight: 800; }
.auth-head p { font-size: 14px; margin-top: 4px; }
.auth .tabs { margin-bottom: 18px; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.lvlup { position: relative; padding-top: 8px; }
.lvlup-badge { width: 116px; height: 116px; margin: 6px auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-brand); font-size: 48px; font-weight: 900; box-shadow: 0 0 0 10px var(--brand-soft), 0 18px 40px rgba(255, 196, 0, .4); animation: pop .7s var(--ease) both; }
.lvlup h3 { font-size: 24px; font-weight: 900; margin-bottom: 10px; }
.lvlup p { margin-bottom: 12px; line-height: 1.6; }
.lvlup .btn { margin-top: 8px; }

/* ---------- Hekayə baxışı ---------- */
.story-viewer { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(0, 0, 0, .92); animation: fadeIn .2s ease both; }
.sv-frame { position: relative; width: min(430px, 100%); height: min(100dvh, 860px); aspect-ratio: 9 / 16; max-height: 100dvh; overflow: hidden; background: #000; border-radius: 18px; }
.sv-bars { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 4; display: flex; gap: 4px; }
.sv-bars i { flex: 1; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.sv-bars b { display: block; height: 100%; width: 0; background: #fff; }
.sv-close { position: absolute; top: 24px; right: 10px; z-index: 5; color: #fff; }
.sv-close:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.sv-stage { position: absolute; inset: 0; }
.sv-stage img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 7s ease-out both; }
.sv-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 25%, transparent 45%, rgba(0, 0, 0, .9)); }
.sv-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 24px 22px calc(28px + env(safe-area-inset-bottom)); color: #fff; pointer-events: none; animation: slideUp .5s var(--ease) both; }
.sv-text .btn { pointer-events: auto; }
.sv-label { display: flex; align-items: center; gap: 8px; }
.sv-label .mark { width: 28px; height: 28px; }
.sv-label b { font-size: 14px; }
.sv-label span { font-size: 12px; opacity: .7; }
.sv-text h3 { font-size: 24px; font-weight: 800; line-height: 1.25; margin: 14px 0 8px; }
.sv-text p { font-size: 15px; opacity: .85; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sv-prev, .sv-next { position: absolute; top: 0; bottom: 0; z-index: 2; width: 35%; border: 0; background: transparent; }
.sv-prev { left: 0; }
.sv-next { right: 0; width: 65%; }

/* ---------- Mini pleyer ---------- */
.mini-player { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 8px; width: min(560px, calc(100% - 24px)); padding: 10px 12px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(160%); opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
.mini-player.show { transform: none; opacity: 1; }
.mp-art { width: 48px; height: 48px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; text-align: center; font-size: 11px; font-weight: 800; line-height: 1.1; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
/* Ad sahəsi düymədir: toxunanda stansiya siyahısı açılır */
.mp-info { flex: 1; min-width: 0; display: block; margin: -4px -6px; padding: 4px 6px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .2s; }
.mp-info:hover { background: var(--surface-2); }
.mp-name { display: flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 700; }
.mp-name > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-name svg { flex-shrink: 0; color: var(--muted); }
.mp-skip { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 0; display: grid; place-items: center; background: transparent; color: var(--text); transition: background .2s, transform .2s var(--ease); }
.mp-skip:hover { background: var(--surface-2); }
.mp-skip:active { transform: scale(.88); }
.mp-sub { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mp-sub .eq { color: var(--brand-text); height: 12px; }
.mp-sub.err { color: var(--bad-text); }
.mp-vol { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.mp-vol { margin-right: 4px; }
.mp-vol input { width: 76px; }
.mp-btn { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--grad); color: var(--on-brand); box-shadow: 0 6px 16px rgba(255, 196, 0, .35); transition: transform .2s var(--ease); }
.mp-btn:hover { transform: scale(1.06); }
.mp-x { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; border: 0; display: grid; place-items: center; background: transparent; color: var(--muted); }
.mp-x:hover { background: var(--surface-2); color: var(--text); }
.mp-info { overflow: hidden; }
.mp-sub { max-width: 100%; white-space: nowrap; }
.mp-fab, .mp-min { display: none; }
/* Pleyer adətən yığılıdır: yalnız yuvarlaq radio düyməsi; toxunanda (.open) tam pleyer açılır */
.mini-player:not(.open) { left: auto; width: auto; padding: 0; gap: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mini-player:not(.open) > :not(.mp-fab) { display: none; }
.mini-player:not(.open) > .mp-fab { display: grid; }
.mp-fab { position: relative; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--surface); place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: var(--shadow-lg); cursor: pointer; transition: transform .2s var(--ease); animation: modalIn .3s var(--ease) both; }
.mp-fab .eq { height: 18px; }
.mp-fab .eq i { width: 4px; }
.mini-player.open .mp-min { display: grid; width: 32px; height: 32px; flex-shrink: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.mp-fab:hover { transform: scale(1.07); }
.mp-min:hover { background: var(--surface-2); color: var(--text); }
.mini-player.open { animation: slideUp .3s var(--ease) both; }
/* Stansiya siyahısı pəncərəsi */
.st-modal { width: min(420px, 100%); padding: 24px 20px 20px; }
.st-pick h2 { display: flex; align-items: center; gap: 10px; margin: 0 36px 14px 4px; font-size: 20px; font-weight: 800; }
.st-pick h2 svg { color: var(--brand-text); }
.st-list { display: grid; gap: 4px; max-height: min(58dvh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.st-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.st-row:hover { background: var(--surface-2); }
.st-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.st-row.on { background: color-mix(in srgb, var(--brand) 14%, transparent); border-color: color-mix(in srgb, var(--brand) 50%, transparent); }
.st-art { width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; text-align: center; font-size: 10px; font-weight: 800; line-height: 1.1; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.st-txt { flex: 1; min-width: 0; }
.st-txt b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-txt small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--surface-2); }
.st-row.on .st-ic { background: var(--grad); color: var(--on-brand); }
.st-ic .eq { height: 12px; }
.st-nav { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
body.has-player .footer { padding-bottom: 90px; }

/* ---------- Bildirişlər ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100% - 24px); }
body.has-player .toasts { bottom: 100px; }
.toast { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px; background: #111111; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); animation: toastIn .35s var(--ease) both; }
[data-theme=dark] .toast { background: #1F1F1F; border: 1px solid #2E2E2E; }
.toast > .i { color: #4ADE80; margin-left: 4px; }
.toast.error > .i { color: #F87171; }
.toast .xp { padding: 3px 9px; border-radius: 99px; background: var(--grad); color: var(--on-brand); font-size: 13px; font-weight: 900; white-space: nowrap; }
.toast.out { animation: toastOut .3s ease both; }

/* ---------- Footer ---------- */
.footer { margin-top: 70px; padding: 52px 0 0; background: var(--ink); color: rgba(255, 255, 255, .68); }
.footer .wordmark { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 36px; }
.footer h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-grid > div > a:not(.store-btn) { display: block; font-size: 14px; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.f-about p { font-size: 14px; line-height: 1.65; margin-top: 14px; max-width: 40ch; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s; }
.socials a:hover { background: var(--brand); color: var(--on-brand); }
.f-small { font-size: 13.5px; line-height: 1.6; margin-bottom: 12px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; margin: 0 6px 8px 0; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.store-btn > span { display: flex; flex-direction: column; font-size: 14px; font-weight: 700; line-height: 1.2; }
.store-btn small { font-size: 10px; font-weight: 500; opacity: .7; }
.install-btn { margin-top: 6px; }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 0 22px; margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; }

/* ---------- Mobil aşağı menyu ---------- */
.bottom-nav { display: none; }

/* ---------- Animasiyalar ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes viz { from { transform: scaleY(.12); } to { transform: scaleY(1); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-28px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes flashBg { from { background: var(--brand-soft); } to { background: transparent; } }
@keyframes flashRing { 0%, 60% { box-shadow: 0 0 0 4px var(--brand), var(--shadow); } 100% { box-shadow: var(--shadow); } }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Uyğunlaşma (responsive) ---------- */
@media (max-width: 1100px) {
  .article-wrap { grid-template-columns: 56px minmax(0, 1fr); }
  .article-aside { grid-column: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; margin-top: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rh-in { grid-template-columns: minmax(0, 1fr); }
  .ph-in { grid-template-columns: auto minmax(0, 1fr); }
  .ph-stats { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xp-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .trend-top { grid-template-columns: 1fr 1fr; }
  .tt-card.r1 { grid-column: 1 / -1; }
  .roadmap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --header-h: 102px; }
  .hide-m, .hide-s { display: none !important; }
  .show-m { display: inline-grid !important; }
  .search-pill { display: none; }
  .bar { height: 58px; gap: 10px; }
  .wordmark { font-size: 19px; }
  .mark { width: 34px; height: 34px; }
  .uc-text { display: none; }
  .user-chip { padding: 3px; }
  .lvl-ring:not(.lg):not(.xl):not(.xxl) { --s: 36px; }
  .catbar-in { height: 44px; }
  .topbar .container { gap: 14px; }
  .tb-right { display: none; }

  body { padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--bottom-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-top: 1px solid var(--line);
  }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); transition: color .2s; }
  .bottom-nav a.active { color: var(--brand-text); box-shadow: inset 0 3px 0 var(--brand); }
  .bn-fab { width: 54px; height: 54px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-brand); border: 4px solid var(--bg); box-shadow: 0 8px 20px rgba(255, 196, 0, .4); }
  .bn-radio { gap: 1px !important; }

  .mini-player { left: 10px; right: 10px; width: auto; bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + 10px); }
  .mp-vol { display: none; }
  .mini-player { gap: 6px; padding: 8px 10px; }
  .mini-player:not(.open) { right: 12px; }
  .mp-art { width: 44px; height: 44px; }
  .mp-skip { width: 32px; height: 32px; }
  .mp-x { width: 28px; }
  /* Mobil: açılmış pleyer iki sətirdə (üstdə stansiya, aşağıda ⏮ ⏯ ⏭) */
  .mini-player.open { flex-wrap: wrap; row-gap: 8px; }
  .mini-player.open .mp-min { width: 28px; }
  .mini-player.open .mp-info { flex: 1 1 0; }
  .mini-player.open .mp-skip, .mini-player.open .mp-btn { order: 2; }
  .mini-player.open .mp-skip[data-mp="prev"] { margin-left: auto; }
  .mini-player.open .mp-skip[data-mp="next"] { margin-right: auto; }
  .mini-player.open::after { content: ''; order: 1; flex-basis: 100%; height: 0; }
  .rh-ctrl { gap: 12px; }
  .toasts { bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + 16px); }
  body.has-player .toasts { bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + 92px); }
  body.has-player .footer { padding-bottom: 80px; }

  .page-head { margin: 22px 0 18px; }
  .page-head h1 { font-size: 26px; }
  .ph-ic { width: 42px; height: 42px; }
  .sec-head { margin: 30px 0 14px; }
  .sec-head h2 { font-size: 20px; }
  .hero-card.big { min-height: 400px; }
  .hero-card.big .body { padding: 20px; }
  .cat-block { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

  .article-wrap { grid-template-columns: minmax(0, 1fr); }
  .share-rail { display: none; }
  .article-aside { grid-column: auto; }
  .article .lead { font-size: 17px; }
  .by-stats { margin-left: 0; }
  .by-tools { margin-left: auto; }
  .reactions { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .react-btns { width: 100%; }
  .react-btn { flex: 1; justify-content: center; }

  .cat-hero { padding: 28px 0; }
  .cat-hero h1 { font-size: 28px; }
  .ch-ic { width: 54px; height: 54px; border-radius: 16px; }
  .ch-in { flex-wrap: wrap; }
  .ch-count { margin-left: 0; }

  .poll-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radio-hero { padding: 32px 0; }
  .rh-now { padding: 18px; }
  .ph-in { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 18px; }
  .ph-main { width: 100%; }
  .ph-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .ph-stats b { justify-content: center; }
  .xp-hero { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; text-align: center; }
  .xp-hero p { margin-inline: auto; }
  .xp-hero .lvl-ring.xxl { --s: 140px; margin: 0 auto; }
  .xp-hero .lvl-ring.xxl b { font-size: 44px; }
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lt-row { grid-template-columns: 70px 1fr 1fr 1.4fr; }
  .lb-me { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .hide-xs { display: none !important; }
  .container, .container.narrow { width: calc(100% - 28px); }
  .topbar { display: none; }
  .hero-side { grid-template-columns: minmax(0, 1fr); }
  .hero-card { min-height: 210px; }
  .hero-card.big { min-height: 380px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .list-item { grid-template-columns: 96px minmax(0, 1fr); }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .poll-grid { grid-template-columns: minmax(0, 1fr); }
  .trend-top { grid-template-columns: minmax(0, 1fr); }
  .tt-card { min-height: 250px; }
  .trend-row { grid-template-columns: 26px 84px minmax(0, 1fr); gap: 12px; }
  .tr-views { grid-column: 3; text-align: left; display: flex; align-items: baseline; gap: 5px; margin-top: -6px; }
  .tr-views b { font-size: 14px; }
  .tr-rank { font-size: 18px; }
  .station-grid { grid-template-columns: minmax(0, 1fr); }
  .search-inline { min-width: 0; width: 100%; }
  .radio-tools .tabs { width: 100%; }
  .rh-art { width: 72px; height: 72px; }
  .rh-now { grid-template-columns: 72px minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quests.big .quest { grid-template-columns: 28px minmax(0, 1fr) 36px; }
  .quests.big .qbar { display: none; }
  .live { flex-direction: column; text-align: center; }
  .podium { gap: 8px; }
  .pd-rank { display: none; }
  .p1 .pd-step { height: 120px; }
  .p2 .pd-step { height: 90px; }
  .p3 .pd-step { height: 70px; }
  .lb-tr { grid-template-columns: 34px minmax(0, 1fr) 72px 72px; padding: 10px 12px; gap: 8px; }
  .lt-row { grid-template-columns: 56px 1fr 1.4fr; padding: 10px 14px; }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-tiles { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .comment-form { grid-template-columns: minmax(0, 1fr); }
  .comment-form > .avatar { display: none; }
  .prose { font-size: calc(17px * var(--fs, 1)); }
  .byline { gap: 10px; }

  /* Modallar alt panel (bottom sheet) kimi açılır */
  .modal-back { place-items: end center; padding: 0; }
  .modal { width: 100% !important; border-radius: 24px 24px 0 0; max-height: 92dvh; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); animation: sheetIn .35s var(--ease) both; }
  .modal.top { align-self: start; margin: 0; border-radius: 0 0 24px 24px; padding-top: calc(20px + env(safe-area-inset-top)); animation: sheetDown .35s var(--ease) both; }
  .share-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sv-frame { border-radius: 0; width: 100%; height: 100dvh; }
}
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes sheetDown { from { transform: translateY(-100%); } }

@media (hover: none) {
  .card:hover, .station:hover, .rule:hover, .ql:hover, .cat-tile:hover, .trend-row:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Sosial: dostlar, profil, mesajlar, məqalə yazma, anket vaxtı
   ===================================================================== */
:root { --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; }
[data-theme=dark] { --s1: #3987e5; --s2: #d95926; --s3: #199e70; }

.online { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); border: 2.5px solid var(--surface); }
.u-link { color: inherit; font-weight: 700; }
.u-link:hover { color: var(--brand-text); }
.chip.community { background: color-mix(in srgb, #EA580C 14%, transparent); color: #EA580C; }
a.pd-name { display: block; }
a.pd-name:hover, a.lb-user:hover b { color: var(--brand-text); }

/* Başlıq: yarat menyusu və nişanlar */
.create-menu { position: relative; }
.cm-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; width: 240px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: fadeIn .15s; }
.cm-pop[hidden] { display: none; }
.cm-pop a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; }
.cm-pop a:hover { background: var(--surface-2); }
.cm-pop a > .i { color: var(--brand-text); flex-shrink: 0; }
.cm-pop b { display: block; font-size: 14px; }
.cm-pop small { font-size: 12px; color: var(--muted); }
.badge-wrap { position: relative; }
/* Kiçik say nişanı — ikonun künc tərəfində durur, ikonu örtmür */
.hdr-badge, .bn-badge { position: absolute; top: 3px; right: 1px; min-width: 12px; height: 13px; padding: 0 3px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font-size: 9px; line-height: 13px; font-weight: 800; font-style: normal; text-align: center; border: 1.5px solid var(--surface); box-sizing: content-box; pointer-events: none; }
.hdr-badge[hidden], .bn-badge[hidden] { display: none; }
.bottom-nav a { position: relative; }
.bn-badge { top: 2px; right: calc(50% - 24px); }
.live-link { display: inline-flex; align-items: center; gap: 7px; color: var(--bad-text) !important; font-weight: 700; }
.catbar a.live-link.active { color: var(--on-brand) !important; }
.catbar a.live-link.active .live-dot { color: var(--live); }

/* Dostlar */
.people-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.tab-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 700; }
.tab-badge[hidden] { display: none; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.person { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px 14px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: box-shadow .2s, transform .2s var(--ease), opacity .6s var(--ease); }
.person:hover { box-shadow: var(--shadow); }
.person-av { position: relative; display: block; }
.person-name { display: block; font-weight: 800; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-name:hover { color: var(--brand-text); }
.person-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.person-meta span { display: inline-flex; align-items: center; gap: 3px; }
.person-act { grid-column: 1 / -1; display: flex; gap: 8px; }
.person-act .btn { flex: 1; justify-content: center; }
.sub-t { font-size: 17px; font-weight: 800; margin: 24px 0 12px; }
.sub-t:first-child { margin-top: 4px; }
.is-friend:hover { color: var(--bad-text); }

/* İstifadəçi profili */
.user-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-top: 28px; padding: 30px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.uh-av { position: relative; }
.uh-av .online { width: 20px; height: 20px; right: 4px; bottom: 4px; border-width: 4px; }
.uh-main h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.uh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.uh-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ph-tier { padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--tc) 14%, transparent); color: var(--tc) !important; font-weight: 700; }
.on-txt { color: var(--ok-text) !important; font-weight: 600; }
.on-txt i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.uh-bio { margin-top: 12px; color: var(--text-2); max-width: 60ch; }
.uh-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chat-placeholder .uh-act { justify-content: center; }
.uh-stats { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.uh-nums { display: flex; gap: 18px; }
.uh-nums span { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--muted); }
.uh-nums b { font-size: 20px; font-weight: 800; color: var(--text); }
.sec-t { display: flex; align-items: center; gap: 10px; }
.sec-t .i { color: var(--brand-text); }

/* Mesajlar */
.chat-shell { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - var(--header-h) - 60px); min-height: 480px; margin: 22px 0 10px; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.chat-list { display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 18px 12px 12px; border-right: 1px solid var(--line); }
.cl-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.cl-head h1 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.cl-head h1 .i { color: var(--brand-text); }
.chat-list .search-inline { min-width: 0; height: 42px; background: var(--surface-2); border-color: transparent; }
.conv-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.conv { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; transition: background .15s; }
.conv:hover { background: var(--surface-2); }
.conv.active { background: var(--brand-soft); }
.conv-av { position: relative; flex-shrink: 0; display: inline-flex; }
.conv-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; }
.conv-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.conv-top small { flex-shrink: 0; font-size: 11.5px; color: var(--muted); }
.conv-last { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv.unread .conv-last { color: var(--text); font-weight: 600; }
.conv-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.chat-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.chat-main.drop::after { content: 'Şəkli buraya atın'; position: absolute; inset: 10px; z-index: 5; display: grid; place-items: center; border: 2.5px dashed var(--brand); border-radius: 18px; background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--brand-text); font-weight: 800; font-size: 18px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ch-back { display: none; }
.ch-user { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.ch-user b { display: block; font-size: 15.5px; }
.ch-user small { font-size: 12.5px; color: var(--muted); }
.msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 8px; }
.day-sep { display: flex; justify-content: center; margin: 12px 0 8px; }
.day-sep span { padding: 4px 12px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 600; }
.msg { display: flex; align-items: center; gap: 6px; max-width: 78%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.bubble { position: relative; padding: 9px 13px 7px; border-radius: 18px 18px 18px 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(17, 17, 17, .05); overflow-wrap: anywhere; }
.bubble p { white-space: pre-wrap; }
.msg.mine .bubble { border-radius: 18px 18px 6px 18px; background: var(--grad); color: var(--on-brand); border: 0; }
.bubble.only-img { padding: 4px; }
.msg-img { display: block; max-width: min(320px, 100%); max-height: 320px; border-radius: 14px; cursor: zoom-in; object-fit: cover; }
.bubble:not(.only-img) .msg-img { margin: -4px -8px 6px; max-width: calc(100% + 16px); }
.msg-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 2px; font-size: 11px; opacity: .75; }
.bubble.only-img .msg-meta { position: absolute; right: 10px; bottom: 9px; padding: 2px 7px; border-radius: 99px; background: rgba(0, 0, 0, .5); color: #fff; opacity: 1; }
.tick { display: inline-flex; }
.tick.read { color: #BFE6FF; }
.msg-del { opacity: 0; width: 28px; height: 28px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--muted); transition: opacity .15s; }
.msg:hover .msg-del, .msg-del:focus-visible { opacity: 1; }
.msg-del:hover { color: var(--bad-text); background: var(--surface-2); }
.typing { display: flex; align-items: center; gap: 8px; padding: 0 22px 8px; font-size: 12.5px; color: var(--muted); }
.typing[hidden] { display: none; }
.dots { display: inline-flex; gap: 3px; padding: 7px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: pulse 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
.composer { padding: 10px 14px 14px; background: var(--surface); border-top: 1px solid var(--line); }
.att-preview { position: relative; display: inline-block; margin-bottom: 10px; }
.att-preview[hidden] { display: none; }
.att-preview img { display: block; height: 92px; max-width: 200px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.att-preview .icon-btn { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; background: var(--text); color: var(--surface); }
.cmp-row { display: flex; align-items: flex-end; gap: 8px; }
.att-btn { cursor: pointer; flex-shrink: 0; }
#msgText { flex: 1; min-height: 44px; max-height: 160px; resize: none; padding: 11px 16px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; line-height: 1.4; outline: 0; transition: border-color .2s; }
#msgText:focus { border-color: var(--brand-text); background: var(--surface); }
.send-btn { flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-brand); box-shadow: 0 6px 16px rgba(255, 196, 0, .3); transition: transform .15s; }
.send-btn:hover { transform: scale(1.06); }
.send-btn:disabled { opacity: .5; transform: none; }
.chat-placeholder, .chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px; text-align: center; color: var(--muted); }
.chat-placeholder h2 { color: var(--text); font-size: 20px; }
.chat-placeholder > .i { opacity: .5; }
.nc-list { display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow-y: auto; margin-top: 8px; }
.lightbox { padding: 10px; background: transparent; box-shadow: none; width: auto !important; max-width: 94vw; }
.lightbox .close { background: var(--surface); }
.lightbox-img { display: block; max-width: 92vw; max-height: 86vh; border-radius: 14px; margin: 0 auto; }
/* Profil şəkli redaktoru: şəkil dairədə sürüşdürülür və böyüdülür */
.pic-modal { width: min(380px, 100%); }
.pic-edit { display: grid; justify-items: center; gap: 14px; text-align: center; }
.pic-edit h2 { font-size: 20px; font-weight: 800; }
.pic-edit canvas { width: min(260px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--surface-2); cursor: grab; touch-action: none; box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--brand), var(--shadow-lg); }
.pic-edit canvas:active { cursor: grabbing; }
.pic-edit canvas:focus-visible { outline: 3px dashed var(--brand); outline-offset: 10px; }
.pic-zoom { display: flex; align-items: center; gap: 10px; width: min(260px, 100%); margin-top: 8px; color: var(--muted); }
.pic-zoom input { flex: 1; min-width: 0; accent-color: var(--brand-2); }
.pic-edit .hint { margin: 0; }
.pic-edit .row-btns { justify-content: center; }

/* Məqalə yazma */
.tab-a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.tab-a.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(17, 17, 17, .1); }
.write-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.write-form { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.write-form .field label { display: flex; justify-content: space-between; }
.cover-drop { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 7; border-radius: 16px; border: 2px dashed var(--line); background: var(--surface-2); cursor: pointer; overflow: hidden; transition: border-color .2s, background .2s; }
.cover-drop:hover, .cover-drop.over { border-color: var(--brand); background: var(--brand-soft); }
.cover-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-drop.has { border-style: solid; }
.cover-drop.has .cd-empty { display: none; }
.cd-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--muted); padding: 16px; }
.cd-empty .i { color: var(--brand-text); }
.cd-empty b { color: var(--text); }
.cd-empty span { font-size: 12.5px; }
.cd-rm { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(0, 0, 0, .55); color: #fff; }
.input.big { height: 54px; font-size: 19px; font-weight: 700; }
textarea.input.area { height: auto; padding: 12px 14px; line-height: 1.6; resize: vertical; font: inherit; }
textarea.input.body { min-height: 300px; }
.fmt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12.5px; }
.fmt-bar button { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 13px; }
.fmt-bar button:hover { border-color: var(--brand); color: var(--brand-text); }
.fmt-bar .muted { margin-left: auto; }
.write-actions { display: flex; align-items: center; gap: 10px; }
.write-actions > .muted { margin-right: auto; font-size: 13px; }
.write-side { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.w-prev { max-height: 520px; overflow-y: auto; }
.article.mini h2 { font-size: 21px; font-weight: 800; line-height: 1.25; margin: 10px 0 8px; overflow-wrap: anywhere; }
.article.mini .lead { font-size: 14.5px; }
.article.mini .byline { margin: 14px 0; padding: 0; border: 0; }
.article.mini .prose { font-size: 14.5px; }
.article.mini .prose h2 { font-size: 17px; margin: 16px 0 6px; }
.wp-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }
.tips ul { display: grid; gap: 8px; padding-left: 18px; font-size: 13.5px; color: var(--text-2); }
.my-articles { display: flex; flex-direction: column; gap: 12px; }
.my-art { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.my-art .thumb img { width: 140px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; display: block; }
.my-art h4 { font-size: 16px; font-weight: 800; margin: 4px 0 6px; line-height: 1.3; }
.my-art h4:hover { color: var(--brand-text); }

/* Anket: başlama və bitmə vaxtı */
.dur-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dur-chips button { height: 34px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 13px; }
.dur-chips button:hover { border-color: var(--brand); }
.dur-chips button.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); }
#durInfo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 0; }
.poll-when { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.poll-when b { color: var(--text-2); font-weight: 600; }
.poll-status.soon { color: #CA8A04; }
.poll.upcoming .poll-opt { opacity: .6; cursor: not-allowed; }

/* =====================================================================
   Bazarlar
   ===================================================================== */
.mkt-upd { display: flex; align-items: center; gap: 10px; }
.upd { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.upd .live-dot { color: var(--ok-text); }
.rotating .i { animation: spin .8s linear infinite; }
.mkt-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.mkt-tile { position: relative; display: grid; gap: 6px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: left; color: var(--text); overflow: hidden; transition: box-shadow .2s, transform .2s var(--ease); }
button.mkt-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.mt-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.mt-v { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mt-bot { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.mt-bot small { color: var(--muted); }
.mkt-tile .spark { position: absolute; right: 12px; bottom: 14px; }
.mkt-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 16px; border-radius: 14px; background: color-mix(in srgb, #CA8A04 12%, transparent); color: var(--text-2); font-size: 13.5px; }
.mkt-note .i { flex-shrink: 0; margin-top: 2px; color: #CA8A04; }
.mkt-note.demo { background: var(--surface-2); }
.mkt-note.demo .i { color: var(--muted); }
.mkt-tabs { margin-bottom: 18px; }
.mkt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.mkt-side { display: flex; flex-direction: column; gap: 16px; }
.mkt-side .hint { margin-top: 0; }
.widget.flush { padding: 0; overflow: hidden; }
.widget-title.pad { padding: 16px 18px 0; }
.sm { font-size: 12.5px; }
.table-wrap { overflow-x: auto; }
.mkt-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.mkt-table th { padding: 12px 10px; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--line); }
.mkt-table td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mkt-table tbody tr:last-child td { border-bottom: 0; }
.mkt-table tr[data-open] { cursor: pointer; transition: background .15s; }
.mkt-table tr[data-open]:hover, .mkt-table tr[data-open]:focus-visible { background: var(--surface-2); outline: 0; }
.mkt-table .num { text-align: right; }
.mkt-table th:first-child, .mkt-table td:first-child { padding-left: 16px; }
.mkt-table th:last-child, .mkt-table td:last-child { padding-right: 16px; }
.mkt-table .grp td { padding: 14px 16px 8px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover, th.sorted { color: var(--text); }
th.sorted::after { content: '▼'; margin-left: 4px; font-size: 9px; }
th.sorted[data-dir=asc]::after { content: '▲'; }
.c-star { width: 36px; }
.c-spark { width: 120px; }
.asset { display: flex; align-items: center; gap: 10px; min-width: 0; }
.asset > div { min-width: 0; }
.asset b { display: block; font-size: 14px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.asset small { display: block; font-size: 12px; color: var(--muted); max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.asset .sw { width: 4px; height: 26px; border-radius: 2px; flex-shrink: 0; }
.coin-img { border-radius: 50%; flex-shrink: 0; background: var(--surface-2); }
.cur-badge { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 10px; background: var(--surface-3); color: var(--text); font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.cur-badge.coin { border-radius: 50%; }
.star-btn { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); transition: color .15s, transform .15s; }
.star-btn:hover { color: #CA8A04; transform: scale(1.12); }
.star-btn.on { color: #EAB308; }
.chg { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chg i { font-style: normal; font-size: .7em; }
.chg.up { color: var(--ok-text); }
.chg.down { color: var(--bad-text); }
.chg.flat { color: var(--muted); }
.chg.pill { padding: 3px 8px; border-radius: 99px; font-size: 12.5px; }
.chg.pill.up { background: color-mix(in srgb, var(--ok) 13%, transparent); }
.chg.pill.down { background: color-mix(in srgb, var(--bad) 12%, transparent); }
.chg.pill.flat { background: var(--surface-2); }
.dlt.up { color: var(--ok-text); }
.dlt.down { color: var(--bad-text); }
.dlt.flat { color: var(--muted); }
.spark { display: block; overflow: visible; }
.spark polyline { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark.up polyline { stroke: var(--ok-text); }
.spark.down polyline { stroke: var(--bad-text); }
.spark-empty { display: inline-block; height: 2px; background: var(--line); vertical-align: middle; }
.mini-list { display: flex; flex-direction: column; gap: 2px; }
.ml-row { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 -8px; border: 0; border-radius: 12px; background: transparent; color: var(--text); text-align: left; }
.ml-row:hover { background: var(--surface-2); }
.ml-row > span:nth-child(2) { flex: 1; min-width: 0; }
.ml-row b { display: block; font-size: 14px; }
.ml-row small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mkt .conv { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0; }
.mkt .conv:hover { background: transparent; }
.conv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 8px; }
.conv-row .input { min-width: 0; }
.conv-out { display: flex; align-items: center; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.conv-swap { align-self: center; font-size: 18px; }
.conv .hint { margin-top: 2px; }
.mkt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.mkt-stats .ps b { font-size: 21px; font-variant-numeric: tabular-nums; }
.mkt-stats .ps b .muted { font-size: 15px; display: inline; }
.movers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.mkt-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.cur-seg button { height: 36px; }
.watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.watch-card { cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .2s, transform .2s var(--ease); }
.watch-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.wc-top { display: flex; align-items: center; gap: 10px; }
.wc-name { flex: 1; min-width: 0; }
.wc-name b { display: block; }
.wc-name small { font-size: 12.5px; color: var(--muted); }
.wc-v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wc-c { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.watch-card .spark { width: 100%; height: 56px; margin-top: 4px; }
.cmp { margin-bottom: 16px; }
.cmp-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.cmp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cmp-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 6px 0 10px; border-radius: 99px; background: var(--surface-2); font-size: 14px; }
.cmp-chip > i { width: 12px; height: 12px; border-radius: 50%; }
.cmp-chip button { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.cmp-chip button:hover { background: var(--surface-3); color: var(--text); }
.cmp-add { width: auto; height: 38px; border-radius: 99px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 6px; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 4px; border-radius: 2px; }
.chart-box { position: relative; min-height: 200px; }
.chart-msg { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 220px; color: var(--muted); text-align: center; padding: 20px; }
.lchart { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.lchart .grid line { stroke: var(--line); stroke-width: 1; }
.lchart .zero { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.lchart text { fill: var(--muted); font-size: 11px; font-family: inherit; font-variant-numeric: tabular-nums; }
.lchart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lchart .end { stroke: var(--surface); stroke-width: 2; }
.lchart .el { fill: var(--text-2); font-size: 12px; font-weight: 600; }
.lchart .el-n { fill: var(--text); font-weight: 800; }
.lchart .xh { stroke: var(--muted); stroke-width: 1; }
.lchart .hover circle { stroke: var(--surface); stroke-width: 2; }
.ch-tip { position: absolute; z-index: 3; min-width: 150px; padding: 9px 11px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 12.5px; pointer-events: none; }
.ch-tip[hidden] { display: none; }
.tt-d { margin-bottom: 6px; color: var(--muted); font-size: 11.5px; }
.tt-r { display: flex; align-items: center; gap: 8px; }
.tt-r + .tt-r { margin-top: 4px; }
.tt-r i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.tt-r span { flex: 1; color: var(--text-2); }
.tt-r b { font-variant-numeric: tabular-nums; }
.mkt-modal { max-width: 760px; }
.md-head { display: flex; align-items: center; gap: 14px; padding-right: 44px; }
.md-title { flex: 1; min-width: 0; }
.md-title h3 { font-size: 21px; font-weight: 800; }
.md-title small { color: var(--muted); }
.md-price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.md-price b { font-size: 32px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.md-range { margin-bottom: 10px; }
.md-range button { height: 32px; padding: 0 12px; font-size: 13px; }
.md-period { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 26px; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.md-period b { color: var(--text); font-variant-numeric: tabular-nums; }
.md-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 16px; }
.md-stats > div { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.md-stats span { display: block; font-size: 12px; color: var(--muted); }
.md-stats b { font-size: 15px; font-variant-numeric: tabular-nums; }
.md-act { display: flex; justify-content: flex-end; margin-top: 16px; }

/* =====================================================================
   Canlı futbol
   ===================================================================== */
.lv-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px; background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad-text); font-weight: 700; font-size: 14px; }
.live-dot.red { color: var(--bad-text); }
.lv-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.lv-side { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.side-t { padding: 4px 8px 8px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lg-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: transparent; color: var(--text); text-align: left; }
.lg-item:hover { background: var(--surface-2); }
.lg-item.active { background: var(--brand-soft); }
.lg-item .lg-n { flex: 1; min-width: 0; }
.lg-item .n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--surface-2); font-size: 12px; font-weight: 700; display: grid; place-items: center; color: var(--text-2); }
.lg-n b { display: block; font-size: 14px; line-height: 1.25; }
.lg-n small { display: block; font-size: 12px; color: var(--muted); }
.lg-badge { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 7px; background: var(--c); color: #fff; }
.lg-badge.all { width: 22px; height: 22px; background: var(--text); color: var(--surface); }
.lv-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 13.5px; }
.chip-btn:hover { border-color: #EAB308; }
.chip-btn.on { border-color: #EAB308; background: color-mix(in srgb, #EAB308 14%, transparent); color: var(--text); }
.chip-btn.on .i { color: #CA8A04; }
.chip-btn[hidden] { display: none; }
.lg-block { margin-bottom: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.lg-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface-2); }
.lg-head .lg-n { flex: 1; min-width: 0; }
.lg-tbl { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 10px; border: 0; border-radius: 99px; background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 700; }
.lg-tbl:hover { color: var(--brand-text); }
.mrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) 76px minmax(0, 1fr) 36px; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.mrow:hover, .mrow:focus-visible { background: var(--surface-2); outline: 0; }
.mrow.live, .mrow.ht { box-shadow: inset 3px 0 0 var(--bad); }
.mrow.goal { animation: goalFlash 2.4s ease; }
.m-st { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.m-st.on { color: var(--bad-text); }
.m-st.done { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.m-team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.m-team.h { justify-content: flex-end; text-align: right; }
.m-team b { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-team.lose b { font-weight: 500; color: var(--text-2); }
.m-team .rc, .card.r { display: inline-block; width: 9px; height: 12px; border-radius: 2px; background: #DC2626; flex-shrink: 0; }
.card.y { display: inline-block; width: 9px; height: 12px; border-radius: 2px; background: #EAB308; }
.m-score { display: flex; justify-content: center; align-items: center; gap: 4px; height: 34px; border-radius: 10px; background: var(--surface-2); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.m-score em { font-style: normal; color: var(--muted); font-weight: 600; }
.mrow.live .m-score, .mrow.ht .m-score { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad-text); }
.m-fav { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.m-fav:hover { color: #CA8A04; }
.m-fav.on { color: #EAB308; }
.crest { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50% 50% 46% 46% / 42% 42% 58% 58%; background: linear-gradient(150deg, var(--c1), var(--c2)); color: #fff; font-weight: 800; letter-spacing: .01em; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.live-widget .m-fav { display: none; }
.live-widget .mrow { grid-template-columns: 46px minmax(0, 1fr) 54px minmax(0, 1fr); gap: 6px; padding: 9px 4px; margin: 0 -4px; }
.live-widget .m-team b { font-size: 13px; }
.live-widget .m-team .crest { display: none; }
.live-widget .m-score { height: 28px; font-size: 15px; }
.lw-list .mrow:first-child { border-top: 0; }
.st-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.st-table th { padding: 12px 8px; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.st-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.st-table .num { text-align: center; }
.st-table .pos { width: 46px; padding-left: 14px; }
.st-table tr.mark td { background: var(--brand-soft); }
.zone { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 800; font-size: 12.5px; box-shadow: inset 4px 0 0 var(--z); background: var(--surface-2); }
.st-team { display: flex; align-items: center; gap: 9px; }
.live-tag { padding: 1px 7px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700; }
.form { display: inline-flex; gap: 3px; }
.form i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; font-size: 10.5px; font-weight: 800; font-style: normal; color: #fff; }
.form .f-w { background: var(--ok); color: #111111; }
.form .f-d { background: #9CA3AF; }
.form .f-l { background: var(--bad); }
.zone-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px 14px; font-size: 12px; color: var(--text-2); }
.zone-legend span { display: inline-flex; align-items: center; gap: 6px; }
.zone-legend i { width: 10px; height: 10px; border-radius: 3px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin: 22px 0 14px; color: var(--text-2); font-weight: 600; }
.back-link:hover { color: var(--brand-text); }
.match-hero { margin-bottom: 18px; padding: 18px 22px 22px; border-radius: 24px; color: #fff; background: radial-gradient(120% 140% at 50% 0%, #2A2A2A 0%, #111111 70%); box-shadow: var(--shadow-lg); }
.mh-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mh-lg { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.match-hero .m-fav { color: rgba(255, 255, 255, .7); }
.match-hero .m-fav.on { color: #FACC15; }
.mh-main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; margin-top: 14px; }
.mh-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.mh-team b { font-size: 18px; font-weight: 800; }
.mh-team small { font-size: 12px; color: rgba(255, 255, 255, .6); }
.mh-score { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 150px; }
.mh-sc { font-size: 54px; font-weight: 900; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mh-sc i { margin: 0 8px; font-style: normal; opacity: .5; }
.mh-ko { font-size: 36px; }
.mh-st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 700; }
.mh-st.live, .mh-st.ht { background: var(--bad); }
.mh-prog { width: 140px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.mh-prog i { display: block; height: 100%; background: #fff; border-radius: 2px; }
.mh-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 0 170px; margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.mh-goals ul { list-style: none; display: grid; gap: 4px; justify-items: end; align-content: start; padding: 0; }
.mh-goals ul.a { justify-items: start; }
.mh-goals li { display: inline-flex; align-items: center; gap: 6px; }
.mh-goals li span { color: rgba(255, 255, 255, .6); }
.m-body { margin-top: 16px; }
.tl-head { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.tl-head span { display: inline-flex; align-items: center; gap: 8px; }
.timeline { list-style: none; position: relative; padding: 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--line); }
.tl-ev { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); align-items: center; padding: 6px 0; }
.tl-m { grid-column: 2; grid-row: 1; justify-self: center; z-index: 1; min-width: 44px; padding: 3px 0; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--line); text-align: center; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tl-ev.goal .tl-m { background: var(--text); color: var(--surface); border-color: var(--text); }
.tl-card { grid-row: 1; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.tl-ev.h .tl-card { grid-column: 1; flex-direction: row-reverse; text-align: right; margin-right: 6px; }
.tl-ev.a .tl-card { grid-column: 3; margin-left: 6px; }
.tl-ev.goal .tl-card { background: color-mix(in srgb, var(--ok) 12%, var(--surface-2)); }
.tl-ic { flex-shrink: 0; display: grid; place-items: center; }
.tl-txt { min-width: 0; }
.tl-txt b { font-size: 14px; }
.tl-sc { margin: 0 4px; font-variant-numeric: tabular-nums; }
.tl-txt small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-sep { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; gap: 6px; margin: 10px auto; width: max-content; padding: 5px 14px; border-radius: 99px; background: var(--surface-3); font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.tl-sep.end { background: var(--text); color: var(--surface); }
.stats { display: flex; flex-direction: column; gap: 16px; }
.stats-legend { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }
.stats-legend span { display: inline-flex; align-items: center; gap: 8px; }
.stats-legend i { width: 12px; height: 12px; border-radius: 3px; }
.st-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 13.5px; }
.st-top span { color: var(--muted); }
.st-top b { font-size: 15px; font-variant-numeric: tabular-nums; }
.st-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.st-bars span { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; display: flex; }
.st-bars .h { justify-content: flex-end; }
.st-bars i { display: block; height: 100%; border-radius: 4px; }
.st-bars .h i { background: var(--s1); }
.st-bars .a i { background: var(--s2); }
@keyframes goalFlash { 0%, 50% { background: color-mix(in srgb, var(--ok) 22%, transparent); } 100% { background: transparent; } }
/* Real məlumat: loqolar, təqvim zolağı, heyətlər, yüklənmə halları */
.crest em { font-style: normal; }
.crest.img { background: #fff; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .08); }
.crest.img em { display: none; }
.crest img { width: 78%; height: 78%; object-fit: contain; }
.m-st small { display: block; font-size: 11px; font-weight: 600; }
.m-st:has(small) { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; }
.date-strip { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.date-strip::-webkit-scrollbar { display: none; }
.date-strip button { flex: 1 0 72px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 6px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); }
.date-strip button:hover { border-color: var(--muted); }
.date-strip b { font-size: 13.5px; }
.date-strip small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.date-strip .today b { color: var(--brand-text); }
.date-strip button.active { background: var(--text); border-color: var(--text); }
.date-strip button.active b, .date-strip button.active small { color: var(--surface); }
.lv-sub { margin: 4px 2px 10px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lv-skel { display: grid; gap: 10px; padding: 14px; }
.lv-skel .sk { margin: 0; }
.lw-list > .sk { margin: 10px 0 0; }
.lw-empty { padding: 8px 0 2px; font-size: 13.5px; color: var(--muted); }
.st-group th { padding: 10px 14px; background: var(--surface-2); font-size: 12.5px; color: var(--text-2); }
.mh-skel { height: 190px; border-radius: 16px; background: linear-gradient(90deg, rgba(255, 255, 255, .04) 25%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .04) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
.mh-err { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 10px; text-align: center; }
.mh-err p { font-size: 18px; font-weight: 700; }
.mh-venue { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.card.y2 { display: inline-block; width: 9px; height: 12px; border-radius: 2px; background: linear-gradient(135deg, #EAB308 50%, #DC2626 50%); }
.tl-ic .og, .tl-ev.pm .tl-ic { display: grid; color: var(--bad-text); }
.lineups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.lu-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.lu-head b { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-f { padding: 3px 10px; border-radius: 99px; background: var(--surface-2); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lu-t { margin: 14px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lu-list { list-style: none; display: grid; gap: 2px; padding: 0; }
.lu-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 8px; font-size: 14px; }
.lu-list li:hover { background: var(--surface-2); }
.lu-no { text-align: center; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.lu-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-n small { color: var(--muted); }
.lu-ev { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lu-g { display: grid; }
.lu-g.og { color: var(--bad-text); }
.lu-in { color: var(--ok-text); }
.lu-out { color: var(--bad-text); }

/* Uyğunlaşma: yeni bölmələr */
@media (max-width: 1100px) {
  .mkt-grid { grid-template-columns: minmax(0, 1fr); }
  .mkt-side { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
  .write-grid { grid-template-columns: minmax(0, 1fr); }
  .write-side { position: static; }
}
@media (max-width: 900px) {
  .user-hero { grid-template-columns: auto minmax(0, 1fr); }
  .uh-stats { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
  .lv-layout { grid-template-columns: minmax(0, 1fr); }
  .lv-side { position: static; flex-direction: row; overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .lv-side::-webkit-scrollbar { display: none; }
  .side-t { display: none; }
  .lg-item { width: auto; flex-shrink: 0; padding: 6px 10px 6px 6px; }
  .lg-item small { display: none; }
  .mkt-tiles, .mkt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .chat-shell { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - var(--header-h) - var(--bottom-h) - 24px); margin: 12px 0 0; border-radius: 18px; }
  .chat-shell.has-active .chat-list { display: none; }
  .chat-shell:not(.has-active) .chat-main { display: none; }
  .chat-list { border-right: 0; }
  .ch-back { display: inline-grid; }
  .msg { max-width: 88%; }
  .msg-del { opacity: .6; }
  .movers { grid-template-columns: minmax(0, 1fr); }
  .mh-goals { gap: 0 24px; }
  .mh-sc { font-size: 42px; }
  .mh-score { min-width: 0; }
  .mh-team b { font-size: 15px; }
}
@media (max-width: 560px) {
  .people-grid { grid-template-columns: minmax(0, 1fr); }
  .people-bar .tabs { width: 100%; }
  .user-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 24px 18px; }
  .uh-meta, .uh-act { justify-content: center; }
  .uh-stats { flex-direction: column; }
  .my-art { grid-template-columns: 90px minmax(0, 1fr) auto; gap: 12px; }
  .my-art .thumb img { width: 90px; }
  .my-art .meta { flex-wrap: wrap; }
  .write-form { padding: 16px; }
  .write-actions { flex-wrap: wrap; }
  .write-actions > .muted { width: 100%; }
  .mkt-tile { padding: 14px; }
  .mt-v { font-size: 18px; }
  .mkt-tile .spark { display: none; }
  .conv-row { grid-template-columns: minmax(0, 1fr); }
  .mkt-table { font-size: 13px; }
  .mkt-table th, .mkt-table td { padding-left: 5px; padding-right: 5px; }
  .mkt-table th:first-child, .mkt-table td:first-child { padding-left: 8px; }
  .mkt-table th:last-child, .mkt-table td:last-child { padding-right: 8px; }
  .mkt-table .cur-badge { display: none; }
  .mkt-table .coin-img { width: 22px; height: 22px; }
  .c-star { width: 28px; }
  .star-btn { width: 26px; }
  .asset { gap: 7px; }
  .asset b, .asset small { max-width: 96px; }
  .mrow { grid-template-columns: 44px minmax(0, 1fr) 58px minmax(0, 1fr) 28px; gap: 6px; padding: 10px 8px; }
  .m-team .crest { display: none; }
  .m-team b { font-size: 13px; }
  .m-score { font-size: 15px; height: 30px; }
  .m-st { font-size: 12px; }
  .match-hero { padding: 16px 14px 18px; border-radius: 20px; }
  .mh-main { gap: 8px; }
  .mh-team .crest { width: 48px !important; height: 48px !important; }
  .mh-sc { font-size: 36px; }
  .mh-ko { font-size: 26px; }
  .tl-ev { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); }
  .tl-card { padding: 6px 8px; gap: 6px; }
  .tl-txt b { font-size: 12.5px; }
  .lineups { grid-template-columns: minmax(0, 1fr); }
  .date-strip button { flex-basis: 62px; }
  .md-price b { font-size: 26px; }
}

/* Tünd fonlu bloklarda sarı vurğu həmişə sarı qalır */
.xp-hero .grad-text, .profile-hero .grad-text { color: var(--brand); box-shadow: none; }

/* Serverin verdiyi sadə məzmun: JavaScript yüklənənə qədər və axtarış robotları üçün (main.js onu əvəz edir) */
.ssr { width: min(860px, 100% - 32px); margin: 32px auto 64px; }
.ssr h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; margin-bottom: 14px; }
.ssr p { color: var(--text-2); margin-bottom: 12px; font-size: 17px; line-height: 1.7; }
.ssr ul { list-style: none; display: grid; gap: 8px; margin-top: 20px; }
.ssr a { font-weight: 600; }

/* ---------- Axtarış: qruplar və vurğu ---------- */
.s-group { display: flex; align-items: center; gap: 8px; margin: 20px 0 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.s-group:first-child { margin-top: 4px; }
.s-group span { padding: 1px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--text); font-size: 12px; letter-spacing: 0; }
.s-item mark, .s-snip mark { background: var(--brand); color: var(--on-brand); border-radius: 3px; padding: 0 2px; }
.s-snip { margin: 4px 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-filters { margin: 14px 0 6px; }
.s-filters .fchip span { margin-left: 4px; font-size: 12px; opacity: .7; }
.sf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sf-tabs button { height: 34px; padding: 0 12px; font-size: 13.5px; }
/* Dar ekranda filtrlər kəsilməsin — növbəti sətrə keçsin */
.s-filters .fchips { flex-wrap: wrap; overflow: visible; }
.sf-tabs { flex-wrap: wrap; overflow: visible; }
.sf-sort { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted); }
.sf-sort select { height: 42px; width: auto; padding: 0 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.s-count span { color: var(--muted); font-weight: 400; }
@media (max-width: 640px) { .sf-row { flex-direction: column; align-items: stretch; } .sf-tabs { display: flex; width: 100%; } .sf-sort { margin-left: 0; } .sf-sort select { flex: 1; } }

/* ---------- Təqvim (gün arxivi) ---------- */
.hdr-search { flex: 1; max-width: 510px; margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.hdr-search .search-pill { margin: 0; max-width: none; }
.cal-btn { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.cal-btn:hover { border-color: var(--brand); }
.modal.cal-modal { width: min(420px, 100%); }
.cal-title { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.cal-title .i { color: var(--brand-text); }
.cal-sub { color: var(--text-2); font-size: 14px; margin: 6px 0 14px; }
.cal-form { display: flex; gap: 8px; }
.cal-form .input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.cal-form .input.invalid { border-color: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 15%, transparent); }
.cal-err { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--bad-text); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.cal-err[hidden] { display: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 8px; }
.cal-head b { font-size: 16px; }
.cal-head .icon-btn:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-day { position: relative; aspect-ratio: 1; border-radius: 10px; font-size: 14px; color: var(--muted); opacity: .55; display: grid; place-items: center; cursor: not-allowed; transition: background .15s, transform .15s; }
.cal-day.has { opacity: 1; color: var(--text); font-weight: 700; background: var(--brand-soft); cursor: pointer; }
.cal-day.has:hover { background: var(--brand); color: var(--on-brand); }
.cal-day small { position: absolute; bottom: 2px; right: 4px; font-size: 9px; font-weight: 700; opacity: .7; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--text); }
.cal-day.sel.has { background: var(--brand); color: var(--on-brand); }
.cal-day.bad { opacity: 1; background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad-text); animation: cal-shake .35s; }
@keyframes cal-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.cal-legend { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--brand-soft); }

.day-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.day-sum { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.day-sum span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); font-size: 14px; color: var(--text-2); }
.day-sum b { color: var(--text); }
.day-sec { margin-top: 30px; }
.day-sec .sec-title { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.day-sec .sec-title .i { color: var(--brand-text); }
.day-count { font-size: 13px; padding: 2px 9px; border-radius: 999px; background: var(--brand); color: var(--on-brand); }
.day-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.day-row:last-child { border-bottom: 0; }
.day-row:hover .day-txt { color: var(--brand-text); }
.day-txt { flex: 1; min-width: 0; }
.day-txt small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-row time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.day-badge { flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok-text); }
.day-badge.ended { background: var(--surface-3); color: var(--text-2); }

/* Dar ekranda başlıqda yer azdır: "fonmedia.az" yazısı gizlənir, loqo nişanı və sağdakı ikonlar qalır */
.hdr-actions { flex-shrink: 0; }
@media (max-width: 420px) {
  .header .logo .wordmark { display: none; }
}
body:not(.authed) .auth-only, body.authed .guest-only { display: none !important; }
.poll-stats.guest { grid-template-columns: repeat(3, 1fr); }
.bottom-nav button { background: none; border: 0; padding: 0; font-family: inherit; }

/* Anket: şəkil və təsvir */
.poll-img { margin: -4px -4px 14px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.poll-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poll-desc { margin: -6px 0 14px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.poll-desc p { white-space: pre-line; overflow-wrap: anywhere; }
.poll-desc.clamp:not(.open) p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.poll-desc .link-btn { margin-top: 4px; font-size: 13px; }
.poll-desc + .poll-author { margin-top: -4px; }
.poll-drop { aspect-ratio: 16 / 7; }
.hint.right { text-align: right; margin-top: 4px; }
.demo-login { margin-top: 12px; }

/* Rəylərə cavab */
.c-actions { display: flex; align-items: center; gap: 4px; }
.c-reply { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.c-reply:hover { background: var(--surface-2); color: var(--text); }
.c-replies { margin-top: 6px; padding-left: 14px; border-left: 2px solid var(--line); }
.comment.reply { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 0; }
.comment.reply + .comment.reply { border-top: 1px dashed var(--line); }
.c-mention { color: var(--brand-text); font-weight: 700; }
[data-theme=dark] .c-mention { color: var(--brand); }
.reply-form { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 12px 0; }
.reply-form textarea { width: 100%; min-height: 72px; resize: vertical; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); line-height: 1.5; }
.reply-form textarea:focus { outline: 0; border-color: var(--brand-text); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }
.rf-to { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.rf-to b { color: var(--text); }
.rf-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.reply-form .form-error:empty { display: none; }
@media (max-width: 560px) { .c-replies { padding-left: 10px; } }

/* Səviyyə nişanı hər yerdə */
.lvl-badge { vertical-align: middle; margin-left: 4px; }
.c-head .lvl-badge, .lb-user .lvl-badge { margin-left: 0; }
.lvl-badge.lg { height: 26px; padding: 0 10px; font-size: 13px; position: relative; top: -3px; }
.pd .lvl-badge { margin: 2px 0 0; }
.conv-top b, .ch-name { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.conv-top .lvl-badge, .ch-name .lvl-badge { height: 18px; padding: 0 6px; font-size: 10.5px; }
.day-txt .lvl-badge { height: 18px; padding: 0 6px; font-size: 10.5px; margin: 0 4px 0 2px; }
.poll-author .lvl-badge { height: 18px; padding: 0 6px; font-size: 10.5px; }

/* Mesaj icazəsi */
.chat-locked { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); font-size: 13.5px; }
.chat-locked > svg { flex: none; color: var(--muted); }
.chat-locked > span:not(.uh-act) { flex: 1; min-width: 180px; }
.chat-locked .uh-act { display: flex; gap: 6px; margin: 0; }
.dm-seg { flex-wrap: wrap; }
.dm-seg button { flex: 1 1 auto; }

/* Çərəz bildirişi */
.cookie-bar { position: fixed; left: 50%; bottom: 20px; z-index: 150; width: min(720px, calc(100% - 24px)); transform: translateX(-50%); display: grid; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .18); animation: ckIn .4s var(--ease) both; }
.cookie-bar.out { animation: ckOut .3s ease both; }
@keyframes ckIn { from { opacity: 0; transform: translate(-50%, 20px); } }
@keyframes ckOut { to { opacity: 0; transform: translate(-50%, 20px); } }
.ck-main { display: flex; gap: 12px; align-items: flex-start; }
.ck-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); }
.ck-txt b { font-size: 15px; }
.ck-txt p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.ck-more { display: grid; gap: 4px; padding: 4px 0; border-top: 1px solid var(--line); }
.ck-more .switch-row span { display: grid; }
.ck-more small { color: var(--muted); font-size: 12px; }
.ck-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.f-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.f-link:hover { color: var(--text); }
@media (max-width: 768px) { .cookie-bar { bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + 10px); padding: 14px; } }
@media (max-width: 480px) { .ck-btns .btn { flex: 1 1 auto; justify-content: center; } .ck-btns .btn-primary { flex-basis: 100%; order: -1; } }

/* Orta enlikdə istifadəçi adı gizlənir, yalnız səviyyə halqası qalır — başlıq sığsın */
@media (max-width: 1024px) { .uc-text { display: none; } .user-chip { padding: 3px; } .tb-right { display: none; } }

/* =====================================================================
   Oyunlar: kartlar, reytinq, otaq (lobbi), oyun ekranı, dəvətlər
   --c — oyunun öz rəngi (data.js → GAMES[].color)
   ===================================================================== */
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.gm-ic { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--c, var(--brand)); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--c, var(--brand)) 32%, transparent); }
.gm-ic.xl { width: 72px; height: 72px; border-radius: 22px; }

/* Oyunlar səhifəsi */
.gm-join { display: flex; gap: 8px; }
.gm-join .input { width: 150px; height: 44px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.gm-join .input::placeholder { text-transform: none; letter-spacing: normal; font-weight: 500; }
.gm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.gm-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: opacity .6s var(--ease), transform .3s var(--ease), box-shadow .25s; }
.gm-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.gm-card.in:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gm-card-top { display: flex; align-items: center; gap: 14px; }
.gm-card-top b { display: block; font-size: 18px; font-weight: 800; }
.gm-card-top small { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.gm-card p { flex: 1; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.gm-best { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.gm-best b { color: var(--text); }
.gm-best .i { color: var(--c); }
.gm-card-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gm-inv { margin-bottom: 22px; padding: 18px; border-radius: 20px; background: var(--brand-soft); border: 1.5px solid color-mix(in srgb, var(--brand) 35%, transparent); animation: slideUp .4s var(--ease) both; }
.gm-inv .panel-t { margin-bottom: 12px; }
.gm-inv-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); }
.gm-inv-row + .gm-inv-row { margin-top: 8px; }
.gi-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gi-who b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi-who small { font-size: 12.5px; color: var(--muted); }

/* Oyunçular reytinqi */
.gl-t { margin-top: 44px; }
.gl-podium .pd-xp small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.gl-tr { display: grid; grid-template-columns: 52px minmax(0, 1fr) 80px 80px 100px; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 14px; transition: background .15s; }
.gl-tr:last-child { border-bottom: 0; }
.gl-tr.head { background: var(--surface-2); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.gl-tr.head > :nth-child(n+3) { text-align: right; }
a.gl-tr:hover { background: var(--surface-2); }
a.gl-tr:hover .lb-user b { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.gl-tr.me, a.gl-tr.me:hover { background: var(--brand-soft); }
.gl-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.gl-me { margin: 16px 0 0; }
.gl-mini { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; transition: background .15s; }
.gl-mini:hover { background: var(--surface-2); }
.gl-mini.me { background: var(--brand-soft); }
.gl-mini b { font-size: 14px; font-variant-numeric: tabular-nums; }

/* Oyun səhifəsi: giriş */
.gm-page { padding-bottom: 40px; }
.gm-intro { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: 26px; }
.gm-hero { position: relative; padding: 30px; border-radius: 26px; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.gm-crumb { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 18px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.gm-crumb:hover { color: var(--text); }
.gm-hero h1 { margin: 16px 0 6px; font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.gm-lead { max-width: 56ch; font-size: 16.5px; color: var(--text-2); }
.gm-rules { display: grid; gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.gm-rules li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.gm-rules li > .i { flex-shrink: 0; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.gm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.gm-tags span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--text-2); }
.gm-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.gm-hero .gm-join { margin-top: 14px; }
.gm-hero .hint:empty { display: none; }
.gm-hero .hint .i { vertical-align: -2px; }
.gm-hero .hint b { color: var(--text); }
.gm-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 50vh; font-weight: 600; color: var(--muted); }
.gm-loading .spin { width: 32px; height: 32px; border-width: 3px; color: var(--c); }
.gm-problem p { max-width: 46ch; }
.gm-problem > .i { color: var(--c); opacity: 1; }

/* Oyun başlığı */
.gm-head { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; }
.gm-head .gm-ic { width: 42px; height: 42px; border-radius: 12px; }
.gm-head-t { flex: 1; min-width: 0; }
.gm-head-t h1 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.gm-head-t small { font-size: 13px; font-weight: 600; color: var(--muted); }
.gm-quit { flex-shrink: 0; }

/* Otaq (lobbi) */
.gm-lobby-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.gm-room { display: flex; flex-direction: column; gap: 12px; }
.gm-room .eyebrow, .gm-sent .eyebrow { color: var(--muted); }
.gm-room .hint { margin: 0; }
.gm-code { padding: 10px 0 10px .16em; border-radius: 16px; background: var(--surface-2); border: 2px dashed color-mix(in srgb, var(--c) 45%, var(--line)); font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 40px; font-weight: 900; letter-spacing: .16em; text-align: center; user-select: all; }
.gm-offline { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; color: var(--text-2); }
.gm-offline > .i { flex-shrink: 0; color: var(--c); }
.gm-offline b { color: var(--text); }
.gm-offline p { margin-top: 2px; }
.gm-room-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.gm-room-act .btn { padding: 0 12px; }
.gm-sent { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-sent .eyebrow { flex-basis: 100%; }
.gm-sent-i { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px; background: var(--surface-2); font-size: 13px; font-weight: 700; }
.gm-sent-i small { font-weight: 500; color: var(--muted); }
.gm-sent-i.accepted { background: color-mix(in srgb, var(--ok) 15%, transparent); }
.gm-sent-i.accepted small { color: var(--ok-text); }
.gm-sent-i.declined small { color: var(--bad-text); }
.gm-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gm-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 150px; padding: 18px 10px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; animation: modalIn .35s var(--ease) both; }
.gm-slot b { max-width: 100%; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-slot.me { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 60%, transparent); }
.gm-slot.me .lvl-badge { background: var(--surface); }
.gm-slot.empty { grid-column: auto; justify-content: center; gap: 2px; padding: 18px 10px 14px; background: transparent; border: 2px dashed var(--line); box-shadow: none; color: var(--muted); animation: none; }
.gm-slot.empty span { font-size: 22px; font-weight: 800; opacity: .5; }
.gm-slot.empty small { font-size: 12px; }
.gm-slot-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.gm-slot-tags .lvl-badge { margin: 0; }
.gm-tag { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); font-size: 11.5px; font-weight: 700; }
.gm-tag.host { background: color-mix(in srgb, #EAB308 18%, transparent); color: #A16207; }
[data-theme=dark] .gm-tag.host { color: #FACC15; }
.gm-tag.me { background: var(--brand); color: var(--on-brand); }
.gm-kick { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); opacity: 0; cursor: pointer; transition: opacity .15s, background .15s, color .15s; }
.gm-slot:hover .gm-kick, .gm-kick:focus-visible { opacity: 1; }
.gm-kick:hover { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad-text); }
@media (hover: none) { .gm-kick { opacity: 1; } }
.gm-lobby-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gm-lobby-foot .hint { margin: 0; }
.gm-wait { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-2); }
.gm-wait .spin { color: var(--c); }

/* Oyun ekranı */
.gm-arena { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; }
.gm-main { position: relative; display: flex; flex-direction: column; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.gm-timer { height: 6px; background: var(--surface-2); }
.gm-timer i { display: block; height: 100%; background: var(--c); transform-origin: left; transform: scaleX(0); }
.gm-stage { display: grid; place-items: center; min-height: 380px; padding: 28px 22px; transition: opacity .2s; }
.gm-stage.timeout { opacity: .55; }
.gm-stage[data-locked] .gq-opt, .gm-stage[data-locked] .gc-opt, .gm-stage[data-locked] .gw-tile { cursor: default; }
.gm-count { font-size: 110px; font-weight: 900; line-height: 1; color: var(--c); animation: gmCount 1s var(--ease) both; }
@keyframes gmCount { 0% { opacity: 0; transform: scale(1.6); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: .25; transform: scale(.9); } }
/* Oyun başlamazdan əvvəl oyunçuların təqdimatı (VS): iki nəfər yan-yana, çox oyunçu — siz yuxarıda, digərləri aşağıda */
.gm-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px 26px; width: min(100%, 620px); }
.gm-vs.solo, .gm-vs.many { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.vs-side { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 18px; min-width: 0; }
.vs-p { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; max-width: 170px; text-align: center; animation: vsInL .55s calc(var(--k) * 90ms) var(--ease) both; }
.vs-side.r .vs-p { animation-name: vsInR; }
.gm-vs.many .vs-side.r .vs-p { max-width: 120px; animation-name: vsInU; }
.vs-p .avatar { box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px color-mix(in srgb, var(--c) 55%, transparent), 0 12px 26px rgba(0, 0, 0, .2); }
.vs-p.me .avatar { box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--brand), 0 12px 26px rgba(0, 0, 0, .2); }
.vs-p b { max-width: 100%; margin-top: 6px; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-vs.many .vs-side.r .vs-p b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin-top: 3px; font-size: 13.5px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.vs-mark { font-size: 42px; font-weight: 900; font-style: italic; letter-spacing: -.02em; color: var(--c); text-shadow: 0 6px 18px color-mix(in srgb, var(--c) 40%, transparent); animation: vsMark .6s .25s var(--ease) both; }
.gm-vs.many .vs-mark { font-size: 30px; }
.gm-vs .gm-count { grid-column: 1 / -1; justify-self: center; font-size: 72px; }
@keyframes vsInL { from { opacity: 0; transform: translateX(-46px) scale(.85); } }
@keyframes vsInR { from { opacity: 0; transform: translateX(46px) scale(.85); } }
@keyframes vsInU { from { opacity: 0; transform: translateY(26px) scale(.85); } }
@keyframes vsMark { from { opacity: 0; transform: scale(2.6) rotate(-14deg); } 60% { opacity: 1; transform: scale(.92) rotate(0deg); } }
.gm-msg { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; min-height: 58px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 14.5px; font-weight: 600; color: var(--text-2); text-align: center; }
.gm-msg .i { vertical-align: -2px; }
.gm-ans b { color: var(--text); }
.gm-got { display: inline-flex; padding: 4px 12px; border-radius: 99px; background: var(--grad); color: var(--on-brand); font-weight: 900; animation: pop .4s var(--ease); }
.gm-got.zero { background: var(--surface-3); color: var(--muted); }
.gm-board { position: sticky; top: calc(var(--header-h) + 16px); padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gs-t { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 15px; font-weight: 800; }
.gs-t .i { color: var(--c); }
.gs-row { position: relative; display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 12px; transition: background .2s, opacity .2s; }
.gs-row + .gs-row { margin-top: 2px; }
.gs-row.me { background: var(--brand-soft); }
.gs-row.left { opacity: .4; }
.gs-row.left .gs-name b { text-decoration: line-through; }
.gs-place { flex-shrink: 0; width: 20px; text-align: center; font-size: 13px; font-weight: 800; color: var(--muted); }
.gs-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.gs-name b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-name small { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-st { flex-shrink: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; transform: scale(0); transition: transform .25s var(--ease); }
.gs-row.done .gs-st { transform: scale(1); }
.gs-pts { min-width: 44px; text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; }
.gs-plus { position: absolute; right: 58px; top: 50%; transform: translateY(-50%); padding: 2px 7px; border-radius: 99px; background: color-mix(in srgb, var(--ok) 18%, var(--surface)); color: var(--ok-text); font-size: 11.5px; font-style: normal; font-weight: 900; animation: gsPlus .35s var(--ease) both; }
.gs-plus.zero { background: var(--surface-2); color: var(--muted); }
@keyframes gsPlus { from { opacity: 0; transform: translateY(-50%) scale(.6); } }

/* Nəticə */
.gm-end-card { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 620px; margin: 10px auto 0; padding: 34px 26px 26px; border-radius: 28px; background: radial-gradient(100% 70% at 50% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; animation: modalIn .4s var(--ease) both; }
.gm-end-card.won { background: radial-gradient(100% 70% at 50% 0%, rgba(250, 204, 21, .3), transparent 70%), var(--surface); }
.gm-end-card.won .gm-ic { background: linear-gradient(135deg, #FACC15, #CA8A04); box-shadow: 0 10px 26px rgba(234, 179, 8, .4); }
.gm-end-card h2 { margin-top: 6px; font-size: 28px; font-weight: 800; }
.gm-final { font-size: 15px; color: var(--muted); }
.gm-final b { font-size: 46px; font-weight: 900; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.gm-saved { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; min-height: 30px; font-size: 14px; color: var(--text-2); }
.gm-saved a { color: var(--brand-text); font-weight: 700; text-decoration: underline; }
.gm-saved b { color: var(--text); }
.gm-record { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: var(--grad); color: var(--on-brand); font-weight: 800; animation: pop .5s var(--ease); }
.gm-stand { display: grid; gap: 6px; width: 100%; margin: 8px 0 6px; padding: 0; list-style: none; text-align: left; }
.gm-stand li > * { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: var(--surface-2); transition: background .15s; }
.gm-stand li > a:hover { background: var(--surface-3); }
.gm-stand li.me > * { background: var(--brand-soft); }
.gm-stand li.first .gs-place { color: #EAB308; }
.gm-stand .gs-name { flex-direction: row; align-items: center; gap: 6px; }
.gm-stand .gs-name .lvl-badge { margin: 0; }
.gm-end-card .gm-cta { justify-content: center; margin-top: 8px; }
.gm-end-card .more { margin-top: 6px; }

/* Oyunların özləri */
.gq, .gc, .gw, .ge, .gm-mem { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; max-width: 620px; text-align: center; }
.gq-q { font-size: 22px; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }
.gq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.gq-opt, .gc-opt { border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, transform .15s var(--ease), opacity .2s; }
.gq-opt { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: 16px; font-size: 15px; text-align: left; }
.gq-opt b { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); color: var(--text-2); font-size: 13px; font-weight: 800; transition: background .15s, color .15s; }
.gq-opt:hover, .gc-opt:hover { border-color: var(--c); }
.gq-opt:active, .gc-opt:active { transform: scale(.98); }
.gq-opt.picked, .gc-opt.picked { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); }
.gq-opt.picked b { background: var(--c); color: #fff; }
.gq-opt.ok, .gc-opt.ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.gq-opt.ok b { background: var(--ok); color: #fff; }
.gq-opt.bad, .gc-opt.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--surface)); }
.gq-opt.bad b { background: var(--bad); color: #fff; }
.gr-pad { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; max-width: 620px; min-height: 300px; border: 0; border-radius: 22px; color: #fff; font: inherit; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; transition: background .1s; }
.gr-pad b { font-size: 34px; font-weight: 900; letter-spacing: -.01em; }
.gr-pad small { font-size: 15px; font-weight: 600; opacity: .85; }
.gr-pad.wait { background: #DC2626; }
.gr-pad.go { background: #16A34A; }
.gr-pad.early { background: #EA580C; }
.gr-pad.done { background: #2563EB; cursor: default; }
.gw-slots { display: flex; justify-content: center; gap: 8px; width: 100%; }
.gw-slot { flex: 0 1 46px; min-width: 0; display: grid; place-items: center; height: 54px; border-radius: 12px; border: 2px dashed var(--line); font-size: 24px; font-weight: 800; cursor: pointer; transition: border-color .15s, background .15s; }
.gw-slot.on { border-style: solid; border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); }
.gw-slots.ok .gw-slot { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok-text); }
.gw-slots.shake { animation: cal-shake .15s 3; }
.gw-slots.shake .gw-slot { border-color: var(--bad); }
.gw-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gw-tile { width: 52px; height: 56px; border: 0; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 -3px 0 var(--surface-3); color: var(--text); font: inherit; font-size: 24px; font-weight: 800; cursor: pointer; touch-action: manipulation; transition: transform .12s var(--ease), opacity .15s; }
.gw-tile:hover { background: var(--surface-3); }
.gw-tile:active { transform: translateY(2px); }
.gw-tile:disabled { opacity: .2; cursor: default; }
.gm-hint { font-size: 15px; font-weight: 600; color: var(--text-2); }
.gm-pads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(340px, 100%); }
.gm-pad { aspect-ratio: 1; border: 0; border-radius: 22px; background: var(--c); color: #fff; font: inherit; font-size: 22px; font-weight: 900; opacity: .35; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: opacity .12s, transform .12s var(--ease), box-shadow .12s; }
.gm-pad:disabled { cursor: default; }
.gm-mem.input .gm-pad { opacity: .75; }
.gm-pad.lit, .gm-pad:active:not(:disabled) { opacity: 1; transform: scale(1.04); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 35%, transparent), 0 10px 30px color-mix(in srgb, var(--c) 50%, transparent); }
.gm-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gm-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); transition: background .15s; }
.gm-dots i.ok { background: var(--ok); }
.gm-dots i.bad { background: var(--bad); }
.gm-seq { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.gm-seq i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--c); color: #fff; font-size: 12px; font-style: normal; font-weight: 800; }
.gc-word { font-size: clamp(40px, 9vw, 64px); font-weight: 900; line-height: 1.1; letter-spacing: .02em; }
.gc-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gc-opt { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 14px; font-size: 15px; font-weight: 700; }
.gc-opt i { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; }
.ge-row { display: flex; align-items: center; gap: 10px; width: min(360px, 100%); }
.ge-in { flex: 1; min-width: 0; height: 56px; font-size: 22px; font-weight: 800; text-align: center; }
.ge-in.err { border-color: var(--bad); animation: cal-shake .15s 3; }
.ge-unit { font-weight: 700; color: var(--muted); white-space: nowrap; }
.ge .btn { min-width: 180px; }

/* Dəvət bildirişi və seçim pəncərələri */
.gi-pop { position: fixed; right: 20px; bottom: 20px; z-index: 160; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; width: min(360px, calc(100% - 24px)); padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .22); opacity: 0; transform: translateY(20px) scale(.97); transition: opacity .25s, transform .3s var(--ease); }
.gi-pop.in { opacity: 1; transform: none; }
.gi-av { position: relative; display: inline-flex; }
.gi-badge { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; border: 2px solid var(--surface); font-style: normal; }
.gi-txt { padding-right: 22px; font-size: 14px; line-height: 1.35; }
.gi-txt small { display: block; margin-top: 2px; font-size: 13px; color: var(--text-2); }
.gi-txt .lvl-badge { height: 18px; padding: 0 6px; font-size: 10.5px; margin-left: 2px; }
.gi-btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.gi-x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.gi-x:hover { background: var(--surface-2); color: var(--text); }
.gi-q { margin: 14px 0 10px; }
.gi-list { display: flex; flex-direction: column; gap: 4px; max-height: min(46vh, 380px); margin: 0 -6px; padding: 0 6px; overflow-y: auto; }
.gi-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 1.5px solid transparent; border-radius: 14px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.gi-row:hover { background: var(--surface-2); }
.gi-row.on { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 50%, transparent); }
.gi-check { display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--surface-3); color: transparent; transition: background .15s, border-color .15s, color .15s; }
.gi-row.on .gi-check { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.gi-none { padding: 24px 6px; text-align: center; }
.gi-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.gi-foot .muted { font-size: 13.5px; }
.gp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 16px; }
.gp-item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); transition: border-color .15s, background .15s, transform .15s var(--ease); }
.gp-item:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 6%, var(--surface)); transform: translateY(-2px); }
.gp-item .gm-ic { width: 40px; height: 40px; border-radius: 12px; }
.gp-item b { font-size: 15px; }
.gp-item small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* Söhbətdə dəvət kartı, profildə oyun rekordları, menyuda keçid */
.msg-game { display: flex; align-items: center; gap: 10px; min-width: min(220px, 100%); margin-top: 6px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.msg.mine .msg-game { background: rgba(255, 255, 255, .55); border-color: transparent; color: var(--on-brand); }
a.msg-game:hover { border-color: var(--brand); }
.msg-game > span:nth-child(2) { flex: 1; min-width: 0; }
.msg-game b { display: block; font-size: 14.5px; }
.msg-game small { font-size: 12.5px; color: var(--muted); }
.msg.mine .msg-game small { color: inherit; opacity: .75; }
.mg-ic { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--c); color: #fff; }
.ug-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ug-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: opacity .6s var(--ease), transform .25s var(--ease), border-color .2s; }
.ug-item.in:hover { transform: translateY(-2px); border-color: var(--c); }
.ug-item .gm-ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; }
.ug-item small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ug-item b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ug-meta { font-size: 12.5px; color: var(--muted); }
/* Menyuda say nişanı yazının yanında durur (aktiv sarı fonda da görünsün deyə qırmızı) */
.games-link .hdr-badge { position: static; min-width: 10px; height: 17px; padding: 0 4px; margin-left: -1px; border: 0; background: var(--bad); color: #fff; font-size: 10.5px; line-height: 17px; }

/* ---------- Stolüstü oyunlar: domino, nərd, şahmat, şaşki (taxta rəngləri hər iki temada eynidir) ---------- */
.gm-opts { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-bottom: 20px; }
.gm-opt { display: flex; flex-direction: column; gap: 6px; }
.gm-opt > span { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.gm-opt .seg button { height: 34px; }
.gm-opt .seg button.active { background: var(--c); color: #fff; }
.gm-reason { margin: -6px 0 8px; font-weight: 600; color: var(--text-2); }
.bd-stage { place-items: stretch; min-height: 0; padding: 18px; }
.bd-stage > .gm-vs { place-self: center; margin: 40px 0; }
.gm-play.bd .gm-main:has(.bd-stage.mine) { box-shadow: 0 0 0 2px var(--c), var(--shadow); }
.bd-turn { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.bd-turn.mine { padding: 4px 12px; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--text); }
.bd-turn.mine .i { color: var(--c); }
/* Oyunçu zolaqları: taxtanın üstündə rəqiblər, altında siz; yan panel stolüstü oyunda yoxdur */
.gm-play.bd .gm-arena { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin: 0 auto; }
.bd-pl { display: flex; flex-wrap: wrap; gap: 8px; width: min(100% - 36px, 660px); margin: 0 auto; }
.bd-pl.top { padding-top: 18px; }
.bd-pl.bot { padding-bottom: 16px; }
.bd-pl:empty { display: none; }
.bd-pl:not(:empty) { animation: modalIn .4s var(--ease) both; }
.bd-pi { flex: 1 1 210px; min-width: 0; display: flex; align-items: center; gap: 11px; padding: 8px 12px 8px 8px; border-radius: 16px; background: var(--surface-2); border: 1.5px solid transparent; transition: background .25s, border-color .25s, opacity .25s; }
.bd-pi.turn { background: color-mix(in srgb, var(--c) 11%, var(--surface)); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.bd-pi.left { opacity: .45; }
.bd-pi.left .bd-pn b { text-decoration: line-through; }
.bd-av { position: relative; display: grid; flex-shrink: 0; }
.bd-av::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2.5px solid var(--c); opacity: 0; }
.bd-pi.turn .bd-av::after { animation: bdRing 1.4s ease-in-out infinite; }
@keyframes bdRing { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(1.1); } }
.bd-pn { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.2; }
.bd-pn b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-pn small { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; }
.bd-pn .lvl-badge { height: 19px; margin: 0; padding: 0 7px; font-size: 11px; }
.bd-pi .gm-tag.me { flex-shrink: 0; }
.bd-sc { flex-shrink: 0; min-width: 30px; text-align: right; font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.dm-op .avatar { box-shadow: 0 0 0 2px var(--surface); }
.bd-chip { flex-shrink: 0; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #6B7280; }
.bd-chip.w { background: #fff; }
.bd-chip.b { background: #1F2937; border-color: #1F2937; }
@keyframes bdPulse { 50% { opacity: .35; } }

/* Taxta çərçivə (şahmat, şaşki). 3D rejimdə (.d3) taxta əyilir, şahmat fiqurları ayağa qalxır, ön kənarda taxtanın qalınlığı görünür */
.bd-stage { --tilt: 0deg; }
.bd-stage.d3 { --tilt: 30deg; perspective: 1150px; perspective-origin: 50% 10%; }
.bd-frame { position: relative; width: min(100%, 600px, max(280px, calc(100svh - 430px))); margin: 0 auto; padding: clamp(6px, 1.5vw, 12px); border-radius: 14px; background: linear-gradient(135deg, #8F5E36, #6A4223 50%, #4B2D16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 16px 34px rgba(0, 0, 0, .3); container-type: inline-size; transform: rotateX(var(--tilt)); transform-origin: 50% 100%; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.bd-frame::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 16px; border-radius: 0 0 12px 12px; background: linear-gradient(#4B2D16, #2A180A); transform: rotateX(-90deg); transform-origin: top; pointer-events: none; }

/* Şahmat */
.ch-board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); aspect-ratio: 1; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); transform-style: preserve-3d; }
.ch-sq { position: relative; display: grid; place-items: center; padding: 0; border: 0; border-radius: 0; cursor: default; transform-style: preserve-3d; }
.ch-sq.lt { background: linear-gradient(135deg, #F4E6CB, #E8D3AE); }
.ch-sq.dk { background: linear-gradient(135deg, #BC8B5F, #A06F48); }
.ch-sq.last.lt { background: #F0DE88; }
.ch-sq.last.dk { background: #CFAE50; }
.ch-sq.sel.lt { background: #C7DB8E; }
.ch-sq.sel.dk { background: #93AF55; }
.ch-sq.chk { background: radial-gradient(circle, #FF4D3D 0 30%, rgba(255, 77, 61, .5) 56%, transparent 74%), linear-gradient(135deg, #E8C4A4, #B58863); }
.ch-sq.tg::after { content: ''; position: absolute; width: 30%; height: 30%; border-radius: 50%; background: rgba(28, 46, 24, .32); }
.ch-sq.tg.cap::after { width: 88%; height: 88%; background: none; border: 1cqi solid rgba(28, 46, 24, .34); box-sizing: border-box; }
.ch-board.act .ch-sq.mv, .ch-board.act .ch-sq.tg { cursor: pointer; }
.ch-board.act .ch-sq.mv:hover, .ch-board.act .ch-sq.tg:hover { box-shadow: inset 0 0 0 100px rgba(255, 255, 255, .12); }
.ch-pc { position: relative; z-index: 1; width: 90%; height: 90%; overflow: visible; pointer-events: none; stroke-width: 1.3; stroke-linejoin: round; filter: drop-shadow(0 .5cqi .4cqi rgba(0, 0, 0, .38)); transition: translate .18s var(--ease), filter .18s, transform .6s var(--ease); }
.ch-pc.w { fill: url(#fmChW); stroke: #2B2016; --pd: #2B2016; }
.ch-pc.b { fill: url(#fmChB); stroke: #000; --pd: rgba(255, 255, 255, .6); }
.ch-sq.sel .ch-pc { translate: 0 -7%; filter: drop-shadow(0 1.6cqi 1cqi rgba(0, 0, 0, .35)); }
.ch-pc.ghost { position: absolute; inset: 0; z-index: 0; margin: auto; }
.d3 .ch-pc { transform: rotateX(calc(-1 * var(--tilt))); transform-origin: 50% 90%; pointer-events: auto; }
.d3 .ch-pc.ghost { pointer-events: none; }
.ch-sq i { position: absolute; font-size: 2.3cqi; font-style: normal; font-weight: 800; line-height: 1; pointer-events: none; }
.ch-r { top: .5cqi; left: .6cqi; }
.ch-f { right: .6cqi; bottom: .5cqi; }
.ch-sq.lt i { color: #A0704A; }
.ch-sq.dk i { color: #F4E6CB; }

/* Şaşki: qalınlığı olan daşlar, damka — iki qat və qızıl tac */
.ck-board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); aspect-ratio: 1; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
.ck-sq { display: grid; place-items: center; padding: 0; border: 0; border-radius: 0; cursor: default; }
.ck-sq > *, .ck-sq::after { grid-area: 1 / 1; }
.ck-sq.lt { background: linear-gradient(135deg, #F5E8CC, #E9D6B2); }
.ck-sq.dk { background: linear-gradient(135deg, #7E5838, #66442A); }
.ck-sq.last { background: #9C7A3C; }
.ck-sq.sel { background: #5E8040; }
.ck-sq.tg { cursor: pointer; }
.ck-sq.tg::after { content: ''; width: 34%; height: 34%; border-radius: 50%; background: rgba(250, 204, 21, .85); box-shadow: 0 0 0 .6cqi rgba(250, 204, 21, .3), 0 0 2cqi rgba(250, 204, 21, .6); animation: bdPulse 1.2s ease-in-out infinite; }
.ck-board.act .ck-sq.mv { cursor: pointer; }
.ck-pc { --edge: #A8936C; --ring: 0 0 0 0 transparent; position: relative; display: grid; place-items: center; width: 76%; aspect-ratio: 1; border-radius: 50%; translate: 0 -.5cqi; box-shadow: var(--ring), 0 .9cqi 0 var(--edge), 0 1.5cqi 1.4cqi rgba(0, 0, 0, .45); transition: opacity .2s, translate .18s var(--ease); }
.ck-pc.w { background: radial-gradient(circle, transparent 0 30%, rgba(120, 90, 40, .16) 31% 34%, transparent 35% 55%, rgba(120, 90, 40, .16) 56% 59%, transparent 60%), radial-gradient(circle at 36% 28%, #FFFFFF, #F1E6CF 55%, #D2BF9C); }
.ck-pc.b { --edge: #050505; background: radial-gradient(circle, transparent 0 30%, rgba(255, 255, 255, .08) 31% 34%, transparent 35% 55%, rgba(255, 255, 255, .08) 56% 59%, transparent 60%), radial-gradient(circle at 36% 28%, #6A6A6A, #2A2A2A 55%, #0E0E0E); }
.ck-pc.king { translate: 0 -1.2cqi; box-shadow: var(--ring), 0 .9cqi 0 var(--edge), 0 1.1cqi 0 rgba(0, 0, 0, .3), 0 2cqi 0 var(--edge), 0 2.6cqi 1.6cqi rgba(0, 0, 0, .45); }
.ck-pc svg { width: 54%; fill: #E8B132; stroke: #8A5A00; stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 .3cqi .2cqi rgba(0, 0, 0, .4)); }
.ck-board.act .ck-sq.mv .ck-pc { --ring: 0 0 0 .6cqi #FACC15; }
.ck-board.act .ck-sq.mv:hover .ck-pc { translate: 0 -1.2cqi; }
.ck-sq.sel .ck-pc { translate: 0 -1.6cqi; }
.ck-pc.ghost { opacity: .55; }
.ck-pc.gone { opacity: .3; }

/* Domino: yaşıl mahud masa taxta haşiyə ilə; 3D rejimdə masa əyilir, əldəki daşlar düz qalır */
.dm { display: flex; flex-direction: column; gap: 14px; perspective: 1100px; perspective-origin: 50% 0%; }
.dm-opp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dm-op { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: var(--surface-2); font-size: 13px; transition: box-shadow .2s; }
.dm-op.turn { box-shadow: inset 0 0 0 2px var(--c); }
.dm-backs { display: inline-flex; gap: 2px; }
.dm-backs i { width: 9px; height: 16px; border-radius: 2.5px; background: radial-gradient(circle, #D4A017 0 1.1px, transparent 1.5px), linear-gradient(135deg, #334155, #0F172A); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 1px 1px rgba(0, 0, 0, .3); }
.dm-op small { font-weight: 800; color: var(--muted); }
.dm-pile { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--muted); }
.dm-table { display: flex; align-items: center; gap: 8px; min-height: 170px; padding: 16px 10px; border: 9px solid transparent; border-radius: 20px; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 5px) padding-box, radial-gradient(ellipse at 50% 40%, #24895F, #13593E 70%, #0B412C) padding-box, linear-gradient(135deg, #966239, #5A3519 55%, #3F2410) border-box; box-shadow: inset 0 4px 18px rgba(0, 0, 0, .45), 0 12px 26px rgba(0, 0, 0, .25); transform: rotateX(0deg); transform-origin: 50% 100%; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.d3 .dm-table { transform: rotateX(24deg); }
.dm-chain { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3px; transform-style: preserve-3d; }
.dm-empty { margin: 0; font-weight: 600; color: rgba(255, 255, 255, .85); text-align: center; }
.dm-t { display: block; overflow: visible; }
.dm-t.h { width: 48px; height: 24px; }
.dm-t.v { width: 24px; height: 48px; }
.dm-chain .dm-t { filter: drop-shadow(0 2px 1.5px rgba(0, 0, 0, .45)); }
.dm-t rect { fill: url(#fmDmFace); stroke: #BBAE93; stroke-width: 1.3; }
.dm-t path { stroke: #B3A587; stroke-width: 1.3; }
.dm-t circle { fill: url(#fmDmPip); }
.dm-t .pin { fill: url(#fmDmPin); }
.dm-t.hot rect { stroke: #F59E0B; stroke-width: 2.6; }
.dm-end { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 74px; border: 2px dashed #FDE68A; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px; font-weight: 900; line-height: 1; cursor: pointer; animation: bdPulse 1.4s ease-in-out infinite; }
.dm-end small { margin-top: 4px; font-size: 10.5px; font-weight: 700; }
.dm-end:hover { background: rgba(255, 255, 255, .22); animation: none; }
.dm-hand { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; padding: 6px 0 2px; perspective: 700px; }
.dm-tile { padding: 0; border: 0; border-radius: 7px; background: none; transition: transform .18s var(--ease), opacity .2s; }
.dm-tile .dm-t { width: 36px; height: 72px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .22)); }
.dm-tile:disabled { cursor: default; }
.dm-hand.act .dm-tile:not(.can) { opacity: .4; }
.dm-tile.can { cursor: pointer; }
.dm-tile.can .dm-t rect { stroke: var(--c); stroke-width: 2.6; }
.dm-tile.can:hover { transform: translateY(-7px) rotateX(14deg); }
.dm-tile.on { transform: translateY(-11px) rotateX(14deg); }
.dm-tile.on .dm-t rect { stroke: #F59E0B; }
.dm-hint { margin: 0; text-align: center; font-weight: 700; color: var(--text-2); }

/* Nərd: taxta qutu, ağ və qırmızı üçbucaqlar, 3D zər kubları */
.nd-wrap { perspective: 1200px; perspective-origin: 50% 0%; }
.nd-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, .7fr) repeat(6, minmax(0, 1fr)) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr); width: min(100%, 660px, max(320px, calc((100svh - 430px) * 1.15))); aspect-ratio: 1.15; margin: 0 auto; padding: 8px; column-gap: 2px; border: 9px solid transparent; border-radius: 16px; background: repeating-linear-gradient(92deg, rgba(90, 50, 20, .07) 0 3px, transparent 3px 11px) padding-box, linear-gradient(180deg, #D7AE78, #C4955D 50%, #D7AE78) padding-box, linear-gradient(135deg, #8F5E36, #5C3719 55%, #40240E) border-box; container-type: inline-size; box-shadow: inset 0 2px 10px rgba(0, 0, 0, .3), 0 14px 30px rgba(0, 0, 0, .28); transform-origin: 50% 100%; transition: transform .6s var(--ease); }
.d3 .nd-board { transform: rotateX(22deg); }
.nd-pt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; cursor: default; }
.nd-pt::before { content: ''; position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 86%); }
.nd-pt.bot { flex-direction: column-reverse; }
.nd-pt.bot::before { clip-path: polygon(0 100%, 100% 100%, 50% 14%); }
.nd-pt.a::before { background: linear-gradient(90deg, #F8EBCF, #E9D3A6 50%, #DCC08C); }
.nd-pt.b::before { background: linear-gradient(90deg, #B8472C, #94321D 50%, #7A2614); }
.nd-pt.tg::before { background: linear-gradient(90deg, #6EE7A0, #22C55E); }
.nd-pt.tg { animation: bdPulse 1.2s ease-in-out infinite; }
.nd-pt.tg, .nd-board.act .nd-pt.mv { cursor: pointer; }
.nd-pt.last::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #FACC15; box-shadow: 0 0 6px #FACC15; }
.nd-pt.bot.last::after { top: 2px; bottom: auto; }
.nd-ck { --edge: #A8936C; --ring: 0 0 0 0 transparent; position: relative; z-index: 1; flex-shrink: 0; display: grid; place-items: center; width: 90%; max-width: 6.2cqi; aspect-ratio: 1; border-radius: 50%; font-size: 2.6cqi; font-style: normal; font-weight: 800; line-height: 1; box-shadow: var(--ring), 0 .45cqi 0 var(--edge), 0 .7cqi .7cqi rgba(0, 0, 0, .4); }
.nd-ck.w { background: radial-gradient(circle, transparent 0 34%, rgba(120, 90, 40, .18) 35% 39%, transparent 40%), radial-gradient(circle at 36% 28%, #FFFFFF, #F0E6D2 55%, #D3C3A3); color: #374151; }
.nd-ck.b { --edge: #000; background: radial-gradient(circle, transparent 0 34%, rgba(255, 255, 255, .1) 35% 39%, transparent 40%), radial-gradient(circle at 36% 28%, #646464, #262626 55%, #0B0B0B); color: #fff; }
.nd-board.act .nd-pt.mv .nd-ck:last-child { --ring: 0 0 0 .5cqi #FACC15; }
.nd-pt.sel .nd-ck:last-child { --ring: 0 0 0 .6cqi #22C55E; translate: 0 -.6cqi; }
.nd-pt.bot.sel .nd-ck:last-child { translate: 0 .6cqi; }
.nd-bar { display: flex; flex-direction: column; align-items: center; gap: 1px; padding-top: 4px; border-radius: 4px; background: linear-gradient(90deg, #4B2D16, #6A4223 50%, #4B2D16); box-shadow: inset 0 0 6px rgba(0, 0, 0, .4); }
.nd-bar.bot { flex-direction: column-reverse; padding: 0 0 4px; }
.nd-mid { grid-column: 1 / 14; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; min-height: 58px; padding: 10px 0; }
.nd-dice { display: flex; gap: 14px; }
.nd-die { --d: 36px; position: relative; width: var(--d); height: var(--d); perspective: 260px; transition: opacity .25s; }
.nd-die::before { content: ''; position: absolute; left: 6%; right: 6%; bottom: -16%; height: 26%; border-radius: 50%; background: rgba(40, 20, 5, .4); filter: blur(3px); }
.nd-die.used { opacity: .35; }
.nd-cube { position: absolute; inset: 0; transform-style: preserve-3d; }
.nd-cube i { position: absolute; inset: 0; display: block; border-radius: 14%; background: radial-gradient(circle at 30% 25%, #FFFFFF, #F3EDE1 60%, #DCD2BF); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), inset 0 -2px 4px rgba(0, 0, 0, .1); backface-visibility: hidden; }
.nd-cube svg { display: block; width: 100%; height: 100%; }
.nd-cube circle { fill: #1F2937; }
.nd-cube .f1 circle { fill: #B91C1C; }
.nd-cube .f1 { transform: translateZ(calc(var(--d) / 2)); }
.nd-cube .f2 { transform: rotateX(90deg) translateZ(calc(var(--d) / 2)); }
.nd-cube .f3 { transform: rotateY(90deg) translateZ(calc(var(--d) / 2)); }
.nd-cube .f4 { transform: rotateY(-90deg) translateZ(calc(var(--d) / 2)); }
.nd-cube .f5 { transform: rotateX(-90deg) translateZ(calc(var(--d) / 2)); }
.nd-cube .f6 { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.nd-barbtn { padding: 7px 14px; border: 0; border-radius: 99px; background: #FACC15; color: #422006; font-size: 12.5px; font-weight: 800; cursor: pointer; box-shadow: 0 3px 0 #CA8A04; }
.nd-barbtn.sel { background: #22C55E; color: #fff; box-shadow: 0 3px 0 #15803D; }
.nd-off { grid-column: 14; grid-row: 1 / 4; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; margin-left: 6px; padding: 4px 3px; border: 0; border-radius: 8px; background: linear-gradient(90deg, #4B2D16, #6A4223 50%, #4B2D16); box-shadow: inset 0 0 6px rgba(0, 0, 0, .45); cursor: default; }
.nd-off.tg { background: #16A34A; cursor: pointer; animation: bdPulse 1.2s ease-in-out infinite; }
.nd-off-t, .nd-off-b { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nd-off-b { flex-direction: column-reverse; }
.nd-off .nd-ck { width: 86%; max-width: none; aspect-ratio: 2.6; border-radius: 3px; }
.nd-off small { font-size: 12px; font-weight: 800; color: #F5DEB3; }
.nd-undo { display: flex; margin: 10px auto 0; }

/* Hissiyat: qığılcım, konfeti, reaksiyalar, başlıqdakı düymələr */
.fx-sparks { position: fixed; z-index: 80; width: 0; height: 0; pointer-events: none; }
.fx-sparks i { position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 6px rgba(255, 220, 120, .8); }
.fx-confetti { position: fixed; inset: 0; z-index: 90; width: 100%; height: 100%; pointer-events: none; }
.emo-pop { position: absolute; z-index: 85; font-size: 34px; line-height: 1; translate: -50% -50%; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25)); animation: emoPop 2.5s var(--ease) forwards; }
@keyframes emoPop { 0% { opacity: 0; transform: scale(.3) translateY(10px); } 12% { opacity: 1; transform: scale(1.3) translateY(-14px) rotate(-10deg); } 22% { transform: scale(1) translateY(-18px) rotate(5deg); } 75% { opacity: 1; transform: translateY(-36px); } 100% { opacity: 0; transform: translateY(-58px) scale(.8); } }
.gm-tools { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.gm-tools .icon-btn[aria-pressed="false"] { color: var(--muted); }
.gm-3d { width: auto; display: inline-flex; gap: 4px; padding: 0 9px; }
.gm-3d b { font-size: 11.5px; font-weight: 900; letter-spacing: .02em; }
.gm-3d[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 18%, var(--surface-2)); color: var(--text); }
.emo-wrap { position: relative; }
.emo-bar { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: flex; gap: 2px; padding: 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: modalIn .2s var(--ease); }
.emo-bar[hidden] { display: none; }
.emo-bar button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 22px; line-height: 1; cursor: pointer; transition: transform .15s var(--ease), background .15s; }
.emo-bar button:hover, .emo-bar button:focus-visible { background: var(--surface-2); transform: scale(1.22) translateY(-2px); }
.gm-stage.shake { animation: cal-shake .12s 3; }
.gm-end-card .gm-ic.xl { animation: gmTrophy 1.1s var(--ease) both; }
.gm-end-card.won .gm-ic.xl { animation: gmTrophy 1.1s var(--ease) both, gmGlow 2.4s 1.1s ease-in-out infinite; }
@keyframes gmTrophy { from { opacity: 0; transform: perspective(500px) rotateY(-540deg) scale(.3); } 60% { opacity: 1; } to { transform: perspective(500px) rotateY(0) scale(1); } }
@keyframes gmGlow { 50% { box-shadow: 0 10px 34px rgba(234, 179, 8, .7), 0 0 0 8px rgba(250, 204, 21, .15); } }
@media (hover: hover) and (pointer: fine) {
  .gm-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .16), transparent 55%); opacity: 0; transition: opacity .25s; }
  .gm-card.in:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px); }
  .gm-card:hover::after { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .emo-pop { animation: none !important; translate: -50% -90%; }
}
/* 3 rəqib (domino), dar ekranda 2 rəqib: kiçik şaquli kartlar bir sırada, xal küncdə */
.bd-pl.top:has(> :nth-child(3)) .bd-pi { position: relative; flex: 1 1 0; flex-direction: column; gap: 5px; padding: 10px 6px 8px; text-align: center; }
.bd-pl.top:has(> :nth-child(3)) .bd-pn { align-items: center; width: 100%; }
.bd-pl.top:has(> :nth-child(3)) .bd-pn small { justify-content: center; }
.bd-pl.top:has(> :nth-child(3)) .bd-pn .lvl-badge { display: none; }
.bd-pl.top:has(> :nth-child(3)) .bd-pn b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; font-size: 13px; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; }
.bd-pl.top:has(> :nth-child(3)) .bd-sc { position: absolute; top: 6px; right: 9px; font-size: 15px; }
@media (max-width: 700px) {
  .bd-pl.top:has(> :nth-child(2)) .bd-pi { position: relative; flex: 1 1 0; flex-direction: column; gap: 5px; padding: 10px 6px 8px; text-align: center; }
  .bd-pl.top:has(> :nth-child(2)) .bd-pn { align-items: center; width: 100%; }
  .bd-pl.top:has(> :nth-child(2)) .bd-pn small { justify-content: center; }
  .bd-pl.top:has(> :nth-child(2)) .bd-pn .lvl-badge { display: none; }
  .bd-pl.top:has(> :nth-child(2)) .bd-pn b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; font-size: 13px; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; }
  .bd-pl.top:has(> :nth-child(2)) .bd-sc { position: absolute; top: 6px; right: 9px; font-size: 15px; }
}
@media (max-width: 560px) {
  .bd-stage { padding: 12px 8px; }
  .bd-stage.d3 { --tilt: 24deg; }
  .bd-pl { width: calc(100% - 16px); }
  .bd-pl.top { padding-top: 10px; }
  .bd-pi { gap: 9px; padding: 6px 10px 6px 6px; }
  .bd-pn b { font-size: 14px; }
  .gm-vs { gap: 12px 14px; }
  .gm-vs:not(.many) .vs-p .avatar { width: 66px !important; height: 66px !important; font-size: 25px !important; }
  .gm-vs.many .vs-side.r { gap: 14px 8px; }
  .gm-vs.many .vs-side.r .vs-p { flex: 0 1 94px; }
  .vs-p b { font-size: 14.5px; }
  .vs-mark { font-size: 32px; }
  .gm-vs .gm-count { font-size: 60px; }
  .gm-head .gm-ic { display: none; }
  .gm-quit span { display: none; }
  .gm-quit { padding: 0 10px; }
  .gm-tools .icon-btn:not(.gm-3d) { width: 36px; }
  .gm-3d { padding: 0 7px; }
  .dm-table { min-height: 130px; padding: 10px 6px; border-width: 7px; }
  .d3 .dm-table { transform: rotateX(18deg); }
  .dm-t.h { width: 36px; height: 18px; }
  .dm-t.v { width: 18px; height: 36px; }
  .dm-tile .dm-t { width: 30px; height: 60px; }
  .dm-end { width: 46px; height: 62px; font-size: 20px; }
  .nd-board { padding: 5px; border-width: 6px; aspect-ratio: 1; }
  .d3 .nd-board { transform: rotateX(16deg); }
  .nd-die { --d: 30px; }
  .nd-dice { gap: 10px; }
}

@media (max-width: 1100px) {
  .gm-arena { grid-template-columns: minmax(0, 1fr) 250px; }
}
@media (max-width: 900px) {
  .gm-intro, .gm-arena, .gm-lobby-grid { grid-template-columns: minmax(0, 1fr); }
  .gm-board { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 8px; }
  .gs-t { grid-column: 1 / -1; }
  .gs-row + .gs-row { margin-top: 0; }
}
@media (max-width: 768px) {
  .gi-pop { left: 12px; right: 12px; width: auto; bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom) + 10px); }
}
@media (max-width: 560px) {
  .page-head .gm-join { width: 100%; }
  .gm-join .input { flex: 1; width: auto; min-width: 0; }
  .gm-hero { padding: 22px 18px; border-radius: 22px; }
  .gm-hero h1 { font-size: 28px; }
  .gm-cta .btn { flex: 1 1 auto; }
  .gm-card-act .btn { padding: 0 10px; }
  .gl-tr { grid-template-columns: 30px minmax(0, 1fr) 54px 64px; gap: 8px; padding: 10px 12px; }
  .gl-tr .lvl-badge { display: none; }
  .gm-head h1 { font-size: 19px; }
  .gm-code { font-size: 32px; }
  .gm-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gm-slot { min-height: 0; padding: 14px 8px 12px; }
  .gm-slot.empty { padding: 10px 8px; }
  .gm-lobby-foot .btn-lg { flex: 1 1 100%; }
  .gm-stage { min-height: 320px; padding: 20px 14px; }
  .gm-count { font-size: 88px; }
  .gq-q { font-size: 19px; }
  .gq-opts { grid-template-columns: minmax(0, 1fr); }
  .gq-opt { min-height: 54px; }
  .gr-pad { min-height: 260px; }
  .gw-slots { gap: 5px; }
  .gw-slot { height: 48px; font-size: 21px; }
  .gw-tile { width: 46px; height: 52px; font-size: 21px; }
  .gm-end-card { padding: 26px 16px 20px; border-radius: 22px; }
  .gm-final b { font-size: 40px; }
  .gm-board { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   v2.2 yenilikləri: Mənim lentim, oxu alətləri, viktorina, oxucu xəbəri,
   hava, faydalı məlumat, mövzular, videolar, admin panel
   ===================================================================== */

/* ----- Oxunmuş xəbərlər və kart nişanları ----- */
.card.read .thumb img, .list-item.read .thumb img { filter: grayscale(.55); opacity: .72; }
.card.read h3, .list-item.read h4 { color: var(--muted); }
.read-tag { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--ok-text); }
.list-item .read-tag { margin-top: 4px; }
.why { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; max-width: 100%; padding: 3px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-text); font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vid-badge { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .66); color: #fff; font-size: 12px; font-weight: 700; }
.count-pill { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 700; text-align: center; }
.count-pill:empty { display: none; }

/* ----- Mənim lentim ----- */
.feed-cta { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(120deg, var(--brand-soft), var(--surface)); color: var(--brand-text); }
.feed-cta > span { flex: 1; display: grid; gap: 2px; }
.feed-cta b { color: var(--text); font-size: 16px; }
.feed-cta small { color: var(--muted); font-size: 13.5px; }
.feed-ints { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fi-label { font-size: 14px; font-weight: 700; color: var(--text-2); }
.feed-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 10px 14px; margin-bottom: 20px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; color: var(--text-2); }
.feed-bar > span { display: inline-flex; align-items: center; gap: 6px; }
.switch-row.sm { justify-content: flex-start; padding: 0; border: 0; font-size: 13.5px; font-weight: 600; }
.quiz-w { display: flex; align-items: center; gap: 12px; color: var(--text); }
.quiz-w .qw-ic { flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--grad); color: #fff; }
.quiz-w .qw-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.quiz-w small { font-size: 12.5px; color: var(--muted); }
.quiz-w:hover b { color: var(--brand-text); }

/* ----- Xəbər səhifəsi: alətlər, dinlə, xülasə ----- */
.art-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.at-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--text-2); font-size: 13.5px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.at-btn small { font-size: 12px; font-weight: 600; color: var(--muted); }
.at-btn:hover { background: var(--surface-2); color: var(--text); }
.at-btn.on { border-color: transparent; background: var(--brand-soft); color: var(--brand-text); }
.tts-bar { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; display: flex; align-items: center; gap: 6px; padding: 10px 12px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); animation: modalIn .3s var(--ease) both; }
.tts-bar[hidden] { display: none; }
.tts-play { flex-shrink: 0; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.tts-sk, .tts-x { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); }
.tts-sk:hover, .tts-x:hover { background: var(--surface-2); color: var(--text); }
.tts-mid { flex: 1; min-width: 0; display: grid; gap: 6px; padding: 0 4px; }
.tts-prog { height: 4px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.tts-prog i { display: block; width: 0; height: 100%; background: var(--grad); transition: width .4s; }
.tts-label { overflow: hidden; font-size: 12px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.tts-rate { flex-shrink: 0; min-width: 48px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 700; }
.tts-on { border-radius: 6px; background: color-mix(in srgb, var(--brand) 12%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 12%, transparent); transition: background .3s, box-shadow .3s; }
.summary { padding: 16px 18px; margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--brand) 6%, var(--surface)); animation: modalIn .3s var(--ease) both; }
.summary[hidden] { display: none; }
.summary h4 { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-text); }
.summary ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.summary li { font-size: 15.5px; line-height: 1.55; color: var(--text); }
.summary li::marker { color: var(--brand); }
.summary small { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }
.article figure.video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; }

/* Oxu rejimi: yalnız məqalə qalır, mətn rahat oxunan şriftə keçir */
body.reading-mode .topbar, body.reading-mode .ticker, body.reading-mode .catbar, body.reading-mode .share-rail,
body.reading-mode .article-aside, body.reading-mode .related, body.reading-mode .ad-slot, body.reading-mode .crumbs { display: none; }
body.reading-mode .article-wrap { grid-template-columns: minmax(0, 720px); justify-content: center; padding-top: 24px; }
body.reading-mode .prose { font-family: Georgia, "Times New Roman", serif; font-size: calc(19px * var(--fs, 1)); line-height: 1.9; }

/* Mövzu xronologiyası (mini) */
.tl-mini { position: relative; display: grid; padding-left: 18px; list-style: none; }
.tl-mini::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-mini li { position: relative; display: grid; gap: 2px; padding: 6px 0 10px; font-size: 13.5px; line-height: 1.4; }
.tl-mini li::before { content: ''; position: absolute; left: -17px; top: 10px; width: 10px; height: 10px; border: 2px solid var(--muted); border-radius: 50%; background: var(--surface); box-sizing: border-box; }
.tl-mini li.cur::before { border-color: var(--brand); background: var(--brand); }
.tl-mini time { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.tl-mini a:hover { color: var(--brand-text); }

/* Rəylər: səs, bal, ən faydalı */
.c-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.c-top .c-title { margin: 0; }
.tabs.sm button { height: 32px; padding: 0 12px; font-size: 13px; }
.c-vote { display: inline-flex; align-items: center; gap: 2px; margin-left: -6px; }
.c-vote button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); }
.c-vote button:hover { background: var(--surface-2); color: var(--text); }
.c-vote .c-up.on { color: var(--ok-text); }
.c-vote .c-down.on { color: var(--bad-text); }
.c-score { min-width: 18px; text-align: center; font-size: 13px; font-weight: 700; color: var(--text-2); }
.best-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, #F59E0B 18%, transparent); color: #92400E; font-size: 11.5px; font-weight: 700; }
[data-theme=dark] .best-tag { color: #FCD34D; }
.comment.best { padding-left: 12px; padding-right: 12px; margin: 0 -12px; border-radius: 14px; background: color-mix(in srgb, #F59E0B 6%, transparent); }

/* Saxlanılanlar */
.saved-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.saved-row .list-item { flex: 1; min-width: 0; border-bottom: 0; }
.sub-h { display: flex; align-items: center; gap: 8px; margin: 26px 0 10px; font-size: 18px; font-weight: 800; }
.net-state { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.net-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.net-state.on { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok-text); }
.net-state.off { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad-text); }

/* ----- Naviqasiya əlavələri ----- */
.catbar a.mine-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.catbar a.mine-link:not(.active) { color: var(--brand-text); }
a.toast { pointer-events: auto; cursor: pointer; }
.toast.breaking > .i { color: #F87171; }

/* ----- Günün viktorinası ----- */
.quiz-card { padding: 26px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.quiz-card.intro, .quiz-card.result { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.quiz-card.intro > .i { color: var(--brand-text); }
.quiz-card.intro p { max-width: 520px; color: var(--muted); }
.qz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 13px; }
.qz-kind { padding: 3px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-text); font-weight: 700; }
.qz-dots { flex: 1; display: flex; justify-content: center; gap: 6px; }
.qz-dots i { width: 28px; height: 6px; border-radius: 99px; background: var(--surface-3); }
.qz-dots i.cur { background: var(--brand); }
.qz-dots i.ok { background: var(--ok); }
.qz-dots i.bad { background: var(--bad); }
.qz-q { margin-bottom: 18px; font-size: 21px; font-weight: 800; line-height: 1.4; }
.qz-opts { display: grid; gap: 10px; }
.qz-opt { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; text-align: left; transition: border-color .2s, background .2s; }
.qz-opt:not(:disabled):hover { border-color: var(--brand); background: var(--brand-soft); }
.qz-l { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); font-weight: 800; color: var(--text-2); }
.qz-opt.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.qz-opt.right .qz-l { background: var(--ok); color: #fff; }
.qz-opt.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, var(--surface)); }
.qz-opt.wrong .qz-l { background: var(--bad); color: #fff; }
.qz-opt:disabled { cursor: default; }
.qz-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; min-height: 36px; }
.qz-foot .btn-primary { margin-left: auto; }
.qz-verdict { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.qz-verdict.ok { color: var(--ok-text); }
.qz-verdict.bad { color: var(--bad-text); }
.qz-score { --p: 0; width: 132px; height: 132px; display: grid; place-items: center; align-content: center; border-radius: 50%; background: radial-gradient(closest-side, var(--surface) 82%, transparent 83% 100%), conic-gradient(var(--brand) calc(var(--p) * 1%), var(--surface-3) 0); }
.qz-score b { font-size: 42px; font-weight: 900; line-height: 1; }
.qz-score span { font-size: 14px; font-weight: 700; color: var(--muted); }
.qz-xp { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: var(--grad); color: var(--on-brand); font-weight: 800; }
.qz-next { display: inline-flex; align-items: center; gap: 6px; }
.qz-bh { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.qz-bh .panel-t { margin: 0; }
.qz-board { display: grid; list-style: none; }
.qz-board li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.qz-board li:last-child { border-bottom: 0; }
.qz-board li.me { border-radius: 10px; background: var(--brand-soft); }
.qz-board .rk { width: 22px; font-weight: 800; color: var(--muted); text-align: center; }
.qz-board .nm { flex: 1; min-width: 0; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.qz-board .nm small { display: inline-flex; align-items: center; gap: 3px; color: var(--ok-text); font-size: 11.5px; }
.streak-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(120deg, color-mix(in srgb, #F97316 12%, var(--surface)), var(--surface)); }
.sc-ic { flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #F97316, #EF4444); color: #fff; }
.sc-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sc-t b { font-size: 17px; }
.sc-t small { font-size: 13px; color: var(--muted); }
.sc-week { display: flex; gap: 4px; }
.sc-week i { width: 10px; height: 26px; border-radius: 99px; background: var(--surface-3); }
.sc-week i.on { background: linear-gradient(180deg, #F97316, #EF4444); }

/* ----- Bildiriş ayarları ----- */
.perm-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; margin-bottom: 6px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; color: var(--text-2); }
.perm-row > span { flex: 1; min-width: 180px; }
.perm-row.ok > .i { color: var(--ok-text); }
.perm-row.bad > .i { color: var(--bad-text); }
.b-cats { padding: 4px 0 10px; border-bottom: 1px solid var(--line); }
.b-cats[hidden] { display: none; }
.b-cats .hint { margin: 0 0 8px; }
.interest-chips.sm span { padding: 5px 11px; font-size: 12.5px; }

/* ----- Xəbər göndər ----- */
.tip-form { display: grid; gap: 4px; margin-bottom: 18px; }
.tip-form .cover-drop { margin-bottom: 14px; }
.tip-list { display: grid; }
.tip-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tip-row:last-child { border-bottom: 0; }
.tip-row > img, .tip-noimg { flex-shrink: 0; width: 64px; height: 48px; display: grid; place-items: center; border-radius: 10px; object-fit: cover; background: var(--surface-2); color: var(--muted); }
.tip-row > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tip-row b { overflow: hidden; font-size: 14.5px; white-space: nowrap; text-overflow: ellipsis; }
.tip-row small { font-size: 12.5px; color: var(--muted); }
.tip-st { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 700; }
.tip-st.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok-text); }
.tip-st.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad-text); }

/* ----- Hava ----- */
.w-city { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 6px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--brand-text); }
.w-city select { height: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.w-city select:focus { outline: 0; }
.w-city.sm { height: 34px; font-size: 13px; }
.w-warn { display: grid; gap: 8px; margin-bottom: 16px; }
.w-warn > div { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, #F59E0B 16%, var(--surface)); color: var(--text); font-size: 14px; font-weight: 600; }
.w-warn .i:first-child { color: #D97706; }
.w-now { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 26px; margin-bottom: 18px; border-radius: 22px; background: linear-gradient(135deg, #0EA5E9, #6366F1); color: #fff; box-shadow: var(--shadow-lg); }
.w-now.demo { display: grid; }
.w-now .muted { color: rgba(255, 255, 255, .85); display: flex; align-items: center; gap: 6px; }
.w-main { display: flex; align-items: center; gap: 18px; }
.w-main > div { display: grid; }
.w-city-n { font-size: 15px; font-weight: 700; opacity: .9; }
.w-t { font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.w-facts { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 10px; }
.w-facts > div { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .16); }
.w-facts .i { grid-row: span 3; }
.w-facts span { font-size: 12px; opacity: .85; }
.w-facts b { font-size: 17px; }
.w-facts small { font-size: 11.5px; opacity: .8; }
.w-hours { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.w-h { flex: 0 0 64px; display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; background: var(--surface-2); font-size: 12.5px; color: var(--text-2); }
.w-h b { font-size: 16px; color: var(--text); }
.w-h small { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); }
.w-h small.wet { color: #0284C7; font-weight: 700; }
[data-theme=dark] .w-h small.wet { color: #38BDF8; }
.w-days { display: grid; }
.w-d { display: grid; grid-template-columns: minmax(90px, 1.2fr) minmax(0, 1.4fr) 54px 36px minmax(60px, 2fr) 36px; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.w-d:last-child { border-bottom: 0; }
.w-dn { font-weight: 700; }
.w-di { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-2); }
.w-di small { overflow: hidden; font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.w-dp { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: #0284C7; }
[data-theme=dark] .w-dp { color: #38BDF8; }
.w-lo { text-align: right; color: var(--muted); }
.w-hi { font-weight: 800; }
.w-range { position: relative; height: 6px; border-radius: 99px; background: var(--surface-3); }
.w-range i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #38BDF8, #F59E0B); }
.panel + .panel, .panel + .hint { margin-top: 18px; }

/* ----- Faydalı məlumat ----- */
.useful-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.u-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.u-head .panel-t { margin: 0; }
.u-date { margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.pray-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pr { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.pr span { font-size: 12.5px; color: var(--muted); }
.pr b { font-size: 19px; font-variant-numeric: tabular-nums; }
.pr.next { background: var(--brand); color: var(--on-brand); }
.pr.next span { color: inherit; opacity: .85; }
.pr-next { display: flex; align-items: center; gap: 6px; margin: 12px 0 4px; font-size: 14px; }
.fx-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto minmax(0, 1.3fr); gap: 8px; align-items: center; }
.fx-out { display: grid; gap: 2px; padding: 14px 16px; margin: 12px 0; border-radius: 14px; background: var(--brand-soft); }
.fx-out span { font-size: 13px; color: var(--text-2); }
.fx-out b { font-size: 26px; font-weight: 900; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.fx-out small { font-size: 12px; color: var(--muted); }
.fx-rates { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-variant-numeric: tabular-nums; }
.fx-rates b { margin-right: 4px; }
.fx-rates i { margin-left: 3px; font-style: normal; font-size: 10px; color: var(--muted); }
.fx-rates i.up { color: var(--ok-text); }
.fx-rates i.down { color: var(--bad-text); }
.u-links { display: grid; gap: 8px; margin-top: 12px; }
.u-link-btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); transition: border-color .2s, background .2s; }
.u-link-btn:hover { border-color: var(--brand); background: var(--brand-soft); }
.u-link-btn > .i:first-child { color: var(--brand-text); }
.u-link-btn span { flex: 1; display: grid; }
.u-link-btn small { font-size: 12px; color: var(--muted); }
.sos-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sos { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--bad) 8%, var(--surface-2)); color: var(--text); }
.sos .i { grid-row: span 2; color: var(--bad-text); }
.sos b { font-size: 20px; font-weight: 900; }
.sos span { font-size: 12px; color: var(--text-2); }

/* ----- Mövzular ----- */
.t-filter { width: min(280px, 100%); }
.topic-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 22px; }
.topic-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: border-color .2s, transform .3s var(--ease); }
.topic-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.topic-card b { font-size: 17px; color: var(--brand-text); }
.topic-card span { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.topic-card > .i { grid-row: 1 / span 2; grid-column: 2; color: var(--muted); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud.sm { align-items: center; margin-bottom: 18px; }
.tag small { margin-left: 4px; color: var(--muted); font-weight: 700; }
.tag[hidden] { display: none; }
.topic-tl { position: relative; display: grid; padding-left: 74px; list-style: none; }
.topic-tl::before { content: ''; position: absolute; left: 60px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-day { position: relative; margin: 14px 0 8px -74px; }
.tl-day span { position: relative; z-index: 1; display: inline-block; padding: 4px 12px; border-radius: 99px; background: var(--text); color: var(--surface); font-size: 12.5px; font-weight: 800; }
.tl-item { position: relative; padding-bottom: 12px; }
.tl-item::before { content: ''; position: absolute; left: -19px; top: 18px; width: 12px; height: 12px; border: 3px solid var(--surface); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.tl-item time { position: absolute; left: -74px; top: 14px; width: 44px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.tl-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .2s; }
.tl-card:hover { border-color: var(--c, var(--brand)); }
.tl-card img { width: 120px; height: 84px; border-radius: 10px; object-fit: cover; }
.tl-card h3 { margin: 6px 0 4px; font-size: 16px; line-height: 1.35; }
.tl-card p { display: -webkit-box; overflow: hidden; font-size: 13.5px; color: var(--muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ----- Videolar ----- */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 30px; }
.vid-card { display: grid; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-align: left; }
.vc-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.vc-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.vc-play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(4px); transition: transform .3s var(--ease); }
.vid-card:hover .vc-play { transform: scale(1.1); }
.vc-body { display: grid; gap: 6px; padding: 14px 16px; }
.vc-body .chip { justify-self: start; }
.vc-body b { font-size: 16px; line-height: 1.35; }
.vc-body small { font-size: 12.5px; color: var(--muted); }
.shorts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.short { position: relative; aspect-ratio: 9 / 16; padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: color-mix(in srgb, var(--c) 30%, #111); color: #fff; text-align: left; }
.short img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.short:hover img { transform: scale(1.05); }
.sh-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%, transparent 45%, rgba(0, 0, 0, .85)); }
.sh-cat { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 99px; background: var(--c); font-size: 11.5px; font-weight: 800; }
.sh-play { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .45); }
.short b { position: absolute; left: 12px; right: 12px; bottom: 12px; display: -webkit-box; overflow: hidden; font-size: 14.5px; line-height: 1.35; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.vid-modal { display: grid; gap: 10px; }
.vid-modal video { width: 100%; max-height: 70vh; border-radius: 14px; background: #000; }
.vid-modal .btn { justify-self: start; }

/* ----- Admin panel ----- */
.admin-tabs { margin-bottom: 20px; }
.admin-tabs .count-pill { background: var(--bad); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.kpi .i { color: var(--brand-text); }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi b { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.adm-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-grid > .panel + .panel { margin-top: 0; }
.hbars { display: grid; gap: 8px; }
.hb { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; }
.hb-k { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); }
.hb-k a:hover { color: var(--brand-text); }
.hb-bar { height: 10px; border-radius: 0 4px 4px 0; background: var(--surface-2); }
.hb-bar i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--brand); }
.hb b { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.adm-note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; margin-bottom: 18px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.adm-note > span { flex: 1; min-width: 220px; }
.vbars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: 6px; height: 170px; }
.vb { display: grid; grid-template-rows: auto 1fr auto; height: 100%; justify-items: center; gap: 4px; }
.vb b { font-size: 11px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.vb i { align-self: end; width: 100%; max-width: 26px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--brand); }
.vb span { font-size: 11px; color: var(--muted); }
.adm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.adm-form { display: grid; gap: 2px; }
.adm-form .switch-row { margin-bottom: 10px; }
.adm-lh { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.adm-lh .panel-t { margin: 0; }
.input.sm { width: min(240px, 100%); height: 38px; font-size: 13.5px; }
.adm-list { display: grid; max-height: 640px; overflow-y: auto; }
.adm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.adm-row:last-child { border-bottom: 0; }
.adm-row[hidden] { display: none; }
.adm-row.off { opacity: .55; }
.adm-row > img { flex-shrink: 0; width: 72px; height: 48px; border-radius: 8px; object-fit: cover; }
.ar-t { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ar-t > a, .ar-t > b { overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ar-t > a:hover { color: var(--brand-text); }
.ar-t > p { font-size: 14px; }
.ar-t small { font-size: 12px; color: var(--muted); }
.ar-t small a { text-decoration: underline; }
.ar-act { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ar-act .switch-row.sm { padding: 0; }
.icon-btn.danger:hover { color: var(--bad-text); }
.src { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-text); font-size: 11px; font-weight: 700; }
.src.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok-text); }
.src.muted { background: var(--surface-2); color: var(--muted); }
.live-t { color: var(--bad-text); }
.st-art.sm { width: 38px; height: 38px; font-size: 9.5px; }
.tip-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tip-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.tip-card.done { opacity: .75; }
.tip-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tc-b { display: grid; gap: 8px; padding: 14px 16px 16px; }
.tc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.tc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.tc-b h3 { font-size: 16px; line-height: 1.35; }
.tc-b p { font-size: 14px; color: var(--text-2); white-space: pre-line; }

@media (max-width: 1024px) {
  .adm-grid.three { grid-template-columns: 1fr; }
  .adm-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .useful-grid, .adm-grid { grid-template-columns: 1fr; }
  .w-now { padding: 20px; }
  .w-t { font-size: 52px; }
  .w-facts { width: 100%; }
  .w-d { grid-template-columns: 82px 30px 44px 30px minmax(40px, 1fr) 30px; gap: 8px; font-size: 13px; }
  .w-di small { display: none; }
  .fx-calc { grid-template-columns: 1fr auto 1fr; }
  .fx-calc #fxAmt { grid-column: 1 / -1; }
  .quiz-card { padding: 20px 16px; }
  .qz-q { font-size: 18px; }
  .qz-dots i { width: 18px; }
  .topic-tl { padding-left: 22px; }
  .topic-tl::before { left: 8px; }
  .tl-day { margin-left: -22px; }
  .tl-item::before { left: -19px; top: 3px; }
  .tl-item time { position: static; display: block; width: auto; margin-bottom: 4px; text-align: left; }
  .tl-card { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
  .tl-card img { width: 88px; height: 66px; }
  .tl-card p { display: none; }
  .shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .art-tools { gap: 6px; }
  .at-btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .at-btn small { display: none; }
  .tts-sk { display: none; }
  .vbars { gap: 3px; height: 140px; }
  .vb b { display: none; }
  .hb { grid-template-columns: minmax(0, 1.6fr) minmax(40px, 1fr) auto; }
  .streak-card { flex-wrap: wrap; }
}

/* Admin: "30 saniyədə" xülasə sahəsi */
.sum-lh { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; }
.sum-lh label { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.sum-lh label .i { color: var(--brand-text); }
.adm-form .field .hint { margin: 0; }

/* ---------- Karkas: məzmun gələcək boş sahələr ---------- */
.slot { display: grid; place-items: center; align-content: center; gap: 6px; min-height: var(--h, 180px); padding: 22px 16px; border-radius: var(--radius); border: 1.5px dashed var(--surface-3); background: var(--surface); color: var(--muted); text-align: center; font-size: 13px; }
.slot b { color: var(--text-2); font-size: 15px; font-weight: 700; }
.slot .i { opacity: .5; }
.slot.sm { gap: 4px; padding: 16px 12px; border-radius: 14px; background: var(--surface-2); font-size: 12px; }
.slot.sm b { font-size: 13.5px; }
.hero > .slot, .hero-side > .slot { min-height: 0; }
.hero-side > .slot { min-height: 200px; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; margin-top: 18px; }
.k-sec { margin-top: 26px; }
.ticker-empty { font-size: 13.5px; color: var(--muted); }
.footer h5.f-h-gap { margin-top: 22px; }
.about-text { max-width: 760px; margin-top: 8px; padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 16.5px; line-height: 1.75; color: var(--text-2); }
.about-text p + p { margin-top: 14px; }
.about-text b { color: var(--text); }
@media (max-width: 600px) { .about-text { padding: 18px 16px; font-size: 15.5px; } }
.contact-list { max-width: 760px; margin-top: 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.contact-list > div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 15px; }
.contact-list > div:first-child { border-top: 0; }
.contact-list dt { color: var(--muted); font-weight: 600; }
.contact-list dd { margin: 0; color: var(--text); font-weight: 600; }
.contact-list a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .contact-list > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; } }
/* Trend düyməsi: qırmızı çərçivə yanıb-sönür */
.catbar a.hot { color: #EF4444; font-weight: 700; border: 2px solid #EF4444; animation: hotBlink 1.2s ease-in-out infinite; }
.catbar a.hot:hover { background: rgba(239, 68, 68, .08); color: #EF4444; }
.catbar a.hot.active { background: #EF4444; color: #fff; }
@keyframes hotBlink { 0%, 100% { border-color: #EF4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .45); } 50% { border-color: rgba(239, 68, 68, .15); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); } }
@media (prefers-reduced-motion: reduce) { .catbar a.hot { animation: none; } }
.about-text .about-motto { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 18px; }
.about-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.about-team dt { color: var(--muted); font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.about-team dd { margin: 0; color: var(--text); font-weight: 700; }
.about-text .about-motto { text-align: center; }
/* Komanda: Əlaqə səhifəsindəki kimi alt-alta sətirlər */
.about-team { display: block; margin-top: 22px; padding-top: 0; border-top: 1px solid var(--line); }
.about-team > div { display: grid; grid-template-columns: 220px 1fr; column-gap: 12px; row-gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.about-team > div:first-child { border-top: 0; }
.about-team dt { grid-column: 1; grid-row: 1 / span 10; margin: 0; font-size: 15px; font-weight: 600; }
.about-team dd { grid-column: 2; }
@media (max-width: 600px) { .about-team > div { grid-template-columns: 1fr; } .about-team dt { grid-row: auto; } .about-team dd { grid-column: 1; } }
/* Haqqımızda: mətn ortada */
.about-text > p { text-align: center; }
