/* ============================================================
   SKIDROW CODEX — styles.css
   CSS custom properties, modern syntax
   ============================================================ */

/* ============================================================
   0. CSS REGISTERED PROPERTIES (Houdini)
   ============================================================ */
@property --clr-brand-pulse {
  syntax: '<color>';
  inherits: false;
  initial-value: #ec2e1c;
}

/* ============================================================
   1. CSS CUSTOM PROPERTIES (design tokens)
   ============================================================ */
:root {
  /* Colors */
  --clr-brand:        #ec2e1c;
  --clr-brand-hover:  #d02516;
  --clr-brand-dark:   #c0200f;
  --clr-gold:         #ffb027;
  --clr-gold-light:   #ffd700;

  --clr-dark:         #272727;
  --clr-dark-2:       #21282d;
  --clr-dark-3:       #22282c;
  --clr-dark-4:       #293239;
  --clr-body:         #444;
  --clr-muted:        #94999e;
  --clr-light-muted:  #cdd0d3;
  --clr-border:       #e3e4e6;
  --clr-border-light: #eceded;
  --clr-bg:           #fff;
  --clr-bg-light:     #f4f6f7;
  --clr-bg-dark:      #f8f8f8;

  /* Typography */
  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               "Noto Sans", "Liberation Sans", Arial, sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
               "Noto Color Emoji";
  --font-mono: Menlo, Monaco, Consolas, "Courier New", monospace;
  --fs-base:   0.9rem;
  --lh-base:   1.5;

  /* Spacing */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  30px;
  --sp-2xl: 50px;

  /* Border radius */
  --r-sm:   2px;
  --r-md:   5px;
  --r-lg:   8px;
  --r-xl:   10px;
  --r-2xl:  12px;
  --r-full: 50%;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,.14);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 4px 15px rgba(0,0,0,.1);
  --shadow-lg:  0 8px 40px -10px rgba(0,0,0,.3);
  --shadow-nav: 0 0 9px rgba(0,0,0,.4);

  /* Transitions */
  --t-fast:   .15s ease;
  --t-base:   .2s ease;
  --t-slow:   .3s ease;
  --t-xslow:  .4s ease;
}


/* ============================================================
   2. CSS RESET & BASE
   ============================================================ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td,
article, aside, canvas, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
  margin: 0; padding: 0; border: 0;
  font-size: 100%; font: inherit; vertical-align: baseline;
}
article, aside, figcaption, figure, footer,
header, hgroup, menu, nav, section { display: block; }
body            { line-height: 1; }
ol, ul          { list-style: none; }
blockquote, q   { quotes: none; }
blockquote::before, blockquote::after,
q::before, q::after { content: ''; content: none; }
table           { border-collapse: collapse; border-spacing: 0; }

html, html a    { -webkit-font-smoothing: antialiased; }
html            { scrollbar-gutter: stable; }


/* ============================================================
   3. GLOBAL TYPOGRAPHY & BASE ELEMENTS
   ============================================================ */
body, select, input, textarea, button {
  font-family: var(--font-base);
  font-size:   var(--fs-base);
  line-height: var(--lh-base);
  color:       var(--clr-body);
  outline:     none;
}

a {
  outline: none;
  color: var(--clr-brand);
  text-decoration: none;
}
a:hover    { text-decoration: underline; }
a img      { border: 0 none; }
a > img    { vertical-align: bottom; }

h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5 {
  margin: 2em 0 .8em;
  letter-spacing: -0.01em;
  line-height: 1.35em;
  font-weight: bold;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}
h1, .h1 { font-size: 2em; }
h2, .h2 { font-size: 1.9em; }
h3, .h3 { font-size: 1.6em; }
h4, .h4 { font-size: 1.5em; }
h5, .h5 { font-size: 1.2em; }

strong, b   { font-weight: bold; }
em, cite, i { font-style: italic; }
caption     { text-align: left; }
th, td      { vertical-align: middle; }
small, .small { font-size: .9em; }
sup         { vertical-align: super; font-size: smaller; }
hr {
  height: 0; border: 0;
  border-top: 2px solid var(--clr-border);
  box-sizing: content-box;
  margin: 20px 0;
}
p {
  margin-block-start: .7em;
  margin-block-end:   .7em;
}

ul { padding-left: 40px; list-style: disc outside;    margin: 1em 0; }
ol { padding-left: 40px; list-style: decimal outside; margin: 1em 0; }

.instagram-media,
.twitter-tweet { display: inline-block !important; }


/* ============================================================
   4. UTILITY CLASSES
   ============================================================ */
.strike  { text-decoration: line-through; }
.nobr    { white-space: nowrap; }
.hide    { display: none; }
.uline   { text-decoration: underline; }
.ultrabold { font-weight: 900 }
.title_hide {
  position: absolute; overflow: hidden;
  left: -9999px; top: -9999px;
  width: 0; height: 0;
}
.justify { text-align: justify; }
.center  { text-align: center; }
.left    { float: left; }
.right   { float: right; }
.clr     { clear: both; }
.clrfix::after { clear: both; content: ""; display: table; }
.over {
  display: inline-block; vertical-align: middle;
  max-width: 100%; white-space: nowrap;
  text-overflow: ellipsis; overflow: hidden;
}
a .over { cursor: pointer; }

.grey        { color: var(--clr-muted); }
.grey a      { color: inherit; }
.grey a:hover,
a.grey:hover { color: var(--clr-body); }
.red         { color: var(--clr-brand); }

.cover {
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}

fieldset        { border: 1px solid rgba(0,0,0,.1); padding: 15px; margin-bottom: 1.5em; }
fieldset legend { font-weight: bold; }

.signature { font-size: .9em; opacity: .5; margin-top: .9em; }

.wseditor table,
.bb-editor table { margin: 0; }
.dlepopupnewsedit { height: 400px !important; }

.grecaptcha-badge { display: none; }


/* ============================================================
   5. COLLAPSE / FADE TRANSITIONS
   ============================================================ */
.fade {
  opacity: 0;
  transition: opacity .15s linear;
}
.fade.in { opacity: 1; }
.collapse {
  overflow: hidden;
  height: 0; width: 0; display: block;
}
.collapse.in { display: block; width: auto; height: auto; }
.collapsing {
  position: relative;
  height: 0; overflow: hidden;
  transition: height .35s ease;
}


/* ============================================================
   6. DROPDOWN MENUS & FORMS
   ============================================================ */
.dropdown { position: relative; }

.dropdown-menu,
.dropdown-form {
  min-width: 160px;
  padding: 12px 0;
  border-radius: var(--r-sm);
  margin-top: 5px !important;
  display: none;
  z-index: 99;
  position: absolute;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,.1);
  background-clip: padding-box;
  background-color: var(--clr-bg);
}
.dropdown-menu { list-style: none; margin: 0; }
.dropdown-form { padding: 25px; }

.dropdown-menu li a {
  height: 1%; padding: 5px 20px;
  border: 0 none; display: block;
  white-space: nowrap; text-decoration: none;
  color: inherit;
  transition: background-color var(--t-base), color var(--t-base);
}
.dropdown-menu li a:hover { background-color: #e05b37; color: var(--clr-bg); }
.open .dropdown-menu,
.open .dropdown-form { display: block; }


/* ============================================================
   7. TABS
   ============================================================ */
.tab-content > .tab-pane { display: none; }
.tab-content > .active   { display: block; }


/* ============================================================
   8. ICONS
   ============================================================ */
.icon {
  display: inline-block;
  width: 1em; height: 1em;
  fill: var(--clr-brand);
  vertical-align: middle;
}
.icon-white {
  display: inline-block;
  width: 1em; height: 1em;
  fill: var(--clr-bg);
  vertical-align: middle;
  flex-shrink: 0;
}
.icon-grey {
  display: inline-block;
  width: 1em; height: 1em;
  margin-top: -5px;
  fill: #7e7e7e;
  vertical-align: middle;
}

.icon-ca               { width: 25px;  height: 25px; }
.icon-arrow_down       { width: 13px;  height: 13px; }
.icon-arrow_left       { width: 13px;  height: 13px; }
.icon-arrow_right      { width: 13px;  height: 13px; }
.icon-fav              { width: 15px;  height: 14px; }
.icon-like             { width: 13px;  height: 11px; }
.icon-meta_date        { width: 17px;  height: 17px; }
.icon-meta_reply       { width: 13px;  height: 13px; }
.icon-meta_views       { width: 17px;  height: 17px; }
.icon-meta_cat         { width: 17px;  height: 17px; }
.icon-meta_user        { width: 15px;  height: 16px; }
.icon-meta_coms        { width: 17px;  height: 17px; }
.icon-meta_mail        { width: 19px;  height: 15px; }
.icon-compl            { width: 13px;  height: 13px; }
.icon-cross            { width: 13px;  height: 13px; }
.icon-next,
.icon-prev             { width: 23px;  height: 23px; }
.icon-search,
.icon-login            { width: 20px;  height: 19px; }
.icon-sort,
.icon-speedbar,
.icon-meta_pages       { width: 29px;  height: 30px; }
.icon-login            { width: 19px;  height: 19px; }
.icon-tags             { width: 17px;  height: 17px; }
.icon-meta_size,
.icon-meta_git,
.icon-meta_release,
.icon-meta_crack,
.icon-translate,
.icon-megaphone,
.icon-download,
.icon-download-circle,
.icon-steam,
.icon-help,
.icon-cloud-download,
.icon-refresh,
.icon-apple            { width: 17px;  height: 17px; }
.icon-shield           { width: 23px; height: 23px; float: left; margin: 2px 0 0 -32px; }

.icon-vk   { width: 10px; height: 1em; }
.icon-tw   { width: 14px; height: 1em; }
.icon-fb   { width: 8px;  height: 1em; }
.icon-gp   { width: 18px; height: 1em; }
.icon-ya   { width: 7px;  height: 1em; }
.icon-od   { width: 10px; height: 1em; }
.icon-mail { width: 16px; height: 1em; }

.meta > li > i[class^="fa-"], 
.meta > li > i[class*=" fa-"] {
    float: left;
    margin: 2px 0 0 -30px;
    width: 17px;
    height: 17px;
    font-size: 17px;
    color: var(--clr-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
}

.meta > li > i {
    -webkit-font-smoothing: antialiased;
}


/* ============================================================
   9. LAYOUT — WRAPPER & GRID
   ============================================================ */
body { background-color: var(--clr-bg); }

.wrp,
.wrp_min {
  max-width: 1180px;
  padding: 0 20px;
  margin: 0 auto;
}
.wrp_min { max-width: 950px; }

.wrp.page_description {
    padding: 0 var(--sp-lg);
    color: var(--clr-muted);
    font-size: 14px;
}
.wrp.page_description h3      { margin: 0; }

/* Fixed/Featured post wrapper */
.wrp.fixed_wrap {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(45deg, var(--clr-gold), var(--clr-gold-light)) border-box;
  border-radius: var(--r-xl);
  box-shadow: 0 4px 15px rgba(255,176,39,.3);
  padding: 20px;
}

.fixed_label {
  position: absolute;
  left: 10px; top: 10px;
  width: 60px; height: 60px;
  background-color: var(--clr-gold);
  border-radius: var(--r-full);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--clr-bg);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0,0,0,.3);
  z-index: 10;
}

.wrp.fixed_wrap .story_icons { margin-top: 20px; }

@media (max-width: 1240px) {
  .wrp.fixed_wrap { margin: 0 10px; padding: 15px; }
  .fixed_label    { display: none; }
}
@media (max-width: 768px) {
  .wrp.fixed_wrap          { margin: 5px; padding: 10px; }
  .fixed_label             { left: 10px; top: 10px; width: 40px; height: 40px; font-size: 8px; }
  .wrp.fixed_wrap .story_icons { margin-top: 15px; }
}

/* Column grid */
@media only screen and (min-width: 701px) {
  .grid_1_2, .grid_1_4, .grid_3_4 {
    float: left;
    margin-right: 3%;
    box-sizing: border-box;
  }
  .grid_1_2.right, .grid_1_4.right, .grid_3_4.right { float: right; }
  .grid_1_2.none,  .grid_1_4.none,  .grid_3_4.none  { float: none; margin-right: 0; }
  .grid_1_2  { width: 48%; }
  .grid_1_4  { width: 22%; }
  .grid_3_4  { width: 74%; }
  .grid_last { margin-right: 0; }

  .grid_list::after { content: ""; display: block; clear: both; }
  .grid_list > .grid_1_2:last-child,
  .grid_list > .grid_1_4:last-child,
  .grid_list.grid_3_4:last-child { margin-right: 0; }

  .grid_1_4.sidebar {
    margin-right: 0;
    position: sticky;
    top: 20px;
    z-index: 10;
  }
}
@media only screen and (max-width: 700px) {
  .grid_1_2, .grid_1_4, .grid_3_4 {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    margin-bottom: 20px;
  }
}


/* ============================================================
   10. HEADER
   ============================================================ */
.headskidrow {
  position: relative;
  background: #403a43 url(../images/bg_skidrowcodex.jpg);
}
.headskidrow.fixed { background-attachment: fixed; }
.headskidrow::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-image: linear-gradient(to bottom, rgba(0,0,0,.2) 0%, rgba(0,0,0,0) 230px);
  pointer-events: none;
}

/* Head text / hero */
.head_text { padding: 7% 0; position: relative; z-index: 1; }

.head_text_in {
  text-align: center;
  position: absolute;
  width: 50%;
  left: 50%; top: 50%;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
  transform: translate(-50%, -50%);
}
.head_text_in,
.head_text_in * { color: var(--clr-bg); }
.head_text_in > .title { margin: 0; font-size: 2.8em; }
.head_text_in > .text  { margin: 0; font-size: 1.6em; }

/* Header bar */
@media only screen and (min-width: 861px) {
  #header {
    height: 76px;
    display: flex;
  }
}

/* Logotype */
.logotype {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 17px;
  margin: 0;
  position: relative;
  z-index: 1;
  width: 47px; height: 47px;
  background: url(../images/logo.svg) no-repeat center center;
  background-size: contain;
}
.logotype > .icon { fill: var(--clr-bg); }


/* ============================================================
   11. TOP NAVIGATION MENU (desktop)
   ============================================================ */
@media only screen and (min-width: 861px) {

  .topbar { flex-grow: 2; }

  #topmenu { float: left; position: relative; z-index: 2; }
  #topmenu ul { list-style: none; padding: 0; margin: 0; }
  #topmenu > ul > li { float: left; position: relative; }

  /* Top-level link */
  #topmenu > ul > li > a {
    display: block;
    line-height: 22px; height: 22px;
    padding: 27px 17px;
    text-decoration: none !important;
    opacity: .8;
    transition: opacity var(--t-base);
    position: relative;
    z-index: 21;
    color: var(--clr-bg);
  }
  #topmenu > ul > li > a:hover   { opacity: 1; }
  #topmenu > ul > li > a > .icon { fill: var(--clr-bg); opacity: .2; margin-left: 6px; }
  #topmenu a, #topmenu           { color: var(--clr-bg); }

  /* Dropdown container */
  #topmenu > ul > li > ul,
  #topmenu > ul > li > div {
    position: absolute;
    left: 0; top: 0;
    padding: 30px 0;
    padding-top: 76px;
    margin-left: -13px;
    width: 250px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translate(0, -100%) scale(.8);
  }
  #topmenu > ul > li > div {
    padding-left: 30px;
    padding-right: 30px;
  }

  /* Dropdown open */
  #topmenu > ul > li:hover > ul,
  #topmenu > ul > li:hover > div {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0) scale(1);
    transition: all var(--t-xslow);
  }

  /* Dropdown dark background panel */
  #topmenu > ul > li > ul::after,
  #topmenu > ul > li > div::after {
    content: "";
    background-color: var(--clr-dark);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    opacity: .85;
    box-shadow: var(--shadow-nav);
  }

  /* Dropdown items (z-index above the ::after overlay) */
  #topmenu > ul > li > ul > li,
  #topmenu > ul > li > div > div { position: relative; z-index: 1; }

  /* Active/hover state for parent */
  #topmenu > ul > li.parent:hover > a               { color: var(--clr-brand); opacity: 1; }
  #topmenu > ul > li.parent:hover > a > .icon       { fill: var(--clr-brand); opacity: 1; }

  /* -------------------------------------------------------
     DROPDOWN LINK STYLES — THE KEY FIX
     All <a> inside the dropdown must sit above the ::after
     pseudo-element (z-index: 1 on li is enough for first
     level, but nested <ul> items need their own stacking).
  ------------------------------------------------------- */
  #topmenu > ul > li > ul > li a {
    display: block;
    padding: .3em 30px;
    height: 1%;
    text-decoration: none !important;
    position: relative;
    z-index: 1;
    color: var(--clr-bg);
    transition: color var(--t-base), background-color var(--t-base);
    white-space: nowrap;
  }
  #topmenu > ul > li > ul > li > a:hover { color: var(--clr-brand); }

  /* Sub-subcategory links (nested <ul> inside dropdown) */
  #topmenu > ul > li > ul > li > ul {
    position: static;
    padding: 0;
    margin: 0;
    display: none; /* hidden by default, shown below */
    width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
  }
  /* Show nested submenu on parent li:hover */
  #topmenu > ul > li > ul > li:hover > ul { display: block; }

  #topmenu > ul > li > ul > li > ul > li a {
    padding-left: 44px;
    font-size: .92em;
    opacity: .8;
    transition: color var(--t-base), opacity var(--t-base);
  }
  #topmenu > ul > li > ul > li > ul > li a:hover {
    color: var(--clr-brand);
    opacity: 1;
  }

} /* end desktop nav */

#closemenu { display: none; }


/* ============================================================
   12. ARCHIVE TABS
   ============================================================ */
.arh_tabs {
  list-style: none;
  height: 26px;
  border-radius: 18px;
  margin-bottom: 25px !important;
  overflow: hidden;
  position: relative;
}
.arh_tabs::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--clr-brand);
  border-radius: 13px;
  pointer-events: none;
}
.arh_tabs > li        { float: left; width: 50%; position: relative; z-index: 1; }
.arh_tabs > li > a {
  text-align: center; display: block;
  height: 22px; line-height: 22px;
  padding: 2px 4px;
  color: var(--clr-bg);
  text-decoration: none !important;
  text-transform: uppercase;
  border-radius: 13px;
  font-size: 10px; font-weight: bold;
}
.arh_tabs > li.active > a { background-color: var(--clr-brand); }


/* ============================================================
   13. MOBILE MENU TOGGLE
   ============================================================ */
@media only screen and (min-width: 861px) {
  #mainmenu.h_btn { display: none; }
}

.menu_toggle,
.icon_close {
  display: inline-block;
  vertical-align: middle;
  width: 19px; height: 19px;
  margin: 0; position: relative;
}

.menu_toggle > i,
.icon_close > i {
  height: 1px; width: 100%;
  background-color: var(--clr-bg);
  position: absolute;
  left: 0; top: 0;
  transition: all var(--t-slow);
}
.mt_1 { margin-top: 1px; }
.mt_2 { margin-top: 9px; }
.mt_3 { margin-top: 17px; }
.menu_toggle__title { display: none; }

#mainmenu.open .mt_1,
.icon_close > i.mt_1 { transform: rotate(-45deg); }
#mainmenu.open .mt_2 { opacity: 0; }
#mainmenu.open .mt_3,
.icon_close > i.mt_2 { transform: rotate(45deg); }

#mainmenu.open .mt_1,
#mainmenu.open .mt_2,
#mainmenu.open .mt_3,
.icon_close > i       { margin-top: 9px; }
#mainmenu.open .menu_toggle { opacity: 1 !important; }
#mainmenu.open i             { background-color: var(--clr-bg); }


/* ============================================================
   14. HEADER BUTTONS (search / login)
   ============================================================ */
.h_btn {
  float: right;
  width: 44px; height: 44px;
  position: relative; z-index: 1;
  background: none; border: 0 none;
  padding: 16px 6px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.h_btn::after {
  content: "";
  background-color: var(--clr-dark);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 66px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  opacity: 0; visibility: hidden;
  margin-top: -60px;
  transition: margin-top var(--t-base);
}
.h_btn.open::after {
  opacity: 1; visibility: visible;
  margin-top: 0;
}

.h_btn > *              { position: relative; z-index: 1; }
.h_btn > .icon          { fill: var(--clr-bg); }
.h_btn.open > .icon,
.h_btn > .icon_close,
.h_btn.open > .avatar   { display: none; }
.h_btn.open > .icon_close { display: inline-block; }


/* ============================================================
   15. TOOLS BAR (breadcrumbs, sort, tags)
   ============================================================ */
#tools { background-color: var(--clr-dark); font-size: .9em; }
.tools { height: 76px; }
.tools > .wrp::after { content: ""; display: block; clear: both; }

/* Sort */
#sort, #breadcrumbs { padding: 27px 0 27px 60px; }
#sort > .icon,
#breadcrumbs > .icon { float: left; margin: -4px 0 0 -60px; fill: var(--clr-light-muted); }

.sort_label             { font-weight: normal; text-transform: lowercase; }
#sort form, ul.sort,
ul.sort > li            { display: inline; }
ul.sort                 { list-style: none; padding: 0; margin: 0; }
ul.sort > li            { margin-left: 16px; }
ul.sort > li > a        { color: inherit; text-decoration: none !important; }
ul.sort > li > a:hover,
.sort > li.asc a,
.sort > li.desc a       { color: var(--clr-brand); }

.sort > li.asc a::before,
.sort > li.desc a::before {
  content: "";
  display: inline-block; vertical-align: middle;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAoAQMAAADNFOjiAAAABlBMVEUAAAD/SFvf5sBTAAAAAXRSTlMAQObYZgAAACBJREFUCNdj+P8fhJDB/w9AhCoCQijgAwJhqsRvGsRGAIL/F3G3R2gKAAAAAElFTkSuQmCC);
  margin: 0 .4em 0 0;
  width: 8px; height: 10px;
  background-position: 0 -10px;
  background-size: 8px auto;
}
.sort > li.asc a::before { background-position: 0 0; }

/* Breadcrumbs */
#breadcrumbs { color: var(--clr-muted); }

/* Tags btn */
.tags_btn {
  display: block;
  margin: 27px 0 27px 30px;
  text-decoration: none !important;
  color: var(--clr-brand);
}
.tags_btn.collapsed                { color: var(--clr-muted); }
.tags_btn > .icon-tags             { float: left; margin: 2px 0 0 -30px; }
.tags_btn > .icon                  { fill: var(--clr-light-muted); }
.tags_btn > .icon-arrow_down       { margin: 0 0 0 6px; }
#toptags                           { width: 100%; }
#toptags > .wrp                    { padding-bottom: 30px; }
#toptags .tag_list > span > a      { background-color: var(--clr-bg); }


/* ============================================================
   16. SEARCH / LOGIN DROPBAR
   ============================================================ */
.droptopbar {
  width: 100%; height: 0; overflow: hidden;
  background-color: var(--clr-dark);
  position: relative; z-index: 21;
  transition: height var(--t-base);
  font-size: .9em;
}
.droptopbar .wrp {
  opacity: 0;
  transition: opacity 1s ease;
}
.search_open #q_search,
.login_open  #loginpane,
.loginf_open #loginpane            { height: 59px; }
.search_open #q_search .wrp,
.login_open  #loginpane .wrp,
.loginf_open #loginpane .wrp       { opacity: 1; }

.droptopbar .btn { height: 33px; padding: 6px 14px; }

.q_search { position: relative; }
.q_search > input {
  width: 100%; height: 59px;
  line-height: 23px;
  padding: 18px 130px 18px 0;
  border-radius: 0;
  background: none !important;
  color: var(--clr-bg) !important;
  display: block;
  border: 0 none;
  font-size: 1em;
  box-shadow: none;
  box-sizing: border-box;
}
.q_search input::-webkit-input-placeholder { color: var(--clr-bg); }
.q_search > .btn {
  position: absolute; right: 0; top: 0;
  margin: 13px 0 0;
  background: none;
  color: var(--clr-bg) !important;
  box-shadow: inset 0 0 0 1px #383e42;
  cursor: pointer;
}
.q_search > .btn:hover { box-shadow: inset 0 0 0 1px #64696c; }


/* ============================================================
   17. USER AUTH / LOGIN PANEL
   ============================================================ */
.login > .avatar {
  display: inline-block;
  padding: 5px;
  position: relative;
  border-radius: var(--r-full);
  border: 1px solid var(--clr-bg);
}
.login > .avatar > .cover,
.login > .avatar { width: 31px; height: 31px; }

.pmnum_0 > .num { display: none; }
.num {
  background: var(--clr-bg);
  color: var(--clr-body);
  font-weight: bold;
  height: 12px; line-height: 11px;
  min-width: 8px; padding: 1px 3px;
  display: inline-block; vertical-align: top;
  text-align: center; font-size: 9px;
  border-radius: 7px;
}
.login > .avatar > .num { position: absolute; left: 0; bottom: 0; margin: 0 0 -1px -1px; }

/* Login pane */
#loginpane {
  color: var(--clr-bg);
  position: absolute;
  left: 0; top: 0;
  margin-top: -59px;
}

.page::before {
  content: "";
  display: block;
  width: 100%; height: 0;
  background-color: var(--clr-dark-2);
  transition: height var(--t-base);
}
.login_open .page::before,
.loginf_open .page::before { height: 59px; }

/* Login form */
ul.login_form {
  list-style: none; padding: 0; margin: 0;
  border-radius: var(--r-sm);
  border: 1px solid #383e42;
  float: left;
  margin: 13px 20px 0 0;
}
.login_form::after { clear: both; display: block; content: ""; }
.login_form > li   { float: left; width: 160px; margin: 0; padding: 0; }
.login_form > li > label { display: none; }
.login_form > li > input {
  font-size: 1em;
  height: 33px; padding: 6px 14px;
  background: none !important;
  border: 0 none;
  border-left: 1px solid #383e42;
  border-radius: 0;
  color: var(--clr-bg);
}
.login_form > li:first-child > input         { border-left-width: 0; }
.login_form > li > input::-webkit-input-placeholder { color: var(--clr-bg); }
.login_form > li > .btn                      { background: none !important; border-radius: 0; border-left: 1px solid #383e42; }
.login_form > li > .btn:hover                { color: var(--clr-brand) !important; }

.login_form_links { float: right; margin-top: 17px; height: 23px; line-height: 23px; }
.login_form_links > a { margin-left: 20px; }

#loginpane .name              { float: left; margin: 20px 30px 0 0; }
#loginpane .name > a          { color: var(--clr-bg); text-decoration: none !important; }
#loginpane .name > a:hover    { color: var(--clr-brand); }
#loginpane .login_menu        { float: left; list-style: none; padding: 0; margin: 20px 0 0; }
#loginpane .login_menu > li   { display: inline; margin-right: 20px; }
#loginpane .login_menu > li a { color: #bebfc0; text-decoration: none !important; }
#loginpane .login_menu > li a:hover { color: var(--clr-bg); }

.lm_num {
  background: var(--clr-dark-4);
  font-weight: bold;
  height: 16px; line-height: 16px;
  min-width: 16px; padding: 3px;
  display: inline-block; vertical-align: middle;
  text-align: center; font-size: 12px;
  border-radius: 11px;
  margin: -.2em .4em 0 0;
  color: var(--clr-bg);
}

/* Social links in header */
.soc_links {
  float: left;
  display: flex;
  justify-content: space-between;
  padding: 1px;
  margin: 13px 0 0;
}
.soc_links > a {
  display: inline-block;
  width: 31px; height: 31px; line-height: 31px;
  border-radius: var(--r-full);
  background-color: var(--clr-dark-4);
  text-align: center;
  margin-left: 6px;
  opacity: .5;
  transition: all var(--t-fast);
}
.soc_links > a:hover             { opacity: 1; }
.soc_links > a > .icon           { fill: var(--clr-bg); vertical-align: middle; margin: -3px 0 0; }

.soc_vk:hover   { background-color: #5486ca; }
.soc_tw:hover   { background-color: #60bbf5; }
.soc_fb:hover   { background-color: #4268ca; }
.soc_gp:hover   { background-color: #de553a; }
.soc_ya:hover   { background-color: #ff0000; }
.soc_od:hover   { background-color: #ff7800; }
.soc_mail:hover { background-color: #006cff; }


/* ============================================================
   18. FOOTER
   ============================================================ */
#footer { padding: var(--sp-2xl) 0; border-top: 1px solid var(--clr-border-light); }

.foot_menu {
  font-size: .92em;
  list-style: none; padding: 0; margin: 0 0 var(--sp-2xl);
}
.foot_menu::after { clear: both; display: table; content: ""; }
.foot_menu > li > b                  { color: #caced1; display: block; margin-bottom: 1em; text-transform: uppercase; }
.foot_menu > li:hover > b            { color: var(--clr-brand); }
.foot_menu > li > b > i              { display: none; }
.foot_menu > li nav > a              { color: inherit; display: block; padding: .2em 0; text-decoration: none !important; font-size: .98em; }
.foot_menu > li nav > a:hover        { color: var(--clr-brand); }

@media only screen and (min-width: 701px) {
  .foot_menu > li > div { display: block !important; height: auto !important; width: auto !important; }
}

/* Copyright bar */
.foot {
  padding-top: 20px;
  border-top: 1px solid var(--clr-border-light);
  font-size: .9em;
}
.foot::after { content: ""; clear: both; display: block; }

/* Logo/CA */
.ca             { float: left; white-space: nowrap; }
a.ca *          { cursor: pointer; }
.ca::after      { clear: both; display: block; content: ""; }
.ca > span {
  width: 38px; height: 38px; float: left;
  border: 1px solid #d1d3d5; border-radius: var(--r-full);
  margin-right: 15px;
}
.ca > span > .icon         { fill: #d1d3d5; }
.ca:hover > span           { border-color: #404549; }
.ca:hover > span > .icon   { fill: #404549; }
.ca > div                  { float: left; }
.ca > div > b              { display: block; text-transform: uppercase; }
.ca > span > .icon         { display: block; margin: 7px 0 0 8px; fill: #cbcbcb; }

/* Counters */
.counters { list-style: none; margin: 0; padding: 0; float: right; }
.counters::after { clear: both; display: block; content: ""; }
.counters > li {
  float: left; opacity: .5; height: 31px;
}
.counters > li:first-child { margin-left: 0; }
.counters > li:hover       { opacity: 1; }


/* ============================================================
   19. POLL / VOTE LINE
   ============================================================ */
.vote_line { position: relative; background-color: var(--clr-brand); }

@media only screen and (min-width: 701px) {
  .vote_line { height: 55px; }
  .vote_line::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 50%;
    background-color: var(--clr-body);
  }
  .vote_line > .wrp    { position: relative; z-index: 1; background-color: var(--clr-brand); }

  .vote_line_title {
    float: left;
    margin: 0 0 0 -20px;
    background-color: var(--clr-body);
    height: 25px; line-height: 25px;
    padding: 15px 20px;
    position: relative;
    color: var(--clr-bg);
  }
  .vote_line_title::after {
    content: "";
    position: absolute;
    left: 100%; top: 0;
    vertical-align: middle;
    border: solid transparent;
    border-left-color: var(--clr-body);
    border-width: 28px 0 27px 16px;
  }

  .vote_icon { display: inline-block; width: 12px; height: 16px; vertical-align: middle; margin: -.2em 0 0 .4em; }
  .vote_icon > i { display: block; width: 100%; height: 1px; background-color: var(--clr-brand); margin-top: 4px; }
  .vote_icon > i:first-child { margin-top: 0; }
  .vote_icon > i.i1 { width: 80%; }
  .vote_icon > i.i2 { width: 100%; }
  .vote_icon > i.i3 { width: 40%; }
  .vote_icon > i.i4 { width: 60%; }

  .vtitle {
    white-space: nowrap; overflow: hidden;
    font-weight: bold;
    height: 25px; line-height: 25px;
    padding: 15px 0;
    margin: 0 0 0 165px;
    color: var(--clr-bg);
  }

  .vote_line_form {
    position: absolute;
    right: 0; top: 0;
    margin-right: 20px;
    padding: 7px 20px;
    height: 41px;
    background-image: linear-gradient(to right, rgba(255,72,91,0) 0%, rgba(255,72,91,1) 10%);
  }
  .vote_line_form .dropdown,
  .vote_line_form .more_votes { float: right; }
}

.vote_line_form .more_votes {
  color: var(--clr-bg); font-size: .9em;
  height: 25px; line-height: 25px;
  padding: 8px 20px;
}
.vote_line_form .dropdown .dropdown-form {
  width: 210px;
  right: 0; bottom: 57px; top: auto; left: auto;
}
.vote_line_form .dropdown.open::after {
  content: "";
  position: absolute;
  left: 50%; top: 0; z-index: 100;
  margin: -17px 0 0 -14px;
  border: solid transparent;
  border-top-color: var(--clr-bg);
  border-width: 14px 14px 0 14px;
}
.vote_line_form .dropdown .dropdown-form .vote_list { font-size: .9em; margin-top: 0; }
.vote_line_form .dropdown .btn_border               { margin-top: 6px; }

/* Vote list */
.vote_list { margin: 1.5em 0; }
.vote_list .vote,
.vote_list .pollanswer { margin: 0 0 .6em; }
.vote_list .vote > input,
.vote_list .pollanswer > input { display: none; }

.vote_list .vote > input + label::before,
.vote_list .pollanswer > input + label::before {
  display: inline-block;
  width: 4px; height: 4px;
  border: 5px solid #e4e4e4;
  background-color: transparent;
  margin: -.2em 4px 0 0;
  vertical-align: middle;
  cursor: pointer;
  content: "";
  border-radius: var(--r-sm);
}
.vote_list .vote > input[type="radio"] + label::before,
.vote_list .pollanswer > input[type="radio"] + label::before { border-radius: var(--r-full); }

.vote_list .vote > input + label:hover::before,
.vote_list .pollanswer > input + label:hover::before { background-color: var(--clr-brand); }
.vote_list .vote > input:checked + label::before,
.vote_list .pollanswer > input:checked + label::before { background-color: var(--clr-body); border-color: var(--clr-brand); }

.vote_list .vote > input + label::before,
.vote_list .vote > input:checked + label::before,
.vote_list .pollanswer > input + label::before,
.vote_list .pollanswer > input:checked + label::before {
  transition: all var(--t-base);
}

.vote_votes, .pollallvotes { font-size: .9em; }
#dlevotespopupcontent { height: auto !important; overflow: visible !important; }

/* Poll in article */
.poll_block { margin-top: 50px; }
.poll_title { border-left: 1px solid var(--clr-brand); position: relative; }
.poll_title::after,
.poll_title::before { content: ""; position: absolute; left: 0; background: var(--clr-brand); height: 1px; }
.poll_title::before { top: 0; width: 100%; }
.poll_title::after  { bottom: 0; width: 45%; }

.poll_title > b { display: block; padding: 16px 24px; }
.poll_title > b::after,
.poll_title > b::before {
  content: "";
  position: absolute;
  left: 27px; top: 100%;
  border: solid transparent;
  border-top-color: var(--clr-brand);
  border-width: 13px 13px 0 0;
}
.poll_title > b::after { border-top-color: var(--clr-bg); margin: -2px 0 0 1px; z-index: 1; }

/* Blockquote */
.quote, blockquote {
  font-style: italic;
  color: #333;
  padding: 20px;
  border-left: 5px solid var(--clr-brand);
  background-color: #f9f9f9;
  margin: 20px 0;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  border-radius: var(--r-xl);
}


/* ============================================================
   20. GAME BLOCKS (skidrow/reloaded images, badges)
   ============================================================ */
.skidrow-image,
.reloaded-image {
  display: flex; justify-content: center; align-items: center; margin: 0;
}
.skidrow-image img,
.reloaded-image img { max-width: 100%; height: auto; }
.reloaded-image     { margin-bottom: 10px; }

.game-bad {
  display: flex; justify-content: center;
  flex-wrap: wrap; list-style-type: none;
  padding: 0; margin: 20px; font-weight: 500;
  gap: 8px;
}
.game-bad li { margin: 0; padding: 6px 14px; background: var(--clr-bg-light); border-radius: var(--r-lg); white-space: nowrap; border: 1px solid var(--clr-border); box-shadow: var(--shadow-xs); transition: all var(--t-base); font-size: .85em; letter-spacing: .02em; }
.game-bad li:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
li.game-bad-release  { background: linear-gradient(135deg, var(--clr-dark-2), var(--clr-dark)); color: var(--clr-bg); border-color: transparent; }
li.game-bad-download { background: linear-gradient(135deg, #FFCC80, #ffb74d); color: #4b4b4b; border-color: transparent; }
li.game-bad-torrent  { background: linear-gradient(135deg, #B3E5FC, #81d4fa); color: #1a3c5a; border-color: transparent; }
li.new-post          { background: linear-gradient(135deg, #c8e6c9, #a5d6a7); color: #1b5e20; border-color: transparent; }

.text.description h2,
.text.description h3,
.text.description h4,
.text.description h5 { margin: .8em 0 .5em; }

.grid_1_4 .relgames-images { width: 100%; height: auto; overflow: hidden; }
.grid_1_4 .relgames-images img { width: 100%; height: auto; max-width: 100%; object-fit: cover; margin-bottom: 10px; }


/* ============================================================
   21. DAILY UPDATES
   ============================================================ */
h3.daily-updates { margin-top: 0; }
.daily-upd       { margin-bottom: 40px; }

.scroll-container {
  display: flex; flex-direction: column; gap: 15px;
  max-height: min(600px, 50vh);
  overflow-y: auto;
  padding-right: 12px;
  box-sizing: content-box;
}
.scroll-container::-webkit-scrollbar       { width: 6px; }
.scroll-container::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 3px; }
.scroll-container::-webkit-scrollbar-thumb { background-color: var(--clr-brand); border-radius: 3px; }
.scroll-container::-webkit-scrollbar-thumb:hover { background-color: var(--clr-brand-hover); }

.daily_update {
  display: flex; flex-direction: column;
  padding: 15px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  transition: all var(--t-slow);
  color: #202124;
}
.daily_update:hover {
  transform: translateY(-3px);
  background: #f5f5f5;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.daily_update a {
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; height: 100%;
}

.poster-wrapper  { position: relative; flex-shrink: 0; }
.update-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--clr-brand); color: var(--clr-bg);
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 10px;
  text-transform: uppercase;
}
.info_update   { display: flex; flex-direction: column; text-align: left; flex-grow: 1; }
.date_update   { font-size: 12px; color: #5f6368; margin-bottom: 5px; }
.image_updates {
  display: block; width: 100%; aspect-ratio: 16/9;
  object-fit: cover; border-radius: var(--r-lg);
  background-color: #f0f0f0;
  margin: 0 auto 12px;
}
.next_prev_game {
    margin-right: calc(-320px - 30px);
    margin-top: var(--f-button-width);
}


/* ============================================================
   22. SCREENSHOTS
   ============================================================ */
.screenshots-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;width:100%}
.screenshots-grid figure{margin:0;overflow:hidden;border-radius:8px;background:#111;border:1px solid #ffffff0d;transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease;position:relative}
.screenshots-grid .highslide{display:block;position:relative;width:100%;height:100%}
.screenshots-grid .highslide::after{content:"\f00e";font-family:"Font Awesome 6 Free";font-weight:900;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(.8);font-size:22px;color:#fff;width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .3s ease,transform .3s ease;pointer-events:none}
.screenshots-grid figure:hover .highslide::after{opacity:1;transform:translate(-50%,-50%) scale(1)}
.screenshots-grid figure:last-child:nth-child(odd){grid-column:span 2}
.screenshots-grid .scr{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;transition:transform .5s ease,filter .3s ease}
.screenshots-grid figure:last-child:nth-child(odd) .scr{aspect-ratio:21/9}
.screenshots-grid figure:hover{border-color:#db3622;transform:translateY(-2px);box-shadow:0 10px 20px #0006}
.screenshots-grid figure:hover .scr{transform:scale(1.05);filter:brightness(1.1)}
@media (max-width: 760px) {
.screenshots-grid{grid-template-columns:1fr}
.screenshots-grid figure:last-child:nth-child(odd){grid-column:span 1}
.screenshots-grid .scr,.screenshots-grid figure:last-child:nth-child(odd) .scr{aspect-ratio:16/9}
}

/* ============================================================
   23. UPCOMING GAME NOTICE
   ============================================================ */
.upcoming-game {
  background-color: #f8d7da; color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 15px; border-radius: var(--r-lg);
  margin: 20px 0;
}
.upcoming-game i { font-size: 24px; margin-right: 10px; color: #dc3545; }
.upcoming-game b { color: #343a40; }


/* ============================================================
   24. DOWNLOAD BLOCK
   ============================================================ */
.download-torrent {
  margin: 40px auto;
  padding: 30px 20px;
  background: var(--clr-bg-dark);
  text-align: center;
  border-left: 5px solid #8bc34b;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  border-radius: var(--r-lg);
  max-width: 800px;
}
.download-torrent h2 { margin: 0 !important; font-size: 1.5rem; }
.size-torrent        { margin-top: 10px; font-size: 16px; color: #666; }

.howto-container {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-top: 24px;
}
.howto_d, .howto_do {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 8px 18px;
  border-radius: 50px;
  background: #f5f5f5; color: #555;
  border: 1px solid #e5e5e5;
  transition: all var(--t-base);
  text-decoration: none; font-weight: 500;
}
.howto_d:hover, .howto_do:hover { background: #fafafa; border-color: #d5d5d5; color: #333; }

.icon-grey                             { width: 16px; height: 16px; opacity: .5; transition: opacity var(--t-base); }
.howto_d:hover .icon-grey,
.howto_do:hover .icon-grey             { opacity: .7; }

@media (max-width: 768px) {
  .howto-container { flex-direction: column; gap: 10px; margin-top: 20px; }
}


/* ============================================================
   25. TORRENT TABLE
   ============================================================ */
.torrent-block { margin: 30px auto 10px; }
  .torrent-block h3 {
    margin: 0 0 16px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--clr-muted);
  }

.torrent-table {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 100px 80px 80px 150px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  background: var(--clr-bg);
}

.torrent-header                 { display: contents; }
.torrent-header .torrent-cell   { background: #f8f9fa; font-weight: 700; padding: 12px 16px; text-align: left; border-bottom: 1px solid #e0e0e0; color: #333; }

.torrent-row {
  display: contents;
  text-decoration: none; color: inherit;
  transition: background-color var(--t-base);
}
.torrent-row:hover .torrent-cell { background: #f4f4f4; color: #222; }

.torrent-cell {
  padding: 12px 16px;
  border-bottom: 1px solid #e9ecef;
  display: flex; align-items: center; color: #666;
}
.torrent-cell:first-child { min-width: 0; }
.torrent-name {
  flex: 1; min-width: 0;
  white-space: normal; word-break: break-word;
  overflow-wrap: anywhere; color: #333;
}
.torrent-badge {
  display: inline-block; padding: 4px 8px;
  border-radius: var(--r-sm); font-size: .8rem;
  font-weight: 600; margin-left: 8px;
  white-space: nowrap; flex-shrink: 0;
}
.torrent-badge-fast { background: #28a745; color: var(--clr-bg); }
.torrent-badge-slow { background: #fecc80; color: #4b4b4b; }

.torrent-action { justify-content: center; }
.torrent-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 24px;
  background: var(--clr-brand); color: var(--clr-bg);
  border: none; border-radius: var(--r-md);
  font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: background-color var(--t-base);
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  width: 100%; max-width: 140px; min-height: 48px;
}
.torrent-btn:hover { background: var(--clr-brand-hover); background: color-mix(in srgb, var(--clr-brand), black 15%); }
.torrent-btn:focus-visible {
  outline: 2px solid rgba(236,46,28,.3);
  outline-offset: 2px;
}
.torrent-icon { font-size: 16px; color: var(--clr-bg); }
.torrent-cell:first-child .torrent-name { display: inline-block; }

@media (max-width: 1000px) {
  .torrent-table  { grid-template-columns: minmax(200px,1fr) 90px 70px 70px 130px; }
  .torrent-cell   { padding: 10px 12px; }
  .torrent-btn    { padding: 8px 20px; max-width: 120px; min-height: 40px; font-size: .85rem; }
  .torrent-badge  { font-size: .75rem; padding: 3px 6px; margin-left: 6px; }
}
@media (max-width: 880px) {
  .torrent-table      { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .torrent-header     { display: none; }
  .torrent-row {
    display: block; padding: 16px;
    background: var(--clr-bg);
    border-bottom: 2px solid #eee;
    margin-bottom: 16px; border-radius: var(--r-lg);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
  }
  .torrent-row:last-child  { margin-bottom: 0; }
  a.torrent-row:hover      { text-decoration: none; }
  .torrent-cell {
    border: none; padding: 8px 0;
    display: block; font-size: 1rem; line-height: 1.4;
  }
  .torrent-cell::before    { content: attr(data-label); font-weight: 700; color: #333; display: block; margin-bottom: 6px; }
  .torrent-action          { margin-top: 12px; }
  .torrent-btn             { width: 100%; max-width: none; }
  .torrent-badge           { margin-top: 6px; display: inline-block; }
  .torrent-name            { white-space: normal; }
}

/* Torrent footer track */
.torrent-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 15px; flex-wrap: wrap; gap: 10px;
}
.torrent-footer-item   { display: flex; gap: 6px; font-size: 11px; min-width: 0; }
.torrent-footer-label  { color: var(--torrent-text-secondary, #888); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; flex-shrink: 0; }
.torrent-footer-value  { color: var(--torrent-text-primary, #333); font-family: monospace; word-break: break-all; }

@media (max-width: 600px) {
  .torrent-footer { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   26. DOWNLOAD FILES SECTION
   ============================================================ */
.download-section {
  background: var(--clr-bg-dark);
  padding: 24px; border-radius: var(--r-xl);
  color: #333;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  margin: 20px 0 40px;
  box-sizing: border-box;
}
.download-section h3 { font-size: 1.25em; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: #1e293b; }
.download-section h3 i { color: #3b82f6; }

.source-name { font-size: .95em; font-weight: 500; margin: 12px 0 6px; color: #555; }

.download-item {
  background-color: var(--clr-bg);
  padding: 12px 14px;
  border: 1px solid #e0e0e0; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px;
  transition: box-shadow var(--t-base);
}
.download-item:hover { box-shadow: 0 2px 6px rgba(0,0,0,.08); }

.download-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border: 1px solid #3b82f6; border-radius: var(--r-md);
  background-color: #3b82f6; color: var(--clr-bg);
  font-size: 14px; text-decoration: none;
  transition: all var(--t-slow);
}
.download-btn:hover { background-color: #2563eb; border-color: #2563eb; background-color: color-mix(in srgb, #3b82f6, black 15%); border-color: color-mix(in srgb, #3b82f6, black 15%); }
.download-btn:focus-visible {
  outline: 2px solid rgba(59,130,246,.35);
  outline-offset: 2px;
}

.file-info       { font-size: .85em; color: #666; flex-shrink: 0; }

.guides-section     { margin-top: 24px; border-top: 1px solid #e0e0e0; padding-top: 16px; }
.guides-section h4  { font-size: 1.1em; font-weight: 600; margin-bottom: 10px; color: #1e293b; }
.guide-links        { display: flex; flex-wrap: wrap; gap: 10px; }
.guide-link {
  padding: 8px 12px;
  border: 1px solid #ccc; border-radius: var(--r-md);
  color: #333; font-size: 13px; text-decoration: none;
  background: #fafafa;
  transition: all var(--t-slow);
}
.guide-link:hover { background-color: #3b82f6; color: var(--clr-bg); border-color: #3b82f6; background-color: color-mix(in srgb, #3b82f6, black 15%); border-color: color-mix(in srgb, #3b82f6, black 15%); }

.section-title   { font-size: 1.1em; font-weight: 600; margin-bottom: 10px; }
span.title-text  { color: #3b82f7; }
h3.page__subtitle { margin-bottom: 20px; font-size: 16px; }

.description-section, .system-requirements-section, .game-details-section, .screen-section, .youtube-section, .install-section {
    margin-bottom: var(--sp-xl);
}
h2.section-title {
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}
h2.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 1px;
    background: #dc3522;
}

.update-history { padding: 20px; border-radius: var(--r-sm); border: 1px solid #efefef; }

@media (max-width: 700px) {
  .download-section { padding: 16px; }
  .download-item    { flex-direction: column; align-items: flex-start; gap: 8px; }
  .download-btn     { width: 100%; padding: 8px 12px; }
  .file-info        { margin-top: 4px; }
  .guide-links      { flex-direction: column; }
  .guide-link       { width: 100%; }
}


/* ============================================================
   27. STEAM REVIEWS
   ============================================================ */
.steam-reviews {
  margin-top: 20px; margin-bottom: 0;
  padding: 5px 10px;
  background-color: #efefef; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; gap: 5px;
}
.steam-reviews__label,
.steam-reviews__rating { font-weight: 500; }
.steam-reviews__rating--very-positive { color: #4caf51; }
.steam-reviews__rating--positive      { color: #fb9301; }
.steam-reviews__rating--neutral       { color: #1f9cba; }


/* ============================================================
   28. MODERN RATING BOX
   ============================================================ */
.rating-full-width { width: 100%; margin: 24px 0 30px; font-family: 'Inter', system-ui, -apple-system, sans-serif; clear: both; }
.modern-rating-box { width: 100%; background: #ffffff !important; border: 1px solid rgba(226, 232, 240, 0.8) !important; border-radius: 16px !important; padding: 32px 0 !important; box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.06) !important; display: flex; justify-content: center; position: relative; overflow: visible; }
.modern-rating-box::before { content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: 40%; height: 3px; background: linear-gradient(90deg, transparent, var(--clr-brand), #ffb027, transparent); border-radius: 0 0 10px 10px; }
.rating-content-wrapper { display: flex; align-items: center; gap: 48px; width: 100%; max-width: 620px; padding: 0 32px; }
.rating-score-block { position: relative; flex-shrink: 0; }
.progress-circle-wrapper { position: relative; width: 110px; height: 110px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 50%; box-shadow: 0 0 20px rgba(0,0,0,0.03); }
.progress-circle-wrapper::after { content: ""; position: absolute; inset: -8px; background: radial-gradient(circle, var(--rating-clr, var(--clr-brand)) 0%, transparent 70%); opacity: 0.08; z-index: -1; filter: blur(8px); transition: background 0.5s ease; }
.progress-circle { width: 110px; height: 110px; position: absolute; top: 0; left: 0; }
.progress-bg { opacity: 0.06; }
.score-content { text-align: center; line-height: 1.1; z-index: 1; }
.rating-value { display: block; font-size: 38px; font-weight: 900; color: #111827; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.rating-label { font-size: 10px; color: #718096; font-weight: 800; text-transform: uppercase; margin-top: 2px; display: block; letter-spacing: 0.8px; white-space: nowrap; }
.rating-interactive-block { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 90px; }
.rating-title { font-size: 18px; font-weight: 900; color: #0f172a; text-transform: uppercase; letter-spacing: 0.8px; line-height: 1; margin: 0; }
.rate_stars_wrapper { width: 160px; height: 32px; position: relative; margin: 2px 0; cursor: pointer !important; }
.rate_stars_wrapper .unit-rating { list-style: none !important; margin: 0 !important; padding: 0 !important; width: 160px !important; height: 32px !important; position: relative !important; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%23e2e8f0' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") repeat-x !important; background-size: 32px 32px !important; border: 0 !important; cursor: pointer !important; }
.rate_stars_wrapper .unit-rating li { padding: 0 !important; margin: 0 !important; float: left !important; background: none !important; cursor: pointer !important; }
.rate_stars_wrapper .unit-rating li.current-rating { position: absolute !important; top: 0 !important; left: 0 !important; height: 32px !important; z-index: 1 !important; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffb027' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") repeat-x !important; background-size: 32px 32px !important; filter: drop-shadow(0 0 5px rgba(255, 176, 39, 0.3)); pointer-events: none; }
.rate_stars_wrapper .unit-rating:hover li.current-rating { opacity: 0 !important; }
.rate_stars_wrapper .unit-rating li a { display: block !important; height: 32px !important; width: 32px !important; position: absolute !important; top: 0 !important; z-index: 10 !important; cursor: pointer !important; background: none !important; border: 0 !important; }
.rate_stars_wrapper .unit-rating li a:hover { background: none !important; }
.stars-hover-overlay { position: absolute; top: 0; left: 0; height: 32px; width: 0; z-index: 6; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffcc33' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") repeat-x; background-size: 32px 32px; transition: width 0.1s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer !important; }
.rating-meta { font-size: 13px; color: #64748b; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.rating-meta svg { opacity: 0.8; color: #94a3b8; width: 15px; height: 15px; }
.rating-meta b { color: #334155; font-weight: 700; }
@media screen and (max-width: 650px) { 
  .modern-rating-box { padding: 24px 15px !important; width: auto !important; margin-left: -15px; margin-right: -15px; border-radius: 0 !important; } 
  .rating-content-wrapper { flex-direction: column; gap: 24px; text-align: center; padding: 0 15px; } 
  .rating-score-block { order: 1; } 
  .rating-interactive-block { order: 2; align-items: center; gap: 10px; min-height: auto; } 
  .rating-title { font-size: 16px; } 
}
.mini-rate-box {display: inline-flex;align-items: center;gap: 8px;padding: 0 12px;height: 38px;background: rgba(255,255,255,0.03);border: 1px solid rgba(255,255,255,0.1);border-radius: 20px;vertical-align: middle;margin-left: 8px;transition: all 0.2s ease}
.mini-rate-box:hover {background: rgba(255,255,255,0.08);border-color: rgba(255,255,255,0.2)}
.mini-rate-box i {font-size: 13px;color: #ffc107}
.mini-rate-box .m-score {font-size: 14px;font-weight: 700;color: #fff;line-height: 1;display: flex;align-items: baseline}
.mini-rate-box .m-score small {font-size: 10px;color: rgba(255,255,255,0.4);font-weight: 400;margin-left: 1px}
.mini-rate-box .m-votes {font-size: 12px;color: rgba(255,255,255,0.5);font-weight: 400}
@media screen and (max-width: 600px) {.mini-rate-box .m-votes {display: none}}

/* ============================================================
   29. YOUTUBE / VIDEO EMBED
   ============================================================ */
.video-box { position: relative; width: 100%; max-width: 100%; margin: 0 auto 20px; }
.video-box .title-games { margin-bottom: 10px; font-size: 1.5em; font-weight: 700; }

lite-youtube {
  display: block; position: relative; width: 100%;
  aspect-ratio: 16/9;
  background-color: #000;
  background-position: center; background-size: cover;
  cursor: pointer; contain: content; overflow: hidden;
}
lite-youtube .lty-playbtn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 85px; height: 70px;
  background: url(https://upload.wikimedia.org/wikipedia/commons/e/ef/Youtube_logo.png) no-repeat center;
  background-size: contain;
  border: none; cursor: pointer; z-index: 1;
  transition: opacity .2s cubic-bezier(0, 0, .2, 1);
}
lite-youtube:hover .lty-playbtn,
lite-youtube .lty-playbtn:focus        { opacity: .8; }
lite-youtube.lyt-activated .lty-playbtn { opacity: 0; pointer-events: none; }
lite-youtube iframe { position: absolute; width: 100%; height: 100%; top: 0; left: 0; border: none; display: block; }
.lyt-visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

/* Steam video */
.video_steam  { position: relative; margin-bottom: 20px; overflow: hidden; }
.moviesteam   { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.moviesteam video,
.moviesteam iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0; outline: 0; cursor: pointer;
}
.video_click_area {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: transparent; cursor: pointer; z-index: 2;
}
.play_video {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  color: var(--clr-bg);
  background-color: rgba(0,0,0,.375);
  border: 1px solid rgba(170,170,170,.2);
  opacity: .75;
  transition: opacity .5s ease-in-out, transform .5s ease-in-out;
  border-radius: var(--r-full);
  cursor: pointer; z-index: 3;
}
.play_video.hidden { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(.9); }
.i_play::before    { content: "\25BA"; font-size: 20px; transition: all .16s ease-in-out; }
.play_video:hover  { background-color: rgba(0,0,0,.67); transform: translate(-50%, -50%) scale(1.1); opacity: 1; }


/* ============================================================
   30. OTHER VERSIONS BLOCK
   ============================================================ */
.other-versions {
  padding: 20px; margin-bottom: 20px;
  background-color: var(--clr-bg);
  border: 1px solid var(--clr-border-light); border-radius: var(--r-md);
}
.other-versions .title { margin: 0 0 10px; font-size: 16px; text-transform: uppercase; color: var(--clr-body); font-weight: 700; }
.versions-list  { margin: 0; padding: 0; list-style: none; }
.version-item   { padding: 10px 0; border-bottom: 1px solid var(--clr-border); transition: transform var(--t-base); }
.version-item:last-child  { border-bottom: none; }
.version-item:hover       { transform: translateX(5px); }
.version-link {
  text-decoration: none; color: var(--clr-body); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 8px; position: relative;
}
.version-link svg         { transition: fill var(--t-base); flex-shrink: 0; transform: translateY(2px); }
.version-link:hover       { color: var(--clr-brand); }
.version-link:hover svg   { fill: var(--clr-brand); }
.story.lefticons h4.title { padding: 0; }

.version-tag {
  display: inline-block; margin-left: 12px; padding-left: 12px;
  border-left: 2px solid rgb(219 219 219);
  font-weight: 400; font-size: .9em; color: #aaa; line-height: 1;
}
@media (max-width: 600px) {
  .version-tag { display: block; border-left: none; border-top: 1px solid rgba(219,219,219,.8); margin-left: 0; padding-left: 0; margin-top: 5px; padding-top: 5px; }
}

.v-size-badge {
  font-size: 11px; background: #f0f0f1; color: #888;
  padding: 2px 8px; border-radius: var(--r-sm);
  font-weight: 600; margin-left: auto;
  border: 1px solid var(--clr-border);
  transition: all var(--t-base);
  white-space: nowrap;
}
.version-link:hover .v-size-badge { background: var(--clr-brand); color: var(--clr-bg); border-color: var(--clr-brand); }
.version-link span[itemprop='name'] { margin-right: 10px; }


/* ============================================================
   31. STORY (article list)
   ============================================================ */
.story { background-color: var(--clr-bg); padding: 50px 0; }
.shadow { position: relative; border-bottom: none; }
.shadow::after { position: static; background-image: none; }

.story_list > .story:not(:last-child)::before {
  content: "";
  display: block; position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px); height: 1px;
  background: linear-gradient(to right, transparent, var(--clr-border) 20%, var(--clr-border) 80%, transparent);
}

.story > .wrp::after { clear: both; display: block; content: ""; }
.story > .wrp        { position: relative; }
.story .head         { margin-bottom: 1.5em; overflow: hidden; }
.story .head .title  { margin-top: -.2em; margin-bottom: 0; }
.story .head .title > a {
  display: block; color: inherit; text-decoration: none !important;
}
.story .head .title > a:hover {
  color: #969fa7;
  transition: color var(--t-base);
}

/* Story icons (fav/edit) */
.story_icons {
  position: absolute; top: 0; right: 0;
  display: flex; flex-direction: column; gap: 6px; z-index: 2;
}
.story .head { padding-right: 70px; }

@media only screen and (max-width: 700px) {
  .story_icons         { top: 0; right: 0; }
  .story .head         { padding-right: 60px; }
}

/* Fav button */
.fav_btn > a {
  display: block; width: 29px; height: 29px;
  border-radius: var(--r-full); text-align: center; overflow: hidden;
  margin-bottom: 14px;
  background-color: var(--clr-brand);
  box-shadow: var(--shadow-xs);
}
.fav_btn .icon {
  fill: var(--clr-bg); width: 15px; height: 15px;
  display: block; margin: 6px auto 0;
}
.fav_btn > a[href*="del"] {
  background-color: #fabd34;
  background-image: linear-gradient(to bottom, #fbc431 0%, #f8b337 100%);
}

/* Edit button */
.story_left_icons .edit_btn > a { margin-bottom: 14px; border-color: #404549; }
.edit_btn > a {
  position: relative; overflow: hidden;
  width: 27px; height: 27px; border-radius: var(--r-full);
  border: 1px solid transparent;
  display: flex; justify-content: center; align-items: center;
}
.edit_btn > a:hover { border-color: var(--clr-brand); }
.edit_btn > a > i,
.edit_btn > a i::after,
.edit_btn > a i::before {
  width: 13px; height: 1px;
  background-color: #404549; display: block; position: relative;
}
.edit_btn > a i::after,
.edit_btn > a i::before { content: ""; position: absolute; top: 0; left: 0; }
.edit_btn > a i::after  { margin-top: -4px; }
.edit_btn > a i::before { margin-top: 4px; }
.edit_btn > a:hover > i,
.edit_btn > a:hover i::after,
.edit_btn > a:hover i::before { background-color: var(--clr-brand); }

/* Story info (meta) */
.story_info { float: right; margin-right: 0; font-size: .92em; }

@media only screen and (min-width: 701px) {
  .storyinfo_link { display: none; }
  .storyinfo      { display: block !important; height: auto !important; width: auto !important; }
}

.storyinfo_link {
  cursor: pointer; position: relative;
  padding-left: 30px; padding-bottom: 1.5em;
  margin-bottom: 1.5em;
  border-bottom: 1px solid var(--clr-border);
}
.storyinfo_link > .icon { float: left; margin: 2px 0 0 -30px; }
.storyinfo_link .arrow  { position: absolute; right: 0; top: 0; margin: .75em 3px 0 0; width: 12px; }
.storyinfo_link .arrow::after,
.storyinfo_link .arrow::before {
  content: ""; position: absolute;
  width: 9px; height: 1px;
  background-color: var(--clr-brand);
  border-radius: var(--r-sm);
  transition: all var(--t-slow);
}
.storyinfo_link .arrow::after { margin-left: 6px; }
.storyinfo_link.collapsed .arrow::after,
.storyinfo_link.collapsed .arrow::before { background-color: #c7c9cc; }
.storyinfo_link.collapsed .arrow::after  { transform: rotate(-45deg); }
.storyinfo_link.collapsed .arrow::before { transform: rotate(45deg); }

@media only screen and (max-width: 700px) {
  .storyinfo_link { margin-top: 20px; }
  .storyinfo      { margin-bottom: 25px; }
  .daily-upd      { display: none; }
}

/* Star rating */
.rate_stars { margin-bottom: 1.5em; }

/* Like button */
.rate_like > a { display: block; text-decoration: none !important; }
.rate_like_icon {
  display: block; width: 27px; height: 27px;
  border-radius: var(--r-full); border: 1px solid #404549;
  text-align: center;
}
.rate_like_icon .icon { fill: #404549; width: 13px; height: 13px; display: block; margin: 7px auto 0; }
.rate_like > a > .grey { display: block; font-size: .85em; text-align: center; margin-top: .3em; }
.comment .rate_like > a             { display: inline-block; }
.comment .rate_like > a > *         { display: inline-block; vertical-align: middle; }
.comment .rate_like > a > .grey     { margin: .1em 0 0 6px; }
.rate_like > a:hover .rate_like_icon        { border-color: var(--clr-brand); }
.rate_like > a:hover .rate_like_icon .icon  { fill: var(--clr-brand); }

/* Like-dislike */
.rate_like-dislike > .grey { display: block; font-size: .85em; text-align: center; margin-top: .3em; }
.rate_like-dislike_in      { position: relative; width: 27px; height: 55px; border-radius: 15px; border: 1px solid #404549; }
.rate_like-dislike_in > a  { display: block; height: 27px; text-align: center; }
.rate_like-dislike_in > a:first-child:hover .plus_icon > span::before,
.rate_like-dislike_in > a:first-child:hover .plus_icon > span::after { background-color: var(--clr-brand); }
.rate_like-dislike_in > a:last-child .plus_icon { padding: 3px; margin: 4px; border: 0 none; border-radius: var(--r-full); background-color: #404549; }
.rate_like-dislike_in > a:hover:last-child .plus_icon { background-color: var(--clr-brand); }
.rate_like-dislike_in > a:last-child .plus_icon > span { margin: 3px 0 0 3px; }
.rate_like-dislike_in > a:last-child .plus_icon > span::after,
.rate_like-dislike_in > a:last-child .plus_icon > span::before { background-color: var(--clr-bg); }
.comment .rate_like-dislike             { display: inline-block; }
.comment .rate_like-dislike > *         { display: inline-block; vertical-align: middle; }
.comment .rate_like-dislike > .grey     { margin: .1em 0 0 6px; }
.comment .rate_like-dislike_in          { height: 27px; width: 55px; }
.comment .rate_like-dislike_in > *      { float: left; }

/* Plus/minus icons */
.plus_icon, .plus_icon > span { width: 13px; height: 13px; }
.plus_icon {
  border: 7px solid transparent;
  display: inline-block; vertical-align: middle; position: relative;
}
.plus_icon > span,
.plus_icon > span::before,
.plus_icon > span::after { overflow: hidden; text-indent: -9999px; white-space: nowrap; position: absolute; }
.plus_icon > span::before,
.plus_icon > span::after { background-color: #1a1a1a; content: ""; }
.plus_icon > span        { left: 0; top: 0; }
.plus_icon > span::after { left: 0; top: 0; width: 100%; height: 1px; margin-top: 6px; }
.plus_icon > span::before { left: 0; top: 0; width: 1px; height: 100%; margin-left: 6px; }
.plus_icon.minus > span::before { display: none; }

/* Meta list */
.meta { list-style: none; padding: 0 0 0 30px; margin: 0; }
.meta > li                       { margin: 0 0 .6em; }
.meta > li > .icon               { float: left; margin: 2px 0 0 -30px; }
.meta > li.meta_date a           { color: inherit; }
li.story_tags                    { margin-top: 1.5em; }
li.story_tags > .icon            { fill: var(--clr-light-muted); float: left; margin: 4px 0 0 -30px; }
.story:nth-child(2n) .tag_list > span > a { background-color: var(--clr-bg); }

/* Tags */
.tag_list > span                 { margin: 0 2px 2px 0; }
.tag_list > span,
.tag_list > span > a             { display: inline-block; }
.tag_list > span > a {
  color: inherit; text-decoration: none !important;
  padding: 3px 6px; border-radius: var(--r-sm);
  background-color: var(--clr-bg-light); margin-bottom: 5px;
}
.tag_list > span > a:hover { background-color: var(--clr-brand) !important; color: var(--clr-bg); position: relative; }

/* Story text */
.story .more { margin-top: 1.5em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; row-gap: 8px; }
.story .more .btn {
  flex-shrink: 0;
  border-radius: 20px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  letter-spacing: -0.1px;
}
.story .text::after { content: ""; display: block; clear: both; }
.story .text > img[style*="left"],
.story .text > .highslide img[style*="left"]  { margin: 4px 20px 20px 0; }
.story .text > img[style*="right"],
.story .text > .highslide img[style*="right"] { margin: 4px 0 20px 20px; }
.story .text img { max-width: 100%; aspect-ratio: auto; height: auto; }

/* Editdate */
.editdate         { padding: 15px; overflow: hidden; position: relative; border: 2px dotted var(--clr-dark); margin-bottom: 20px; border-radius: var(--r-md); }
span.editgame-text { font-weight: 700; color: var(--clr-brand); }

/* Story size / genre badges */
.story-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4b5563;
  font-weight: 600;
  height: 36px;
  padding: 0 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fefefe, #f8f9fb);
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
  flex-shrink: 0;
  letter-spacing: -0.1px;
  font-variant-numeric: tabular-nums;
}
.story-size:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.story-size .icon {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}
.story-genre { gap:6px}
.story-genre a              { color: inherit; text-decoration: none; transition: color var(--t-base); }
.story-genre a:hover        { color: var(--clr-brand); text-decoration: underline; }

@media only screen and (max-width: 700px) {
  .story .more           { flex-direction: column; align-items: flex-start; gap: 10px; }
  .story .more .btn      { width: 100%; text-align: center; }
  .story-size,
  .story-genre           { font-size: .85em; }
}


/* ============================================================
   32. ATTACHMENT / GREEN DOWNLOAD BUTTON
   ============================================================ */
.attachment > a, .attachment_error {
  margin-top: 10px; display: inline-block; text-decoration: none;
  font-family: var(--font-mono);
  background-color: #8BC34A; color: var(--clr-bg);
  border: none; border-radius: var(--r-md);
  padding: 12px 24px; font-size: 16px;
  font-weight: 700; text-transform: uppercase; cursor: pointer;
  transition: background-color var(--t-slow), transform var(--t-base);
}
.attachment > a:hover { background-color: #7CB342; transform: scale(1.05); }
.attachment > a > .icon { float: right; margin: 3px 0 0 15px; }

.download-container { margin-top: 20px; text-align: center; position: relative; }

.greenbutton {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #4CAF50, #2e7d32);
  color: var(--clr-bg); border: none; border-radius: var(--r-2xl);
  cursor: pointer; font-size: 18px; font-weight: 700;
  text-decoration: none !important; margin: 5px;
  transition: all var(--t-slow);
  box-shadow: 0 4px 8px rgba(0,0,0,.2);
  box-sizing: border-box;
}
.greenbutton:hover {
  background: linear-gradient(135deg, #45a049, #276d29);
  box-shadow: 0 6px 12px rgba(0,0,0,.3);
  transform: translateY(-2px);
  text-decoration: none;
}
.greenbutton:focus-visible {
  outline: 2px solid rgba(76,175,80,.4);
  outline-offset: 3px;
}
.greenbutton.disabled { background: #B0BEC5; opacity: .8; cursor: not-allowed; transform: none; box-shadow: none; }

.bluebutton{display:inline-flex;align-items:center;gap:8px;padding:15px 30px;background:linear-gradient(135deg,#2196F3,#1565C0);color:#fff;border:none;border-radius:12px;cursor:pointer;font-size:18px;font-weight:700;text-decoration:none!important;margin:5px;transition:all .3s ease;box-shadow:0 4px 8px #0003;box-sizing:border-box}
.bluebutton:hover{background:linear-gradient(135deg,#1E88E5,#1256A1);box-shadow:0 6px 12px #0000004d;transform:translateY(-2px);text-decoration:none!important}
.bluebutton:focus-visible {
  outline: 2px solid rgba(33,150,243,.4);
  outline-offset: 3px;
}

/* VPN notification */
#vpn-notification-en {
  display: block; padding: 20px;
  margin: 0 auto 20px; max-width: 600px;
  background: rgba(26,26,26,.9); backdrop-filter: blur(10px);
  border: 1px solid #FF4D4F; border-radius: var(--r-2xl);
  color: var(--clr-bg); font-size: 16px; text-align: center;
  box-shadow: 0 8px 16px rgba(0,0,0,.2);
  animation: fadeIn .5s ease-in-out;
}
#vpn-notification-en i { color: #FF4D4F; margin-right: 10px; font-size: 20px; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vpn-action-btn { padding: 10px 20px; margin: 10px 5px; border: none; border-radius: var(--r-lg); font-size: 14px; font-weight: 600; cursor: pointer; transition: all var(--t-slow); }
.vpn-action-btn.primary        { background: linear-gradient(135deg, var(--clr-brand), var(--clr-brand-hover)); color: var(--clr-bg); }
.vpn-action-btn.primary:hover  { background: linear-gradient(135deg, var(--clr-brand-hover), var(--clr-brand-dark)); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,.2); }
.vpn-action-btn.secondary      { background: rgba(255,255,255,.2); color: var(--clr-bg); border: 1px solid rgba(255,255,255,.3); }
.vpn-action-btn.secondary:hover { background: rgba(255,255,255,.3); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,.2); }

@media (max-width: 768px) {
  #vpn-notification-en { max-width: 90%; font-size: 14px; padding: 15px; }
  .greenbutton          { display: flex; width: 100%; max-width: 300px; margin: 8px auto; font-size: 16px; }
}


/* ============================================================
   33. FULL STORY FOOTER / BANNER
   ============================================================ */
.banner {
  padding: 25px 0; display: block; width: 100%;
  text-align: center;
  border-top: 1px solid var(--clr-border-light);
  box-shadow: inset 0 1px 0 0 var(--clr-bg);
}
.banner img { max-width: 100%; vertical-align: top; }

/* ============================================================
   RELATED GAMES 33b
   ============================================================ */
.fullstory_foot{background-color:transparent;margin-right:calc(-320px - 30px)}
@media (max-width: 1100px) {
.fullstory_foot{margin-right:calc(-280px - 20px)}
}
@media (max-width: 860px) {
.fullstory_foot{margin-right:0}
}
.related-games-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.rel-card{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;background:#fff;border:1px solid #e3e4e6;color:#444;text-decoration:none;box-shadow:0 2px 8px #0000000f;transition:box-shadow .3s ease,border-color .3s ease}
.rel-card:hover{border-color:#ec2e1c;box-shadow:0 6px 20px #0000001a;text-decoration:none}
.rel-card__image{position:relative;aspect-ratio:16 / 9;overflow:hidden;background:#eee;margin:0}
.rel-card__image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.rel-card:hover .rel-card__image img{transform:scale(1.05)}
.rel-card__overlay{position:absolute;inset:0;background:linear-gradient(to top,#ec2e1c99 0%,transparent 60%);display:flex;align-items:flex-end;justify-content:flex-end;padding:10px;opacity:0;transition:opacity .3s ease}
.rel-card:hover .rel-card__overlay{opacity:1}
.rel-card__overlay .icon{width:24px;height:24px;fill:#fff}
.rel-card__body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px;flex-grow:1}
.rel-card__title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.9em;font-weight:700;line-height:1.35;color:#222;transition:color .2s ease}
.rel-card:hover .rel-card__title{color:#ec2e1c}
.rel-card__text{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0;font-size:.82em;line-height:1.5;color:#94999e}
@media (max-width: 860px) {
.related-games-grid{grid-template-columns:repeat(2,1fr);gap:14px}
}
@media (max-width: 480px) {
.related-games-grid{grid-template-columns:repeat(2,1fr);gap:10px}
.rel-card__text{display:none}
.rel-card__body{padding:8px 10px 10px}
}

/* ============================================================
   34. FEATURED GAMES CAROUSEL
   ============================================================ */
.featured-games {
  margin: 0; padding: 0;
  background: transparent; border-radius: 0; overflow: visible;
  width: 100%; box-sizing: border-box;
}
.featured-games__title { font-size: 1.5em; margin: var(--sp-xl) 0 var(--sp-lg); text-transform: uppercase; padding: 10px 20px;
    border-left: 5px solid var(--clr-brand);
    border-bottom: 1px solid var(--clr-bg-light);
    border-radius: var(--r-md);
    background: var(--clr-bg);}

.featured-games__carousel {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: clamp(10px, 2vw, 15px);
  padding: 0 20px 20px; scroll-padding: 20px;
  scrollbar-gutter: stable; touch-action: pan-x;
}
.featured-games__carousel::-webkit-scrollbar       { height: 6px; }
.featured-games__carousel::-webkit-scrollbar-track { background: transparent; }
.featured-games__carousel::-webkit-scrollbar-thumb { background: var(--clr-brand); border-radius: 4px; }
.featured-games__carousel::-webkit-scrollbar-thumb:hover { background: var(--clr-brand-hover); }

.featured-game-item {
  flex: 0 0 180px; scroll-snap-align: start;
  background: var(--clr-bg); border-radius: var(--r-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column;
  contain: layout style paint; will-change: transform;
}
.featured-game-item:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.featured-game-item a     { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }

.featured-game-item__image { position: relative; height: 240px; overflow: hidden; }
.featured-game-item__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.featured-game-item:hover .featured-game-item__image img { transform: scale(1.05); }

.featured-game-item__content { padding: 8px; flex-grow: 1; display: flex; flex-direction: column; text-align: center; }
.featured-game-item__title   { font-size: 1em; font-weight: 700; margin-bottom: 2px; line-height: 1.2; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-game-item__date    { font-size: .75em; color: #666; line-height: 1.2; }

@media (max-width: 1024px) { .featured-game-item { flex: 0 0 160px; } .featured-game-item__image { height: 220px; } }
@media (max-width: 768px)  { .featured-games__carousel { gap: clamp(8px, 1.5vw, 10px); } .featured-game-item { flex: 0 0 140px; } .featured-game-item__image { height: 190px; } .featured-game-item__title { font-size: .9em; } }
@media (max-width: 480px)  { .featured-games__carousel { padding: 0 10px 8px; } .featured-game-item { flex: 0 0 120px; } .featured-game-item__image { height: 160px; } .featured-game-item__title { font-size: .85em; } .featured-games__carousel::-webkit-scrollbar { height: 5px; } }


/* ============================================================
   35. PAGINATION
   ============================================================ */
.navigation                    { padding: 25px 0; font-size: 1.1em; }
.navigation > .wrp             { position: relative; }
.navigation > .wrp::after      { clear: both; display: block; content: ""; }
.navigation > .wrp > .icon     { position: absolute; left: 0; margin-left: 20px; fill: var(--clr-light-muted); margin-top: 2px; }

.pages { padding-left: 60px; float: left; font-variant-numeric: tabular-nums; }
.pages > * {
  color: inherit; display: inline-block; position: relative;
  padding: 6px 4px; min-width: 22px; height: 22px; line-height: 22px;
  border-radius: var(--r-sm); text-align: center; text-decoration: none !important;
}
.pages span {
  color: var(--clr-bg);
  background-color: var(--clr-brand);
  background-image: linear-gradient(to bottom, #f45068 0%, #f93f59 100%);
  box-shadow: var(--shadow-xs);
}
.pages span.nav_ext { background: none; color: inherit; }
.pages a:hover      { color: var(--clr-brand); }

.page_next-prev { float: left; margin-left: 30px; }
.page_next-prev > span > * { padding: 6px 16px; height: 22px; line-height: 22px; display: inline-block; }
.page_next-prev > span .icon { margin: -.2em 0 0; }

.splitnewsnavigation {
  margin: 1.5em 0; padding: 15px 0;
  font-weight: bold;
  border: 0 dashed var(--clr-border-light);
  border-width: 1px 0;
  text-transform: uppercase;
}
.splitnewsnavigation > div { display: inline; margin-left: 1em; }
.splitnewsnavigation a     { color: inherit; }
.splitnewsnavigation a,
.splitnewsnavigation span  { padding: 6px 10px; }
.splitnewsnavigation span  { color: var(--clr-brand); }


/* ============================================================
   36. POPULAR / RELATED (col_news block)
   ============================================================ */
.block { padding: 50px 0; }
.block_title           { margin: 0 0 1.5em; color: #caced1; }
.block_title > *       { margin: -.2em 0 0; }

.col_news .grid_list > div > a {
  display: block; text-decoration: none !important;
  transition: padding-left var(--t-xslow);
  position: relative; color: inherit;
  width: 90%; padding-right: 20px;
}
.col_news .grid_list > div > a *       { cursor: pointer; }
.col_news .grid_list > div > a:hover   { padding-left: 30px; }
.col_news .grid_list > div > a .title  { display: block; margin-bottom: 1em; }
.col_news .grid_list > div > a:hover .title { color: var(--clr-brand); }
.col_news .grid_list > div > a .hover_arrow { position: absolute; left: 0; top: 0; margin-top: .25em; }
.col_news .grid_list > div > a .text   { font-size: .9em; }
.block.col_news.popular_maingame       { background: var(--clr-dark); color: var(--clr-muted); }

.hover_arrow {
  position: relative; width: 20px; height: 0;
  border-left: 1px solid var(--clr-brand);
  overflow: hidden; display: block; opacity: 0;
}
.hover_arrow,
.hover_arrow::after,
.hover_arrow > .icon { transition: all var(--t-slow); }
.hover_arrow > .icon { position: absolute; left: 0; top: 0; margin-left: -10px; }
.hover_arrow::after  { content: ""; position: absolute; left: 0; top: 0; margin-top: 6px; width: 0; height: 1px; background-color: var(--clr-brand); }
a:hover .hover_arrow          { height: 26%; opacity: 1; }
a:hover .hover_arrow > .icon  { margin-left: 10px; }
a:hover .hover_arrow::after   { width: 19px; }


/* ============================================================
   37. STATIC PAGES / ALERT / ERRORS
   ============================================================ */
.static_pages { margin-top: 1.5em; font-weight: bold; }
.alert        { background: #fcf6d2; padding: 20px 0; }


/* ============================================================
   38. COMMENTS
   ============================================================ */
@media screen and (min-width: 861px) {
  .comments { margin-right: calc(-320px - 30px); }
  .addcomments_form { margin-right: calc(-320px - 30px); }
}
.addcomments_form { border-bottom: 1px solid var(--clr-brand); position: relative; }
.addcomments_form .grid_1_4 .ultrabold { margin-top: -.2em; }
.addcomments_form::after,
.addcomments_form::before {
  content: ""; position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  border: solid transparent;
  border-top-color: var(--clr-brand);
  border-width: 34px 34px 0 0;
}
.addcomments_form::after { margin-top: -2px; border-top-color: var(--clr-bg); }

/* Comment item */
.com_list div.comment {
  position: relative;
  padding-left: 130px;
  margin-bottom: 50px;
}
@media screen and (max-width: 1000px) {
  .com_list div.comment { padding-left: 0; }
}
.searchcoms .comment            { margin-bottom: 0; }
.comment .grid_1_4              { position: absolute; right: 0; margin: 0; }

.avatar                         { display: inline-block; }
.avatar .cover                  { width: 100px; height: 100px; border-radius: var(--r-full); white-space: nowrap; text-indent: -9999px; display: inline-block; }

.comment .avatar {
  border: 1px solid #caced1; float: left; padding: 6px;
  border-radius: var(--r-full); background-color: var(--clr-bg);
  margin-left: -130px; position: relative;
}
.com_author .avatar { border-color: #44494d; }
.comment .avatar .cover,
.comment .avatar { width: 60px; height: 60px; }
.comment .avatar .com_decor { width: 1px; height: 28px; position: absolute; background-color: #d9dcde; left: 99px; top: 9px; }
.comment .avatar .com_decor::after,
.comment .avatar .com_decor::before { content: ""; position: absolute; height: 1px; width: 13px; background-color: #d9dcde; }
.comment .avatar .com_decor::after  { left: 0; top: 0; }
.comment .avatar .com_decor::before { right: 0; bottom: 0; }

.com_info         { margin-bottom: .6em; font-size: .9em; }
.com_info > .name { margin-right: 6px; }
.com_info > .date { margin-left: 6px; }
.com_info > .name a { color: inherit; }
.com_info .status {
  display: inline-block; vertical-align: middle; margin-top: -.2em;
  overflow: hidden; text-indent: -9999px;
  background-color: #d9dcde; width: 6px; height: 6px; border-radius: var(--r-full);
}
.status.online { background-color: #a7cb37; }

.comment .text > .title { margin-top: 0; }

/* Comment tools */
.com_tools .edit_btn,
.com_tools .mass {
  opacity: 0;
  transition: opacity var(--t-slow);
}
.comment:hover .com_tools .edit_btn,
.comment:hover .com_tools .mass { opacity: 1; }
.com_tools { margin: .6em 0 0; font-size: .9em; text-transform: lowercase; }
.com_tools .edit_btn,
.com_tools .mass           { float: right; margin-top: -3px; }
.com_tools .mass input     { margin: 4px 0 0 10px; }
.com_tools_links           { display: inline; }
.com_tools_links > a       { margin: 0 15px 0 0; text-decoration: none !important; }
.com_tools_links > a:hover { color: var(--clr-brand); }
.com_tools_links > a > .icon { margin: -.2em 8px 0 0; }

/* Tree comments */
.comments-tree-list { position: relative; padding: 0 26% 0 0; margin: 0; list-style: none; }
.comments-tree-list .comments-tree-list { position: static; padding: 0 0 0 130px; }
.comments-tree-list .comments-tree-list .comments-tree-list,
.comments-tree-list .comments-tree-list .comment { padding-left: 60px; }
.comments-tree-list div.comment { padding-right: 0; position: static; }
.comments-tree-list .comments-tree-list .comment .com_decor { display: none; }
.comments-tree-list .comments-tree-list .comment .avatar { padding: 3px; margin-left: -60px; }
.comments-tree-list .comments-tree-list .comment .avatar .cover,
.comments-tree-list .comments-tree-list .comment .avatar { width: 32px; height: 32px; }
.mass_comments_action { text-align: center; border-top: 1px dashed var(--clr-border-light); padding: 20px 0; }
.mass_comments_action > select { padding: 5px; width: 200px; margin-left: 1em; }


/* ============================================================
   39. FORMS
   ============================================================ */
ul.ui-form { list-style: none; padding: 0; margin: 0; }
ul.ui-form > li { margin-bottom: 20px; }
ul.ui-form > li:last-child { margin-bottom: 0; }
.form-group { margin-bottom: 20px; }
.form-group > label { display: block; margin-bottom: .4em; }
.form-group.imp > label::after { content: "*"; margin: 0 0 0 10px; color: var(--clr-brand); }

@media only screen and (min-width: 601px) {
  .form-group.combo::after      { clear: both; display: table; content: ""; }
  .form-group.combo > .combo_field { width: 50%; float: left; box-sizing: border-box; }
  .form-group.combo > .combo_field:last-child  { padding-left: 10px; }
  .form-group.combo > .combo_field:first-child { padding-right: 10px; }
}
@media only screen and (max-width: 600px) { .combo_field { margin-bottom: 20px; } }
.form_submit { margin-top: 20px; }
.form-sep    { border-top: 1px solid #efefef; }

#comment-editor .bb-editor textarea { height: 140px; }
.addpm #comment-editor .bb-editor textarea { height: 340px; }

.regtext     { margin-bottom: 1.5em; }
.login_check { position: relative; }
.login_check > input  { padding-right: 120px; }
.login_check > .btn   { width: 100px; height: 30px; padding: 4px 10px; position: absolute; right: 0; top: 0; font-weight: bold; font-size: 11px; margin: 5px; }
#registration { text-align: left; }

/* Checkboxes */
#check-all-box { margin-bottom: .4rem; }
.searchtable .form-check-label { display: block; margin-bottom: .5rem; }
.checkbox, .dle-popup-mediaupload .checkbox { margin: .6rem 0 .2rem 0 !important; }
.form-check-label { cursor: pointer; }
.form-check-input {
  color: var(--clr-brand); flex-shrink: 0;
  width: 1.25rem; height: 1.25rem;
  margin: -0.188rem 0.625rem 0 0;
  appearance: none; background-color: transparent;
  background-image: none; background-repeat: no-repeat;
  background-position: center; background-size: contain;
  border: 1px solid var(--clr-brand); vertical-align: middle;
}
  .form-check-input:checked[type=checkbox] { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ec2e1c' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); }
  .form-check-input:checked[type=radio]    { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23ec2e1c'/%3e%3c/svg%3e"); }
  .form-check-input[type=checkbox]         { border-radius: .25rem; accent-color: var(--clr-brand); }
  .form-check-input[type=radio]            { border-radius: 50%; accent-color: var(--clr-brand); }


/* ============================================================
   40. PAGE TITLE / HEADER
   ============================================================ */
.page-header { margin: 2rem 0 1.5rem; }
.page-title,
.top-games-title {
  margin: 0; font-size: 1.8em; font-weight: 900;
  text-transform: uppercase; line-height: 1.35;
  padding: 10px 20px;
  border-left: 5px solid var(--clr-brand);
  border-bottom: 1px solid var(--clr-bg-light);
  border-radius: var(--r-md);
  background: var(--clr-bg);
}


/* ============================================================
   41. STORY POST META
   ============================================================ */
.story-post-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 15px; margin-top: 10px; padding: 10px 0 0;
  position: relative;
}
.story-post-meta::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, rgba(0,0,0,.1), transparent);
}
.story-post-meta .meta-item  { display: flex; align-items: center; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; color: var(--clr-muted); }
.story-post-meta .icon       { width: 14px; height: 14px; margin-right: 8px; opacity: .7; }
.story-post-meta b           { color: #222; font-weight: 600; }

@media (max-width: 700px) {
  .story-post-meta        { padding: 10px 0 0; margin-top: 10px; gap: 15px; }
  .story-post-meta::before { display: none; }
  .story-post-meta .meta-item { font-size: 11px; }
}


/* ============================================================
   42. RIGHT SIDEBAR LAYOUT
   ============================================================ */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
  padding: var(--sp-2xl) 0;
}
.main-content-col { min-width: 0; }
.main-content-col .story:first-of-type {
    padding-top: 0;
}

/* Sidebar block */
.sidebar-block {
  background: var(--clr-bg);
  border: 1px solid #e0e0e0; border-radius: var(--r-xl);
  padding: 20px; margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow var(--t-slow);
}
.sidebar-block:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.sidebar-block-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px; padding-bottom: 12px;
  font-size: 1.05em; font-weight: 700; color: #222;
  text-transform: uppercase; letter-spacing: .02em;
  border-bottom: 2px solid var(--clr-brand);
}
.sidebar-block-title .icon { width: 18px; height: 18px; fill: var(--clr-brand); flex-shrink: 0; }
.sidebar-block-title span  { flex-grow: 1; }

/* Popular games */
.sidebar-games-list { display: flex; flex-direction: column; gap: 12px; }

.sidebar-game-item {
  display: flex; gap: 12px; padding: 10px;
  border-radius: var(--r-lg);
  background: #f8f9fa;
  transition: all var(--t-slow);
  text-decoration: none; color: inherit;
  border: 1px solid transparent;
}
.sidebar-game-item:hover {
  background: linear-gradient(135deg, var(--clr-brand), var(--clr-brand-hover));
  color: var(--clr-bg); transform: translateX(3px);
  box-shadow: 0 3px 10px rgba(236,46,28,.2);
  border-color: var(--clr-brand);
}

.sidebar-game-thumb { width: 60px; height: 60px; flex-shrink: 0; border-radius: var(--r-md); overflow: hidden; background: #e0e0e0; }
.sidebar-game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.sidebar-game-item:hover .sidebar-game-thumb img { transform: scale(1.1); }

.sidebar-game-info  { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.sidebar-game-title { font-size: .92em; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: inherit; }
.sidebar-game-meta  { display: flex; align-items: center; gap: 8px; font-size: .8em; opacity: .8; }
.sidebar-game-meta .icon { width: 12px; height: 12px; opacity: .7; }
.sidebar-game-item:hover .sidebar-game-meta        { opacity: 1; }
.sidebar-game-item:hover .sidebar-game-meta .icon  { opacity: 1; }

/* Category nav */
.sidebar-cat-nav     { display: flex; flex-direction: column; gap: 8px; }
.sidebar-cat-nav ul  { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sidebar-cat-nav li  { margin: 0; padding: 0; }
.sidebar-cat-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--r-md); color: #555; text-decoration: none;
  font-size: .9em; font-weight: 500;
  transition: all var(--t-slow); background: #f8f9fa;
  border: 1px solid transparent;
}
.sidebar-cat-nav a span { 
  margin-left: auto !important; 
  float: none !important; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  height: 20px; 
  padding: 0 8px; 
  background: rgba(0,0,0,0.05); 
  color: #888; 
  font-size: 11px; 
  font-weight: 700; 
  border-radius: 10px; 
  transition: all var(--t-slow);
}
.sidebar-cat-nav a:hover, 
.sidebar-block.sidebar-categories .sidebar-cat-nav a.active { 
  background: var(--clr-brand) !important; 
  background: linear-gradient(135deg, var(--clr-brand), var(--clr-brand-hover)) !important; 
  color: #fff !important; 
  border-color: var(--clr-brand) !important; 
  box-shadow: 0 2px 8px rgba(236, 46, 28, 0.2) !important; 
}
.sidebar-cat-nav a:hover { transform: translateX(4px); }
.sidebar-block.sidebar-categories .sidebar-cat-nav a.active { font-weight: 700 !important; }
.sidebar-cat-nav a:hover .icon,
.sidebar-block.sidebar-categories .sidebar-cat-nav a.active .icon { opacity: 1 !important; color: #fff !important; }
.sidebar-cat-nav a:hover span,
.sidebar-block.sidebar-categories .sidebar-cat-nav a.active span { background: rgba(255,255,255,0.2) !important; color: #fff !important; }

/* Spacing and Separators */
.sidebar-cat-nav > ul > li:first-child > a { 
  margin-bottom: 15px !important; 
}
.sidebar-cat-nav > ul > li:first-child { 
  margin-bottom: 15px !important; 
  padding-bottom: 15px !important; 
  border-bottom: 1px dashed rgba(0,0,0,0.1) !important; 
}
.sidebar-cat-nav .icon         { width: 16px; height: 16px; flex-shrink: 0; opacity: .7; transition: opacity var(--t-slow); }
.sidebar-cat-nav a:hover .icon { opacity: 1; }

/* Tags cloud */
.sidebar-tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-tag {
  display: inline-block; padding: 6px 12px;
  background: #f0f0f0; border-radius: 20px;
  font-size: .85em; color: #555; text-decoration: none;
  transition: all var(--t-slow); border: 1px solid transparent; font-weight: 500;
}
.sidebar-tag:hover { background: var(--clr-brand); color: var(--clr-bg); transform: translateY(-2px); box-shadow: 0 2px 6px rgba(236,46,28,.3); border-color: var(--clr-brand); }

/* Updates list */
.sidebar-updates-list { display: flex; flex-direction: column; gap: 10px; }
.sidebar-update-item {
  display: flex; flex-direction: column; gap: 6px; padding: 10px;
  border-radius: var(--r-md); background: #f8f9fa;
  transition: all var(--t-slow); text-decoration: none; color: inherit;
  border: 1px solid transparent;
}
.sidebar-update-item:hover { background: linear-gradient(135deg, var(--clr-brand), var(--clr-brand-hover)); color: var(--clr-bg); transform: translateX(3px); box-shadow: 0 2px 8px rgba(236,46,28,.2); border-color: var(--clr-brand); }
.sidebar-update-title { font-size: .9em; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-update-date  { font-size: .8em; opacity: .7; display: flex; align-items: center; gap: 6px; }
.sidebar-update-date .icon { width: 12px; height: 12px; }
.sidebar-update-item:hover .sidebar-update-date { opacity: 1; }

/* Sidebar responsive */
@media only screen and (max-width: 1100px) {
  .content-with-sidebar { grid-template-columns: 1fr 280px; gap: 20px; }
  .sidebar-block         { padding: 16px; }
  .sidebar-game-thumb    { width: 50px; height: 50px; }
}
@media only screen and (max-width: 860px) {
  .content-with-sidebar  { grid-template-columns: 1fr; gap: 20px; }
  .right-sidebar         { position: static; max-height: none; overflow-y: visible; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sidebar-block         { margin-bottom: 0; }
  .sidebar-game-item     { flex-direction: column; text-align: center; }
  .sidebar-game-thumb    { width: 100%; height: 120px; }
}
@media only screen and (max-width: 600px) {
  .right-sidebar         { grid-template-columns: 1fr; }
  .sidebar-block         { padding: 14px; }
  .sidebar-block-title   { font-size: .95em; }
}

/* Sidebar states */
.sidebar-empty-state     { padding: 20px; text-align: center; color: #999; font-size: .9em; }
.sidebar-empty-state .icon { width: 32px; height: 32px; margin: 0 auto 10px; opacity: .3; }
.sidebar-loading         { display: flex; justify-content: center; align-items: center; padding: 30px; }
.sidebar-loading::after  { content: ""; width: 24px; height: 24px; border: 3px solid #f3f3f3; border-top: 3px solid var(--clr-brand); border-radius: 50%; animation: sidebar-spin 1s linear infinite; }
@keyframes sidebar-spin  { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


/* ============================================================
   43. TOP 100 GAMES GRID
   ============================================================ */
.top-games-header { margin-bottom: var(--sp-xl); }

.top-games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1100px) { .top-games-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .top-games-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .top-games-grid { grid-template-columns: 1fr; } }

.game-card {
  display: flex; flex-direction: column;
  background: var(--clr-bg); border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.game-card:hover { transform: translateY(-4px); box-shadow: 0 6px 14px rgba(0,0,0,.08); }
.game-card-link  { display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }

.game-card-image { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.game-card-img   { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.game-card:hover .game-card-img { transform: scale(1.05); }

.game-card-content  { display: flex; flex-direction: column; padding: 14px 16px 16px; gap: 8px; flex-grow: 1; }
.game-card-category { font-size: .8rem; color: var(--clr-muted); text-transform: uppercase; letter-spacing: .03em; }
.game-card-title    { margin: 0; font-size: .95rem; font-weight: 700; line-height: 1.3; color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color var(--t-base); }
.game-card-link:hover .game-card-title { color: var(--clr-brand); }

.game-card-size {
  display: inline-flex; align-items: center;
  font-weight: 600;
  background: rgba(236,46,28,.06); color: var(--clr-brand);
  border: 1px solid rgba(236,46,28,.2);
  padding: 3px 8px; border-radius: var(--r-md);
  font-size: .85rem; letter-spacing: .01em;
  transition: all var(--t-base);
}
.game-card:hover .game-card-size { background: rgba(236,46,28,.12); border-color: rgba(236,46,28,.33); }
.game-card-size .icon            { width: 14px; height: 14px; margin-right: 5px; fill: currentColor; }

.game-card-stats   { display: flex; align-items: center; font-size: .8rem; color: #777; margin-top: auto; border-top: 1px solid #f0f0f0; padding-top: 8px; gap: 10px; font-variant-numeric: tabular-nums; }
.game-card-stats .icon { width: 13px; height: 13px; fill: var(--clr-brand); opacity: .85; }
.game-card-divider { color: #ccc; font-weight: 700; opacity: .6; }


/* ============================================================
   44. CONTACTS / MAP / PM / USER PROFILE / STATS / SEARCH
   ============================================================ */
#map      { width: 100%; }
.map_resp { width: 100%; padding-top: 30%; height: 0; position: relative; }
.map_resp > #map { position: absolute; left: 0; top: 0; bottom: 0; height: auto; border-radius: var(--r-sm); overflow: hidden; }
.contact_head > .title { margin-top: 0; }
.contacts { font-size: 1.1em; }
.contacts > .grid_1_2 { padding-left: 42px; }
.contacts > .grid_1_2 .icon { float: left; margin: 5px 0 0 -42px; }

/* PM */
.pm-box { margin-bottom: 1.5em; background-color: var(--clr-bg-light); border-radius: var(--r-sm); }
#pm-menu::after   { content: ""; clear: both; display: block; }
#pm-menu          { border-bottom: 1px solid var(--clr-bg); }
#pm-menu > a      { color: inherit; padding: 10px 30px; float: left; text-decoration: none !important; border-right: 1px solid var(--clr-bg); }
#pm-menu > a:first-child { border-radius: var(--r-sm) 0 0 0; }
#pm-menu > a:hover       { color: var(--clr-brand); }
.pm_status               { padding: 30px; }
.pm_progress_bar         { background-color: #cdd0d3; margin-bottom: 10px; border-radius: var(--r-sm); overflow: hidden; }
.pm_progress_bar span    { background: var(--clr-brand); font-size: 0; height: 5px; border-radius: var(--r-sm); display: block; overflow: hidden; }

/* ============================================================
   44. USER PROFILE POPUP — Modern polished card
   ============================================================ */

/* jQuery UI dialog override for user profile */
.dle-popup-userprofile {
  border-radius: 16px !important;
  border: none !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  background: #fff !important;
  overflow: hidden !important;
}

.dle-popup-userprofile .ui-dialog-titlebar {
  background: #fff !important;
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 16px 20px !important;
  border-radius: 0 !important;
}

.dle-popup-userprofile .ui-dialog-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #272727 !important;
  letter-spacing: -0.01em;
}

.dle-popup-userprofile .ui-dialog-titlebar-close {
  right: 16px !important;
  top: 50% !important;
  margin-top: -14px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  background: #f5f5f5 !important;
  transition: all 0.2s ease !important;
  opacity: 1 !important;
}

.dle-popup-userprofile .ui-dialog-titlebar-close:hover {
  background: #ec2e1c !important;
}

.dle-popup-userprofile .ui-dialog-titlebar-close .ui-icon,
.dle-popup-userprofile .ui-dialog-titlebar-close span.ui-button-text {
  filter: grayscale(1) brightness(0.4) !important;
  opacity: 1 !important;
  background-size: 12px auto !important;
  width: 12px !important;
  height: 12px !important;
  margin: 8px auto 0 !important;
}

.dle-popup-userprofile .ui-dialog-titlebar-close:hover .ui-icon,
.dle-popup-userprofile .ui-dialog-titlebar-close:hover span.ui-button-text {
  filter: brightness(10) !important;
}

.dle-popup-userprofile .ui-dialog-content {
  padding: 0 !important;
  background: #fafafa !important;
  border: none !important;
}

.dle-popup-userprofile .ui-dialog-buttonpane {
  background: #fff !important;
  border-top: 1px solid #f0f0f0 !important;
  padding: 14px 20px !important;
}

.dle-popup-userprofile .ui-dialog-buttonset button {
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 9px 18px !important;
  height: auto !important;
  line-height: 1.5 !important;
  letter-spacing: -0.01em;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
  border: none !important;
  margin: 0 0 0 8px !important;
}

.dle-popup-userprofile .ui-dialog-buttonset button:first-child {
  background: #f0f0f0 !important;
  color: #555 !important;
}

.dle-popup-userprofile .ui-dialog-buttonset button:first-child:hover {
  background: #e0e0e0 !important;
  color: #333 !important;
}

.dle-popup-userprofile .ui-dialog-buttonset button:not(:first-child) {
  background: #ec2e1c !important;
  color: #fff !important;
}

.dle-popup-userprofile .ui-dialog-buttonset button:not(:first-child):hover {
  background: #c42618 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(236, 46, 28, 0.3) !important;
}

/* Popup card */
.popup_userinfo {
  padding: 20px;
}

.popup_userinfo_card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Header */
.popup_header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px 16px;
}

.popup_avatar {
  position: relative;
  flex-shrink: 0;
}

.popup_avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background-color: #f5f5f5;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.popup_status_dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  background-color: #bdc3c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.popup_userinfo.useronline .popup_status_dot {
  background-color: #27ae60;
}

.popup_identity {
  min-width: 0;
  flex: 1;
}

.popup_name {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.popup_name img {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.popup_uid {
  font-size: 12px;
  color: #999;
  font-family: var(--font-mono, 'SF Mono', monospace);
  margin-top: 3px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Divider */
.popup_divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #eee 20%, #eee 80%, transparent);
  margin: 0 20px;
}

/* Menu */
.popup_menu {
  padding: 10px 0;
}

.popup_menu_item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: default;
}

.popup_menu_item:hover {
  background: #f8f9fa;
  color: #1a1a1a;
  text-decoration: none;
}

.popup_menu_item > i {
  width: 20px;
  text-align: center;
  color: #888;
  font-size: 14px;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.popup_menu_item:hover > i {
  color: #ec2e1c;
}

.popup_menu_item > span:first-of-type {
  flex: 1;
  min-width: 0;
  color: #444;
}

.popup_menu_item:hover > span:first-of-type {
  color: #1a1a1a;
}

.popup_menu_count {
  font-size: 12px;
  color: #ec2e1c;
  font-variant-numeric: tabular-nums;
  background: #fff5f4;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.15s ease;
  border: 1px solid rgba(236, 46, 28, 0.1);
}

.popup_menu_item:hover .popup_menu_count {
  background: #ec2e1c;
  color: #fff;
  border-color: #ec2e1c;
}

.popup_menu_count a {
  color: inherit !important;
  text-decoration: none !important;
  font-weight: inherit !important;
}

.popup_menu_disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.popup_menu_disabled:hover {
  background: transparent;
}

.popup_menu_disabled .popup_menu_count {
  background: #f0f0f0;
  color: #999;
  border-color: #e0e0e0;
}

/* Meta info */
.popup_meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

.popup_meta > i {
  width: 20px;
  text-align: center;
  color: #aaa;
  font-size: 13px;
  flex-shrink: 0;
}

/* Signature */
.popup_signature {
  padding: 12px 20px;
  font-size: 12px;
  color: #777;
  font-style: italic;
  line-height: 1.5;
  border-top: 1px solid #f0f0f0;
  margin-top: 6px;
  background: #fafafa;
}

/* Status bar */
.popup_status_bar {
  padding: 12px 20px 16px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.popup_status_text {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.popup_status_text .fa-circle {
  font-size: 8px;
}

.popup_status_text.status-online {
  color: #27ae60;
}

.popup_status_text.status-online .fa-circle {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.popup_status_text.status-offline {
  color: #95a5a6;
}

/* Stats */
.stats_head > ul              { list-style: none; padding: 0; margin: 0; font-size: 1.1em; }
.stats_head > ul > li         { margin-top: 15px; padding-left: 30px; }
.stats_head > ul > li::before { content: ""; float: left; margin: 2px 0 0 -30px; width: 16px; height: 16px; border-radius: var(--r-full); background-color: #ee2a4f; }
.stats_head > ul > li > b     { display: block; font-size: .8em; opacity: .5; font-weight: normal; }
.stats_head > ul > li.stats_d::before { background-color: #ffb027; }
.stats_head > ul > li.stats_w::before { background-color: #ff5a3a; }
.stat_group             { margin-bottom: 25px; }
.stat_group > h5        { margin-top: 0; margin-bottom: 1em; }
.stat_group > ul        { list-style: none; padding: 0; margin: 0; }
.stat_group > ul > li   { padding: .6em 0; border-top: 1px dotted #d5d5d5; }

/* Search */
.searchpage         { border-bottom: 3px dotted var(--clr-border-light); padding-bottom: 50px; margin-bottom: 0; }
.search_head_line .head { margin-bottom: .8em; }
.search_result_num  { font-size: .9em; margin: 25px 0 0; }
.search table       { width: 100%; border-spacing: 5px; border-collapse: separate; }
#searchtable td,
#searchtable td div,
#searchtable table  { margin: 0 !important; padding: 0 !important; }
#searchtable td.search br   { display: none; }
td.search .bbcodes  { margin: 0 !important; }
td.search           { vertical-align: top; }


/* ============================================================
   45. SPOILER
   ============================================================ */
.title_spoiler {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0; border-radius: var(--r-lg);
  font-size: 16px; font-weight: 500; color: #333;
  cursor: pointer;
  transition: background-color var(--t-slow);
}
.title_spoiler:hover { background-color: #eef0f3; }
.title_spoiler a     { text-decoration: none; color: inherit; display: flex; align-items: center; }
.title_spoiler svg   { flex-shrink: 0; width: 18px; height: 18px; transition: transform var(--t-slow); fill: #666; }
.title_spoiler a:last-child { flex-grow: 1; justify-content: flex-start; }
.text_spoiler {
  padding: 20px; background-color: var(--clr-bg);
  border: 1px solid #e0e0e0; border-top: none;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  font-size: 15px; line-height: 1.6; color: var(--clr-body);
}


/* ============================================================
   46. MEDIA QUERIES — RESPONSIVE LAYOUT
   ============================================================ */
@media only screen and (max-width: 980px) {
  .tools .grid_last,
  .tools #toptags          { display: none; }
  .tools .grid_3_4         { width: auto; float: none; margin-right: 0; }
  .foot .grid_1_2          { width: 74%; }
  .counters                { float: none; clear: both; padding-top: 10px; }
  .counters > li:first-child { margin-left: 0; }
}

@media only screen and (max-width: 860px) {
  .headskidrow.fixed       { background-attachment: scroll; }
  .headskidrow > .wrp      { padding: 49px 0 0; }
  .logotype {
    float: none !important; padding: 0; margin: 0 auto;
    width: 100%; height: 76px;
    display: flex; justify-content: center; align-items: center;
  }
  .logotype a              { display: block; margin: 0 auto; float: none !important; }
  .topbar {
    position: absolute; left: 0; top: 0;
    background: var(--clr-dark-3);
    width: 100%; height: 49px;
    box-shadow: 0 1px 5px rgba(0,0,0,.2);
  }
  .topbar #search          { position: absolute; left: 50%; margin-left: -25px; }
  .h_btn                   { width: 49px; height: 49px; padding: 0; }
  .h_btn::after            { width: 100%; height: 49px; border-radius: 0; margin-top: -49px; }
  .login > .avatar         { padding: 3px; border: 0 none; }
  ul.login_form, .soc_links,
  .login_form_links        { vertical-align: top; display: inline-block; float: none; }
  #loginpane               { overflow-y: hidden; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #loginpane > .wrp        { white-space: nowrap; min-width: 960px; }

  .mainmenu_open,
  .mainmenu_open body,
  .mainmenu_open .page     { width: 100%; height: 100%; overflow: hidden; }
  #mainmenu                { float: left; }

  #topmenu {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: 80%; height: 100%;
    background-color: var(--clr-brand);
    box-shadow: 0 0 10px rgba(0,0,0,.2);
    z-index: 99; overflow-x: auto; -webkit-overflow-scrolling: touch;
    color: var(--clr-bg);
    transform: translate(-100%, 0);
    opacity: 0; visibility: hidden;
  }
  .mainmenu_open #topmenu {
    transform: translate(0, 0);
    opacity: 1; visibility: visible;
    transition: all var(--t-slow);
  }
  #topmenu a        { color: var(--clr-bg); display: block; }
  #topmenu ul       { list-style: none; padding: 0; margin: 0; }
  #topmenu > ul     { padding: 15px 0; }
  #topmenu > ul > li > a { padding: 15px 30px; font-size: 1.1em; text-decoration: none !important; }
  #topmenu ul ul > li > a {
    padding: 6px 30px 6px 48px; opacity: .8;
    text-decoration: none !important; position: relative;
  }
  #topmenu > ul > li > a:hover,
  #topmenu ul ul > li > a:hover { opacity: 1; background-color: #ff596a; }
  #topmenu ul ul > li > a::before { content: ""; float: left; margin: .7em 0 0 -18px; width: 6px; height: 1px; background-color: var(--clr-bg); opacity: .8; }
  #topmenu .icon-arrow_down { display: none; }
  .block_archives    { display: none; }

  #closemenu {
    position: fixed; top: 0; right: 0;
    overflow: hidden; height: 100%; width: 100%;
    cursor: pointer; z-index: 98;
  }
  .mainmenu_open #closemenu { display: block; }
  #closemenu::after { content: ""; display: block; width: 100%; height: 100%; background-color: #353c4c; opacity: .54; }
  #closemenu * { cursor: pointer; }
  #closemenu > span { z-index: 1; position: absolute; right: 0; top: 0; width: 20%; height: 100%; display: flex; justify-content: center; align-items: center; }
  #closemenu .icon { fill: var(--clr-bg); }

  .addcomments_form .grid_3_4,
  .addcomments_form .grid_1_4 { float: none; margin: 0; width: auto; }
  .addcomments_form .grid_1_4 { margin-bottom: 20px; }
  .com_list div.comment       { margin-bottom: 30px; }
  .com_list div.comment,
  .comments-tree-list .comments-tree-list { padding-left: 100px; }
  .comment .avatar            { margin-left: -100px; }
  .com_decor                  { display: none; }
}

@media only screen and (max-width: 800px) {
  h1, .h1 { font-size: 1.6em; }
  h2, .h2 { font-size: 1.4em; }
  h3, .h3 { font-size: 1.3em; }
  h4, .h4 { font-size: 1.2em; }
  h5, .h5 { font-size: 1.1em; }
  body, select, input, textarea, button { font-size: 14px; }
  .vtitle { margin-left: 145px; }
  .story, .block, #footer { padding: 30px 0; }
  .addcomments_form::after,
  .addcomments_form::before { margin-left: -9px; border-width: 18px 18px 0 0; }
  .addcomments_form::after  { margin: -2px 0 0 -8px; }
  .com_list div.comment,
  .comments-tree-list .comments-tree-list { padding-left: 60px; }
  .comment .avatar             { padding: 3px; margin-left: -60px; }
  .comment .avatar .cover,
  .comment .avatar             { width: 32px; height: 32px; }
  .navigation, .navigation > .wrp { padding: 0; }
  .navigation > .wrp > .icon  { display: none; }
  .pages { padding: 20px 0; float: none; padding-left: 0; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .pages > *:first-child       { margin-left: 20px; }
  .pages > *:last-child        { margin-right: 20px; }
  .page_next-prev              { float: none; display: block; padding: 0; margin: 0; }
  .page_next-prev::after       { clear: both; display: block; content: ""; }
  .page_next-prev > *          { float: left; width: 50%; }
  .page_next-prev > *:last-child { text-align: right; }
  .page_next-prev > span > *   { display: block; padding: 10px 20px; }
}

@media only screen and (max-width: 700px) {
  h1, .h1 { font-size: 1.5em; }
  h2, .h2 { font-size: 1.4em; }
  h3, .h3 { font-size: 1.3em; }
  h4, .h4 { font-size: 1.2em; }
  h5, .h5 { font-size: 1.1em; }
  body, select, input, textarea, button { font-size: 13px; }
  #tools, .foot_menu, .foot, .droptopbar,
  .com_info, .com_tools,
  .vote_line_form .dropdown .dropdown-form .vote_list { font-size: 1em; }
  #loginpane > .wrp            { min-width: 0; }
  ul.login_form, .soc_links,
  .login_form_links            { display: block; margin-right: 0; margin-left: 0; }
  .login_form > li             { float: none; width: auto; }
  .login_form > li > input,
  .login_form > li > .btn      { border-left-width: 0; border-top: 1px solid #383e42; }
  .login_form > li:first-child > input { border-top-width: 0; }
  .login_form > li > .btn      { width: 100%; color: var(--clr-brand) !important; }
  .loginf_open #loginpane      { margin-top: -220px; }
  ul.login_form                { margin-top: 20px; }
  .loginf_open #loginpane,
  .loginf_open .page::before   { height: 220px; }
  #loginpane .soc_links,
  .login_form_links            { text-align: center; }
  .login_form_links > a:first-child { margin-left: 0; }
  #loginpane .name,
  #loginpane .login_menu,
  .loggedpane .login_form_links { display: inline; float: none; }
  .loggedpane > .wrp           { padding-top: 20px; }
  .loggedpane .login_form_links { padding-right: 20px; }

  .head_text                   { padding: 20% 0 22%; }
  .head_text_in > .title       { font-size: 2.1em; }
  .head_text_in > .text        { font-size: 1.2em; }
  .tools                       { height: 49px; overflow-y: hidden; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  #sort, #breadcrumbs          { padding: 14px 0; display: inline-block; }
  #sort > .icon, #breadcrumbs > .icon { display: none; }
  .tools .grid_3_4, .tools .speedbar { display: inline; padding-right: 20px; }
  .feedback .grid_1_4          { margin-bottom: 20px; }
  .map_resp                    { padding-top: 60%; }
  .story, .block               { padding: 20px 0; }
  .story_info                  { float: none; font-size: 1em; }
  .story_icons                 { position: relative; float: right; }
  .story.lefticons .title      { padding-left: 0; }
  .story.lefticons .text,
  .modern-rating-box           { margin-left: 0; }
  .poll_block                  { margin: 20px 0; }
  .meta_date                   { display: none; }
  .storyinfo_link              { margin-bottom: 0; }
  .storyinfo_box               { padding-top: 20px; }
  .story_cont                  { margin-top: 20px; }
  .story .head                 { margin-bottom: 10px; }
  .story .head .title          { margin-top: 0; }
  .com_list div.comment        { margin-bottom: 25px; }
  .comments-tree-list,
  .com_list div.comment        { padding-right: 0; }
  .com_list div.comment,
  .comments-tree-list .comments-tree-list .comment { padding-left: 0; }
  .comments-tree-list .comments-tree-list,
  .comments-tree-list .comments-tree-list .comments-tree-list { padding-left: 23px; }
  .comment .grid_1_4           { position: static; float: left; }
  .comment .avatar .cover,
  .comment .avatar             { width: 23px !important; height: 23px !important; }
  .comment .avatar             { margin: 0 !important; padding: 2px !important; }
  .com_content                 { clear: both; padding-top: 10px; }
  .comment .rate               { margin-left: 10px; }
  .comment .rate_stars         { margin: 6px 0 0; }
  #footer                      { padding: 20px 0 0; }
  .ca                          { float: none; display: block; margin-top: 20px; }
  .counters                    { background-color: var(--clr-bg-dark); float: none; text-align: center; margin: 20px -20px 0 -20px; padding: 15px 0; }
  .counters > li:first-child   { margin-left: 0; }
  .counters > li               { float: none; display: inline-block; margin-left: 2px; }
  .foot .grid_1_2              { width: auto; }
  .foot_menu                   { margin: 0 0 20px; padding: 0; }
  .foot_menu > li              { float: none; width: auto; padding: 0; }
  .foot_menu > li:first-child > b { border-top-width: 0; }
  .foot_menu > li > b          { cursor: pointer; margin: 0; padding: 5px 0 5px 32px; color: var(--clr-brand); }
  .foot_menu > li > b.collapsed { color: #caced1; }
  .foot_menu > li > b i        { display: block; float: left; width: 13px; height: 1px; position: relative; margin: 9px 0 5px -32px; background-color: var(--clr-brand); border-radius: var(--r-sm); }
  .foot_menu > li > b.collapsed i,
  .foot_menu > li > b.collapsed i::after { background-color: var(--clr-brand); }
  .foot_menu > li > b.collapsed i::after { content: ""; display: block; margin: -6px auto 0; height: 13px; width: 1px; border-radius: var(--r-sm); }
  .foot_menu > li .collapse    { display: none; }
  .foot_menu > li .collapse.in { display: block; }
  .foot_menu > li nav          { padding: 10px 32px 10px; padding-top: 0; }
  .block_title                 { margin-bottom: 1em; }
  .col_news .grid_list .grid_1_4 { margin-top: 20px; }
  .col_news .grid_list > div > a .title { margin-bottom: .5em; }
  .col_news .grid_list > div > a { padding: 0; width: 90%; }
  .vote_line                   { text-align: center; }
  .vote_line_title             { display: inline-block; font-size: 1.2em; color: var(--clr-bg); background-color: var(--clr-body); padding: 10px; margin-top: 0; position: relative; width: 80px; text-align: center; }
  .vote_line_title::after      { content: ""; position: absolute; left: 0; top: 100%; border: solid transparent; border-top-color: var(--clr-body); border-width: 5px 50px 0 50px; }
  .vtitle                      { margin-left: 0; font-weight: bold; color: var(--clr-bg); }
  .vote_line_title .vote_icon,
  .vote_line_form .dropdown > .btn { display: none; }
  .vote_line_form .dropdown .dropdown-form { position: static; margin: 0 auto; display: block; text-align: left; }
  .more_votes                  { display: block; }
  .bb-pane                     { width: 100%; box-sizing: border-box; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  #comment-editor .bb-editor textarea { height: 240px; }
  .bb-btn                      { float: none; display: inline-block; margin-left: -.3em !important; }
  .mass_comments_action        { margin-top: 20px; }
  .comments_box_in .mass_comments_action { margin-top: 20px; padding-top: 0; }
  .pm_status                   { padding: 20px; }
  #pm-menu                     { white-space: nowrap; overflow-y: hidden; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #pm-menu > a                 { display: inline-block; float: none; padding: 10px 20px; }
  .pmlist                      { width: 100%; margin: 0 -20px; padding: 0 20px; overflow-y: hidden; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pmlist > form               { min-width: 800px; padding-right: 20px; }
  .stats_head > ul             { font-size: 1em; margin-bottom: 20px; }
  .block_table_top_users       { padding: 0; margin-top: 40px; }
  .block_table_top_users > .title { padding: 0 20px; }
  .table_top_users             { padding-bottom: 20px; overflow-y: hidden; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table_top_users > table     { width: 800px; }
  .form_submit .c-capcha       { float: none; margin-bottom: 20px; padding-left: 100px; position: relative; }
  .form_submit .c-capcha img   { position: absolute; left: 0; }
  .form_submit .c-capcha input { width: 100%; }
  #dofullsearch                { display: none; }
  #add_news_preview            { display: none; }
  .ui-dialog                   { width: auto !important; left: 10px !important; right: 10px; }
  .ui-dialog-buttonset > .ui-button { margin: 2px; }
  .dle-popup-userprofile      { left: 10px !important; right: 10px !important; width: auto !important; max-width: calc(100vw - 20px) !important; }
  .popup_userinfo             { padding: 12px; }
  .popup_header               { padding: 16px 16px 12px; }
  .popup_avatar img           { width: 48px; height: 48px; }
  .popup_menu_item            { padding: 9px 16px; font-size: 13px; }
  .popup_meta                 { padding: 8px 16px; }
  .popup_signature            { padding: 10px 16px; }
  .popup_status_bar           { padding: 10px 16px 14px; }
}

@media only screen and (max-width: 600px) {
  .mejs-container              { max-width: 100%; }
  .story video, .story iframe  { max-width: 100%; }
  .mass_comments_action > select,
  .mass_comments_action > input { display: block; width: 100%; margin: 0; }
  .mass_comments_action > select { margin: 5px 0; }
}

@media only screen and (max-width: 520px) {
  .head_text_in > .title       { font-size: 1.6em; }
  .head_text_in > .text        { font-size: 1em; }
  .com_tools_links > a > span  { display: none; }
}

@media only screen and (max-device-width: 480px) {
  body { -webkit-text-size-adjust: 100%; }
}


/* ============================================================
   47. FIGURE / IMAGE CAPTIONS
   ============================================================ */
figure.image             { display: table; margin: 1rem auto; }
figure.image:first-child { margin-top: 0; }
figure.image:last-child  { margin-bottom: 0; }
figure.align-left        { float: left; margin-right: .5rem; }
figure.align-right       { float: right; margin-left: .5rem; }
figure.image.align-center { display: table; margin-left: auto; margin-right: auto; }
figure.image figcaption  { padding: 1rem; background-color: #fafafa; font-size: .8rem; caption-side: bottom; word-break: break-word; text-align: center; }
figure.image.align-center figcaption { display: table-caption; }


/* ============================================================
   48. LESS / SHADOW UTILITY
   ============================================================ */
.less { box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 10px 20px -5px rgba(0,0,0,.4); }

/* ============================================================
   49. ALERTS (LIGHT THEME)
   ============================================================ */
.short-alert{display:flex;align-items:center;gap:var(--sp-md);padding:14px 18px;margin-top:20px;border-radius:var(--r-lg);background-color:hsla(var(--h),var(--s),var(--l),0.1);border:1px solid hsla(var(--h),var(--s),var(--l),0.25);font-size:13px;line-height:var(--lh-base);color:var(--clr-body);transition:all var(--t-base)}
.short-alert:hover{transform:translateY(-2px);background-color:hsla(var(--h),var(--s),var(--l),0.15);box-shadow:var(--shadow-sm)}
.alert-icon{display:flex;width:20px;height:20px;color:hsl(var(--h),var(--s),calc(var(--l) - 15%));flex-shrink:0}
.alert-icon svg{width:100%;height:100%;fill:currentColor}
.alert-content{color:var(--clr-body)}
.alert-content b{color:hsl(var(--h),var(--s),calc(var(--l) - 20%));font-weight:700}
.alert-soon{--h:38;--s:96%;--l:55%}
.alert-unlocked{--h:5;--s:85%;--l:52%}
.alert-editdate{--h:38;--s:100%;--l:45%}

/* ============================================================
   50. FINAL RESPONSIVENESS REFINEMENTS
   ============================================================ */
@media only screen and (max-width: 700px) {
  /* Grid & Layout */
  .wrp, .wrp.fixed_wrap { padding-left: 15px !important; padding-right: 15px !important; }
  
  /* Comments Section */
  .comments-tree-list { padding-right: 0 !important; }
  .comments-tree-list .comments-tree-list { padding-left: 15px !important; margin-left: 0 !important; }
  .comments-tree-list div.comment { padding-left: 0 !important; padding-right: 0 !important; margin-bottom: 20px !important; }
  .comment .avatar { margin-right: 10px !important; }
  .com_content { width: 100% !important; overflow-wrap: break-word; }
  
  /* BB Editor */
  .addcomments_form { padding: 20px 15px !important; }
  .bb-editor { width: 100% !important; max-width: 100vw; overflow-x: hidden; }
  .bb-pane { overflow-x: auto !important; padding-bottom: 5px; -webkit-overflow-scrolling: touch; display: flex !important; flex-wrap: nowrap !important; }
  .bb-btn { flex: 0 0 auto !important; }
  
  /* Rating Box Mobile */
  .modern-rating-box { border-radius: 12px !important; margin: 20px 0 !important; }
}
/* ============================================================
   MINI RATING — Premium Compact Badge (shortstory)
   Unified design language with the full-page rating circle
   ============================================================ */

.mini-rating {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  text-decoration: none;
  flex-shrink: 0;
  height: 36px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fefefe, #f8f9fb);
  border: 1px solid #e5e7eb;
  padding: 0 12px 0 4px;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.mini-rating:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

/* Mini circle score — echoes the full-page progress-circle */
.mini-rating .mini-circle {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-rating .mini-circle svg {
  width: 28px;
  height: 28px;
  transform: rotate(-90deg);
}
.mini-rating .mini-circle .mini-bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 2.5;
}
.mini-rating .mini-circle .mini-bar {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.3s ease;
}
.mini-rating .mini-circle .mini-score-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #1f2937;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
}

/* Star icon */
.mini-rating .fa-star {
  color: #f59e0b;
  font-size: 12px;
  margin-left: 6px;
  filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.3));
}

/* Score text */
.mini-rating .rating-score {
  font-weight: 700;
  font-size: 13px;
  color: #1f2937;
  margin-left: 4px;
  letter-spacing: -0.2px;
}

/* Votes count */
.mini-rating .rating-votes {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 500;
  margin-left: 4px;
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mini-rating {
    height: 32px;
    padding: 0 10px 0 3px;
    border-radius: 16px;
  }
  .mini-rating .mini-circle {
    width: 24px;
    height: 24px;
  }
  .mini-rating .mini-circle svg {
    width: 24px;
    height: 24px;
  }
  .mini-rating .mini-circle .mini-score-text {
    font-size: 8px;
  }
  .mini-rating .fa-star {
    font-size: 11px;
    margin-left: 4px;
  }
  .mini-rating .rating-score {
    font-size: 12px;
  }
  .mini-rating .rating-votes {
    display: none;
  }
}
@media (max-width: 480px) {
  .mini-rating .fa-star {
    display: none;
  }
}

/* ============================================================
   51. ACCESSIBILITY — REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   52. USER PROFILE — Modern Card Design
   ============================================================ */
.user-profile-card {
  background: var(--clr-bg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: var(--sp-xl);
  border: 1px solid var(--clr-border);
}

.user-profile-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, var(--clr-bg-light) 0%, var(--clr-bg) 100%);
  position: relative;
}

.user-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.user-avatar-wrap .avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--r-full);
  overflow: hidden;
  border: 3px solid var(--clr-bg);
  box-shadow: 0 0 0 2px var(--clr-brand), 0 4px 16px rgba(236,46,28,.12);
}

.user-avatar-wrap .avatar .cover {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: block;
}

.user-status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--clr-bg);
}

.user-status-indicator.online {
  background: #70bb39;
  box-shadow: 0 0 0 2px rgba(112,187,57,.2);
  animation: userStatusPulse 2s infinite;
}

.user-status-indicator.offline {
  background: #9ca3af;
}

@keyframes userStatusPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(112,187,57,.2); }
  50% { box-shadow: 0 0 0 6px rgba(112,187,57,0); }
}

.user-hero-info {
  flex: 1;
  min-width: 0;
}

.user-hero-name {
  font-size: 1.5em;
  font-weight: 900;
  margin: 0 0 4px;
  color: var(--clr-dark);
  text-wrap: pretty;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.user-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .9em;
}

.status-online {
  color: #70bb39;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-online i { font-size: 8px; }

.status-offline {
  color: var(--clr-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-offline i { font-size: 8px; color: #9ca3af; }

.user-hero-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: linear-gradient(135deg, var(--clr-brand), var(--clr-brand-hover));
  color: var(--clr-bg) !important;
  border-radius: 20px;
  font-size: .75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 0 2px 6px rgba(236,46,28,.18);
}
.user-hero-group * { color: inherit !important; }
.user-hero-group .group-icon { width: 14px; height: 14px; object-fit: contain; }

.user-profile-tabs {
  display: flex;
  gap: 0;
  padding: 0 24px;
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-bg);
}

.user-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  color: var(--clr-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .9em;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--t-base);
  white-space: nowrap;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.user-tab:hover {
  color: var(--clr-brand);
  background: rgba(236,46,28,.03);
  text-decoration: none;
}

.user-tab.active {
  color: var(--clr-brand);
  border-bottom-color: var(--clr-brand);
}

.user-profile-body {
  padding: 24px;
}

.user-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--clr-border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--clr-border-light);
}

.user-info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--clr-bg);
  transition: background var(--t-base);
}

.user-info-row:hover {
  background: var(--clr-bg-light);
}

.user-info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: rgba(236,46,28,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-brand);
  font-size: 14px;
  transition: all var(--t-base);
}

.user-info-row:hover .user-info-icon {
  background: rgba(236,46,28,.12);
  transform: scale(1.05);
}

.user-info-text {
  flex: 1;
  min-width: 0;
}

.user-info-label {
  font-size: .7em;
  color: var(--clr-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  margin-bottom: 2px;
}

.user-info-value {
  font-size: .92em;
  color: var(--clr-dark);
  font-weight: 600;
  word-break: break-word;
  line-height: 1.4;
}

.user-info-value a {
  color: var(--clr-brand);
  text-decoration: none;
}

.user-info-value a:hover {
  text-decoration: underline;
}
.user-info-value span[style*="color"] {
  color: inherit !important;
}

.text-muted {
  color: var(--clr-muted);
  font-weight: 400;
}

.user-content-section {
  margin-bottom: 24px;
}

.user-content-section:last-child {
  margin-bottom: 0;
}

.user-section-heading {
  font-size: 1em;
  font-weight: 700;
  color: var(--clr-dark);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-section-heading::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--clr-brand);
  border-radius: 2px;
}

.user-section-body {
  font-size: .92em;
  line-height: 1.6;
  color: var(--clr-body);
}

.user-donation-cta {
  margin-top: 20px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border: 1px solid rgba(236,46,28,.1);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.donation-text {
  font-size: .95em;
  color: var(--clr-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.donation-text i {
  color: var(--clr-brand);
  font-size: 1em;
}

.donation-heart {
  display: inline-block;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

.user-edit-form {
  max-width: 800px;
}

/* Profile responsive */
@media (max-width: 768px) {
  .user-profile-hero {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 20px;
  }

  .user-avatar-wrap .avatar {
    width: 72px;
    height: 72px;
  }

  .user-hero-name {
    font-size: 1.35em;
  }

  .user-profile-tabs {
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .user-profile-body {
    padding: 16px;
  }

  .user-info-grid {
    grid-template-columns: 1fr;
  }

  .user-info-row {
    padding: 12px 14px;
  }
}

/* Profile rating — echoes fullstory star meter */
.profile-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}
.profile-stars {
  display: inline-block;
  width: 80px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23e2e8f0' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") repeat-x;
  background-size: 16px 16px;
  position: relative;
  flex-shrink: 0;
}
.profile-stars-fill {
  display: block;
  height: 100%;
  width: calc(var(--rs, 0) * 20%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffb027' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") repeat-x;
  background-size: 16px 16px;
}
.profile-score { font-weight: 700; color: var(--clr-body); font-variant-numeric: tabular-nums; }
.profile-max { font-weight: 400; color: var(--clr-muted); font-size: .9em; margin-left: 2px; }