/* GitGoida — форумный UI как на скринах (тёмный + сетка + countdown) */
html.pl-theme-gg,
body.pl-theme-gg {
  --gg-bg: #070b14;
  --gg-panel: #0e1422;
  --gg-panel2: #121a2c;
  --gg-line: rgba(255,255,255,.08);
  --gg-text: #e8eef8;
  --gg-muted: #8b9bb8;
  --gg-blue: #3b82f6;
  --gg-red: #ff1e1e;
  --gg-accent: #5b8cff;
  margin: 0 !important;
  background: #070b14 !important;
  color: var(--gg-text) !important;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(80,40,160,.18), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(20,60,140,.12), transparent 45%),
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px) !important;
  background-size: auto, auto, 48px 48px, 48px 48px !important;
  background-attachment: fixed !important;
}

html.pl-theme-gg .site-header,
html.pl-theme-gg header.site-header,
html.pl-theme-gg .main-header,
html.pl-theme-gg #site-footer,
html.pl-theme-gg .app-bottom-nav { display: none !important; }

/* Promo top strip */
.gg-promo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10070;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #0a1628, #122038 50%, #0a1628);
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px; color: #c5d0e6;
}
.gg-promo .gg-new {
  background: #3b82f6; color: #fff; font-size: 10px; font-weight: 900;
  padding: 3px 8px; border-radius: 6px; letter-spacing: .04em;
}
.gg-promo a { color: #93c5fd; margin-left: auto; text-decoration: none; font-weight: 700; font-size: 12px; }

/* Holiday countdown */
.gg-countdown {
  position: fixed; top: 40px; left: 0; right: 0; z-index: 10060;
  text-align: center;
  padding: 14px 12px 16px;
  background: #05080f;
  border-top: 2px solid var(--gg-red);
  border-bottom: 2px solid var(--gg-red);
}
.gg-countdown .lbl {
  font-size: 11px; letter-spacing: .22em; color: #aaa;
  text-transform: uppercase; margin-bottom: 6px;
}
.gg-countdown .time {
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 900; color: var(--gg-red);
  text-shadow: 0 0 24px rgba(255,30,30,.45);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

html.pl-theme-gg body {
  padding-top: 150px !important;
  padding-bottom: 72px !important;
}

/* Main bar */
.gg-bar {
  max-width: 1100px; margin: 0 auto 14px; padding: 0 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  justify-content: space-between;
}
.gg-brand-row {
  display: flex; align-items: center; gap: 10px;
}
.gg-logo-text {
  font-weight: 900; font-size: 20px; color: #fff;
  text-decoration: none; letter-spacing: .02em;
}
.gg-logo-text span { color: #7dd3fc; }
.gg-pill-nav {
  display: flex; gap: 4px; flex-wrap: wrap;
  background: rgba(20,28,48,.85);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px; padding: 4px;
}
.gg-pill-nav a {
  text-decoration: none; color: #9aabc4;
  font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
}
.gg-pill-nav a.on {
  color: #fff;
  box-shadow: inset 0 -2px 0 #3b82f6;
}
.gg-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gg-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 12px; border: 0;
  font-weight: 800; font-size: 13px; cursor: pointer; text-decoration: none;
}
.gg-btn-blue { background: #2563eb; color: #fff !important; }
.gg-btn-ghost {
  background: rgba(30,40,60,.9); color: #ddd !important;
  border: 1px solid rgba(255,255,255,.12);
}
.gg-btn-panel {
  background: rgba(20,28,48,.9); color: #c5d0e6 !important;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 8px 16px; font-size: 12px;
}

/* Layout */
.gg-layout {
  max-width: 1100px; margin: 0 auto; padding: 0 14px 40px;
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .gg-layout { grid-template-columns: 1fr 280px; }
}

.gg-card {
  background: rgba(14,20,34,.92);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 14px 16px;
}
.gg-card h2 {
  margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #fff;
}
.gg-forum-head {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 12px;
}
.gg-forum-head h1 {
  margin: 0; font-size: 22px; font-weight: 900; color: #fff;
}
.gg-empty {
  color: var(--gg-muted); font-size: 14px; padding: 18px 8px;
}
.gg-row {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  text-decoration: none !important; color: var(--gg-text) !important;
}
.gg-row:hover { background: rgba(59,130,246,.06); border-radius: 10px; }
.gg-row-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: #0a1020; display: grid; place-items: center;
  overflow: hidden; flex-shrink: 0;
}
.gg-row-ico img { width: 100%; height: 100%; object-fit: cover; }
.gg-row-t { font-size: 14px; font-weight: 700; }
.gg-row-m { font-size: 12px; color: var(--gg-muted); margin-top: 2px; }

.gg-side-user {
  display: flex; gap: 10px; align-items: center;
  padding: 10px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(10,16,30,.6);
  margin-bottom: 8px;
}
.gg-av {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #3b82f6);
  display: grid; place-items: center; font-weight: 900; color: #fff;
  flex-shrink: 0;
}
.gg-online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 8px #22c55e;
}

/* Bottom mobile nav */
.gg-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10050;
  height: 60px;
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(8,12,22,.96);
  border-top: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.gg-bottom a {
  flex: 1; text-align: center; text-decoration: none; color: #7a8aa3;
  font-size: 10px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.gg-bottom a.on { color: #60a5fa; }
.gg-bottom .gg-search-fab {
  width: 48px; height: 48px; border-radius: 50%;
  background: #2563eb; color: #fff !important;
  display: grid; place-items: center; margin-top: -18px;
  font-size: 18px; box-shadow: 0 8px 24px rgba(37,99,235,.4);
}

@media (min-width: 900px) {
  .gg-bottom { display: none; }
  html.pl-theme-gg body { padding-bottom: 24px !important; }
}

html.pl-theme-gg .container,
html.pl-theme-gg main {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 8px 14px 40px !important;
}
html.pl-theme-gg a { color: #93c5fd; }
html.pl-theme-gg .card,
html.pl-theme-gg .forum-category {
  background: rgba(14,20,34,.9) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 14px !important;
}

/* Download on forum */
html.pl-theme-gg a.gg-dl-btn {
  display: inline-flex !important; align-items: center; gap: 8px;
  padding: 10px 14px !important;
  background: #2563eb !important; color: #fff !important;
  border-radius: 10px !important; font-weight: 800 !important;
  text-decoration: none !important; border: 0 !important;
}

.gg-bar, .gg-actions, .gg-pill-nav, .gg-btn, .gg-bottom {
  pointer-events: auto !important;
  position: relative;
  z-index: 20;
}
.gg-promo, .gg-countdown {
  z-index: 10060;
}
.gg-bar {
  z-index: 10055;
  position: relative;
}
.gg-btn:active { transform: scale(0.98); }
a.gg-btn { cursor: pointer; }

/* Скрыть нативную оболочку StreamLife */
html.pl-theme-gg .navbar,
html.pl-theme-gg nav.navbar,
html.pl-theme-gg .mobile-tabbar,
html.pl-theme-gg .site-footer-links,
html.pl-theme-gg footer,
html.pl-theme-gg .pl-mode-switch,
html.pl-theme-gg .mode-switch,
html.pl-theme-gg .themes-dropdown,
html.pl-theme-gg [class*="site-header"],
html.pl-theme-gg .top-nav {
  display: none !important;
}

.gg-bar {
  position: relative;
  z-index: 10050;
  margin-top: 8px !important;
  margin-bottom: 12px !important;
  background: rgba(8,12,22,.75);
  border-radius: 14px;
  padding: 10px 14px !important;
  border: 1px solid rgba(255,255,255,.08);
}

html.pl-theme-gg body {
  padding-top: 140px !important;
}
