﻿/* AdventurersBG Design System  style.css
   Standalone PHP project
*/

/*
Theme Name: Adventurers Starter
Theme URI: https://adventurersbg.com
Author: AdventurersBG Team
Author URI: https://adventurersbg.com
Description: AdventurersBG Unified Design System – dark gaming theme for translations ecosystem
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adventurers-starter
Tags: dark, gaming, translation, custom-background, custom-logo, one-column, two-columns
*/

/* ===========================================================
   DESIGN SYSTEM  –  AdventurersBG "Ink" Tokens
   =========================================================== */
:root {
  /* -- Background --------------------------------- */
  --ink-bg:         #0f1115;
  --ink-surface:    #1a1d23;
  --ink-surface-2:  #21252e;
  --ink-surface-3:  #22262f;

  /* -- Borders ------------------------------------ */
  --ink-border:     rgba(255,255,255,.06);
  --ink-border-md:  rgba(255,255,255,.094);
  --ink-border-lg:  rgba(255,255,255,.12);

  /* -- Primary / Blue ----------------------------- */
  --c-blue:         #0d6efd;
  --c-blue-glow:    rgba(13,110,253,.45);
  --c-blue-soft:    rgba(13,110,253,.12);
  --c-blue-shadow:  0 0 16px rgba(13,110,253,.55), 0 0 36px rgba(13,110,253,.22);

  /* -- Accent / Neon Green ------------------------ */
  --c-green:        #00ff88;
  --c-green-glow:   rgba(0,255,136,.35);
  --c-green-soft:   rgba(0,255,136,.10);
  --c-green-dim:    rgba(0,255,136,.15);
  --c-green-shadow: 0 0 18px rgba(0,255,136,.45), 0 0 40px rgba(0,255,136,.18);

  /* -- Warning / Yellow --------------------------- */
  --c-yellow:       #ffd60a;
  --c-yellow-glow:  rgba(255,214,10,.4);
  --c-yellow-soft:  rgba(255,214,10,.06);

  /* -- Danger / Red ------------------------------- */
  --c-red:          #ff3d6e;
  --c-red-glow:     rgba(255,61,110,.35);
  --c-red-soft:     rgba(255,61,110,.10);

  /* -- Discord / Purple --------------------------- */
  --c-discord:      #5865f2;
  --c-discord-glow: rgba(88,101,242,.45);
  --c-discord-soft: rgba(88,101,242,.12);

  /* -- Text hierarchy ----------------------------- */
  --t-1:            #f0f2f6;   /* headings, emphasis */
  --t-2:            #8b92a5;   /* body, secondary */
  --t-3:            #555d70;   /* muted, labels */
  --t-4:            #6b7280;   /* captions, meta */

  /* -- Radius scale ------------------------------- */
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  20px;
  --r-xl:  24px;
  --r-pill: 999px;

  /* -- Typography (font stacks) ------------------- */
  --f-heading:  'Space Grotesk', sans-serif;
  --f-body:     'Inter', sans-serif;
  --f-mono:     'Space Grotesk', sans-serif;

  /* -- Spacing scale (4px base) ------------------- */
  --sp-1:  .25rem;   /* 4 */
  --sp-2:  .5rem;    /* 8 */
  --sp-3:  .75rem;   /* 12 */
  --sp-4:  1rem;     /* 16 */
  --sp-5:  1.5rem;   /* 24 */
  --sp-6:  2rem;     /* 32 */
  --sp-7:  3rem;     /* 48 */
  --sp-8:  4rem;     /* 64 */
  --sp-9:  5rem;     /* 80 */

  /* -- Z-index scale ------------------------------ */
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-navbar:   1000;
  --z-overlay:  1500;
  --z-modal:    2000;
  --z-grain:    9999;

  /* -- Transition timing -------------------------- */
  --ease-out:   cubic-bezier(.22,1,.36,1);
  --ease-smooth: cubic-bezier(.77,0,.18,1);
}


/* ===========================================================
   RESET & BASE
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Chrome Android bug: smooth scroll + collapsing URL bar (with fixed
   background layers like .forge-network) → the page snaps back to top
   mid-scroll. Touch devices get no benefit from smooth scrolling, so
   disable it there. */
@media (hover: none) and (pointer: coarse) {
  html { scroll-behavior: auto; }
  /* Static SVG-turbulence grain: a fixed full-screen layer that repaints
     on mobile scroll — dropped on touch devices, invisible loss. */
  body::before { display: none; }
}
body {
  background: var(--ink-bg);
  color: var(--t-1);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain noise overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: .4;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-heading);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--t-1);
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink-bg); }
::-webkit-scrollbar-thumb { background: var(--ink-surface-3); border-radius: var(--r-pill); }


/* ===========================================================
   LAYOUT UTILITIES
   =========================================================== */
.ink-surface {
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-xl);
}

.card-ink {
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
}

.card-ink--accent { border-color: rgba(13,110,253,.28); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: var(--sp-2);
}
.section-label::before {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: var(--c-green);
  border-radius: var(--r-pill);
  box-shadow: var(--c-green-shadow);
}
.section-label--blue { color: var(--c-blue); }
.section-label--blue::before { background: var(--c-blue); box-shadow: var(--c-blue-shadow); }

.sec-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--t-3); margin-bottom: .35rem;
}
.sec-title {
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: -.025em; color: var(--t-1);
  margin-bottom: 1.1rem;
}

.ink-divider {
  border: none;
  border-top: 1px solid var(--ink-border);
  margin: var(--sp-4) 0;
}


/* ===========================================================
   NAVBAR
   =========================================================== */
.navbar-custom {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-navbar);
  padding: 14px 0;
  background: rgba(15,17,21,.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ink-border);
  transition: padding .3s;
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { height: 65px; width: auto; display: block; }

/* Links */
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 7px 14px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--t-4);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--t-1); background: var(--ink-surface); }
.nav-links a.active { color: var(--t-1); }

/* Donate pill button in navbar */
.nav-donate-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 14px !important;
  background: rgba(255,61,110,.15) !important;
  color: #ff6b8a !important;
  border: 1px solid rgba(255,61,110,.35) !important;
  border-radius: var(--r-pill) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  white-space: nowrap;
  position: relative;
  animation: nav-donate-glow 2.5s ease-in-out infinite;
}
.nav-donate-btn .bi-heart-fill {
  font-size: 10px;
  animation: nav-heart-beat 1.2s ease-in-out infinite;
}
.nav-donate-btn:hover {
  background: rgba(255,61,110,.28) !important;
  color: #fff !important;
  border-color: rgba(255,61,110,.65) !important;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(255,61,110,.45) !important;
  animation: none !important;
}

@keyframes nav-donate-glow {
  0%, 100% {
    box-shadow: 0 0 6px rgba(255,61,110,.25), 0 0 14px rgba(255,61,110,.1);
  }
  50% {
    box-shadow: 0 0 14px rgba(255,61,110,.55), 0 0 28px rgba(255,61,110,.25);
  }
}
@keyframes nav-heart-beat {
  0%, 100% { transform: scale(1); }
  30%       { transform: scale(1.35); }
  60%       { transform: scale(.9); }
}

/* Nav dropdown (Videos sub-menu) */
.nav-dropdown-wrap {
  position: relative;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  background: var(--ink-surface);
  border: 1px solid var(--ink-border-md);
  border-radius: var(--r-md);
  padding: 6px;
  z-index: 1000;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.nav-dropdown-wrap:hover .nav-dropdown {
  display: block;
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--t-2);
  text-decoration: none;
  transition: color .15s, background .15s;
  background: none;
}
.nav-dropdown a:hover {
  color: var(--t-1);
  background: rgba(255,255,255,.05);
}

/* Nav actions group (admin btn + profile/login) */
.nav-actions {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.nav-admin-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--t-2); font-size: 14px;
  transition: color .2s, background .2s;
  text-decoration: none;
  border: 1px solid var(--ink-border);
}
.nav-admin-btn:hover { color: var(--t-1); background: var(--ink-surface); }
.nav-admin-icon { position: relative; display: inline-flex; line-height: 1; }
.nav-report-dot { position: absolute; top: -4px; right: -5px; width: 7px; height: 7px; border-radius: 50%; background: #d9a441; border: 1px solid var(--ink-bg); box-shadow: 0 0 0 2px rgba(217,164,65,.16); }
.nav-report-dot--unread { background: var(--c-red, #ff3d6e); box-shadow: 0 0 0 2px rgba(255,61,110,.18); }

/* Profile dropdown (navbar logged-in state) */
.nav-profile-wrap { position: relative; }
.nav-profile-btn {
  cursor: pointer; font-family: var(--f-body); line-height: 1;
}
.nav-profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--ink-surface);
  border: 1px solid var(--ink-border-md);
  border-radius: var(--r-md);
  padding: 8px;
  z-index: 1000;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.nav-profile-dropdown--open { display: block; }
.nav-profile-dropdown-name {
  padding: 8px 12px;
  font-size: 13px; color: var(--t-2);
  border-bottom: 1px solid var(--ink-border);
  margin-bottom: 4px;
}
.nav-profile-dropdown-logout {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; color: var(--c-red);
  text-decoration: none; transition: background .15s;
}
.nav-profile-dropdown-logout:hover {
  background: rgba(255,61,110,.1); color: var(--c-red);
}

.nav-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-red);
  flex-shrink: 0;
  animation: livePulse 1.5s infinite;
}

/* CTA button (Google sign-in) */
.btn-google {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; background: var(--c-blue); color: #fff;
  border: none; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: var(--c-blue-shadow);
  transition: box-shadow .25s, transform .15s; white-space: nowrap;
}
.btn-google:hover {
  box-shadow: 0 0 28px rgba(13,110,253,.75), 0 0 60px rgba(13,110,253,.3);
  transform: translateY(-1px); color: #fff;
}
.btn-google svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Profile variant – shown when user is logged in */
.btn-google--profile {
  background: var(--ink-surface-2);
  border: 1px solid var(--ink-border-md);
  box-shadow: none;
}
.btn-google--profile:hover {
  background: var(--ink-surface-3);
  box-shadow: none;
  border-color: var(--ink-border-hi);
}

/* Discord OAuth button */
.btn-discord {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 8px;
  background: #5865F2; color: #fff;
  border: none; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: 0 0 16px rgba(88,101,242,.35);
  transition: box-shadow .25s, transform .15s; white-space: nowrap;
  text-decoration: none; vertical-align: middle;
}
.btn-discord:hover {
  box-shadow: 0 0 28px rgba(88,101,242,.65), 0 0 55px rgba(88,101,242,.25);
  transform: translateY(-1px); color: #fff;
}
.btn-discord svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Unified login button (navbar) */
.btn-login-nav {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; background: var(--c-blue); color: #fff;
  border: none; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--f-body);
  box-shadow: var(--c-blue-shadow);
  transition: box-shadow .25s, transform .15s; white-space: nowrap;
  text-decoration: none;
}
.btn-login-nav:hover {
  box-shadow: 0 0 28px rgba(13,110,253,.75), 0 0 60px rgba(13,110,253,.3);
  transform: translateY(-1px); color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--ink-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  background: var(--t-1);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.hamburger span:nth-child(1) { top: 13px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 25px; }

.hamburger.is-active span:nth-child(1) {
  top: 19px; transform: translateX(-50%) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) {
  top: 19px; transform: translateX(-50%) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 0 16px; border-top: 1px solid var(--ink-border); margin-top: 12px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--t-4);
  transition: color .2s, background .2s;
}
.mobile-menu a:hover { color: var(--t-1); background: var(--ink-surface); }

/* Mobile menu — profile row (logged-in) */
.mob-profile-row {
  margin-top: 8px; border: 1px solid var(--ink-border);
  border-radius: var(--r-md); overflow: hidden;
  cursor: pointer; user-select: none;
}
.mob-profile-main {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; gap: 10px;
}
.mob-profile-user {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--t-1);
  min-width: 0;
}
.mob-profile-right {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.mob-admin-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--ink-border-md);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
  color: var(--c-blue); white-space: nowrap;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.mob-admin-badge .bi { font-size: 12px; }
.mob-admin-badge:hover {
  background: var(--c-blue-soft);
  border-color: rgba(13,110,253,.35);
  color: var(--c-blue);
}
.mob-profile-arrow {
  font-size: 10px; color: var(--t-3);
  transition: transform .25s ease;
}
.mob-profile-drop {
  display: none;
  border-top: 1px solid var(--ink-border);
}
.mob-logout-link {
  display: flex !important; align-items: center; gap: 8px;
  padding: 10px 14px !important;
  font-size: 13px !important; font-weight: 500 !important;
  color: var(--t-3) !important;
  border-radius: 0 !important;
}
.mob-logout-link:hover { color: var(--c-red) !important; background: rgba(255,61,110,.06) !important; }

/* Expanded state */
.mob-profile-row.expanded .mob-profile-arrow {
  transform: rotate(180deg);
}
.mob-profile-row.expanded .mob-profile-drop { display: block; }

/* Mobile menu — standalone admin link (admin not logged into Collective) */
.mob-admin-link {
  display: flex !important; align-items: center; gap: 8px;
  padding: 10px 14px !important;
  font-size: 14px !important; font-weight: 600 !important;
  color: var(--c-blue) !important;
  border: 1px solid var(--ink-border-md);
  border-radius: var(--r-md) !important;
  margin-top: 8px;
}
.mob-admin-link:hover { background: var(--c-blue-soft) !important; }


/* Clearance for fixed navbar — all pages */
main { padding-top: 94px; }

/* ===========================================================
   HERO SLIDER (homepage)
   =========================================================== */
.hero-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.slider-wrapper {
  position: relative; overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(0,255,136,.14);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.55);
  background: #0b0d10;
}
.slider-track { display: flex; transition: transform .6s var(--ease-smooth); will-change: transform; }

/* Бутон "Всички новини" — горе вдясно */
.btn-all-news {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 5;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-pill);
  font-size: 13px; color: rgba(255,255,255,.85);
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background .2s, color .2s;
}
.btn-all-news:hover { background: rgba(255,255,255,.14); color: #fff; }

.slide { min-width: 100%; height: 580px; position: relative; overflow: hidden; flex-shrink: 0; }
.slide-bg-fill {
  position: absolute; inset: -9%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #090b0e;
  filter: blur(28px) brightness(.42) saturate(.68);
  transform: scale(1.08);
  opacity: .95;
  z-index: 0;
}
.slide.active .slide-bg-fill {
  animation: slider-ambient-drift 13s ease-in-out infinite alternate;
}
.slide-media {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.slide-bg {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  flex: 0 1 auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}
.slide-bg--empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d1117 0%, #131820 48%, #0d1010 100%);
}
.slide.active .slide-bg {
  animation: slider-image-drift 11s ease-in-out infinite alternate;
}
.slide-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(15,17,21,.96) 0%, rgba(15,17,21,.7) 45%, rgba(15,17,21,.2) 75%, transparent 100%),
    linear-gradient(to top, rgba(11,13,16,.82) 0%, rgba(11,13,16,.18) 20%, transparent 48%, rgba(11,13,16,.18) 84%, rgba(11,13,16,.64) 100%),
    radial-gradient(ellipse at center, transparent 55%, rgba(11,13,16,.32) 100%);
  z-index: 2;
}
@keyframes slider-ambient-drift {
  from { transform: scale(1.08) translate3d(-.8%, 0, 0); }
  to   { transform: scale(1.12) translate3d(.8%, -.5%, 0); }
}
@keyframes slider-image-drift {
  from { transform: translate3d(-3px, 0, 0); }
  to   { transform: translate3d(3px, -2px, 0); }
}
/* Stretched link — the whole slide is clickable; content sits above it */
.slide-stretch-link {
  position: absolute; inset: 0; z-index: 3;
  cursor: pointer;
}
.slide-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 60px 64px 56px;
  display: flex; flex-direction: column; gap: 16px; max-width: 680px;
  z-index: 4;
  /* Заглавието/баджът да не блокират stretch-link-а — кликът минава през тях */
  pointer-events: none;
}
.slide-content .btn-read-more { pointer-events: auto; }
.slide-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: var(--c-green-dim);
  border: 1px solid rgba(0,255,136,.3);
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-green); width: fit-content;
}
.slide-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--c-green); border-radius: 50%;
  box-shadow: 0 0 6px var(--c-green);
  animation: pulse-dot 2s ease-in-out infinite;
}
.slide-title { font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; max-width: 600px; }
.slide-excerpt { font-size: 15px; color: rgba(255,255,255,.6); max-width: 460px; line-height: 1.65; }

/* Read-more button */
.btn-read-more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; background: var(--c-blue); color: #fff;
  border-radius: var(--r-sm); font-size: 14px; font-weight: 700; width: fit-content;
  box-shadow: var(--c-blue-shadow);
  transition: box-shadow .25s, transform .15s;
}
.btn-read-more:hover {
  box-shadow: 0 0 32px rgba(13,110,253,.8), 0 0 70px rgba(13,110,253,.3);
  transform: translateY(-2px); color: #fff;
}

/* Slider controls — лента под слайда */
.slider-controls {
  position: relative;
  right: auto; bottom: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px;
  background: #12161c;
  border-top: 1px solid rgba(255,255,255,.06);
}
.slider-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.65);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px;
  transition: background .2s, color .2s;
}
.slider-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Линк "Всички новини" в контролната лента — само мобилна версия */
.link-all-news {
  display: none;
  align-items: center; gap: 5px;
  font-size: 13px; color: rgba(255,255,255,.6);
  text-decoration: none; flex-shrink: 0;
  transition: color .2s;
}
.link-all-news:hover { color: #fff; }

.slider-dots { display: flex; align-items: center; gap: 5px; }
.dot {
  width: 14px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.2); cursor: pointer;
  transition: width .3s, background .3s; border: none; padding: 0;
}
.dot.active {
  width: 28px;
  background: #5dc9a5;
  box-shadow: 0 0 8px rgba(0,255,136,.35);
}


/* ===========================================================
   HOME SIDEBAR SECTION — donate + vote cards
   =========================================================== */
.home-sidebar-section { padding: 72px 0 64px; }

.home-cols {
  display: flex; gap: 28px;
  max-width: 1320px; margin: 0 auto;
}

/* ═══ Shared card shell ═══ */
.home-side-card {
  flex: 1; min-width: 0;
  background:
    linear-gradient(180deg, #1a2029 0%, #151a22 45%, #11161d 100%);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 24px 60px -20px rgba(0,0,0,.55);
  transition: transform .25s cubic-bezier(.2,.8,.2,1),
              border-color .25s cubic-bezier(.2,.8,.2,1),
              box-shadow .25s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.home-side-card::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.03), transparent 70%);
}
.home-side-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 32px 72px -20px rgba(0,0,0,.6);
}

/* Donate hover accent */
.donate-side-card:hover {
  border-color: rgba(255,77,122,.30);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 32px 72px -20px rgba(0,0,0,.6),
    0 0 60px -20px rgba(255,77,122,.12);
}

/* Vote hover accent */
.vote-side-card:hover {
  border-color: rgba(0,255,136,.30);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 32px 72px -20px rgba(0,0,0,.6),
    0 0 60px -20px rgba(0,255,136,.08);
}

/* ════════════════════════════════
   DONATE CARD — warm / hero
   ════════════════════════════════ */
.donate-side-card .side-card-inner {
  padding: 48px 32px 36px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 16px;
}

/* Icon — large, glowing, with radial blur behind */
.side-card-icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: transparent;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #ff5b84;
  position: relative;
  margin-bottom: 6px;
}
.side-card-icon::before {
  content: '';
  position: absolute; inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,122,.18), transparent 70%);
  pointer-events: none;
}
.side-card-icon::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,122,.08), transparent 65%);
  pointer-events: none;
}

.donate-side-card h3 {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff; max-width: 280px; line-height: 1.3;
}
.donate-side-card p {
  font-size: 14px; color: rgba(255,255,255,.70);
  line-height: 1.7; max-width: 300px;
}

/* Donate CTA — gradient button */
.btn-donate-side {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(180deg, #ff5b84, #ff3d6e);
  border: none;
  border-radius: var(--r-pill);
  color: #fff; font-size: 14px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(255,61,110,.25);
  transition: transform .2s cubic-bezier(.2,.8,.2,1),
              box-shadow .2s cubic-bezier(.2,.8,.2,1),
              filter .2s ease;
  margin-top: 6px;
}
.btn-donate-side:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255,61,110,.35);
  filter: brightness(1.08);
  color: #fff;
}

/* ════════════════════════════════
   VOTE CARD — cool / launcher
   ════════════════════════════════ */
.vote-side-card {
  display: flex; flex-direction: column;
}

/* Accent line + header */
.vote-widget-head {
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  position: relative;
}
.vote-widget-head::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00ff88 0%, rgba(0,255,136,.3) 40%, transparent 100%);
  border-radius: 3px 0 0 0;
}
.vote-widget-head i {
  color: var(--c-green); margin-right: 8px; font-size: 15px;
}
.vote-widget-head span {
  font-size: 14px; font-weight: 600; color: #fff;
}
.vote-widget-head p {
  font-size: 13px; color: rgba(255,255,255,.55);
  margin: 6px 0 0; line-height: 1.5;
}

/* Game list */
.vote-widget-list {
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}

/* Each game — mini card */
.vote-widget-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px;
  background: rgba(255,255,255,.022);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 12px;
  transition: background .2s ease, border-color .2s ease;
}
.vote-widget-row:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}

/* Game cover — bigger, polished */
.vote-widget-cover {
  width: 48px; height: 64px;
  border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(140deg, #1e2836, #151d28);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.06);
}
.vote-widget-cover img {
  width: 100%; height: 100%; object-fit: cover;
}

.vote-widget-info {
  flex: 1; min-width: 0; display: flex; align-items: center;
}
.vote-widget-game-title {
  font-size: 14px; font-weight: 500; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Unused legacy classes (kept to avoid breaking anything) ── */
.vote-widget-row-top {
  display: flex; justify-content: space-between; gap: 6px;
  font-size: 12px; margin-bottom: 4px;
}
.vote-widget-row-top span:first-child {
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vote-widget-pct { color: rgba(255,255,255,.5); flex-shrink: 0; }
.vote-widget-bar {
  height: 4px; background: rgba(255,255,255,.08);
  border-radius: 2px; overflow: hidden;
}
.vote-widget-bar-fill {
  height: 100%; background: rgba(255,255,255,.35);
  border-radius: 2px; transition: width .4s;
}
.vote-widget-bar-fill.leading { background: var(--c-green); }
.vote-widget-btn {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: background .2s, color .2s, border-color .2s;
}
.vote-widget-btn:hover {
  background: rgba(0,255,136,.1); border-color: rgba(0,255,136,.25); color: var(--c-green);
}

/* CTA — secondary button style */
.vote-widget-cta {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.75);
  border-top: 1px solid rgba(255,255,255,.05);
  background: rgba(255,255,255,.015);
  text-decoration: none;
  transition: color .2s, background .2s, border-color .2s;
}
.vote-widget-cta:hover {
  color: #fff;
  background: rgba(0,255,136,.04);
  border-color: rgba(0,255,136,.12);
}

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
  .home-sidebar-section { padding: 40px 10px 32px; }
  .home-cols { flex-direction: column; gap: 20px; }
  .donate-side-card .side-card-inner { padding: 36px 22px 28px; gap: 14px; }
  .side-card-icon { width: 64px; height: 64px; font-size: 26px; }
  .side-card-icon::before { inset: -14px; }
  .side-card-icon::after  { inset: -5px; }
  .donate-side-card h3 { font-size: 18px; }
  .vote-widget-head { padding: 14px 16px 12px; }
  .vote-widget-list { padding: 10px 12px; gap: 10px; }
  .vote-widget-cover { width: 40px; height: 54px; }
  .vote-widget-game-title { font-size: 13px; }
}


/* ===========================================================
   FRIENDS BANNERS — compact friend-site cards under Donate/Vote
   Half-column width each (mirrors .home-side-card). Tight-cut
   character PNGs fill the left half; a double crescent arc wraps
   the character's right side and runs down the card edge. Titles
   are carved antique-gold (Ruslan Display, loaded in
   templates/layout.php); the optional brand line above them is
   carved steel. Forge glass/halo tuning lives in theme-forge.css.
   =========================================================== */
.friend-cols { margin-top: 24px; }

.friend-banner {
  --fb-accent: var(--c-blue);        /* Compass Amber in forge */
  --fb-accent-soft: var(--c-blue-soft);
  --fb-accent-glow: var(--c-blue-glow);

  position: relative;
  display: flex; align-items: center; gap: 14px;
  flex: 1 1 0; min-width: 0;
  min-height: 172px;
  padding: 14px 24px 14px 14px;
  background: linear-gradient(180deg, #1a2029 0%, #151a22 45%, #11161d 100%);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 22px;               /* matches .home-side-card */
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  box-shadow:
    0 18px 40px -18px rgba(0,0,0,.6),
    0 4px 14px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.05);
  transition: border-color .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.friend-banner, .friend-banner:hover { text-decoration: none; }

/* ── Art — tight-cut character fills the left half ── */
.friend-banner__art {
  position: relative; z-index: 2; flex-shrink: 0;
  align-self: center;
  width: clamp(185px, 24vw, 255px);
  height: clamp(148px, 13vw, 158px);
  display: flex; align-items: flex-end; justify-content: center;
}
.friend-banner__art img {
  width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
  /* Directional finish — drop-shadows follow the true alpha silhouette,
     so the lit rims hug the shoulder/back contours instead of the box */
  filter:
    drop-shadow(2px 0 1px color-mix(in srgb, var(--fb-accent) 40%, transparent))
    drop-shadow(9px 2px 16px var(--fb-accent-glow))
    drop-shadow(0 3px 6px rgba(0,0,0,.45))
    drop-shadow(0 14px 22px rgba(0,0,0,.55));
  transition: transform .4s var(--ease-out), filter .4s var(--ease-out);
}

/* ── Curved divide panel — fills the art zone behind the character;
   its right edge is a tilted arc bulging into the text gap (the
   diagonal "cut"). __arc below traces that same edge as a parallel
   echo line, so the asset sits inside a finished shape. ── */
.friend-banner__art::after {
  content: '';
  position: absolute; z-index: -1;
  left: -120px; top: 50%;
  width: 430px; height: 560px;
  transform: translateY(-52%) rotate(4deg);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 46%, var(--fb-accent-soft) 0%, transparent 62%),
    linear-gradient(165deg, rgba(255,255,255,.045) 0%, transparent 45%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fb-accent) 14%, transparent);
}

/* ── Moon arc — a wide flattened ellipse anchored to the card bottom;
   its visible lower-right sweep runs down the silhouette's right side,
   bends UNDER the character's feet and continues left — finishing the
   asset's bottom edge. ::before is the parallel echo line, ::after a
   node dot resting on the sweep. ── */
.friend-banner__arc {
  position: absolute; z-index: 3;
  left: var(--arc-left, -150px); bottom: var(--arc-bottom, 2%);
  width: var(--arc-w, 530px); height: var(--arc-h, 480px);
  transform: rotate(3deg);
  border: 1.5px solid color-mix(in srgb, var(--fb-accent) 36%, transparent);
  border-radius: 50%;
  /* Filled crescent band riding the rim — a solid crisp plate laid over
     the character's flat bottom cut (hard inner edge, hero sits behind) */
  background: radial-gradient(50% 50% at 50% 50%,
    transparent 0%,
    transparent 88%,
    color-mix(in srgb, #151a22 90%, var(--fb-accent)) 88.5%,
    #11161d 100%);
  box-shadow: 0 0 16px -6px var(--fb-accent-soft);
  pointer-events: none;
  transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.friend-banner__arc::before {       /* parallel echo above the sweep */
  content: '';
  position: absolute; inset: 8px;
  border: 1px solid color-mix(in srgb, var(--fb-accent) 15%, transparent);
  border-radius: 50%;
}
.friend-banner__arc::after {        /* node dot on the sweep, under the character */
  content: '';
  position: absolute; top: 96%; right: 30%;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--fb-accent);
  box-shadow: 0 0 8px var(--fb-accent-glow);
  animation: fbTwinkle 4s ease-in-out infinite;
}
.friend-banner:hover .friend-banner__arc {
  border-color: color-mix(in srgb, var(--fb-accent) 55%, transparent);
  box-shadow: 0 0 20px -4px var(--fb-accent-glow);
}
/* Knight's cloak runs lower and wider than the wizard's compact base —
   drop HIS sweep vertically only (width/upper curvature unchanged) */
.friend-banner--hero .friend-banner__arc { --arc-h: 560px; --arc-bottom: -4%; }

/* ── Geometric confetti — dots, X-marks and thin rings in amber &
   copper scattered around the composition; gentle twinkle ── */
@keyframes fbTwinkle { 0%, 100% { opacity: .25; } 50% { opacity: .85; } }

.friend-banner::after {             /* amber X, top-right corner */
  content: '';
  position: absolute; z-index: 2; top: 10px; right: 14px;
  width: 9px; height: 9px;
  background:
    linear-gradient(45deg,  transparent 44%, color-mix(in srgb, var(--fb-accent) 60%, transparent) 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, color-mix(in srgb, var(--fb-accent) 60%, transparent) 44% 56%, transparent 56%);
  animation: fbTwinkle 6s ease-in-out .4s infinite;
}
.friend-banner__body::before {      /* copper X, upper-left of the text zone */
  content: '';
  position: absolute; top: -4px; left: 2%;
  width: 11px; height: 11px;
  background:
    linear-gradient(45deg,  transparent 44%, color-mix(in srgb, var(--c-red) 65%, transparent) 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, color-mix(in srgb, var(--c-red) 65%, transparent) 44% 56%, transparent 56%);
  animation: fbTwinkle 5s ease-in-out 1s infinite;
}
.friend-banner__body::after {       /* thin ring, mid-right */
  content: '';
  position: absolute; right: 5%; top: 10%;
  width: 10px; height: 10px;
  border: 1px solid color-mix(in srgb, var(--fb-accent) 45%, transparent);
  border-radius: 50%;
  animation: fbTwinkle 6.5s ease-in-out 1.8s infinite;
}
.friend-banner__motif::before {     /* copper dot above the watermark */
  content: '';
  position: absolute; top: -30px; right: 46px;
  width: 6px; height: 6px; border-radius: 50%;
  background: color-mix(in srgb, var(--c-red) 75%, transparent);
  box-shadow: 0 0 6px var(--fb-accent-glow);
  animation: fbTwinkle 4.5s ease-in-out .8s infinite;
}
.friend-banner__sparks::before {    /* thin ring, upper middle */
  content: '';
  position: absolute; left: 62%; top: 14%;
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--fb-accent) 40%, transparent);
  animation: fbTwinkle 7s ease-in-out 2.2s infinite;
}
.friend-banner__sparks::after {     /* ground pool — crisp dark plate under
                                       the character's cut edge (no blur) */
  content: '';
  position: absolute; left: 2%; bottom: -4px;
  width: 60%; height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(62% 88% at 46% 100%, rgba(8,6,3,.55) 0%, rgba(8,6,3,.38) 62%, rgba(8,6,3,0) 90%),
    radial-gradient(32% 58% at 46% 100%, color-mix(in srgb, var(--fb-accent) 10%, transparent) 0%, transparent 68%);
}
.friend-banner__spark--1::before {  /* twin ember — clusters the drift */
  content: '';
  position: absolute; left: 14px; top: -8px;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--fb-accent);
  box-shadow: 0 0 5px var(--fb-accent-glow);
  animation: fbRise 5.4s linear 1.1s infinite;
}
.friend-banner__spark--3::before {  /* copper ember along the right silhouette */
  content: '';
  position: absolute; left: 22px; top: 4px;
  width: 4px; height: 4px; border-radius: 50%;
  background: color-mix(in srgb, var(--c-red) 80%, transparent);
  box-shadow: 0 0 6px var(--fb-accent-glow);
  animation: fbRise 4.8s linear 2.1s infinite;
}

/* ── Body — carved title / slogan ── */
.friend-banner__body {
  position: relative; z-index: 4; flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; gap: 9px;
}

/* Brand line — carved steel (distinct from the gold title) */
.friend-banner__brand {
  font-family: 'Ruslan Display', var(--f-heading);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: .04em;
  background: linear-gradient(180deg,
    var(--t-1) 0%,
    color-mix(in srgb, var(--t-1) 55%, var(--ink-surface-3)) 55%,
    var(--t-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--t-1) 28%, transparent);
  text-shadow:
    0 1px 0 rgba(0,0,0,.85),
    0 2px 3px rgba(0,0,0,.5),
    0 0 14px rgba(241,237,225,.14);
}

/* Carved antique gold — vertical metal gradient + gold contour +
   stacked shadows for a chiselled, embossed relief. The sheen
   layer stays parked off-letter until hover sweeps it across. */
.friend-banner__title {
  font-family: 'Ruslan Display', var(--f-heading);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.14;
  letter-spacing: .01em;
  background:
    linear-gradient(105deg, transparent 32%, color-mix(in srgb, var(--t-1) 42%, transparent) 50%, transparent 68%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--t-1) 72%, var(--c-yellow)) 0%,
      var(--c-yellow) 36%,
      color-mix(in srgb, var(--c-yellow) 52%, var(--ink-bg)) 60%,
      var(--c-yellow) 86%,
      color-mix(in srgb, var(--c-yellow) 70%, var(--t-1)) 100%);
  background-size: 300% 100%, 100% 100%;
  background-position: 100% 0, 0 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--c-yellow) 45%, transparent);
  text-shadow:
    0 1px 0 rgba(0,0,0,.85),
    0 2px 3px rgba(0,0,0,.5),
    0 7px 16px rgba(0,0,0,.45),
    0 0 20px var(--fb-accent-glow);
  padding-right: 4px;                /* room for the glow, no clipping */
}
.friend-banner:hover .friend-banner__title { animation: fbSweep 2.8s ease-in-out infinite; }
@keyframes fbSweep {
  0%, 100% { background-position: 100% 0, 0 0; }
  50%      { background-position: 0% 0, 0 0; }
}

/* Hero variant — the big CTA inscription (ИГРАЙ ОНЛАЙН) */
.friend-banner--hero .friend-banner__title {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  animation: fbPulse 3s ease-in-out infinite;
}
@keyframes fbPulse {
  0%, 100% { filter: drop-shadow(0 0 6px var(--fb-accent-soft)); }
  50%      { filter: drop-shadow(0 0 16px var(--fb-accent-glow)); }
}

/* Slogan — small engraved caps under the title */
.friend-banner__slogan {
  font-size: clamp(12px, 1.2vw, 15px);
  text-transform: uppercase;
  letter-spacing: .16em;
  color: color-mix(in srgb, var(--t-1) 62%, var(--c-yellow));
  text-shadow: 0 1px 1px rgba(0,0,0,.75), 0 0 10px var(--fb-accent-soft);
}
.friend-banner__slogan::before { content: '— '; color: var(--fb-accent); }

/* ── Motif watermark — oversized themed icon, corner ghost ── */
.friend-banner__motif {
  position: absolute; z-index: 1; right: -10px; bottom: -16px;
  font-size: 110px; line-height: 1;
  transform: rotate(-10deg);
  color: var(--fb-accent); opacity: .06;
  pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.friend-banner:hover .friend-banner__motif {
  opacity: .13;
  transform: rotate(-6deg) scale(1.06);
}

/* ── Sparks — embers drifting up over the character ── */
.friend-banner__sparks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.friend-banner__spark {
  position: absolute; bottom: 14%;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--fb-accent);
  box-shadow: 0 0 6px var(--fb-accent-glow);
  opacity: 0;
  animation: fbRise 4.2s linear infinite;
}
.friend-banner__spark--1 { left: 22%; animation-delay: 0s; }
.friend-banner__spark--2 { left: 42%; bottom: 26%; width: 4px; height: 4px; animation-delay: 1.5s; }
.friend-banner__spark--3 { left: 58%; bottom: 10%; width: 6px; height: 6px; animation-delay: 2.7s; }
@keyframes fbRise {
  0%   { transform: translateY(4px) scale(.6); opacity: 0; }
  20%  { opacity: .75; }
  100% { transform: translateY(-42px) scale(1.05); opacity: 0; }
}

/* ── Hover — the card ignites ── */
.friend-banner:hover {
  border-color: color-mix(in srgb, var(--fb-accent) 40%, transparent);
  box-shadow:
    0 26px 52px -20px rgba(0,0,0,.65),
    0 0 26px var(--fb-accent-glow),
    inset 0 1px 0 rgba(255,255,255,.06);
  transform: translateY(-2px);
}
.friend-banner:hover .friend-banner__art img {
  transform: scale(1.04) translateY(-4px);
  filter:
    drop-shadow(2px 0 1px color-mix(in srgb, var(--fb-accent) 55%, transparent))
    drop-shadow(11px 2px 18px var(--fb-accent-glow))
    drop-shadow(0 4px 8px rgba(0,0,0,.45))
    drop-shadow(0 16px 26px rgba(0,0,0,.55))
    drop-shadow(0 0 22px var(--fb-accent-soft));
}
/* Knight rides a touch higher in its frame (base + hover keeps the lift) */
.friend-banner--hero .friend-banner__art img { transform: translateY(-6px); }
.friend-banner--hero:hover .friend-banner__art img { transform: scale(1.04) translateY(-10px); }

/* ═══ Responsive — stacks under each card on mobile ═══ */
@media (max-width: 768px) {
  .friend-cols { margin-top: 18px; }
  .friend-banner { gap: 10px; min-height: 150px; padding: 12px 16px 12px 10px; }
  .friend-banner__art { width: clamp(150px, 36vw, 205px); height: clamp(120px, 26vw, 140px); }
  .friend-banner__art::after { width: 320px; height: 430px; left: -90px; }
  .friend-banner__arc { width: 375px; height: var(--arc-h, 360px); left: -112px; bottom: var(--arc-bottom, 8px); }
  .friend-banner--hero .friend-banner__arc { --arc-h: 420px; --arc-bottom: 6px; }
  .friend-banner__brand { font-size: clamp(17px, 4.5vw, 21px); }
  .friend-banner__title { font-size: clamp(19px, 5vw, 24px); }
  .friend-banner--hero .friend-banner__title { font-size: clamp(22px, 6.4vw, 30px); }
  .friend-banner__slogan { font-size: 10.5px; letter-spacing: .1em; }
  .friend-banner__motif { font-size: 76px; }
  .friend-banner__sparks::after { width: 66%; height: 44px; }
  .friend-banner__spark--1 { left: 26%; }
  .friend-banner__spark--2 { left: 44%; }
  .friend-banner__spark--3 { left: 60%; }
}

/* ═══ Reduced motion — ambient layers off, static gold remains ═══ */
@media (prefers-reduced-motion: reduce) {
  .friend-banner__title,
  .friend-banner--hero .friend-banner__title { animation: none !important; }
  .friend-banner,
  .friend-banner__art img,
  .friend-banner__motif,
  .friend-banner__arc { transition-duration: .01s; }
  .friend-banner:hover .friend-banner__art img,
  .friend-banner:hover { transform: none; }
  .friend-banner--hero:hover .friend-banner__art img { transform: translateY(-6px); }
  .friend-banner::after,
  .friend-banner__body::before,
  .friend-banner__body::after,
  .friend-banner__motif::before,
  .friend-banner__arc::after { animation: none; opacity: .45; }
  /* Embers freeze in place; the static ground-fog pool survives */
  .friend-banner__spark,
  .friend-banner__spark--1::before,
  .friend-banner__spark--3::before,
  .friend-banner__sparks::before { animation: none; opacity: .4; }
}


/* ===========================================================
   TRANSLATIONS GRID (homepage cards)
   =========================================================== */
.translations-section { padding: var(--sp-9) 0 var(--sp-8); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px; flex-wrap: wrap; gap: 16px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }

.link-all {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--t-4);
  padding: 8px 16px; border: 1px solid var(--ink-border); border-radius: var(--r-pill);
  transition: color .2s, border-color .2s;
}
.link-all:hover { color: var(--c-green); border-color: rgba(0,255,136,.3); }

/* Game card */
.game-card {
  background: var(--ink-surface); border: 1px solid var(--ink-border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  height: 100%; display: flex; flex-direction: column;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  border-color: var(--ink-border-lg);
}

.card-cover-wrap { position: relative; overflow: hidden; aspect-ratio: 3/4; flex-shrink: 0; }
.card-cover { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s ease; }
.game-card:hover .card-cover { transform: scale(1.06); }
.card-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,17,21,.95) 0%, rgba(15,17,21,.3) 40%, transparent 100%);
}

/* Status badges – solid, always readable */
.card-status-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: 4px;
  font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  text-shadow: none;
}
.badge-done    { background: rgba(0,210,90,0.92); color: #001a08; }
.badge-testing { background: rgba(255,165,0,0.92); color: #1a0d00; }
.badge-wip     { background: rgba(245,158,11,0.92); color: #1a0d00; }
.badge-official  { background: rgba(59,130,246,0.9); color: #fff; }
.badge-dropped   { background: rgba(255,61,110,0.92); color: #fff; }
.badge-community { background: rgba(168,85,247,0.92); color: #fff; }
.badge-official  { background: rgba(139,92,246,0.92); color: #fff; }

/* Platform badge – bottom left on cover */
.card-platform-badge {
  position: absolute; bottom: 10px; left: 10px;
  padding: 3px 9px; border-radius: 4px;
  background: rgba(217,164,65,.90); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,224,150,.55);
  font-size: 9px; font-weight: 800; letter-spacing: .1em;
  color: #2a1d05; text-transform: uppercase;
  text-shadow: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
/* Per-platform colours – brand inspired */
.card-platform-badge.pf-pc     { background: rgba(6,182,212,.92);   border-color: rgba(165,243,252,.55); }              /* cyan      */
.card-platform-badge.pf-ps1    { background: rgba(148,163,184,.92); border-color: rgba(226,232,240,.55); }              /* сребро    */
.card-platform-badge.pf-ps2    { background: rgba(99,102,241,.92);  border-color: rgba(199,210,254,.55); }              /* индиго    */
.card-platform-badge.pf-ps3    { background: rgba(2,6,23,.88);      border-color: rgba(226,232,240,.45); color:#e2e8f0; } /* пиано черно */
.card-platform-badge.pf-ps4    { background: rgba(37,99,235,.94);   border-color: rgba(191,219,254,.55); }              /* PS синьо  */
.card-platform-badge.pf-ps5    { background: rgba(56,189,248,.94);  border-color: rgba(224,242,254,.60); }              /* светло синьо */
.card-platform-badge.pf-xbox   { background: rgba(34,197,94,.92);   border-color: rgba(187,247,208,.55); }              /* Xbox зелено */
.card-platform-badge.pf-x360   { background: rgba(132,204,22,.92);  border-color: rgba(217,249,157,.55); }              /* лайм      */
.card-platform-badge.pf-switch { background: rgba(230,0,18,.92);    border-color: rgba(254,202,202,.60); }              /* Nintendo червено */
.card-platform-badge.pf-psp    { background: rgba(249,115,22,.92);  border-color: rgba(254,215,170,.55); }              /* оранжево  */
.card-platform-badge.pf-nes    { background: rgba(202,138,4,.94);   border-color: rgba(253,230,138,.55); }              /* златно    */

/* Tag badges (Външен превод / Бета превод) – top right on cover, stacked */
.card-tag-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 9px; border-radius: 4px;
  background: rgba(15,17,21,0.75); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  color: rgba(255,255,255,.75); text-transform: uppercase;
}
.card-tag-badge + .card-tag-badge { top: 32px; }
.card-tag-external { color: #7ec8ff; }

.card-body-custom { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.card-meta { display: flex; align-items: center; gap: 8px; }
.card-genre { font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--t-4); }
.card-meta { flex-wrap: wrap; }
.card-update-label { display: inline-flex; align-items: center; gap: .2rem; padding: 2px 5px; border: 1px solid rgba(217,164,65,.34); border-radius: 4px; background: rgba(217,164,65,.09); color: var(--c-gold, #d9a441); font-size: 9px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.card-team { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--t-4); }
.card-title { font-size: 1rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; color: var(--t-1); user-select: text; -webkit-user-select: text; }

/* Mini progress (homepage cards) */
.home-progress-section { display: flex; flex-direction: column; gap: 6px; }
.progress-header { display: flex; justify-content: space-between; align-items: center; }
.progress-label { font-size: 11px; color: var(--t-4); }
.progress-pct { font-size: 12px; font-weight: 700; font-family: var(--f-heading); color: var(--c-green); }

.progress-track { height: 5px; background: rgba(255,255,255,.07); border-radius: var(--r-pill); overflow: visible; position: relative; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00c853, var(--c-green));
  border-radius: var(--r-pill); position: relative;
  box-shadow: 0 0 10px var(--c-green-glow);
  transition: width 1.2s var(--ease-out);
}
.progress-fill::after {
  content: ''; position: absolute; right: -3px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; background: var(--c-green); border-radius: 50%;
  box-shadow: 0 0 8px var(--c-green);
}


/* ===========================================================
   DISCORD CTA SECTION
   Background & border use CSS custom properties so Forge
   can override them without touching every rule.
   =========================================================== */
.discord-section { padding: 0 0 var(--sp-9); }
.discord-cta {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #0a0f2e 0%, #0d1547 40%, #0a2a5e 70%, #051835 100%);
  border: 1px solid rgba(88,101,242,.25);
  padding: 64px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.discord-cta::before,
.discord-cta::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.discord-cta::before {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--c-discord-soft) 0%, transparent 70%);
  top: -150px; right: -100px;
}
.discord-cta::after {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,255,136,.08) 0%, transparent 70%);
  bottom: -120px; left: 30%;
}

.discord-left { position: relative; z-index: 1; max-width: 540px; }

/* ── Eyebrow / Badge ── */
.discord-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  background: rgba(88,101,242,.18); border: 1px solid rgba(88,101,242,.5);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #b3bcf8; margin-bottom: 20px;
  box-shadow: 0 0 14px rgba(88,101,242,.15), 0 0 2px rgba(88,101,242,.4);
  animation: eyebrowPulse 3s ease-in-out infinite;
}
@keyframes eyebrowPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(88,101,242,.15), 0 0 2px rgba(88,101,242,.4); }
  50%      { box-shadow: 0 0 22px rgba(88,101,242,.30), 0 0 6px rgba(88,101,242,.55); }
}
.eyebrow-emoji { font-size: 15px; line-height: 1; }

/* ── Title ── */
.discord-title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); color: #fff; margin-bottom: 14px; line-height: 1.25; }

/* ── Description ── */
.discord-desc { font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 28px; max-width: 480px; }

/* ── Stats ── */
.discord-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.d-stat-item { display: flex; flex-direction: column; gap: 4px; }
.d-stat-icon {
  display: flex; align-items: center;
  color: rgba(255,255,255,.35); margin-bottom: 2px;
  transition: color .4s, transform .4s;
}
.d-stat-item:hover .d-stat-icon { color: rgba(255,255,255,.8); transform: scale(1.1); }
.d-stat-icon--live svg { animation: docPulse 2s ease-in-out infinite; }
@keyframes docPulse {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1; }
}
.d-stat-num { font-family: var(--f-heading); font-weight: 900; font-size: 1.35rem; letter-spacing: -0.04em; color: #fff; }
.d-stat-label { font-size: 11px; color: rgba(255,255,255,.4); letter-spacing: .04em; }

/* ── Right side ── */
.discord-right { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* ── Ambient glow particles behind icon ── */
.discord-ambient {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 220px; height: 220px; pointer-events: none; z-index: 0;
}
.glow-orb {
  position: absolute; border-radius: 50%;
  filter: blur(28px); opacity: .45;
}
.glow-orb--1 {
  width: 90px; height: 90px;
  background: rgba(88,101,242,.5);
  top: 10px; left: 60px;
  animation: orbFloat1 5s ease-in-out infinite;
}
.glow-orb--2 {
  width: 60px; height: 60px;
  background: rgba(0,255,136,.25);
  top: 70px; left: 30px;
  animation: orbFloat2 7s ease-in-out infinite;
}
.glow-orb--3 {
  width: 50px; height: 50px;
  background: rgba(88,101,242,.35);
  top: 50px; right: 20px;
  animation: orbFloat3 6s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(12px,-10px) scale(1.15); }
  66%      { transform: translate(-8px,6px) scale(.9); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-14px,-8px) scale(1.25); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(10px,12px) scale(1.2); }
}

/* ── Discord logo icon ── */
.discord-icon-wrap {
  position: relative; z-index: 1;
  width: 110px; height: 110px; background: var(--c-discord);
  border-radius: 28px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px var(--c-discord-glow), 0 0 80px rgba(88,101,242,.25), inset 0 1px 0 rgba(255,255,255,.15);
  animation: float 4s ease-in-out infinite;
}
.discord-icon-wrap svg { width: 60px; height: 60px; fill: #fff; }

/* ── Online badge under icon ── */
.discord-online-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px;
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7);
  backdrop-filter: blur(6px);
}
.online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #57f287; box-shadow: 0 0 8px #57f287;
  animation: blink 2s ease-in-out infinite;
}

/* ── CTA Button ── */
.btn-discord {
  display: inline-flex; align-items: center; gap: 10px;
  width: auto; height: auto; /* нулирай квадратните 38px от OAuth стила горе */
  padding: 14px 32px; background: var(--c-discord); color: #fff;
  border: none; border-radius: var(--r-md);
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
  box-shadow: 0 0 18px var(--c-discord-glow), 0 0 50px rgba(88,101,242,.25);
  transition: box-shadow .3s, transform .25s, background .25s; white-space: nowrap;
}
.btn-discord:hover {
  background: #6b73f5;
  box-shadow: 0 0 36px rgba(88,101,242,.85), 0 0 90px rgba(88,101,242,.45);
  transform: translateY(-2px) scale(1.03);
  color: #fff;
}
.btn-discord:active { transform: translateY(0) scale(.98); }
.btn-arrow { transition: transform .25s; }
.btn-discord:hover .btn-arrow { transform: translateX(3px); }

/* ── Member avatars ── */
.discord-members { display: flex; align-items: center; gap: 8px; }
.member-avatars { display: flex; align-items: center; }
.member-avatars .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2.5px solid #0d1547; margin-left: -10px;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: transform .25s, box-shadow .25s;
  position: relative;
  object-fit: cover; flex-shrink: 0;
}
.member-avatars .avatar:first-child { margin-left: 0; }
.member-avatars .avatar:hover {
  transform: translateY(-3px) scale(1.1);
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
}
/* Fallback when no real avatar (text-only div) */
.member-avatars .avatar:not(img) { background: var(--c-discord); }
.avatar--1:not(img) { background: var(--c-discord); }
.avatar--2:not(img) { background: #00b0f4; }
.avatar--3:not(img) { background: #57f287; color: #000 !important; }
.avatar--more {
  background: rgba(255,255,255,.08); border: 2.5px solid rgba(255,255,255,.15) !important;
  font-size: 11px !important; font-weight: 600 !important;
  color: rgba(255,255,255,.6) !important; min-width: 36px;
}


/* ===========================================================
   SINGLE PAGE – TOP BAR / BREADCRUMBS
   =========================================================== */
.single-page-wrap { padding-top: 65px; font-family: var(--f-mono); }

.top-bar {
  border-bottom: 1px solid var(--ink-border);
  padding: .75rem 0; font-size: 12px; color: var(--t-3); font-weight: 500;
}
.top-bar a { color: var(--t-3); text-decoration: none; transition: color .15s; }
.top-bar a:hover { color: var(--c-blue); }
.crumb-sep { margin: 0 .5rem; opacity: .35; }


/* ===========================================================
   SINGLE PAGE – HERO
   =========================================================== */
.hero-single { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--ink-border); }
.catalog-game-hero { padding: 2rem 0 1.5rem; }

.cover-wrap { width: 200px; min-width: 200px; flex-shrink: 0; position: relative; }
.cover-img {
  width: 100%; aspect-ratio: 3/4; object-fit: contain; object-position: center; display: block;
  background: transparent;
  border-radius: var(--r-lg); border: 0;
  --cover-platform-glow: rgba(148,163,184,.10);
  --cover-platform-glow-hover: rgba(148,163,184,.16);
  box-shadow: 0 20px 55px rgba(0,0,0,.62), 0 0 30px var(--cover-platform-glow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cover-img.pf-pc { --cover-platform-glow: rgba(34,211,238,.13); --cover-platform-glow-hover: rgba(34,211,238,.22); }
.cover-img.pf-ps1 { --cover-platform-glow: rgba(148,163,184,.11); --cover-platform-glow-hover: rgba(148,163,184,.18); }
.cover-img.pf-ps2 { --cover-platform-glow: rgba(129,140,248,.13); --cover-platform-glow-hover: rgba(129,140,248,.22); }
.cover-img.pf-ps3 { --cover-platform-glow: rgba(148,163,184,.10); --cover-platform-glow-hover: rgba(148,163,184,.17); }
.cover-img.pf-ps4 { --cover-platform-glow: rgba(59,130,246,.14); --cover-platform-glow-hover: rgba(59,130,246,.24); }
.cover-img.pf-ps5 { --cover-platform-glow: rgba(125,211,252,.14); --cover-platform-glow-hover: rgba(125,211,252,.24); }
.cover-img.pf-xbox { --cover-platform-glow: rgba(34,197,94,.13); --cover-platform-glow-hover: rgba(34,197,94,.22); }
.cover-img.pf-x360 { --cover-platform-glow: rgba(163,230,53,.13); --cover-platform-glow-hover: rgba(163,230,53,.22); }
.cover-img.pf-switch { --cover-platform-glow: rgba(239,68,68,.13); --cover-platform-glow-hover: rgba(239,68,68,.22); }
.cover-img.pf-psp { --cover-platform-glow: rgba(251,146,60,.13); --cover-platform-glow-hover: rgba(251,146,60,.22); }
.cover-img.pf-nes { --cover-platform-glow: rgba(212,175,55,.13); --cover-platform-glow-hover: rgba(212,175,55,.22); }
.cover-wrap:hover .cover-img {
  transform: translateY(-3px);
  box-shadow: 0 25px 65px rgba(0,0,0,.7), 0 0 38px var(--cover-platform-glow-hover);
}
.cover-badge {
  position: absolute; top: .6rem; right: .6rem;
  background: var(--c-blue); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: var(--r-xs);
}

.game-title-single {
  font-size: clamp(1.8rem,4vw,2.65rem); font-weight: 900;
  letter-spacing: -0.045em; line-height: .98; color: var(--t-1);
  font-family: var(--f-mono);
}
.game-title-single span {
  display: block; width: 2.5rem; height: 3px;
  background: var(--c-blue); border-radius: 2px; margin-top: .4rem;
  box-shadow: 0 0 16px var(--c-blue-glow);
}

/* Status pill */
.status-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--c-green-soft); border: 1px solid rgba(0,255,136,.2);
  color: var(--c-green); border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .75rem;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-green); box-shadow: 0 0 8px var(--c-green);
  animation: blink 2s ease-in-out infinite;
}

/* Meta chips */
.meta-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: transparent; border: 1px solid var(--ink-border-md);
  border-radius: var(--r-pill); font-size: 12px; font-weight: 500;
  color: var(--t-2); padding: .3rem .85rem;
}
.meta-chip i { font-size: 13px; color: var(--c-blue); }

/* Platform metadata uses the same palette as the catalog platform badges. */
.game-hero-status { margin-bottom: .55rem !important; }
.game-meta-chips { gap: .4rem !important; margin-top: 1rem !important; margin-bottom: 1rem !important; }
.game-meta-chips .meta-chip { padding: .25rem .65rem; font-size: 11px; }
.game-lead { margin: 0; font-size: 13px !important; line-height: 1.45 !important; }
.platform-meta-chip { background: rgba(148,163,184,.08); border-color: rgba(148,163,184,.28); color: #cbd5e1; }
.platform-meta-chip i { color: #cbd5e1 !important; }
.platform-meta-chip.pf-pc { background: rgba(34,211,238,.10); border-color: rgba(34,211,238,.40); color: #a5f3fc; }
.platform-meta-chip.pf-pc i { color: #67e8f9 !important; }
.platform-meta-chip.pf-ps1 { background: rgba(148,163,184,.10); border-color: rgba(148,163,184,.38); color: #cbd5e1; }
.platform-meta-chip.pf-ps1 i { color: #cbd5e1 !important; }
.platform-meta-chip.pf-ps2 { background: rgba(129,140,248,.10); border-color: rgba(129,140,248,.40); color: #c7d2fe; }
.platform-meta-chip.pf-ps2 i { color: #a5b4fc !important; }
.platform-meta-chip.pf-ps3 { background: rgba(30,41,59,.36); border-color: rgba(148,163,184,.34); color: #e2e8f0; }
.platform-meta-chip.pf-ps3 i { color: #cbd5e1 !important; }
.platform-meta-chip.pf-ps4 { background: rgba(59,130,246,.12); border-color: rgba(96,165,250,.45); color: #bfdbfe; }
.platform-meta-chip.pf-ps4 i { color: #60a5fa !important; }
.platform-meta-chip.pf-ps5 { background: rgba(125,211,252,.11); border-color: rgba(125,211,252,.42); color: #bae6fd; }
.platform-meta-chip.pf-ps5 i { color: #7dd3fc !important; }
.platform-meta-chip.pf-xbox { background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.40); color: #bbf7d0; }
.platform-meta-chip.pf-xbox i { color: #4ade80 !important; }
.platform-meta-chip.pf-x360 { background: rgba(163,230,53,.10); border-color: rgba(163,230,53,.38); color: #d9f99d; }
.platform-meta-chip.pf-x360 i { color: #a3e635 !important; }
.platform-meta-chip.pf-switch { background: rgba(239,68,68,.10); border-color: rgba(248,113,113,.42); color: #fecaca; }
.platform-meta-chip.pf-switch i { color: #f87171 !important; }
.platform-meta-chip.pf-psp { background: rgba(251,146,60,.10); border-color: rgba(251,146,60,.40); color: #fed7aa; }
.platform-meta-chip.pf-psp i { color: #fb923c !important; }
.platform-meta-chip.pf-nes { background: rgba(212,175,55,.10); border-color: rgba(212,175,55,.40); color: #ecd07f; }
.platform-meta-chip.pf-nes i { color: #d4af37 !important; }

.star-row { color: var(--c-yellow); letter-spacing: .05em; font-size: .9rem; }


/* ===========================================================
   SINGLE PAGE – PROGRESS BARS
   =========================================================== */
.progress-section-single { padding: 1.75rem 0; border-bottom: 1px solid var(--ink-border); }

.prog-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .45rem; }
.prog-name { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t-2); }
.prog-track { height: 6px; background: rgba(255,255,255,.03); border-radius: var(--r-pill); }
.prog-fill {
  height: 100%; border-radius: var(--r-pill);
  transition: width 1.3s var(--ease-out); position: relative;
}
.prog-fill::after {
  content: ''; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: inherit; filter: brightness(1.3);
}
.fill-blue   { background: var(--c-blue);   box-shadow: 0 0 12px var(--c-blue-glow); }
.fill-green  { background: var(--c-green);  box-shadow: 0 0 12px var(--c-green-glow); }
.fill-yellow { background: var(--c-yellow); box-shadow: 0 0 12px var(--c-yellow-glow); }
.fill-red    { background: var(--c-red);    box-shadow: 0 0 12px var(--c-red-glow); }


/* ===========================================================
   SINGLE PAGE – GALLERY
   =========================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem; }
.gal-item { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--ink-border); cursor: pointer; position: relative; }
.gal-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .3s, filter .3s; }
.gal-item:hover img { transform: scale(1.07); filter: brightness(1.1); }
.gal-overlay {
  position: absolute; inset: 0; background: rgba(13,110,253,.15);
  opacity: 0; transition: opacity .25s;
  display: flex; align-items: center; justify-content: center;
}
.gal-overlay i { font-size: 1.4rem; color: #fff; filter: drop-shadow(0 0 8px var(--c-blue)); }
.gal-item:hover .gal-overlay { opacity: 1; }
/* Tag for screenshots reused from linked news galleries */
.gal-news-tag {
  position: absolute; left: 6px; bottom: 6px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  max-width: calc(100% - 12px);
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
.gal-news-tag i { font-size: 10px; color: var(--c-blue); }


/* ===========================================================
   SINGLE PAGE – COMMENTS
   =========================================================== */
.comment { display: flex; gap: .9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--ink-border); }
.comment:last-of-type { border-bottom: none; }
.c-avatar { width: 40px; height: 40px; border-radius: var(--r-pill); object-fit: cover; border: 1px solid var(--ink-border-md); flex-shrink: 0; }
.c-name { font-size: 13px; font-weight: 700; color: var(--c-blue); }
.c-date { font-size: 11px; color: var(--t-3); margin-left: .5rem; }
.c-body { font-size: 13.5px; color: var(--t-2); margin-top: .2rem; }
.comment-form textarea {
  width: 100%; background: var(--ink-surface-2);
  border: 1px solid var(--ink-border-md); border-radius: var(--r-md);
  color: var(--t-1); font-family: var(--f-mono); font-size: 13.5px;
  padding: .85rem 1rem; resize: none;
  transition: border-color .2s, box-shadow .2s;
}
.comment-form textarea:focus { outline: none; border-color: rgba(13,110,253,.5); box-shadow: 0 0 0 3px var(--c-blue-soft); }
.comment-form textarea::placeholder { color: var(--t-3); }


/* ===========================================================
   SINGLE PAGE – SIDEBAR
   =========================================================== */
.stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .7rem 0; border-bottom: 1px solid var(--ink-border); font-size: 13.5px;
}
.stat-row:first-child { padding-top: 0; }
.stat-row:last-child { border-bottom: none; padding-bottom: 0; }
.stat-key { color: var(--t-2); display: flex; align-items: center; gap: .5rem; }
.stat-key i { color: var(--c-blue); font-size: 14px; }
.stat-val { font-weight: 700; color: var(--t-1); }

/* Buy / Store button */
.btn-store {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: .7rem 1rem;
  background: transparent; border: 1px solid var(--ink-border-md);
  border-radius: var(--r-md); color: var(--t-1);
  font-family: var(--f-mono); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: background .2s, border-color .2s, box-shadow .2s;
}
.btn-store:hover {
  background: rgba(255,255,255,.05);
  border-color: var(--ink-border-lg); color: var(--t-1);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.btn-store .price-tag {
  margin-left: auto; background: var(--ink-surface-2);
  border-radius: var(--r-xs); padding: .1rem .45rem;
  font-size: 12px; color: var(--c-yellow); font-weight: 700;
}

/* Download CTA */
.btn-download {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  width: 100%; padding: 1rem 1.5rem;
  background: var(--c-blue); color: #fff; border: none;
  border-radius: var(--r-lg);
  font-family: var(--f-mono); font-size: 14px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden;
  box-shadow: 0 0 30px var(--c-blue-glow), 0 0 60px rgba(13,110,253,.2), 0 8px 24px rgba(0,0,0,.4);
  transition: box-shadow .25s, transform .15s;
}
.btn-download::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 50%);
}
.btn-download:hover {
  color: #fff;
  box-shadow: 0 0 50px rgba(13,110,253,.65), 0 0 90px rgba(13,110,253,.25), 0 10px 30px rgba(0,0,0,.5);
  transform: translateY(-2px);
}
.btn-download i { font-size: 1.25rem; }

.dl-count {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,.18);
  padding: 2px 9px; border-radius: 999px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.dl-meta { font-size: 11.5px; color: var(--t-3); text-align: center; margin-top: .65rem; font-weight: 500; }
.dl-meta b { color: var(--t-2); }
.catalog-release-notice { margin: .65rem 0 .85rem; padding: .7rem .8rem; border-left: 2px solid var(--c-gold, #d9a441); border-radius: 0 7px 7px 0; background: rgba(217,164,65,.06); }
.catalog-release-notice__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--c-gold, #d9a441); font-size: 12px; }
.catalog-release-notice__head time { color: var(--t-4); font-size: 11px; }
.catalog-release-notice__files { margin-top: .25rem; color: var(--t-3); font-size: 11px; }
.catalog-release-notice p { margin: .35rem 0 0; color: var(--t-2); font-size: 12px; line-height: 1.5; }
.catalog-release-notice--file { margin: .4rem 0 .45rem; padding: .55rem .65rem; }
.catalog-release-history { margin-top: .55rem; color: var(--t-3); font-size: 11px; }
.catalog-release-history summary { cursor: pointer; }
.catalog-release-history__item { display: grid; grid-template-columns: auto 1fr; gap: .2rem .45rem; padding-top: .4rem; }
.catalog-release-history__item span { grid-column: 1 / -1; color: var(--t-4); }

/* Team strip */
.team-strip { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.team-chip {
  display: flex; align-items: center; gap: .45rem;
  background: var(--ink-surface-2); border: 1px solid var(--ink-border-md);
  border-radius: var(--r-pill); padding: .25rem .65rem .25rem .25rem;
  transition: border-color .2s, background .2s; cursor: default;
}
.team-chip:hover { border-color: rgba(13,110,253,.4); background: rgba(13,110,253,.08); }
.team-chip img {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(13,110,253,.3); flex-shrink: 0;
}
.team-chip-info { line-height: 1.2; }
.team-chip-name { font-size: 12px; font-weight: 700; color: var(--t-1); }
.team-chip-role { font-size: 10px; color: var(--t-3); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }


/* ===========================================================
   SINGLE PAGE – INSTALL STEPS
   =========================================================== */
.install-card {
  background: var(--ink-surface);
  border: 1px solid rgba(13,110,253,.28);
  border-radius: var(--r-xl); padding: var(--sp-5);
  position: relative; overflow: hidden;
}
.install-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--c-blue); box-shadow: 0 0 16px var(--c-blue-glow);
  border-radius: 0 2px 2px 0;
}
.install-steps { display: flex; flex-direction: column; gap: .55rem; }
.install-step { display: flex; gap: .85rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--c-blue-soft); border: 1px solid rgba(13,110,253,.3);
  color: var(--c-blue); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.step-body { font-size: 13.5px; color: var(--t-2); }
.step-body strong { color: var(--t-1); font-weight: 700; }
.step-body code {
  background: var(--ink-surface-2); border: 1px solid var(--ink-border-md);
  border-radius: 5px; padding: .1rem .4rem; font-size: 12px; color: var(--c-green);
}

.install-note {
  display: flex; gap: .6rem; align-items: flex-start;
  background: var(--c-yellow-soft);
  border: 1px solid rgba(255,214,10,.2); border-radius: var(--r-sm);
  padding: .65rem .85rem; margin-top: .85rem;
  font-size: 12.5px; color: var(--t-2);
}
.install-note i { color: var(--c-yellow); font-size: 1rem; flex-shrink: 0; margin-top: 1px; }


/* ===============================================================
   CATALOG ARCHIVE PAGE
   =============================================================== */

/* -- Hero -- */
.catalog-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--ink-border);
}
.catalog-hero-title {
  font-family: var(--f-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--t-1);
  margin: 8px 0 16px;
}
.catalog-hero-desc {
  font-size: 15px;
  color: var(--t-2);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Stats row */
.catalog-stats-row { display: flex; gap: 32px; flex-wrap: wrap; }
.catalog-stat { display: flex; flex-direction: column; }
.catalog-stat-num {
  font-family: var(--f-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--t-1);
  line-height: 1;
}
.catalog-stat-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--t-3); margin-top: 4px; }

/* Platform totals beneath the catalog overview stats.  The colour classes
   intentionally mirror .card-platform-badge so the same platform is
   immediately recognisable throughout the catalog. */
.catalog-platform-stats {
  display: flex;
  align-items: center;
  margin-top: 18px;
}
.catalog-platform-stats-grid {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  row-gap: 12px;
}
.catalog-hardware-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.catalog-platform-stat {
  --platform-accent: #cbd5e1;
  position: relative;
  overflow: visible;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 3px 8px;
  color: var(--t-1);
  background: rgba(255,255,255,.035);
  background: color-mix(in srgb, var(--platform-accent) var(--platform-strength), rgba(255,255,255,.035));
  background-image: linear-gradient(160deg, rgba(255,255,255,.09), transparent 48%, rgba(0,0,0,.16));
  border: 1px solid color-mix(in srgb, var(--platform-accent) 55%, var(--ink-border));
  border-radius: 6px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 2px 0 rgba(0,0,0,.5), 0 4px 7px rgba(0,0,0,.16);
  transition: color .22s ease, border-color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}
.catalog-platform-stat:hover,
.catalog-platform-stat:focus-visible {
  color: var(--t-1);
  background-color: color-mix(in srgb, var(--platform-accent) 22%, var(--ink-surface-2));
  border-color: color-mix(in srgb, var(--platform-accent) 75%, var(--c-yellow));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 2px 0 rgba(0,0,0,.5), 0 5px 14px color-mix(in srgb, var(--platform-accent) 18%, transparent);
  transform: translateY(-1px);
}
.catalog-platform-stat:focus-visible { outline: 2px solid var(--c-yellow); outline-offset: 3px; }
.catalog-platform-stat-machine {
  position: relative;
  display: block;
  width: 32px;
  height: 18px;
  flex: none;
}
.catalog-platform-stat-machine::after {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: -2px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  filter: blur(2px);
  z-index: -1;
  transition: opacity .25s ease, transform .25s ease;
}
.catalog-platform-stat-hardware {
  object-fit: contain;
  position: absolute;
  left: -6px;
  bottom: 0;
  width: 44px;
  height: 33px;
  flex: none;
  overflow: visible;
  fill: none;
  stroke: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(2px);
  transform-origin: 50% 85%;
  filter: drop-shadow(1px 3px 2px rgba(0,0,0,.5));
  transition: transform .25s ease, filter .25s ease;
}
.catalog-platform-stat:hover .catalog-platform-stat-hardware,
.catalog-platform-stat:focus-visible .catalog-platform-stat-hardware {
  transform: translateY(0) scale(1.06);
  filter: drop-shadow(1px 5px 3px rgba(0,0,0,.45)) drop-shadow(0 0 3px color-mix(in srgb, var(--platform-accent) 30%, transparent));
}
.catalog-platform-stat:hover .catalog-platform-stat-machine::after,
.catalog-platform-stat:focus-visible .catalog-platform-stat-machine::after { opacity: .65; transform: scale(.85); }
.catalog-platform-stat-copy { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.catalog-platform-credits{margin-left:8px;color:var(--t-3);font-size:12px;flex:none}
.catalog-platform-stat-count { color: var(--t-1); font-size: 13px; font-weight: 900; line-height: 1; }
.catalog-platform-stat-label { color: color-mix(in srgb, var(--t-1) 76%, var(--t-2)); font-size: 10px; font-weight: 800; letter-spacing: .035em; line-height: 1.1; text-transform: uppercase; white-space: nowrap; }
.catalog-platform-stat.pf-pc { --platform-accent: #38b6c9; --platform-strength: 24% !important; }
.catalog-platform-stat.pf-ps1 { --platform-accent: #cbd5e1; }
.catalog-platform-stat.pf-ps2 { --platform-accent: #a5b4fc; }
.catalog-platform-stat.pf-ps3 { --platform-accent: #e2e8f0; }
.catalog-platform-stat.pf-ps4 { --platform-accent: #60a5fa; }
.catalog-platform-stat.pf-ps5 { --platform-accent: #7dd3fc; }
.catalog-platform-stat.pf-xbox { --platform-accent: #4ade80; }
.catalog-platform-stat.pf-x360 { --platform-accent: #a3e635; }
.catalog-platform-stat.pf-switch { --platform-accent: #f87171; }
.catalog-platform-stat.pf-psp { --platform-accent: #fb923c; }
.catalog-platform-stat.pf-nes { --platform-accent: #d4af37; }
.catalog-platform-stat.pf-other { --platform-accent: #94a3b8; }
@media (prefers-reduced-motion: reduce) {
  .catalog-platform-stat, .catalog-platform-stat-hardware, .catalog-platform-stat-machine::after { transition: none; }
  .catalog-platform-stat:hover, .catalog-platform-stat:focus-visible { transform: none; }
  .catalog-platform-stat:hover .catalog-platform-stat-hardware,
  .catalog-platform-stat:focus-visible .catalog-platform-stat-hardware { transform: translateY(2px); }
  .catalog-platform-stat:hover .catalog-platform-stat-machine::after,
  .catalog-platform-stat:focus-visible .catalog-platform-stat-machine::after { opacity: 1; transform: none; }
}

/* -- Filter toolbar -- */
.catalog-filter-section { padding: 20px 0 0; border-bottom: 1px solid var(--ink-border); }

  .catalog-search-form { width: 100%; padding: 0 0 20px; }
  .catalog-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ink-border);
  }

  /* Search */
  .catalog-search { position: relative; width: clamp(240px, 40%, 340px); flex-shrink: 0; }
  .catalog-search-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    font-size: 14px; color: var(--t-3); pointer-events: none;
  }
  .catalog-search-input {
    width: 100%; padding: 10.5px 16px 10.5px 44px;
    background: var(--ink-surface); border: 1px solid var(--ink-border);
    border-radius: var(--r-pill); font-size: 14px;
    font-family: var(--f-body); color: var(--t-1);
    transition: border-color .2s, box-shadow .2s, background .2s;
  }
  .catalog-search-input::placeholder { color: var(--t-3); font-weight: 500; }
  .catalog-search-input:focus {
    outline: none; border-color: rgba(13,110,253,.5);
    background: var(--ink-surface-2);
    box-shadow: 0 0 0 3px var(--c-blue-soft);
  }

  /* Select Group */
  .catalog-filters-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .catalog-sort-select {
    padding: 10.5px 38px 10.5px 18px;
    background: var(--ink-surface);
    border: 1px solid var(--ink-border);
    border-radius: var(--r-pill);
    font-size: 13px; font-weight: 600; font-family: var(--f-body);
    color: var(--t-2); cursor: pointer; outline: none;
    transition: border-color .2s, color .2s, background .2s;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
  }
  .catalog-sort-select:focus,
  .catalog-sort-select:hover {
    border-color: rgba(13,110,253,.4);
    background: var(--ink-surface-2);
    color: var(--t-1);
  }
  /* Падащият списък на select-а — в тъмната тема, не системното сиво */
  .catalog-sort-select option,
  .catalog-sort-select optgroup {
    background: var(--ink-surface-2, #21252e);
    color: var(--t-1, #f0f2f6);
  }
  .catalog-sort-select option:checked,
  .catalog-sort-select option:hover {
    background: rgba(13,110,253,.25);
    color: #fff;
  }
  .catalog-dir-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--ink-border);
    border-radius: var(--r-pill);
    background: var(--ink-surface);
    color: var(--t-3); font-size: 16px;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
    flex-shrink: 0;
  }
  .catalog-dir-btn:hover {
    border-color: rgba(13,110,253,.4);
    background: var(--ink-surface-2);
    color: var(--t-1);
  }
  
/* -- Grid section -- */
.catalog-grid-section { padding: 40px 0 64px; }

.catalog-grid .game-card { animation: fadeUp .4s ease both; }
.catalog-grid .col-12:nth-child(1) .game-card { animation-delay: 0s; }
.catalog-grid .col-12:nth-child(2) .game-card { animation-delay: .05s; }
.catalog-grid .col-12:nth-child(3) .game-card { animation-delay: .1s; }
.catalog-grid .col-12:nth-child(4) .game-card { animation-delay: .15s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* Card version tag */
.card-version {
  font-size: 11px;
  color: var(--t-3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-version i { font-size: 12px; }

/* Card empty cover fallback */
.card-cover--empty {
  width: 100%;
  height: 100%;
  background: var(--ink-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--t-3);
}

/* Extra badge variants */
.badge-dropped { background: rgba(255,61,110,.1);   border: 1px solid rgba(255,61,110,.25); color: #ff3d6e; }
.badge-community { background: rgba(255,165,0,.1);   border: 1px solid rgba(255,165,0,.25); color: #ff8c00; }

/* Game card link (wraps entire card) */
.game-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.game-card-link:hover { color: inherit; }

/* -- Pagination -- */
.catalog-pagination { margin-top: 48px; display: flex; justify-content: center; }
.catalog-pagination ul {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.catalog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--t-2);
  text-decoration: none;
  transition: all .2s;
}
.catalog-pagination .page-numbers:hover {
  background: rgba(255,255,255,.04);
  border-color: var(--ink-border-md);
  color: var(--t-1);
}
.catalog-pagination .page-numbers.current {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}

/* -- Empty state -- */
.catalog-empty {
  text-align: center;
  padding: 80px 20px;
}
.catalog-empty i {
  font-size: 3rem;
  color: var(--t-3);
  margin-bottom: 16px;
  display: block;
}
.catalog-empty h3 {
  font-family: var(--f-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--t-1);
  margin-bottom: 8px;
}
.catalog-empty p {
  font-size: 14px;
  color: var(--t-2);
}

/* -- Responsive -- */
@media (max-width: 768px) {
  .catalog-controls { flex-direction: column; align-items: stretch; gap: 12px; }
  .catalog-search { width: 100%; }
  .catalog-filters-group { flex-direction: column; align-items: stretch; }
  .catalog-sort-select { width: 100%; border-radius: var(--r-sm); }
  .catalog-stats-row { gap: 20px; }
}
@media (max-width: 576px) {
  .catalog-hero { padding: 32px 0 24px; }
}


/* ===============================================================
   SINGLE TRANSLATION – extra utilities
   =============================================================== */

/* Status pill variants */
.pill-green  { --pill-c: var(--c-green);  --pill-bg: var(--c-green-soft); --pill-border: rgba(0,255,136,.2); }
.pill-blue   { --pill-c: var(--c-blue);   --pill-bg: var(--c-blue-soft);  --pill-border: rgba(13,110,253,.2); }
.pill-yellow { --pill-c: var(--c-yellow); --pill-bg: var(--c-yellow-soft);--pill-border: rgba(255,214,10,.2); }
.pill-red    { --pill-c: var(--c-red);    --pill-bg: rgba(255,61,110,.1); --pill-border: rgba(255,61,110,.2); }
.pill-muted  { --pill-c: var(--t-3);     --pill-bg: rgba(139,146,165,.08);--pill-border: rgba(139,146,165,.15); }
.pill-purple { --pill-c: #a78bfa;        --pill-bg: rgba(167,139,250,.1); --pill-border: rgba(167,139,250,.25); }
.pill-done { --pill-c: #3ddc97; --pill-bg: rgba(61,220,151,.10); --pill-border: rgba(61,220,151,.25); }
.pill-wip { --pill-c: #f59e0b; --pill-bg: rgba(245,158,11,.10); --pill-border: rgba(245,158,11,.28); }
.pill-official { --pill-c: #3b82f6; --pill-bg: rgba(59,130,246,.10); --pill-border: rgba(59,130,246,.28); }
.pill-community { --pill-c: #a855f7; --pill-bg: rgba(168,85,247,.10); --pill-border: rgba(168,85,247,.28); }
.pill-dropped { --pill-c: #c0814e; --pill-bg: rgba(192,129,78,.10); --pill-border: rgba(192,129,78,.28); }

.status-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--pill-bg, var(--c-green-soft));
  border: 1px solid var(--pill-border, rgba(0,255,136,.2));
  color: var(--pill-c, var(--c-green));
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .75rem;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* Content prose inside card-ink */
.single-content { font-size: 14px; color: var(--t-2); line-height: 1.75; }
.single-content p { margin-bottom: .75rem; }
.single-content strong { color: var(--t-1); }
.single-content em { color: var(--t-2); }
.single-content a { color: var(--c-blue); text-decoration: underline; }
.single-content a:hover { color: #6ea8fe; }

/* Cover empty fallback */
.cover-img--empty {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--ink-surface-2);
  border-radius: var(--r-lg);
  border: 1px solid var(--ink-border-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animations */
.au-1 { animation: fadeUp .5s ease both; }
.au-2 { animation: fadeUp .5s .08s ease both; }
.au-3 { animation: fadeUp .5s .16s ease both; }
.au-4 { animation: fadeUp .5s .24s ease both; }


/* ===========================================================
   GENERIC BUTTONS
   =========================================================== */
.btn-blue {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1.1rem; background: var(--c-blue); color: #fff;
  border: none; border-radius: var(--r-sm);
  font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  transition: box-shadow .2s, transform .1s;
}
.btn-blue:hover { box-shadow: 0 0 28px var(--c-blue-glow), 0 6px 20px rgba(0,0,0,.35); transform: translateY(-1px); color: #fff; }

.btn-green {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1.1rem; background: var(--c-green); color: #000;
  border: none; border-radius: var(--r-sm);
  font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  transition: box-shadow .2s, transform .1s;
}
.btn-green:hover { box-shadow: 0 0 28px var(--c-green-glow), 0 6px 20px rgba(0,0,0,.35); transform: translateY(-1px); color: #000; }

.btn-outline {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem; background: transparent;
  border: 1px solid var(--ink-border-md); border-radius: var(--r-sm);
  color: var(--t-1); font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.05); border-color: var(--ink-border-lg); color: var(--t-1); }


/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { border-top: 1px solid var(--ink-border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-size: 13px; color: var(--t-4); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--t-4); transition: color .2s; }
.footer-links a:hover { color: var(--t-1); }


/* ===========================================================
   ANIMATIONS
   =========================================================== */
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes blink     { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes float     { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes fadeUp    { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

.au-1{animation:fadeUp .5s ease both}
.au-2{animation:fadeUp .5s .08s ease both}
.au-3{animation:fadeUp .5s .16s ease both}
.au-4{animation:fadeUp .5s .24s ease both}


/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 820px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: block; }
  .nav-inner { justify-content: flex-start; }
  .nav-logo {
    position: absolute; left: 50%; transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  main { padding-top: 84px; }
  .hero-section { padding: 0 10px; }

  .slider-wrapper { border-radius: 20px; }

  .slide { height: 230px; }
  .slide-content { padding: 16px 16px 18px; max-width: 100%; }
  .slide-badge { font-size: 9px; padding: 3px 9px; margin-bottom: 8px; }
  .slide-title { font-size: 16px; line-height: 1.3; max-width: 100%; }
  .slide-excerpt { display: none; }
  .btn-read-more { padding: 7px 14px; font-size: 12px; }

  /* Скриваме плаващия бутон върху снимката */
  .btn-all-news { display: none; }

  /* Линкът в контролната лента поема ролята */
  .slider-controls { padding: 9px 12px; gap: 8px; }
  .slider-btn { width: 24px; height: 24px; font-size: 12px; }
  .dot { width: 10px; }
  .dot.active { width: 16px; }
  .link-all-news { display: flex; font-size: 11px; }
}

@media (max-width: 576px) {
  .discord-cta { padding: 40px 28px; }
  .discord-right { width: 100%; }
}

@media (max-width: 480px) {
  .hero-section { padding: 0 6px; }
  .slide { height: 200px; }
  .slide-title { font-size: 15px; }
  .slider-controls { padding: 7px 10px; }
  .link-all-news { display: flex; font-size: 10px; }
}

@media (max-width: 991px) {
  .cover-wrap { width: 160px; min-width: 160px; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 575px) {
  .cover-wrap { width: 120px; min-width: 120px; }
  .game-title-single { font-size: 1.75rem; }
}


/* ===============================================================
   NEWS SINGLE PAGE  —  news/post.php
   =============================================================== */

.news-single-wrap {
  --news-hero-floor: #0a0c0f;
  padding-top: 65px;
}

/* == HERO BANNER == */
.news-hero {
  position: relative;
  height: clamp(500px, 75vh, 750px);
  overflow: hidden;
  background: var(--news-hero-floor);
  display: flex;
  align-items: flex-end;
}
.news-hero-bg {
  position: absolute;
  top: -6px; left: 0; right: 0;
  width: 100%; height: calc(100% + 12px);
  object-fit: cover;
  object-position: center 24%;
  filter: brightness(.78) contrast(1.04) saturate(.92);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 74%, transparent 100%);
  animation: news-hero-reveal .7s ease-out both;
  will-change: opacity;
}
.news-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8,10,13,.74) 0%, rgba(8,10,13,.32) 18%, rgba(8,10,13,.06) 42%, transparent 58%),
    linear-gradient(to right, rgba(15,17,21,.78) 0%, rgba(15,17,21,.38) 34%, rgba(15,17,21,.05) 62%, transparent 80%),
    linear-gradient(to bottom, rgba(10,11,13,.5) 0%, transparent 22%);
  z-index: 1;
}
.news-hero-overlay::after {
  content: '';
  position: absolute;
  top: -22%;
  right: -28%;
  width: 58%;
  height: 145%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(201,213,225,.11) 0%, rgba(201,213,225,.035) 30%, transparent 68%);
  mix-blend-mode: screen;
  opacity: .14;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  animation: news-hero-light-drift 16s ease-in-out infinite alternate;
}
@keyframes news-hero-reveal {
  from {
    opacity: .58;
  }
  to {
    opacity: 1;
  }
}
@keyframes news-hero-light-drift {
  from { transform: translate3d(5%, -2%, 0); opacity: .09; }
  to   { transform: translate3d(-12%, 3%, 0); opacity: .2; }
}
@media (prefers-reduced-motion: reduce) {
  .news-hero-bg,
  .news-hero-overlay::after,
  .slide.active .slide-bg-fill,
  .slide.active .slide-bg {
    animation: none;
  }
}
.news-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(60px, 10vh, 120px);
}
.news-eyebrow {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
}
.news-cat-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: 4px; /* По-агресивно малко заобляне */
  font-size: 11px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--c-green);
}
.news-cat-badge::before {
  content: ''; display: block;
  width: 6px; height: 6px;
  background: var(--c-green); border-radius: 50%;
  box-shadow: 0 0 10px var(--c-green);
}
.news-hero-date { font-size: 13px; color: rgba(255,255,255,0.45); font-weight: 600; }
.news-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 6.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.94;
  color: #fff;
  max-width: 980px;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}
.news-hero-excerpt {
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  color: rgba(255,255,255,0.65);
  max-width: 700px;
  line-height: 1.6;
  border-left: 3px solid var(--c-blue);
  padding-left: 24px;
}

/* == CENTERED ARTICLE COLUMN == */
.news-article-outer {
  padding: 56px 0 80px;
  background: linear-gradient(to bottom, var(--news-hero-floor) 0, var(--ink-bg) 190px);
}
.news-article-center {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -- Meta strip -- */
.news-meta-row {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink-border);
  margin-bottom: 36px;
  font-size: 12px; color: var(--t-3); font-weight: 500;
}
.news-meta-row span { display: flex; align-items: center; gap: 5px; }
.news-meta-row i { color: var(--c-blue); }

/* == PROSE TYPOGRAPHY == */
.news-prose {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--t-2);
}
/* First paragraph – slightly larger lead */
.news-prose > p:first-of-type {
  font-size: 17.5px;
  color: rgba(240,242,246,.85);
  line-height: 1.75;
}
.news-prose > p { margin-bottom: 1.5rem; }

/* Headings */
.news-prose h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: var(--t-1); font-weight: 700;
  letter-spacing: -0.05em; line-height: 1.1;
  margin: 3rem 0 .9rem;
  padding-left: 18px;
  border-left: 3px solid var(--c-blue);
}
.news-prose h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  color: var(--t-1); font-weight: 700;
  letter-spacing: -0.03em;
  margin: 2.2rem 0 .55rem;
}
.news-prose h4 {
  font-family: 'Inter', sans-serif;
  font-size: .95rem; font-weight: 700;
  color: var(--t-1); margin: 1.5rem 0 .4rem;
  text-transform: uppercase; letter-spacing: .06em;
}

/* Inline elements */
.news-prose a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; }
.news-prose a:hover { color: #6ea8fe; }
.news-prose strong, .news-prose b { color: var(--t-1); font-weight: 700; }
.news-prose em, .news-prose i { color: var(--t-1); font-style: italic; }

/* Lists */
.news-prose ul, .news-prose ol { padding-left: 1.6rem; margin-bottom: 1.5rem; }
.news-prose li { margin-bottom: .5rem; color: var(--t-2); }

/* Blockquote */
.news-prose blockquote {
  border-left: 3px solid var(--c-blue);
  padding: 1rem 1.2rem 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--c-blue-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: rgba(240,242,246,.8);
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
}
.news-prose blockquote p { margin: 0; }

/* Horizontal rule */
.news-prose hr {
  border: none;
  border-top: 1px solid var(--ink-border-md);
  margin: 2.5rem 0;
}

/* -- Images & galleries ------------------------
   Single image: full column width by default.
   Когато img има ЕКСПЛИЦИТЕН width атрибут (от resize
   в admin редактора) — уважаваме зададената ширина. */
.news-prose img {
  display: block;
  max-width: 100%; height: auto;
  border-radius: var(--r-lg);
  border: none;
  margin: 2rem auto;
}
.news-prose img:not([width]) {
  width: 100%;
}
/* Вградени видеа (YouTube/Vimeo iframe от редактора) */
.news-prose iframe {
  display: block;
  max-width: 100%;
  aspect-ratio: 16 / 9; height: auto;
  border: 0; border-radius: var(--r-lg);
  margin: 2rem auto;
}
.news-prose iframe:not([width]) {
  width: 100%;
}
/* Breakout image: spans wider than column
   Admin can add class="news-img-wide" on the img  */
.news-prose img.news-img-wide {
  width: calc(100% + 120px);
  margin-left: -60px;
  max-width: none;
}
/* Figure with caption */
.news-prose figure {
  margin: 2rem 0;
}
.news-prose figure img { margin: 0; }
.news-prose figcaption {
  text-align: center;
  font-size: 12px; color: var(--t-3);
  margin-top: 8px;
  letter-spacing: .03em;
}
/* Two-column image gallery using HTML tables in content */
.news-prose table {
  width: 100%; border-collapse: collapse;
  margin: 1.8rem 0;
}
.news-prose th, .news-prose td {
  padding: 10px 12px;
  border: none;
  font-size: 14px; color: var(--t-2);
  vertical-align: top;
}
.news-prose th { color: var(--t-1); font-weight: 700; background: var(--ink-surface-2); }

/* Code */
.news-prose code {
  background: var(--ink-surface-2);
  border: 1px solid var(--ink-border-md);
  border-radius: var(--r-xs);
  padding: .1rem .45rem;
  font-size: 13.5px; color: var(--c-green);
}
.news-prose pre {
  background: var(--ink-surface-2);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-md);
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  margin: 1.8rem 0;
}
.news-prose pre code {
  background: none; border: none;
  padding: 0; font-size: 13.5px;
}

/* == SHARE ROW == */
.news-share-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--ink-border);
}
.news-share-label {
  font-size: 11px; font-weight: 700; color: var(--t-3);
  letter-spacing: .12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.news-share-label i { color: var(--c-blue); }

.share-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--ink-border-md);
  color: var(--t-2); background: transparent;
  cursor: pointer; transition: all .15s;
  text-decoration: none; font-family: var(--f-body);
}
.share-btn:hover { background: rgba(255,255,255,.04); color: var(--t-1); border-color: var(--ink-border-lg); }

/* == RELATED POSTS SECTION == */
.news-related-section { padding: 52px 0 80px; border-top: 1px solid var(--ink-border); }

/* == RESPONSIVE == */
@media (max-width: 1024px) {
  .news-prose img.news-img-wide {
    width: 100%; margin-left: 0;
  }
}
@media (max-width: 768px) {
  .news-hero { height: 300px; }
  .news-hero-title { font-size: 1.65rem; }
  .news-hero-excerpt { display: none; }
  .news-hero-content { padding-bottom: 32px; }
  .news-article-outer { padding: 36px 0 56px; }
  .news-article-center { padding: 0 16px; }
  .news-prose h2 { padding-left: 14px; }
  .news-share-row { flex-direction: column; align-items: flex-start; }
}

/* == SCREENSHOT GALLERY SLIDER == */
.news-gallery-section {
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-border);
}
.news-gallery-header {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-heading); font-weight: 700; font-size: 1.1rem;
  color: var(--t-1); margin-bottom: 16px;
}
.news-gallery-header i { color: var(--c-blue); font-size: 1.2rem; }
.news-gallery-count {
  background: var(--c-blue-soft);
  color: var(--c-blue);
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid rgba(13,110,253,.25);
}
.news-gallery-slider {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
}
.gallery-track { position: relative; }
.gallery-slide {
  display: none;
  animation: galleryFade .4s ease;
}
.gallery-slide.active { display: block; }
@keyframes galleryFade { from { opacity: 0; } to { opacity: 1; } }
.gallery-slide img {
  width: 100%; height: auto;
  display: block;
  max-height: 600px;
  object-fit: contain;
  background: #0d1117;
}
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: rgba(255,255,255,.85);
  font-size: 13px; font-weight: 500;
}
/* Arrows */
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%; color: #fff;
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; z-index: 2;
}
.gallery-arrow:hover { background: rgba(13,110,253,.6); border-color: rgba(13,110,253,.4); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
/* Dots */
.gallery-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 12px 0;
  background: var(--ink-surface);
}
.gallery-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--t-3); border: none; cursor: pointer;
  transition: all .2s; padding: 0;
}
.gallery-dot.active { background: var(--c-blue); transform: scale(1.3); }
.gallery-dot:hover { background: var(--t-2); }

@media (max-width: 768px) {
  .gallery-slide img { max-height: 300px; }
  .gallery-arrow { width: 36px; height: 36px; font-size: 14px; }
  .gallery-prev { left: 6px; }
  .gallery-next { right: 6px; }
}

/* == NEWS GALLERY SLIDER v2 — smooth track + thumbs + lightbox == */
.ng-slider {
  background: transparent;
  border: none;
}
.ng-viewport {
  position: relative;
  overflow: hidden;
  background: #0d1117;
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  outline: none;
}
.ng-viewport:focus-visible {
  box-shadow: 0 0 0 2px rgba(13,110,253,.55) inset;
}
.ng-track {
  display: flex;
  transition: transform .6s cubic-bezier(.22,.8,.28,1);
  will-change: transform;
}
.ng-slide {
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
  position: relative;
  user-select: none;
}
.ng-slide img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  background: #0d1117;
  display: block;
  cursor: zoom-in;
}
.ng-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 20px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  color: rgba(255,255,255,.88);
  font-size: 13px; font-weight: 500;
  pointer-events: none;
}
.ng-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%; color: #fff;
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, transform .2s;
  z-index: 2;
}
.ng-arrow:hover { background: rgba(13,110,253,.65); border-color: rgba(13,110,253,.45); transform: translateY(-50%) scale(1.05); }
.ng-prev { left: 12px; }
.ng-next { right: 12px; }
.ng-counter {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.ng-progress {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: 3px; background: rgba(255,255,255,.12);
}
.ng-progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: left center;
  background: var(--c-blue);
  animation: ngBar 5.5s linear forwards;
}
@keyframes ngBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ng-thumbs {
  display: flex; gap: 8px;
  justify-content: safe center;
  padding: 12px 4px 2px;
  background: transparent;
  border: none;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ng-thumb {
  flex: 0 0 96px;
  width: 96px; height: 60px;
  border-radius: 10px; overflow: hidden;
  border: 2px solid transparent;
  opacity: .55; padding: 0; background: none; cursor: pointer;
  transition: opacity .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.ng-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ng-thumb:hover { opacity: .9; transform: translateY(-1px); }
.ng-thumb.is-active {
  border-color: var(--c-blue); opacity: 1;
  box-shadow: 0 0 0 1px var(--c-blue), 0 4px 14px rgba(13,110,253,.35);
}
.ng-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(5,8,14,.93);
  display: flex; align-items: center; justify-content: center;
  padding: 4vmin;
}
.ng-lightbox[hidden] { display: none !important; }
.ng-lightbox img {
  max-width: min(1100px, 92vw); max-height: 82vh;
  border-radius: 12px; object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,.6);
}
.ng-lb-close {
  position: absolute; top: 18px; right: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 17px; cursor: pointer;
}
.ng-lb-close:hover { background: rgba(255,255,255,.16); }
.ng-lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 20px; cursor: pointer;
}
.ng-lb-arrow:hover { background: rgba(13,110,253,.55); }
.ng-lb-prev { left: 18px; }
.ng-lb-next { right: 18px; }
.ng-lb-cap {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: 13px; margin: 0;
  max-width: 90vw; text-align: center;
}
@media (max-width: 768px) {
  .ng-slide img { max-height: 320px; }
  .ng-arrow { width: 36px; height: 36px; font-size: 14px; }
  .ng-prev { left: 8px; }
  .ng-next { right: 8px; }
  .ng-thumb { flex-basis: 76px; width: 76px; height: 50px; }
  .ng-lb-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ng-track { transition: none; }
  .ng-progress span { animation: none; }
}

.news-cover-wrap { aspect-ratio: 16/9; }

/* == RELATED NEWS relevance badge == */
.news-rel-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--t-2); background: var(--ink-surface-2);
  border: 1px solid var(--ink-border);
  padding: 2px 8px; border-radius: 999px;
  white-space: nowrap;
}
.news-rel-badge i { font-size: 11px; }
.news-rel-badge--game {
  color: var(--c-blue); border-color: rgba(13,110,253,.35);
  background: rgba(13,110,253,.1);
}




.card-cover-wrap.news-cover-wrap { aspect-ratio: 16/9 !important; height: auto !important; }


.news-card { height: auto !important; }


/* ===========================================================
   VIDEO SYSTEM
   =========================================================== */

/* Responsive 16:9 embed container */
.video-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--ink-border);
}
.video-player-wrap iframe,
.video-player-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Video card link wrapper */
.vid-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.vid-card-link:hover .card-cover {
  transform: scale(1.05);
}
.vid-card-link:hover .vid-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Video card */
.vid-card {
  transition: border-color .2s, box-shadow .2s;
}
.vid-card-link:hover .vid-card {
  border-color: rgba(13,110,253,.28);
  box-shadow: 0 0 24px rgba(13,110,253,.08);
}

/* Category accent for video cards — left strip + card border tint + colored hover */
.vid-card--cat-green  { border-left: 4px solid var(--c-green) !important; }
.vid-card--cat-yellow { border-left: 4px solid var(--c-yellow) !important; }
.vid-card--cat-red    { border-left: 4px solid var(--c-red) !important; }
.vid-card--cat-blue   { border-left: 4px solid var(--c-blue) !important; }
.vid-card--cat-muted  { border-left: 4px solid #555d70 !important; }

.vid-card-link:hover .vid-card--cat-green  { border-color: rgba(0,255,136,.35) !important; box-shadow: 0 0 24px rgba(0,255,136,.08); }
.vid-card-link:hover .vid-card--cat-yellow { border-color: rgba(255,214,10,.35) !important; box-shadow: 0 0 24px rgba(255,214,10,.08); }
.vid-card-link:hover .vid-card--cat-red    { border-color: rgba(255,61,110,.35) !important; box-shadow: 0 0 24px rgba(255,61,110,.08); }
.vid-card-link:hover .vid-card--cat-blue   { border-color: rgba(13,110,253,.35) !important; box-shadow: 0 0 24px rgba(13,110,253,.08); }
.vid-card-link:hover .vid-card--cat-muted  { border-color: rgba(139,146,165,.35) !important; box-shadow: 0 0 24px rgba(139,146,165,.06); }

/* Fix hover border-radius flicker on card cover images */
.card-cover-wrap { border-radius: inherit; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.card-cover { -webkit-backface-visibility: hidden; backface-visibility: hidden; will-change: transform; }

/* Play icon overlay */
.vid-play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.85);
  width: 52px; height: 52px;
  background: rgba(255,0,0,.88);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  z-index: 3;
  pointer-events: none;
}
.vid-play-icon i {
  font-size: 1.4rem;
  color: #fff;
  margin-left: 3px;
}

/* Duration badge */
.vid-duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.82);
  color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  z-index: 3;
  letter-spacing: .03em;
}

/* Platform icon on card */
.vid-platform {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 3;
  font-size: 16px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}

/* Category badge */
.vid-cat-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.vid-cat-badge.green        { background: var(--c-green-soft); color: var(--c-green); border: 1px solid rgba(0,255,136,.2); }
.vid-cat-badge.yellow       { background: var(--c-yellow-soft); color: var(--c-yellow); border: 1px solid rgba(255,214,10,.2); }
.vid-cat-badge.red          { background: var(--c-red-soft); color: var(--c-red); border: 1px solid rgba(255,61,110,.2); }
.vid-cat-badge.blue         { background: var(--c-blue-soft); color: var(--c-blue); border: 1px solid rgba(13,110,253,.25); }
.vid-cat-badge.muted        { background: rgba(139,146,165,.1); color: var(--t-3); border: 1px solid rgba(139,146,165,.15); }

/* Filter pills */
.vid-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
  background: var(--ink-surface);
  border: 1px solid var(--ink-border-md);
  color: var(--t-3);
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.vid-pill:hover { color: var(--t-1); border-color: var(--ink-border-lg); }
.vid-pill.active {
  background: var(--c-blue-soft);
  border-color: rgba(13,110,253,.3);
  color: var(--c-blue);
}
.vid-pill small { opacity: .6; font-size: 10px; }

/* Pagination */
.vid-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--ink-surface);
  border: 1px solid var(--ink-border-md);
  color: var(--t-3);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.vid-page-btn:hover { color: var(--t-1); border-color: var(--c-blue); }
.vid-page-btn.active {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
  box-shadow: var(--c-blue-shadow);
}

/* Related videos sidebar */
.vid-related-card {
  display: flex; gap: 12px;
  text-decoration: none; color: inherit;
  padding: 8px;
  border-radius: var(--r-sm);
  transition: background .2s;
}
.vid-related-card:hover { background: var(--ink-surface); }
.vid-related-thumb {
  width: 140px; min-width: 140px;
  aspect-ratio: 16/9;
  border-radius: var(--r-sm);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.vid-related-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.vid-related-info {
  display: flex; flex-direction: column;
  justify-content: center;
  min-width: 0;
}

@media (max-width: 991px) {
  .vid-related-thumb { width: 120px; min-width: 120px; }
}
@media (max-width: 575px) {
  .vid-play-icon { opacity: .7; transform: translate(-50%, -50%) scale(.7); }
}

/* ===========================================================
   VIDEO SYSTEM – Phase 2: Playlists, Authors, Live, Stats
   =========================================================== */

/* ── Community Stats Bar ── */
.vid-stats-bar {
  display: flex;
  gap: 24px;
  padding: 16px 24px;
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.vid-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}
.vid-stat-item i { font-size: 20px; }
.vid-stat-item strong {
  font-family: var(--f-heading);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}
.vid-stat-item span {
  font-size: 11px;
  color: var(--t-3);
  letter-spacing: .04em;
}

/* ── Video card body: title left, avatar right ── */
.vid-card-body {
  display: flex;
  gap: 10px;
  padding: 10px 12px 12px;
  flex-grow: 1;
}
.vid-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  justify-content: center;
}
.vid-card-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 48px;
}
.vid-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink-border-md);
  background: var(--ink-surface);
  display: block;
  flex-shrink: 0;
}
.vid-card-avatar--empty {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-surface-2);
  color: var(--t-4);
  font-size: 19px;
  border: 2px solid var(--ink-border-md);
  flex-shrink: 0;
}
.vid-card-author-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--t-3);
  text-align: center;
  line-height: 1.2;
  max-width: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vid-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .95rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--t-1);
  margin: 0;
}
.vid-card-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 6px;
  padding-top: 2px;
}
.vid-card-author-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--t-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vid-card-game {
  font-size: 10px;
  color: var(--t-3);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.vid-card-meta-divider {
  color: var(--t-4);
  font-size: 9px;
}
/* ── Author avatar badge on video card cover (legacy, no longer used) ── */
.vid-author-badge-cover {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0,0,0,.6);
  background: var(--ink-surface);
  display: none;
}
.vid-author-badge-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Author bar on watch page ── */
.vid-author-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--ink-border);
  border-bottom: 1px solid var(--ink-border);
}
.vid-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink-border-md);
  flex-shrink: 0;
}
.vid-author-avatar--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-surface-2);
  color: var(--t-3);
  font-size: 18px;
}
.vid-related-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-bottom: auto;
  margin-top: 2px;
}
.vid-related-info {
  display: flex;
  gap: 8px;
  min-width: 0;
}

/* ── Episode navigation buttons ── */
.ep-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  background: var(--ink-surface);
  border: 1px solid var(--ink-border-md);
  color: var(--t-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.ep-nav-btn:hover {
  color: var(--c-blue);
  border-color: rgba(13,110,253,.3);
  background: var(--c-blue-soft);
}

/* ── Playlist Sidebar ── */
.playlist-sidebar {
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: sticky;
  top: 90px;
}
.playlist-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ink-border);
  background: var(--ink-surface-2);
}
.playlist-sidebar-list {
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-border-md) transparent;
}
.playlist-sidebar-list::-webkit-scrollbar { width: 6px; }
.playlist-sidebar-list::-webkit-scrollbar-thumb { background: var(--ink-border-md); border-radius: 3px; }

.playlist-ep {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
  border-left: 3px solid transparent;
}
.playlist-ep:hover {
  background: rgba(255,255,255,.03);
}
.playlist-ep--active {
  background: var(--c-blue-soft);
  border-left-color: var(--c-blue);
}
.playlist-ep--active .playlist-ep-title {
  color: var(--c-blue);
  font-weight: 700;
}
.playlist-ep-num {
  font-size: 11px;
  color: var(--t-3);
  min-width: 20px;
  text-align: center;
  font-weight: 700;
}
.playlist-ep-thumb {
  width: 72px;
  min-width: 72px;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.playlist-ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.playlist-ep-playing {
  position: absolute;
  inset: 0;
  background: rgba(13,110,253,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}
.playlist-ep-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.playlist-ep-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Live Streams Section (on main videos page) ── */
.vid-live-section {
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 2rem;
}
.live-pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--c-red);
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,61,110,.5); }
  50% { opacity: .7; box-shadow: 0 0 0 6px rgba(255,61,110,0); }
}

/* ── Live Mini Cards (videos page sidebar) ── */
.live-mini-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  height: 100%;
}
.live-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.live-mini-card--live {
  border-color: rgba(255,61,110,.3);
}
.live-mini-card--live:hover {
  border-color: rgba(255,61,110,.5);
  box-shadow: 0 8px 32px rgba(255,61,110,.12);
}
.live-mini-card--offline {
  opacity: .8;
}
.live-mini-card--offline:hover {
  border-color: var(--ink-border-md);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  opacity: 1;
}

/* Cover image (when live) — only this part clips overflow */
.live-mini-cover {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0a0a0f;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.live-mini-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.live-mini-card:hover .live-mini-cover-img {
  transform: scale(1.05);
}
.live-mini-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,17,21,.95) 0%, rgba(15,17,21,.2) 60%, transparent 100%);
}
.live-mini-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: rgba(255,61,110,.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.live-mini-viewers {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

/* Body */
.live-mini-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.live-mini-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-mini-header strong {
  font-size: 13px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-mini-header span {
  font-size: 10px;
  color: var(--t-3);
  display: flex;
  align-items: center;
  gap: 3px;
}
.live-mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-red);
  flex-shrink: 0;
}
.live-mini-avatar--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-surface-2);
  color: var(--t-3);
  border-color: var(--ink-border-md);
}
.live-mini-game {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(0,255,136,.08);
  color: var(--c-green);
  border-radius: var(--r-pill);
  margin-top: 8px;
  width: fit-content;
}
.live-mini-avatar--offline {
  border-color: var(--ink-border-md);
}
.live-mini-title {
  font-size: 11px;
  color: var(--t-3);
  margin: 6px 0 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Live Page: Pulse badge ── */
.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,61,110,.12);
  border: 1px solid rgba(255,61,110,.3);
  color: var(--c-red);
  font-size: 12px;
  font-weight: 700;
  animation: livePulse 1.5s infinite;
}

/* ── Live Page: Stats bar ── */
.live-stats-bar {
  display: flex;
  gap: 32px;
  padding: 16px 24px;
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  margin-bottom: 2rem;
}
.live-stat {
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-stat i { font-size: 20px; }
.live-stat strong {
  font-family: var(--f-heading);
  font-size: 1.2rem;
  font-weight: 800;
}
.live-stat span {
  font-size: 11px;
  color: var(--t-3);
}

/* ── Live Page: Streamer cards ── */
.streamer-card {
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.streamer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.streamer-card--live {
  border-color: rgba(255,61,110,.3);
}
.streamer-card--live:hover {
  border-color: rgba(255,61,110,.5);
  box-shadow: 0 12px 40px rgba(255,61,110,.15);
}

/* Cover image (when live) */
.streamer-cover {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0a0a0f;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.streamer-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.streamer-card:hover .streamer-cover-img {
  transform: scale(1.04);
}
.streamer-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,17,21,.95) 0%, rgba(15,17,21,.2) 60%, transparent 100%);
}
.streamer-live-label {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,61,110,.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.streamer-viewers-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-xs);
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.streamer-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
}
.streamer-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.streamer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink-border-md);
}
.streamer-card--live .streamer-avatar {
  border-color: var(--c-red);
}
.streamer-avatar--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-surface-2);
  color: var(--t-3);
  font-size: 18px;
}
.streamer-live-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: var(--c-red);
  border-radius: 50%;
  border: 2px solid var(--ink-surface);
  animation: livePulse 1.5s infinite;
}
.streamer-info {
  flex: 1;
  min-width: 0;
}
.streamer-info strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-viewers-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,61,110,.1);
  color: var(--c-red);
  font-size: 11px;
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
}
.streamer-card-body {
  padding: 0 16px 14px;
  flex: 1;
}
.streamer-stream-title {
  font-size: 12px;
  color: var(--t-2);
  margin: 0 0 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.streamer-game-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(0,255,136,.08);
  color: var(--c-green);
  border-radius: var(--r-pill);
}
.streamer-watch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--c-red), #ff6b8a);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: opacity .2s;
}
.streamer-watch-btn:hover { opacity: .9; color: #fff; }
.streamer-channel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--ink-surface-2);
  color: var(--t-2);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  border-top: 1px solid var(--ink-border);
  transition: color .2s;
}
.streamer-channel-btn:hover { color: var(--t-1); }

@media (max-width: 767px) {
  .vid-stats-bar { gap: 16px; padding: 12px 16px; }
  .vid-stat-item strong { font-size: 1rem; }
  .live-stats-bar { gap: 16px; padding: 12px 16px; flex-wrap: wrap; }
  .playlist-sidebar { position: static; max-height: none; }
  .playlist-sidebar-list { max-height: 300px; }
}


/* ===========================================================
   DONATE PAGE
   =========================================================== */

/* ── Hero ── */
.donate-hero {
  position: relative; overflow: hidden;
  padding: 40px 0 48px; text-align: center;
  background: linear-gradient(160deg, #0f1115 0%, #1a0a2e 40%, #2a0845 70%, #0f1115 100%);
}
.donate-hero::before {
  content: ''; position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,61,110,.12) 0%, transparent 70%);
  top: -180px; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.donate-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px;
  background: rgba(255,61,110,.15); border: 1px solid rgba(255,61,110,.35);
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #ff8fa8; margin-bottom: 18px;
}
.donate-hero-title {
  font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: 14px;
}
.donate-hero-desc {
  font-size: 16px; color: var(--t-2); max-width: 520px; margin: 0 auto; line-height: 1.65;
}

/* ── Shared section spacing ── */
.donate-section { padding: 64px 0; }

/* ── Section 1: Why ── */
.donate-why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; margin-top: 8px;
}
.donate-why-card {
  background: var(--ink-surface); border: 1px solid var(--ink-border);
  border-radius: var(--r-md); padding: 28px 24px;
  transition: border-color .25s, transform .2s;
}
.donate-why-card:hover {
  border-color: var(--ink-border-lg); transform: translateY(-3px);
}
.dwc-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--c-blue-soft); color: var(--c-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.donate-why-card h3 {
  font-size: 16px; font-weight: 700; color: var(--t-1); margin-bottom: 8px;
}
.donate-why-card p {
  font-size: 13px; color: var(--t-2); line-height: 1.65; margin: 0;
}

/* ── Section 2: Methods — Revolut (главна плоча) + Ko-fi + Buy Me a Coffee ── */
.donate-methods-section { background: var(--ink-surface); }
.dm-sub {
  font-size: 14px; color: var(--t-2); line-height: 1.65;
  max-width: 560px; margin-top: 10px;
}
.mth-grid {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: 22px; margin-top: 8px; align-items: stretch;
}
.mth-grid--no-main { grid-template-columns: repeat(auto-fit, minmax(280px, 460px)); justify-content: center; }
.mth-grid--no-main .mth-side { flex-direction: row; flex-wrap: wrap; }

/* Main — Revolut */
.mth-main {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 22px;
  padding: 34px 32px;
  background: var(--ink-surface-2); border: 1px solid var(--ink-border-md);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color .25s, box-shadow .25s;
}
.mth-main:hover {
  border-color: var(--ink-border-lg);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.6);
}
.mth-main-glow {
  position: absolute; width: 340px; height: 340px; top: -160px; right: -100px;
  background: radial-gradient(circle, var(--c-blue-soft) 0%, transparent 70%);
  pointer-events: none;
}
.mth-flag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: var(--r-pill);
  background: var(--c-blue-soft);
  border: 1px solid color-mix(in srgb, var(--c-blue) 30%, transparent);
  color: var(--c-blue);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.mth-main-head { display: flex; align-items: flex-start; gap: 18px; position: relative; }
.mth-logo {
  flex-shrink: 0;
  width: 64px; height: 64px; border-radius: 16px;
  background: #f5f5f7; color: #0d0d0d;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-heading); font-weight: 900; font-size: 34px; line-height: 1;
}
.mth-main-title h3 { font-size: 26px; font-weight: 800; color: var(--t-1); margin: 0 0 6px; }
.mth-main-desc { font-size: 13px; color: var(--t-2); line-height: 1.65; margin: 0; max-width: 420px; }
.mth-main-foot {
  margin-top: auto; position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.mth-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--r-sm);
  background: var(--c-blue); color: #fff;
  font-size: 14px; font-weight: 700;
  transition: box-shadow .25s;
}
.mth-main:hover .mth-cta { box-shadow: 0 0 22px var(--c-blue-glow); }
.mth-host {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 12px;
  color: var(--t-3); letter-spacing: .04em;
}

/* Side — Ko-fi / Buy Me a Coffee */
.mth-side { display: flex; flex-direction: column; gap: 16px; }
.mth-alt {
  flex: 1;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  background: var(--ink-surface); border: 1px solid var(--ink-border);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color .25s;
}
.mth-alt:hover { border-color: var(--ink-border-lg); }
.mth-alt--kofi:hover { border-color: rgba(255,95,64,.35); }
.mth-alt--bmc:hover  { border-color: rgba(255,221,0,.30); }
.mth-alt-icon {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 23px;
}
.mth-alt--kofi .mth-alt-icon { background: rgba(255,95,64,.12); color: #ff5f40; }
.mth-alt--bmc  .mth-alt-icon { background: rgba(255,221,0,.10); color: #ffdd00; }
.mth-alt-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mth-alt-name { font-size: 16px; font-weight: 700; color: var(--t-1); }
.mth-alt-desc { font-size: 12px; color: var(--t-2); line-height: 1.55; }
.mth-alt-cta {
  flex-shrink: 0; margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--t-3);
  transition: color .2s;
}
.mth-alt:hover .mth-alt-cta { color: var(--t-1); }
.mth-secure {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--r-sm);
  border: 1px dashed var(--ink-border);
  font-size: 11px; color: var(--t-3); line-height: 1.5;
}
.mth-secure i { color: var(--c-green); font-size: 14px; flex-shrink: 0; }

@media (max-width: 900px) {
  .mth-grid,
  .mth-grid--no-main { grid-template-columns: 1fr; }
  .mth-grid--no-main .mth-side { flex-direction: column; }
}

/* ── Section 3: FAQ (плавен JS accordion — бутони, не <details>) ── */
.donate-faq-list {
  max-width: 720px; margin: 8px auto 0;
  display: flex; flex-direction: column; gap: 8px;
}
.donate-faq-item {
  background: var(--ink-surface); border: 1px solid var(--ink-border);
  border-radius: var(--r-sm);
  transition: border-color .25s;
}
.donate-faq-item.open { border-color: var(--ink-border-lg); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 18px 22px; cursor: pointer;
  background: none; border: none; text-align: left;
  font-family: inherit;
  font-size: 15px; font-weight: 600; color: var(--t-1);
  transition: background .2s;
}
.faq-q:hover { background: rgba(255,255,255,.02); }
.faq-q:focus-visible { outline: 2px solid var(--c-blue); outline-offset: -2px; border-radius: var(--r-sm); }
.faq-chevron {
  flex-shrink: 0; margin-left: 16px;
  font-size: 12px; color: var(--t-3);
  transition: transform .35s var(--ease-out);
}
.donate-faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 22px 18px;
  font-size: 14px; color: var(--t-2); line-height: 1.7;
}
.faq-answer p { margin: 0; }

/* Плавен accordion: съдържанието остава в DOM, а видимата височина се
   анимира 0fr ↔ 1fr — без мигане, без нативното подскачане на <details>. */
.faq-acc {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease-out);
}
.donate-faq-item.open .faq-acc { grid-template-rows: 1fr; }
.faq-acc-inner { overflow: hidden; min-height: 0; }

/* ── Section: Алея на славата (поддръжници) ── */
.alley-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
}
.alley-label {
  background: rgba(255,214,10,.12) !important;
  border-color: rgba(255,214,10,.3) !important;
  color: #ffd60a !important;
}
.alley-sub {
  font-size: 14px; color: var(--t-2); line-height: 1.65;
  max-width: 560px; margin-top: 10px;
}
.alley-count {
  text-align: center; padding: 14px 26px;
  border: 1px solid var(--ink-border); border-radius: var(--r-md);
  background: var(--ink-surface);
}
.alley-count-num {
  display: block;
  font-family: var(--f-heading); font-weight: 900; font-size: 34px; line-height: 1;
  color: var(--c-green);
}
.alley-count-label {
  display: block; margin-top: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--t-3);
}

/* Featured медальони — най-значимите приноси (без номерирана класация) */
.alley-featured {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.alley-medal {
  position: relative; overflow: hidden;
  background: var(--ink-surface); border: 1px solid var(--ink-border);
  border-radius: var(--r-lg); padding: 30px 24px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: border-color .25s;
}
.alley-medal:hover { border-color: var(--ink-border-lg); }
.am-tier {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.alley-medal--honored   .am-tier { background: rgba(255,214,10,.12); color: #ffd60a; border: 1px solid rgba(255,214,10,.3); }
.alley-medal--patron    .am-tier { background: var(--c-blue-soft); color: var(--c-blue); border: 1px solid color-mix(in srgb, var(--c-blue) 28%, transparent); }
.alley-medal--friend    .am-tier { background: var(--c-green-soft); color: var(--c-green); border: 1px solid color-mix(in srgb, var(--c-green) 28%, transparent); }
.alley-medal--supporter .am-tier { background: rgba(139,146,165,.1); color: var(--t-3); border: 1px solid rgba(139,146,165,.25); }
.alley-medal--honored   { border-color: rgba(255,214,10,.30); }
.am-avatar {
  width: 74px; height: 74px; border-radius: 50%; margin-top: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 27px; font-weight: 800; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--c-blue), #7c3aed);
}
.alley-medal--honored .am-avatar {
  background: linear-gradient(135deg, #b8860b, #ffd700);
  box-shadow: 0 0 16px rgba(255,215,0,.35);
}
.am-name { font-size: 16px; font-weight: 700; color: var(--t-1); margin: 12px 0 0; }
.am-total {
  font-family: var(--f-heading); font-weight: 800; font-size: 19px; letter-spacing: -.02em;
  color: var(--c-green); margin-top: 10px;
}
.am-total span {
  display: block; margin-top: 2px;
  font-family: var(--f-body); font-size: 9px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--t-3);
}
.am-msg { font-size: 11px; color: var(--t-3); font-style: italic; line-height: 1.5; margin: 10px 0 0; }
.am-since {
  width: 100%; margin-top: auto; padding-top: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 10px; color: var(--t-4);
}
.am-since i { font-size: 11px; }

/* Останалите поддръжници — компактни плочки */
.alley-rest-sep {
  display: flex; align-items: center; justify-content: center;
  padding: 36px 0 22px; color: var(--t-3);
}
.alley-rest-sep span {
  display: inline-flex; padding: 5px 18px;
  border: 1px solid var(--ink-border); border-radius: var(--r-pill);
  background: var(--ink-surface);
}
.alley-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
}
.alley-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--ink-surface); border: 1px solid var(--ink-border);
  border-radius: var(--r-md);
  transition: border-color .2s;
}
.alley-chip:hover { border-color: var(--ink-border-lg); }
.ac-avatar {
  flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--c-blue), #7c3aed);
}
.alley-chip--honored .ac-avatar { background: linear-gradient(135deg, #b8860b, #ffd700); }
.ac-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ac-name {
  font-size: 13px; font-weight: 700; color: var(--t-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ac-meta { font-size: 10px; color: var(--t-3); }
.ac-msg {
  font-size: 10px; color: var(--t-4); font-style: italic;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ac-total {
  flex-shrink: 0;
  font-family: var(--f-heading); font-weight: 700; font-size: 13px;
  color: var(--c-green);
}

/* „Покажи още“ */
.alley-more { display: flex; justify-content: center; margin-top: 26px; }
.alley-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px;
  border: 1px solid var(--ink-border-md); border-radius: var(--r-pill);
  background: var(--ink-surface);
  color: var(--t-2); font-size: 13px; font-weight: 600; text-decoration: none;
  transition: color .2s, border-color .2s;
}
.alley-more-btn:hover { color: var(--t-1); border-color: var(--ink-border-lg); }
.alley-more-btn i { font-size: 11px; transition: transform .25s; }
.alley-more-btn:hover i { transform: translateY(2px); }
.alley-more-count { color: var(--t-3); font-weight: 500; }

/* Бележка за поверителност */
.alley-note {
  display: flex; align-items: flex-start; justify-content: center; gap: 8px;
  max-width: 640px; margin: 30px auto 0; text-align: left;
  font-size: 11.5px; color: var(--t-3); line-height: 1.6;
}
.alley-note i { color: var(--c-green); font-size: 14px; flex-shrink: 0; margin-top: 1px; }

@media (max-width: 767px) {
  .alley-head { flex-direction: column; align-items: flex-start; }
  .alley-count { align-self: flex-end; }
}

/* ── Homepage Donate Banner ── */
.donate-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a0a2e 0%, #2a0845 50%, #1a0a2e 100%);
  border: 1px solid rgba(255,61,110,.2);
  border-radius: var(--r-lg); padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.donate-banner::before {
  content: ''; position: absolute; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,61,110,.1) 0%, transparent 70%);
  top: -100px; right: -60px; pointer-events: none;
}
.donate-banner-left { position: relative; z-index: 1; }
.donate-banner-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; margin-bottom: 12px;
  background: rgba(255,61,110,.15); border: 1px solid rgba(255,61,110,.3);
  border-radius: var(--r-pill);
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #ff8fa8;
}
.donate-banner-badge .bi-heart-pulse-fill {
  animation: pulse-heart 1.5s ease-in-out infinite;
}
@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  50%     { transform: scale(1.2); }
}
.donate-banner h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem); color: #fff; margin-bottom: 6px;
}
.donate-banner p {
  font-size: 13px; color: rgba(255,255,255,.5); margin: 0; max-width: 400px;
}
.donate-banner-right { position: relative; z-index: 1; }
.btn-donate {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 30px; border: none; border-radius: var(--r-sm);
  background: linear-gradient(135deg, #ff3d6e, #ff6b6b);
  color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 0 20px rgba(255,61,110,.4), 0 0 50px rgba(255,61,110,.15);
  transition: transform .15s, box-shadow .25s;
}
.btn-donate:hover {
  transform: translateY(-2px); color: #fff;
  box-shadow: 0 0 32px rgba(255,61,110,.7), 0 0 70px rgba(255,61,110,.3);
}

@media (max-width: 767px) {
  .donate-hero { padding: 32px 0 28px; }
  .donate-why-grid { grid-template-columns: 1fr; }
  .donate-banner { padding: 24px 20px; flex-direction: column; text-align: center; }
  .donate-banner p { max-width: 100%; }
}


/* ===========================================================
   HOMEPAGE BANNER — PULSE EFFECTS
   =========================================================== */

/* Sparks floating in background */
.donate-banner { position: relative; overflow: hidden; }
.donate-banner-sparks { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.spark {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-red); opacity: 0;
  animation: spark-float 4s ease-in-out infinite;
}
.spark.s1 { left: 10%; top: 20%; animation-delay: 0s;    animation-duration: 3.8s; width:4px; height:4px; background: #ff8fa8; }
.spark.s2 { left: 20%; top: 70%; animation-delay: .6s;   animation-duration: 4.5s; width:5px; height:5px; }
.spark.s3 { left: 75%; top: 25%; animation-delay: 1.2s;  animation-duration: 3.5s; width:4px; height:4px; background: #ffb3c6; }
.spark.s4 { left: 85%; top: 65%; animation-delay: .3s;   animation-duration: 5s;   width:3px; height:3px; }
.spark.s5 { left: 50%; top: 10%; animation-delay: 1.8s;  animation-duration: 4.2s; width:5px; height:5px; background: #ff8fa8; }
.spark.s6 { left: 60%; top: 80%; animation-delay: 2.4s;  animation-duration: 3.2s; width:4px; height:4px; }
@keyframes spark-float {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  20%  { opacity: .7; }
  80%  { opacity: .5; }
  100% { opacity: 0; transform: translateY(-30px) scale(.5); }
}

/* Keep the text layered above sparks */
.donate-banner-left,
.donate-banner-right { position: relative; z-index: 1; }

/* Pulse-ring wrapper */
.btn-donate-wrap {
  position: relative; display: inline-flex;
  align-items: center; justify-content: center;
}
.donate-pulse-ring {
  position: absolute; border-radius: var(--r-sm);
  border: 2px solid rgba(255,61,110,.6);
  pointer-events: none;
  animation: ring-pulse 2.4s ease-out infinite;
}
.donate-pulse-ring.ring-1 { inset: 0;      animation-delay: 0s; }
.donate-pulse-ring.ring-2 { inset: -8px;   animation-delay: .8s; }
.donate-pulse-ring.ring-3 { inset: -16px;  animation-delay: 1.6s; }
@keyframes ring-pulse {
  0%   { opacity: .8; transform: scale(1); }
  100% { opacity: 0;  transform: scale(1.25); }
}

/* Shimmer sweep on the button */
.btn-donate {
  overflow: hidden;
}
.btn-donate::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: skewX(-15deg);
  animation: btn-shimmer 3s ease-in-out infinite;
}
@keyframes btn-shimmer {
  0%   { left: -100%; }
  40%  { left: 160%; }
  100% { left: 160%; }
}

/* Banner badge heart pulse — more aggressive */
.donate-banner-badge .bi-heart-pulse-fill {
  animation: pulse-heart 1s ease-in-out infinite;
}
@keyframes pulse-heart {
  0%, 100% { transform: scale(1);   color: #ff8fa8; }
  50%       { transform: scale(1.4); color: #ff3d6e; }
}

/* Glow breathe on the whole banner */
.donate-banner::after {
  content: '';
  position: absolute; inset: -1px; border-radius: var(--r-lg);
  background: transparent;
  border: 1px solid rgba(255,61,110,.2);
  animation: banner-glow 3s ease-in-out infinite;
  pointer-events: none; z-index: 2;
}
@keyframes banner-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,61,110,.1), inset 0 0 20px rgba(255,61,110,.03); }
  50%       { box-shadow: 0 0 45px rgba(255,61,110,.3), inset 0 0 30px rgba(255,61,110,.06); }
}

@media (max-width: 767px) {
  .btn-donate-wrap .donate-pulse-ring.ring-3 { display: none; }
}


/* ===========================================================
   VOTING / POLL SYSTEM
   =========================================================== */

/* ── Hero ── */
.vote-hero {
  position: relative; overflow: hidden;
  padding: 40px 0 36px; text-align: center;
  background: linear-gradient(160deg, #0f1115 0%, #0a1628 40%, #0d2847 70%, #0f1115 100%);
}
.vote-hero::before {
  content: ''; position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,255,136,.08) 0%, transparent 70%);
  top: -180px; left: 50%; transform: translateX(-50%); pointer-events: none;
}

.breadcrumb-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--t-3); text-decoration: none;
  margin-bottom: 16px; transition: color .2s;
}
.breadcrumb-back:hover { color: var(--t-1); }

/* ── Section ── */
.vote-section { padding: 48px 0 80px; }

/* ── Poll Meta ── */
.poll-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap; margin-top: 16px;
}
.poll-meta-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--t-2);
}
.poll-meta-item i { font-size: 12px; color: var(--c-green); }

/* ── Sort Row ── */
.poll-sort {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 20px; flex-wrap: wrap;
}
.sort-label { font-size: 12px; color: var(--t-3); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sort-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
  background: var(--ink-surface); border: 1px solid var(--ink-border-md);
  color: var(--t-3); text-decoration: none; transition: all .2s;
}
.sort-btn:hover { color: var(--t-1); border-color: var(--ink-border-lg); }
.sort-btn.active {
  background: var(--c-green-soft); border-color: rgba(0,255,136,.3); color: var(--c-green);
}

/* ── Polls Grid (index page) ── */
.polls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.poll-card {
  background: var(--ink-surface); border: 1px solid var(--ink-border);
  border-radius: var(--r-lg); padding: 28px 24px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .25s, transform .2s, box-shadow .25s;
}
.poll-card:hover {
  border-color: rgba(0,255,136,.25); transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0,255,136,.06);
  color: inherit;
}
.poll-card-header {
  display: flex; align-items: center; justify-content: space-between;
}
.poll-date { font-size: 11px; color: var(--t-3); }
.poll-card-title {
  font-family: var(--f-heading); font-size: 1.2rem; font-weight: 800;
  color: var(--t-1); margin: 0; letter-spacing: -.02em;
}
.poll-card-desc { font-size: 13px; color: var(--t-2); line-height: 1.6; margin: 0; }
.poll-card-stats {
  display: flex; gap: 16px; font-size: 12px; color: var(--t-3);
}
.poll-card-stats i { font-size: 11px; margin-right: 3px; }
.poll-card-cta {
  font-size: 13px; font-weight: 700; color: var(--c-green);
  display: flex; align-items: center; gap: 6px; margin-top: auto;
}

/* ── Empty State ── */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--t-3);
}

/* ── Games Grid (single poll) ── */
.vote-games-grid {
  display: flex; flex-direction: column; gap: 16px;
}

.vote-game-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--ink-surface); border: 1px solid var(--ink-border);
  border-radius: var(--r-lg); padding: 20px 24px;
  transition: border-color .25s, box-shadow .25s;
  position: relative;
}
.vote-game-card:hover {
  border-color: var(--ink-border-md);
}
.vote-game-card.voted {
  border-color: rgba(0,255,136,.2);
  box-shadow: 0 0 16px rgba(0,255,136,.05);
}

/* Rank # */
.vote-rank {
  font-family: var(--f-heading); font-weight: 900; font-size: 1.5rem;
  color: var(--t-3); min-width: 48px; text-align: center;
  flex-shrink: 0;
}
.vote-game-card:nth-child(1) .vote-rank { color: #ffd60a; }
.vote-game-card:nth-child(2) .vote-rank { color: #c0c0c0; }
.vote-game-card:nth-child(3) .vote-rank { color: #cd7f32; }

/* Cover image */
.vote-game-cover {
  width: 80px; height: 110px;
  border-radius: var(--r-sm); overflow: hidden;
  flex-shrink: 0; border: 1px solid var(--ink-border);
}
.vote-game-cover img {
  width: 100%; height: 100%; object-fit: cover;
}
.cover-placeholder {
  width: 100%; height: 100%;
  background: var(--ink-surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--t-3);
}

/* Game info */
.vote-game-info { flex: 1; min-width: 0; }
.vote-game-title {
  font-family: var(--f-heading); font-size: 1.1rem; font-weight: 800;
  color: var(--t-1); margin: 0 0 6px; letter-spacing: -.02em;
}
.vote-game-desc {
  font-size: 13px; color: var(--t-2); line-height: 1.5; margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Progress bar */
.vote-bar-wrap { display: flex; flex-direction: column; gap: 6px; }
.vote-bar {
  height: 10px; background: var(--ink-surface-2);
  border-radius: 5px; overflow: hidden;
}
.vote-bar-fill {
  height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, var(--c-blue), #5b8dee);
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.vote-bar-fill.voted {
  background: linear-gradient(90deg, var(--c-green), #00c8ff);
}
.vote-bar-stats {
  font-size: 12px; color: var(--t-3);
}
.vote-count-num { font-weight: 700; color: var(--t-2); }

/* Vote buttons */
.vote-game-actions { flex-shrink: 0; }

.btn-vote {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border: none; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all .2s; font-family: var(--f-body);
}

.btn-cast {
  background: var(--c-blue); color: #fff;
  box-shadow: 0 0 12px rgba(13,110,253,.25);
}
.btn-cast:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(13,110,253,.45);
}
.btn-cast.disabled {
  background: var(--ink-surface-2); color: var(--t-3);
  box-shadow: none; cursor: not-allowed;
}

.btn-unvote {
  background: var(--c-green-soft); color: var(--c-green);
  border: 1px solid rgba(0,255,136,.3);
}
.btn-unvote:hover {
  background: rgba(255,61,110,.1); color: var(--c-red);
  border-color: rgba(255,61,110,.3);
}

.vote-closed-label {
  font-size: 12px; color: var(--t-3);
  display: flex; align-items: center; gap: 5px;
}

/* ── Toast Notification ── */
.vote-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 12px 24px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  z-index: 9999; pointer-events: none;
  opacity: 0; transition: all .3s cubic-bezier(.4,0,.2,1);
}
.vote-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.vote-toast.success {
  background: var(--c-green-soft); color: var(--c-green);
  border: 1px solid rgba(0,255,136,.3);
  box-shadow: 0 4px 20px rgba(0,255,136,.15);
}
.vote-toast.error {
  background: rgba(255,61,110,.15); color: var(--c-red);
  border: 1px solid rgba(255,61,110,.3);
  box-shadow: 0 4px 20px rgba(255,61,110,.15);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .vote-hero { padding: 32px 0 24px; }
  .polls-grid { grid-template-columns: 1fr; }

  .vote-game-card {
    flex-direction: column; align-items: flex-start;
    padding: 16px; gap: 12px;
  }
  .vote-rank {
    position: absolute; top: 12px; right: 16px;
    font-size: 1rem; min-width: auto;
  }
  .vote-game-cover { width: 60px; height: 82px; }
  .vote-game-info { width: 100%; }
  .vote-game-actions { width: 100%; }
  .btn-vote { width: 100%; justify-content: center; }
}


/* ════════════════════════════════════════════════
   VOTE CATALOG GRID – Cover-based game display
════════════════════════════════════════════════ */

/* Poll card cover preview mosaic */
.poll-covers-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  overflow: hidden;
  height: 100px;
}
.poll-covers-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poll-card-body {
  padding: 16px 20px 20px;
}
.poll-card .poll-card-header,
.poll-card .poll-card-title,
.poll-card .poll-card-desc,
.poll-card .poll-card-stats,
.poll-card .poll-card-cta {
  /* Already styled – just ensure they're inside body */
}

/* Catalog grid */
.vote-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
}

/* Individual catalog card */
.vote-cat-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.vote-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.vote-cat-card.voted {
  border-color: rgba(0,255,136,.25);
  box-shadow: 0 0 20px rgba(0,255,136,.08);
}

/* Cover container */
.vote-cat-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink-surface-2);
}
.vote-cat-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.vote-cat-card:hover .vote-cat-cover > img {
  transform: scale(1.06);
}
.vote-cat-cover .cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t-3);
  font-size: 2.5rem;
}

/* Rank badge – top-left */
.vote-cat-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--f-heading);
  font-weight: 900;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  color: var(--t-2);
  z-index: 2;
}
.vote-cat-rank.rank-1 { color: #ffd60a; background: rgba(255,214,10,.15); border: 1px solid rgba(255,214,10,.3); }
.vote-cat-rank.rank-2 { color: #c0c0c0; background: rgba(192,192,192,.12); border: 1px solid rgba(192,192,192,.25); }
.vote-cat-rank.rank-3 { color: #cd7f32; background: rgba(205,127,50,.12); border: 1px solid rgba(205,127,50,.25); }

/* Vote count overlay – bottom-left on cover */
.vote-cat-count-overlay {
  position: absolute;
  bottom: 14px;
  left: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}
.vote-cat-count {
  font-family: var(--f-heading);
  font-weight: 900;
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 0 0 12px rgba(0,200,255,.6), 0 2px 6px rgba(0,0,0,.8);
  line-height: 1;
}
.vote-cat-pct {
  font-size: 10px;
  font-weight: 600;
  color: var(--t-2);
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}

/* Vote action button – bottom-right */
.vote-cat-action {
  position: absolute;
  bottom: 10px;
  right: 8px;
  z-index: 3;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}
.vote-cat-card:hover .vote-cat-action,
.vote-cat-card.voted .vote-cat-action {
  opacity: 1;
  transform: translateY(0);
}
.btn-vote-cat {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: all .2s ease;
  backdrop-filter: blur(6px);
}
.btn-cast-cat {
  background: rgba(13,110,253,.85);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13,110,253,.4);
}
.btn-cast-cat:hover {
  background: var(--c-blue);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(13,110,253,.5);
}
.btn-cast-cat.disabled {
  opacity: .3;
  cursor: not-allowed;
}
.btn-voted {
  background: rgba(0,255,136,.2);
  color: var(--c-green);
  border: 1px solid rgba(0,255,136,.3);
  box-shadow: 0 4px 12px rgba(0,255,136,.2);
}
.btn-voted:hover {
  background: rgba(255,61,110,.2);
  color: var(--c-red);
  border-color: rgba(255,61,110,.3);
}

/* Progress bar at bottom of cover */
.vote-cat-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0,0,0,.4);
  z-index: 2;
}
.vote-cat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-blue), #00c8ff);
  border-radius: 0 2px 0 0;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.vote-cat-bar-fill.voted {
  background: linear-gradient(90deg, var(--c-green), #00ffaa);
}

/* Game title area below cover */
.vote-cat-info {
  padding: 10px 12px 14px;
}
.vote-cat-title {
  font-family: var(--f-heading);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vote-cat-desc {
  font-size: 11px;
  color: var(--t-3);
  line-height: 1.4;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── HLTB Badge System (HowLongToBeat duration classification) ── */
.hltb-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    transition: opacity .2s;
}
.hltb-badge:hover { opacity: .85; text-decoration: none; }
.hltb-badge.hltb-green  { background: rgba(76,175,80,.15); color: #4CAF50; border: 1px solid rgba(76,175,80,.3); }
.hltb-badge.hltb-yellow { background: rgba(255,214,10,.15); color: #FFD60A; border: 1px solid rgba(255,214,10,.3); }
.hltb-badge.hltb-orange { background: rgba(255,152,0,.15);  color: #FF9800; border: 1px solid rgba(255,152,0,.3); }
.hltb-badge.hltb-red    { background: rgba(244,67,54,.15);  color: #F44336; border: 1px solid rgba(244,67,54,.3); }
.hltb-badge.hltb-black  { background: rgba(255,255,255,.1);  color: #e0e0e0; border: 1px solid rgba(255,255,255,.2); }
.hltb-icon { font-size: 12px; }
.hltb-hours { opacity: .7; }

/* Compact variant for admin tables */
.admin-table .hltb-badge { font-size: 10px; padding: 1px 6px; }

/* Clickable table rows */
.clickable-row { transition: background .15s; }
.clickable-row:hover { background: rgba(255,255,255,.04); }
.clickable-row td { cursor: pointer; }

/* ── Admin-only HLTB badge on public vote cards ── */
.vote-hltb-admin {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 4px;
    cursor: help;
    background: rgba(255,255,255,.06);
    color: var(--t-2);
    border: 1px solid rgba(255,255,255,.08);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   PLAYLIST CARDS (public frontend)
   ═══════════════════════════════════════════════════════════════ */
.vid-card--playlist .card-cover-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,110,253,.3), transparent);
    pointer-events: none;
}

.vid-playlist-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(13,110,253,.85);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════════════════════════════
   PLAYLIST PREVIEW PANEL (admin import screen)
   ═══════════════════════════════════════════════════════════════ */
#playlistPreviewPanel {
    margin-top: 12px;
    padding: 16px;
    background: rgba(13,110,253,.06);
    border: 1px solid rgba(13,110,253,.2);
    border-radius: 10px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.preview-header input {
    max-width: 300px;
}

.preview-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.preview-count {
    font-size: 12px;
    color: var(--t-3, #888);
    margin-bottom: 8px;
}

.preview-list {
    max-height: 450px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--ink-surface, #fff);
    border: 1px solid var(--ink-border-md, #ddd);
    border-radius: 8px;
    transition: box-shadow .15s;
}

.preview-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.preview-pos {
    font-weight: 700;
    font-size: 12px;
    color: var(--t-3, #888);
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.preview-thumb {
    width: 64px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.preview-title {
    flex: 1;
    min-width: 0;
    font-size: 13px !important;
    padding: 4px 8px !important;
    border: 1px solid var(--ink-border-md, #ddd) !important;
    border-radius: 4px !important;
}

.preview-up,
.preview-down {
    padding: 2px 8px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    flex-shrink: 0;
}

.preview-progress {
    text-align: center;
    padding: 20px;
    color: var(--t-3, #888);
}

.preview-success {
    color: var(--c-green, #28a745);
}

.preview-error {
    color: var(--c-red, #dc3545);
}
.vote-hltb-icon { font-size: 11px; }
.vote-hltb-label { opacity: .85; }

/* ── Catalog responsive ── */
@media (min-width: 576px)  { .vote-catalog-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
@media (min-width: 768px)  { .vote-catalog-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
@media (min-width: 1024px) { .vote-catalog-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
@media (min-width: 1400px) { .vote-catalog-grid { grid-template-columns: repeat(7, 1fr); } }

@media (max-width: 575px) {
  .vote-catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .vote-cat-rank { font-size: 11px; padding: 1px 6px; }
  .vote-cat-count { font-size: 1.1rem; }
  .vote-cat-action { opacity: 1; transform: translateY(0); }
  .btn-vote-cat { width: 32px; height: 32px; font-size: 14px; }
  .vote-cat-title { font-size: 11px; }
  .poll-covers-preview { height: 70px; }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN COMPACT TABLE helper
   ═══════════════════════════════════════════════════════════════ */
.admin-table.compact-table td,
.admin-table.compact-table th {
    padding: 8px 10px;
    font-size: 13px;
}

.admin-table.compact-table td:first-child,
.admin-table.compact-table th:first-child {
    padding-left: 14px;
}

.admin-table.compact-table td:last-child,
.admin-table.compact-table th:last-child {
    padding-right: 14px;
}

/* Playlist collapsible styles */
.pl-header td {
    font-size: 13px;
    user-select: none;
}

.pl-arrow {
    display: inline-block;
    width: 18px;
    font-size: 12px;
    color: var(--c-blue, #0d6efd);
}

/* ═══════════════════════════════════════════════════════════════
   RENDERED CONTENT (BBCode + HTML descriptions)
   ═══════════════════════════════════════════════════════════════ */
.rendered-content { line-height: 1.7; color: var(--t-2); max-width: 100%; overflow-wrap: anywhere; word-wrap: break-word; }
.rendered-content p { margin: 0 0 0.75rem; }
.rendered-content p:last-child { margin-bottom: 0; }
.rendered-content strong, .rendered-content b { color: var(--t-1); font-weight: 700; }
.rendered-content em, .rendered-content i { font-style: italic; }
.rendered-content u { text-decoration: underline; }
.rendered-content del, .rendered-content s { opacity: .6; }
.rendered-content a { color: var(--c-blue); text-decoration: none; }
.rendered-content a:hover { text-decoration: underline; }
.rendered-content img { max-width: 100%; border-radius: 8px; margin: 0.5rem 0; }
.rendered-content hr { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 1.2rem 0; }
.rendered-content h1, .rendered-content h2, .rendered-content h3,
.rendered-content h4, .rendered-content h5, .rendered-content h6 {
    font-family: var(--f-heading);
    color: var(--t-1);
    margin: 1.2rem 0 0.5rem;
    line-height: 1.3;
}
.rendered-content h1:first-child, .rendered-content h2:first-child,
.rendered-content h3:first-child, .rendered-content h4:first-child { margin-top: 0; }
.rendered-content h1 { font-size: 1.6em; }
.rendered-content h2 { font-size: 1.4em; }
.rendered-content h3 { font-size: 1.2em; }
.rendered-content h4 { font-size: 1.1em; }
.rendered-content h5, .rendered-content h6 { font-size: 1em; }

/* Blockquote */
.rendered-content blockquote {
    border-left: 3px solid var(--c-blue);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: rgba(13,110,253,.06);
    border-radius: 0 6px 6px 0;
    color: var(--t-2);
}
.rendered-content blockquote p { margin: 0 0 0.35rem; }
.rendered-content blockquote p:last-child { margin-bottom: 0; }

/* Code / Pre */
.rendered-content code {
    background: var(--ink-surface-2);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.88em;
    font-family: 'SF Mono','Cascadia Code','Fira Code','Consolas',monospace;
    color: var(--c-green);
}
.rendered-content pre {
    background: var(--ink-surface);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 13px;
    line-height: 1.5;
}
.rendered-content pre code {
    background: none;
    padding: 0;
    color: var(--t-2);
    font-size: inherit;
}

/* Lists */
.rendered-content ul, .rendered-content ol { margin: 0.5rem 0 1rem; padding-left: 1.5rem; }
.rendered-content li { margin-bottom: 0.25rem; }
.rendered-content ul { list-style-type: disc; }
.rendered-content ul ul { list-style-type: circle; }
.rendered-content ul ul ul { list-style-type: square; }
.rendered-content ol { list-style-type: decimal; }

/* Spoiler / Details */
.rendered-content details {
    background: var(--ink-surface);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
}
.rendered-content details summary {
    cursor: pointer;
    color: var(--t-1);
    font-weight: 600;
    user-select: none;
    padding: 0.25rem 0;
}
.rendered-content details summary:hover { color: var(--c-blue); }
.rendered-content details[open] summary { margin-bottom: 0.5rem; }

/* YouTube */
.rendered-content iframe { border-radius: 8px; }

/* Tables */
.rendered-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.rendered-content th, .rendered-content td {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.1);
    text-align: left;
    font-size: 0.9em;
}
.rendered-content th { background: var(--ink-surface-2); font-weight: 700; color: var(--t-1); }

/* Center */
.rendered-content div[style*="text-align:center"] { margin: 0.75rem 0; }

/* ═══════════════════════════════════════════════════════════════
   PAGINATION — catalog + news
   ═══════════════════════════════════════════════════════════════ */
.catalog-pagination { display: flex; justify-content: center; margin-top: 2rem; }
.catalog-pagination ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.catalog-pagination li { margin: 0; }

.catalog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    color: var(--t-2);
    background: var(--ink-surface);
    border: 1px solid rgba(255,255,255,.06);
    text-decoration: none;
    transition: all .2s ease;
    user-select: none;
}
.catalog-pagination .page-numbers:hover {
    color: var(--t-1);
    background: var(--ink-surface-2);
    border-color: rgba(255,255,255,.12);
    transform: translateY(-1px);
}
.catalog-pagination .page-numbers:active {
    transform: translateY(0);
}

/* Current page */
.catalog-pagination .page-numbers.current {
    color: #fff;
    background: var(--c-blue);
    border-color: var(--c-blue);
    box-shadow: 0 2px 8px rgba(13,110,253,.35);
    cursor: default;
    pointer-events: none;
}

/* Prev / Next arrows */
.catalog-pagination .page-numbers.prev,
.catalog-pagination .page-numbers.next {
    font-size: 14px;
    min-width: 36px;
    padding: 0;
}

/* Ellipsis dots */
.catalog-pagination .page-numbers.dots {
    min-width: 20px;
    padding: 0;
    border: none;
    background: none;
    color: var(--t-3);
    cursor: default;
    pointer-events: none;
    letter-spacing: 2px;
}

/* Disabled prev/next (hidden by PHP, but just in case) */
.catalog-pagination .page-numbers.disabled {
    opacity: .3;
    pointer-events: none;
}

/* ── Sidebar sticky (game detail) ── */
.sidebar-sticky { position: sticky; top: 1.5rem; }

/* ── Game page: prevent sidebar from wrapping below content ── */
.game-layout-col { min-width: 0; box-sizing: border-box; }
@media (min-width: 992px) {
    .col-lg-8.game-layout-col { max-width: calc(100% * 2 / 3); }
    .col-lg-4.game-layout-col { max-width: calc(100% * 1 / 3); }
}

/* Responsive: smaller on mobile */
@media (max-width: 576px) {
    .catalog-pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        padding: 0 7px;
        font-size: 12px;
        border-radius: 8px;
    }
    .catalog-pagination .page-numbers.dots { min-width: 16px; padding: 0; }
    .catalog-pagination ul { gap: 4px; }
}


/* ══════════════════════════════════════════════════════════
   WALKTHROUGHS / GUIDES – Single Guide Page
   ══════════════════════════════════════════════════════════ */

/* ── Walkthrough hero (inherits .hero-single) ── */
.walkthrough-hero {
    padding: 2.5rem 0 3rem;
}
.walkthrough-hero .hero-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.walkthrough-hero .hero-cover {
    flex-shrink: 0;
}
.walkthrough-hero .hero-cover .cover-img {
    width: 200px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--r-md);
    box-shadow: var(--c-blue-shadow);
}
.walkthrough-hero .hero-info {
    flex: 1;
    min-width: 280px;
}
.walkthrough-hero .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t-2);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.walkthrough-hero .hero-eyebrow .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}
.walkthrough-hero .hero-title {
    font-family: var(--f-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--t-1);
    margin: 0 0 1rem;
    line-height: 1.15;
}
.walkthrough-hero .hero-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}
.walkthrough-hero .meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--t-2);
    background: var(--ink-surface);
    border: 1px solid var(--ink-border);
    border-radius: var(--r-pill);
    padding: 5px 12px;
    white-space: nowrap;
}
.walkthrough-hero .meta-chip i {
    font-size: 13px;
    color: var(--c-blue);
}
.walkthrough-hero .hero-excerpt {
    color: var(--t-2);
    font-size: 15px;
    line-height: 1.6;
    max-width: 650px;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--c-blue);
    padding-left: 1rem;
}
.walkthrough-hero .hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.walkthrough-hero .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: .65rem 1.4rem;
    border-radius: var(--r-pill);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: var(--c-blue);
    border: none;
    box-shadow: 0 0 16px rgba(13,110,253,.4);
    transition: all .2s;
}
.walkthrough-hero .btn-download:hover {
    box-shadow: 0 0 28px rgba(13,110,253,.6);
    transform: translateY(-1px);
    color: #fff;
}

/* ── Walkthrough hero responsive ── */
@media (max-width: 768px) {
    .walkthrough-hero .hero-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .walkthrough-hero .hero-cover .cover-img {
        width: 140px;
    }
    .walkthrough-hero .hero-meta-chips {
        justify-content: center;
    }
    .walkthrough-hero .hero-actions {
        justify-content: center;
    }
    .walkthrough-hero .hero-excerpt {
        margin-left: auto;
        margin-right: auto;
    }
    .walkthrough-hero .hero-title {
        font-size: 1.6rem;
    }
}

/* ── Walkthrough iframe content section ── */
.walkthrough-content-section {
    padding: 1.5rem 0 4rem;
}
.walkthrough-frame-wrap {
    background: var(--ink-surface);
    border: 1px solid var(--ink-border-md);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.walkthrough-frame-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--ink-surface-2);
    border-bottom: 1px solid var(--ink-border);
}
.walkthrough-frame-header .frame-dots {
    display: flex;
    gap: 6px;
}
.walkthrough-frame-header .frame-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ink-border-md);
}
.walkthrough-frame-header .frame-dots span:nth-child(1) { background: #ff5f57; }
.walkthrough-frame-header .frame-dots span:nth-child(2) { background: #ffbd2e; }
.walkthrough-frame-header .frame-dots span:nth-child(3) { background: #28ca41; }
.walkthrough-frame-header .frame-title {
    flex: 1;
    font-size: 12px;
    color: var(--t-3);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.walkthrough-frame-header .frame-open-btn {
    color: var(--t-3);
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all .15s;
}
.walkthrough-frame-header .frame-open-btn:hover {
    color: var(--t-1);
    background: rgba(255,255,255,.06);
}
.walkthrough-iframe {
    width: 100%;
    min-height: 600px;
    border: none;
    display: block;
    background: #fff; /* walkthrough HTML files have white backgrounds */
}

/* ── Walkthroughs listing overrides ── */
.walkthroughs-hero {
    padding: 3rem 0 2rem;
}

@media (max-width: 576px) {
    .walkthrough-frame-wrap {
        border-radius: var(--r-sm);
    }
    .walkthrough-iframe {
        min-height: 400px;
    }
}


/* ══════════════════════════════════════════════════════════
   HOMEPAGE – Compact Translations Section
   Smaller cards so the hero slider dominates
   ══════════════════════════════════════════════════════════ */

.translations-section--compact {
    padding: 2rem 0 2.5rem;
}
.section-head--compact {
    margin-bottom: 14px;
}
.section-head--compact h2 {
    font-size: 1.1rem;
}

/* Compact game card */
.game-card--compact .card-cover-wrap {
    aspect-ratio: 3 / 4;
}
.game-card--compact .card-cover-overlay {
    opacity: .25;
}
/* Compact card: статус баджът е същият като в каталога (горе-вдясно,
   нормален размер) — само позицията се препотвърждава */
.game-card--compact .card-status-badge {
    top: 10px;
    right: 10px;
    left: auto;
    bottom: auto;
}
.game-card--compact .card-body-custom {
    padding: 10px 12px 12px;
}
.game-card--compact .card-genre {
    font-size: 10px;
    margin-bottom: 2px;
}
.game-card--compact .card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--t-1);
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.game-card--compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

@media (max-width: 768px) {
    .translations-section--compact {
        padding: 1.5rem 0 2rem;
    }
    .game-card--compact .card-title {
        font-size: 13px;
    }
}

/* Mobile: 3 cards per row */
@media (max-width: 575px) {
    .game-card--compact .card-cover-wrap {
        aspect-ratio: 3 / 4;
    }
    .game-card--compact .card-body-custom {
        padding: 6px 7px 8px;
    }
    .game-card--compact .card-title {
        font-size: 12px;
    }
    .progress-label--compact {
        font-size: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CATALOG SECTIONS – Collective projects listing
   ═══════════════════════════════════════════════════════════════════════════ */

.catalog-section {
    margin-bottom: 2.5rem;
}

.catalog-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.section-label--catalog {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--t-3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.section-label--catalog::before {
    display: none;
}

.section-subtitle {
    display: block;
    font-size: 11px;
    color: var(--t-4);
    margin-top: 2px;
}

/* ── Filter dropdown ────────────────────────────────────────── */
.catalog-filter {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    color: var(--t-2);
    font-size: 11px;
    padding: 5px 28px 5px 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%23999' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: border-color .2s, background .2s;
}
.catalog-filter:hover {
    border-color: rgba(255,255,255,.2);
    background: rgba(255,255,255,.06);
}
.catalog-filter:focus {
    outline: none;
    border-color: var(--c-green);
    box-shadow: 0 0 0 2px rgba(0,255,136,.1);
}

/* ── Pending tests badge (admin notification in section header) ── */
.pending-tests-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: rgba(255,61,110,.12);
    color: var(--c-red);
    border: 1px solid rgba(255,61,110,.3);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
}
.pending-tests-badge:hover {
    background: rgba(255,61,110,.2);
    border-color: rgba(255,61,110,.5);
    color: var(--c-red);
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARD COLUMN – wrapper for hover overlay positioning
   ═══════════════════════════════════════════════════════════════════════════ */

.card-col {
    position: relative;
    z-index: 1;
}
.card-col:hover {
    z-index: 10;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPLEXITY INDICATORS – dot on cover + pill in body
   ═══════════════════════════════════════════════════════════════════════════ */

.complexity-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
    z-index: 2;
}

.card-pending-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(0,0,0,.72);
    border: 1px solid rgba(255,214,10,.35);
    border-radius: 99px;
    color: #ffd60a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 3;
    pointer-events: auto;
    cursor: help;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: pending-pulse 2s ease-in-out infinite;
}
.card-pending-badge i { font-size: 14px; }

/* Unread project-chat messages on a cover card. It shares the same visual
   weight as the review queue badge, but uses a separate position and color. */
.card-chat-badge {
    right: auto;
    left: 8px;
    background: rgba(12, 74, 110, .86);
    border-color: rgba(56, 189, 248, .58);
    color: #bae6fd;
    animation-name: chat-unread-pulse;
}
.card-chat-badge i { color: #7dd3fc; }
@keyframes chat-unread-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(56,189,248,.32); }
    50% { opacity: .84; box-shadow: 0 0 11px 2px rgba(56,189,248,.18); }
}

@keyframes pending-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,214,10,.3); }
    50%      { opacity: .8; box-shadow: 0 0 10px 2px rgba(255,214,10,.15); }
}

/* Stale — older than 7 days → red, aggressive blink */
.card-pending-badge--stale {
    background: rgba(180,0,0,.72);
    border-color: rgba(255,60,60,.5);
    color: #ff4444;
    animation: pending-blink .8s ease-in-out infinite;
}
.card-pending-badge--stale i { color: #ff5555; }

@keyframes pending-blink {
    0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(255,60,60,.45); }
    50%      { opacity: .55; box-shadow: 0 0 14px 3px rgba(255,60,60,.25); }
}

.complexity-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 99px;
    letter-spacing: .04em;
    white-space: nowrap;
    align-self: flex-start;
}
.complexity-pill i { font-size: 8px; }

/* ═══════════════════════════════════════════════════════════════════════════
   COMPACT CARD – progress & button overrides
   ═══════════════════════════════════════════════════════════════════════════ */

.progress-track--sm {
    height: 3px;
    background: rgba(255,255,255,.07);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 2px;
}
.progress-track--sm .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00c853, var(--c-green));
    border-radius: 99px;
    box-shadow: 0 0 6px var(--c-green-glow);
    transition: width .8s ease;
}

.progress-label--compact {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--t-3);
    margin-top: 2px;
}

.btn--compact-card {
    font-size: 10px;
    padding: 4px 0;
    width: 100%;
    text-align: center;
    border-radius: 6px;
    margin-top: 2px;
}

/* Clickable card cover — whole cover is a link */
.card-cover-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: inherit;
    overflow: hidden;
}
.card-cover-link:hover .card-cover {
    transform: scale(1.06);
}
.card-cover-link:hover .card-cover-overlay {
    opacity: .45;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPLEXITY HOVER OVERLAY – frosted glass popup to the right of card
   ═══════════════════════════════════════════════════════════════════════════ */

.complexity-overlay {
    position: absolute;
    left: calc(100% + 10px);
    top: 0;
    transform: translateX(6px);
    width: 300px;
    max-width: 90vw;
    background: rgba(15, 17, 21, .92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04) inset;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 100;
}
/* Arrow pointing left to the card */
.complexity-overlay::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 16px;
    border: 7px solid transparent;
    border-right-color: rgba(15, 17, 21, .92);
}
.complexity-overlay::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 15px;
    border: 8px solid transparent;
    border-right-color: rgba(255,255,255,.12);
    margin-right: -1px;
}

/* Show overlay on column hover */
.card-col:hover .complexity-overlay {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* ── Overlay inner layout ───────────────────────────────────── */
.overlay-inner {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.overlay-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--t-2);
    letter-spacing: .04em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.overlay-title i {
    color: var(--c-green);
    font-size: 13px;
}

.complexity-badge--sm {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    white-space: nowrap;
    letter-spacing: .04em;
}
.complexity-badge--sm i { font-size: 8px; }

/* ── Score section ──────────────────────────────────────────── */
.overlay-score {
    background: rgba(255,255,255,.03);
    border-radius: 8px;
    padding: 8px 10px;
}

.overlay-score-label {
    font-size: 10px;
    color: var(--t-4);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px;
}

.overlay-score-value {
    font-size: 26px;
    font-weight: 900;
    font-family: var(--f-heading);
    letter-spacing: -.02em;
    line-height: 1;
}

.overlay-score-max {
    font-size: 13px;
    font-weight: 500;
    color: var(--t-3);
    margin-left: 2px;
}

.overlay-score .progress-track--sm {
    margin-top: 6px;
}

/* ── Twin metrics ───────────────────────────────────────────── */
.overlay-metrics {
    display: flex;
    gap: 8px;
}

.overlay-metric {
    flex: 1;
    text-align: center;
    background: rgba(255,255,255,.02);
    border-radius: 8px;
    padding: 8px 4px;
}

.overlay-metric-label {
    font-size: 10px;
    color: var(--t-4);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 3px;
}

.overlay-metric-value {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.overlay-metric-sub {
    font-size: 9px;
    color: var(--t-3);
    margin-top: 2px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.overlay-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--t-3);
    border-top: 1px solid rgba(255,255,255,.05);
    padding-top: 8px;
}

.overlay-footer-sep {
    color: var(--t-4);
}

/* ── Flipped state: overlay opens to the LEFT of the card
      (used when the card is near the right edge of the viewport) ── */
.complexity-overlay.complexity-overlay--left {
    left: auto;
    right: calc(100% + 10px);
    transform: translateX(-6px);
}
.complexity-overlay.complexity-overlay--left::after {
    right: auto;
    left: 100%;
    border-right-color: transparent;
    border-left-color: rgba(15, 17, 21, .92);
}
.complexity-overlay.complexity-overlay--left::before {
    right: auto;
    left: 100%;
    border-right-color: transparent;
    border-left-color: rgba(255,255,255,.12);
    margin-right: 0;
    margin-left: -1px;
}
.card-col:hover .complexity-overlay.complexity-overlay--left {
    transform: translateX(0);
}

/* ── Card-extra: default hidden (filter controls visibility) ── */
.card-extra .game-card {
    /* cards are shown/hidden via JS, but we add a subtle opacity */
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE – overlay adjustments
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .complexity-overlay {
        width: 260px;
        left: auto;
        right: calc(100% + 10px);
        top: 0;
        transform: translateX(-6px);
    }
    .complexity-overlay::after {
        right: auto;
        left: 100%;
        top: 16px;
        border-right-color: transparent;
        border-left-color: rgba(15, 17, 21, .92);
    }
    .complexity-overlay::before {
        right: auto;
        left: 100%;
        top: 15px;
        border-right-color: transparent;
        border-left-color: rgba(255,255,255,.12);
    }
    .card-col:hover .complexity-overlay {
        transform: translateX(0);
    }
    .catalog-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
