/* ==========================================================================
   1. DESIGN SYSTEM & VARIABLES (Modern Dark Luxury)
   ========================================================================== */
:root {
  /* Backgrounds */
  --bg-body: #0b0d12;
  --bg-surface: #141720;
  --bg-surface-elevated: #1b1f2b;
  --bg-glass: rgba(20, 23, 32, 0.82);
  --bg-input: rgba(11, 13, 18, 0.75);

  /* Text */
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  /* Brand & Accents */
  --accent-primary: #e11d74;
  --accent-secondary: #7c3aed;
  --accent-blue: #38bdf8;
  --accent-glow: rgba(225, 29, 116, 0.35);
  --gradient-brand: linear-gradient(135deg, #e11d74 0%, #7c3aed 100%);
  --gradient-brand-hover: linear-gradient(135deg, #f43f8e 0%, #8b5cf6 100%);

  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  /* Borders & Effects */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(225, 29, 116, 0.65);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px -4px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 8px 25px -4px var(--accent-glow);

  /* Radii & Transitions */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. RESET & BASE TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(225, 29, 116, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(124, 58, 237, 0.09) 0%, transparent 45%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ol, ul { list-style: none; }
blockquote, q { quotes: none; }
table { border-collapse: collapse; border-spacing: 0; }
input, select, textarea, button { font-family: inherit; font-size: inherit; vertical-align: middle; }

article, aside, figure, figcaption, footer, header, nav, section, main {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--accent-primary);
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
}

.sub-title h1 {
  margin-bottom: 20px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.clr { clear: both; }
.clearfix::after { content: ""; display: table; clear: both; }
.nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-link { cursor: pointer; }
.icon-l .fa { margin-right: 8px; }
.icon-r .fa { margin-left: 8px; }
.icon-left .fa { margin-right: 0.4em; vertical-align: middle; }

/* ==========================================================================
   3. BUTTONS & CONTROLS
   ========================================================================== */
.button, .pagi-load a, .up-second li a, .usp-edit a, .qq-upload-button,
button:not(.color-btn):not([class*=fr]), html input[type="button"],
input[type="reset"], input[type="submit"], .meta-fav a, .usp-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--gradient-brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.button:hover, .up-second li a:hover, .usp-edit a:hover, .qq-upload-button:hover,
.pagi-load a:hover, .usp-btn a:hover, button:not(.color-btn):hover,
html input[type="button"]:hover, input[type="reset"]:hover,
input[type="submit"]:hover, .meta-fav a:hover {
  background: var(--gradient-brand-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

button:active, html input[type="button"]:active, input[type="reset"]:active,
input[type="submit"]:active, .button:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

button[disabled], input[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

input[type="submit"].bbcodes, input[type="button"].bbcodes, input.bbcodes, .ui-button {
  font-size: 12px !important;
  height: 30px !important;
  padding: 0 12px;
  border-radius: var(--radius-sm);
}

.self_delete_link,
.ui-dialog-buttonset button.ui-button-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
  transition: var(--transition);
}

.self_delete_link:hover,
.ui-dialog-buttonset button.ui-button-delete:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
  color: #ffffff;
}

/* ==========================================================================
   4. FORMS, INPUTS & CHECKBOXES
   ========================================================================== */
input[type="text"], input[type="password"], select, textarea {
  display: block;
  width: 100%;
  color: var(--text-main);
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

input[type="text"], input[type="password"], select {
  height: 42px;
  padding: 0 16px;
}

textarea {
  padding: 12px 16px;
  resize: vertical;
  min-height: 90px;
}

input[type="text"]:focus, input[type="password"]:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
  background-color: rgba(20, 23, 32, 0.95);
  box-shadow: 0 0 0 3px rgba(225, 29, 116, 0.15);
}

input::placeholder, textarea::placeholder {
  color: var(--text-dim);
  transition: opacity 0.2s ease;
}

input:focus::placeholder, textarea:focus::placeholder {
  opacity: 0.3;
}

input[type="text"].comments_author_field {
  margin-bottom: 12px;
}

.form-check-label {
  cursor: pointer;
  color: var(--text-main);
}

.form-check-input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: -3px 10px 0 0;
  appearance: none;
  background-color: var(--bg-input);
  border: 1px solid var(--border-strong);
  vertical-align: middle;
  cursor: pointer;
  transition: var(--transition);
}

.form-check-input:checked {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.form-check-input:checked[type=checkbox] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://w3.org' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}

.form-check-input:checked[type=radio] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://w3.org' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23ffffff'/%3e%3c/svg%3e");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}

.form-check-input[type=checkbox] { border-radius: 5px; }
.form-check-input[type=radio] { border-radius: 50%; }

/* ==========================================================================
   5. MEDIA & FLEXBOX HELPERS
   ========================================================================== */
.img-box, .img-wide, .img-resp-h, .img-resp-v {
  overflow: hidden;
  position: relative;
  background-color: #090a0f;
}

.img-resp-h { padding-top: 81%; }
.img-resp-v { padding-top: 130%; }

.img-box img, .img-resp-h img, .img-resp-v img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-resp-h img, .img-resp-v img {
  position: absolute;
  left: 0;
  top: 0;
}

.img-wide img { width: 100%; }
.img-square img { width: 150%; max-width: 150%; margin-left: -25%; }
.th-img img { transition: transform 0.45s ease, opacity 0.3s ease; }

.fx-row { display: flex; flex-wrap: wrap; justify-content: space-between; }
.fx-center { justify-content: center; }
.fx-between { justify-content: space-between; }
.fx-stretch { align-items: stretch; }
.fx-top { align-items: flex-start; }
.fx-middle { align-items: center; }
.fx-bottom { align-items: flex-end; }
.fx-col { display: flex; flex-direction: column; }
.fx-wrap { flex-wrap: wrap; }

.pages {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.btns-log, .h-menu, .side-bt, .footer, .th-title, .site-desc h1, .site-desc h2,
.site-desc h3, .rels-t, .full-in h1, .button, .comms-title, .f-fav, .btn-scr, .btn-dl {
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================================================
   6. BASIC GRID & LAYOUT
   ========================================================================== */
.wrap {
  min-width: 320px;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.center {
  width: 100%;
Verwende Code mit Vorsicht.
max-width: 1440px;
margin: 0 auto;
padding: 0 20px;
position: relative;
z-index: 20;
}
.h-one {
height: 72px;
background: var(--bg-glass);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-bottom: 1px solid var(--border-subtle);
position: relative;
z-index: 100;
}
.h-one::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: var(--gradient-brand);
}
.h-two {
min-height: 52px;
background-color: rgba(15, 18, 25, 0.92);
border-bottom: 1px solid var(--border-subtle);
box-shadow: var(--shadow-sm);
}
.cols {
margin: 28px 0;
display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: 24px;
}
.main {
flex: 1;
min-width: 0;
min-height: 600px;
}
.side {
width: 280px;
flex-shrink: 0;
background-color: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-md);
}
.footer {
margin-top: auto;
background-color: var(--bg-surface);
border-top: 1px solid var(--border-subtle);
padding: 32px 20px;
color: var(--text-muted);
text-align: center;
position: relative;
}
/* ==========================================================================
7. HEADER, SEARCH, MENU & SORTER
========================================================================== */
.logo {
display: flex;
align-items: center;
float: left;
width: 220px;
height: 72px;
margin-right: 24px;
}
.logo img {
max-height: 44px;
width: auto;
}
/* Search Box */
.search-box {
  width: 420px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.search-field {
  width: 100%;
  position: relative;
}

.search-field input,
.search-field input:hover,
.search-field input:focus {
  width: 100%;
  height: 42px;
  padding: 0 46px 0 18px;
  background-color: rgba(255, 255, 255, 0.06);
  background-clip: padding-box;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-pill);
  color: #ffffff;
  box-shadow: none;
  outline: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.search-field input:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.search-field input:focus {
  background-color: rgba(20, 23, 32, 0.9);
  border-color: rgba(225, 29, 116, 0.65);
  box-shadow: 0 0 0 3px rgba(225, 29, 116, 0.14);
}

/* Кнопка лупы внутри поиска — без рамок и теней при наведении */
.search-box button,
.search-box button:hover,
.search-box button:focus,
.search-box button:active {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%) !important;
  width: 36px;
  height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-muted) !important;
  font-size: 16px;
}

.search-box button:hover {
  color: var(--accent-primary) !important;
}
.btns-log {
height: 72px;
display: flex;
align-items: center;
gap: 10px;
float: right;
}
.btns-log a {
display: inline-flex;
align-items: center;
height: 38px;
padding: 0 18px;
color: var(--text-main);
border-radius: var(--radius-pill);
font-weight: 500;
}
.btns-log a:hover {
background-color: rgba(255, 255, 255, 0.06);
color: #ffffff;
}
.show-login {
display: inline-flex;
align-items: center;
height: 38px;
padding: 0 20px;
background: var(--gradient-brand);
color: #ffffff;
border-radius: var(--radius-pill);
font-weight: 600;
cursor: pointer;
box-shadow: var(--shadow-sm);
transition: var(--transition);
}
.show-login:hover {
background: var(--gradient-brand-hover);
box-shadow: var(--shadow-glow);
transform: translateY(-1px);
}
/* ==========================================================================
   ПРЕМИАЛЬНОЕ ВЕРХНЕЕ МЕНЮ (.h-menu)
   ========================================================================== */
.h-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 0;
  float: left;
}

.h-menu li { float: none; }

.h-menu a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.04);
  background-clip: padding-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  color: #e5e7eb;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.h-menu a:hover {
  background: rgba(225, 29, 116, 0.16);
  background-clip: padding-box;
  border-color: rgba(225, 29, 116, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 4px 14px rgba(225, 29, 116, 0.25);
}


.h-menu a:active {
  transform: translateY(0);
}

/* Счетчик новостей в пунктах меню */
.h-menu a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  height: 18px;
  min-width: 20px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.h-menu a:hover span {
  background-color: var(--color-success);
  border-color: transparent;
  color: #ffffff;
}


/* Sorter Dropdown */
.sorter {
display: inline-flex;
align-items: center;
float: right;
position: relative;
cursor: pointer;
margin-top: 9px;
height: 34px;
padding: 0 16px;
background-color: rgba(255, 255, 255, 0.06);
border: 1px solid var(--border-strong);
border-radius: var(--radius-pill);
color: var(--text-main);
font-size: 13px;
font-weight: 500;
transition: var(--transition);
}
.sorter:hover {
border-color: var(--accent-primary);
background-color: rgba(225, 29, 116, 0.12);
}
.sorter::before {
content: attr(data-label);
color: var(--text-muted);
padding-right: 8px;
}
.sorter form {
display: none;
background-color: var(--bg-surface-elevated);
border: 1px solid var(--border-strong);
border-radius: var(--radius-md);
padding: 8px;
line-height: 28px;
box-shadow: var(--shadow-md);
position: absolute;
right: 0;
top: calc(100% + 6px);
width: 180px;
z-index: 999;
}
.sorter form a {
display: block;
padding: 2px 10px;
border-radius: 6px;
color: var(--text-main);
}
.sorter form a:hover {
background-color: rgba(225, 29, 116, 0.15);
color: #ffffff;
text-decoration: none;
}
.sort li.asc a::after, .sort li.desc a::after {
content: "\f063";
font-family: FontAwesome;
display: inline-block;
margin-left: 8px;
color: var(--accent-primary);
}
.sort li.desc a::after { content: "\f062"; }
/* ==========================================================================
8. SEO DESCRIPTION & CONTENT CARDS (.thumb)
========================================================================== */
.site-desc {
background-color: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-lg);
padding: 24px;
line-height: 1.7;
color: var(--text-muted);
margin-bottom: 24px;
}
.site-desc h1, .site-desc h2, .site-desc h3 {
font-size: 22px;
margin-bottom: 14px;
padding-bottom: 14px;
border-bottom: 1px solid var(--border-subtle);
color: #ffffff;
font-weight: 600;
}
.site-desc p + p { margin-top: 8px; }
.site-desc a { color: var(--accent-primary); text-decoration: underline; }
/* Cards Grid */
.floats { margin: 0 -8px; }
.thumb {
width: 20%;
float: left;
padding: 0 8px 16px 8px;
}
.th-in {
background-color: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
overflow: hidden;
position: relative;
box-shadow: var(--shadow-sm);
transition: var(--transition);
}
.th-in:hover {
transform: translateY(-4px);
border-color: rgba(225, 29, 116, 0.5);
box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6), 0 0 16px rgba(225, 29, 116, 0.2);
}
.th-img {
display: block;
overflow: hidden;
position: relative;
}
.th-in:hover .th-img img {
transform: scale(1.05);
}
.th-rate {
display: inline-flex;
align-items: center;
padding: 4px 10px;
background: rgba(16, 185, 129, 0.85);
backdrop-filter: blur(6px);
color: #ffffff;
position: absolute;
left: 10px;
bottom: 10px;
z-index: 20;
font-size: 12px;
font-weight: 700;
white-space: nowrap;
border-radius: var(--radius-pill);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.th-time {
display: inline-flex;
align-items: center;
padding: 4px 10px;
background: rgba(11, 13, 18, 0.75);
backdrop-filter: blur(6px);
border: 1px solid rgba(255, 255, 255, 0.12);
color: #ffffff;
position: absolute;
right: 10px;
top: 10px;
z-index: 20;
font-size: 12px;
font-weight: 500;
border-radius: var(--radius-pill);
}
.th-text { padding: 14px; }
.th-title {
display: block;
font-size: 14px;
font-weight: 600;
line-height: 21px;
height: 42px;
overflow: hidden;
color: var(--text-main);
transition: var(--transition);
}
.th-in:hover .th-title { color: #ffffff; }
/* Media Badges */
.image-counter {
position: absolute;
top: 10px;
left: 10px;
padding: 4px 10px;
color: #ffffff;
font-size: 12px;
font-weight: 600;
border-radius: var(--radius-pill);
background: rgba(15, 18, 25, 0.75);
backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.14);
z-index: 5;
}
.prem-label::before {
content: attr(data-prem);
background: var(--gradient-brand);
color: #ffffff;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
padding: 4px 0;
text-align: center;
width: 110px;
position: absolute;
right: -26px;
top: 15px;
transform: rotate(45deg);
box-shadow: 0 4px 12px rgba(225, 29, 116, 0.45);
z-index: 6;
}
.item-gif, .item-foto2, .item-vid, .item-phlogo {
display: inline-block;
position: absolute;
bottom: 8px;
z-index: 4;
transition: var(--transition);
}
.item-gif { padding: 15px; left: 8px; background: url('../images/gif1.png') center/contain no-repeat; opacity: 0.85; }
.item-foto2 { padding: 15px; right: 8px; background: url('../images/photo.png') center/contain no-repeat; opacity: 0.85; }
.item-vid { padding: 15px; right: 8px; background: url('../images/plainic.png') center/contain no-repeat; opacity: 0.9; }
.item-phlogo { padding: 45px 80px; left: 8px; background: url('../images/ph-l.png') center/contain no-repeat; opacity: 0.8; }
/* ==========================================================================
9. SIDEBAR, FOOTER & PAGINATION
========================================================================== */
.side-box { padding: 18px; }
.side-bt {
font-size: 16px;
font-weight: 600;
padding-bottom: 12px;
margin-bottom: 12px;
border-bottom: 1px solid var(--border-subtle);
color: #ffffff;
}
.side-nav {
background-color: var(--bg-surface);
color: var(--text-main);
}
.side-nav .side-bt {
border-bottom: 0;
margin: -18px -18px 12px -18px;
padding: 14px 18px;
background: var(--gradient-brand);
color: #ffffff;
font-weight: 600;
letter-spacing: 0.02em;
}
.side-nav a {
border-bottom: 1px solid var(--border-subtle);
display: block;
padding: 10px 44px 10px 6px;
color: var(--text-muted);
font-size: 14px;
border-radius: 6px;
}
.side-nav li:last-child a { border-bottom: 0; }
.side-nav a:hover {
color: #ffffff;
background-color: rgba(255, 255, 255, 0.04);
padding-left: 10px;
}
.side-nav li { position: relative; }
.side-nav li span {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
font-size: 11px;
font-weight: 600;
padding: 2px 8px;
border-radius: var(--radius-pill);
background-color: rgba(255, 255, 255, 0.06);
color: var(--text-muted);
}
/* Footer */
.ft-copyr { margin-bottom: 10px; font-size: 14px; color: var(--text-main); }
.ft-menu a {
color: var(--text-muted);
display: inline-block;
vertical-align: top;
padding: 2px 12px;
font-size: 13px;
}
.ft-menu a + a { border-left: 1px solid var(--border-subtle); }
.ft-menu a:hover { color: #ffffff; text-decoration: none; }
.footer-alert { font-size: 18px; line-height: 1.5; color: var(--text-main); margin-top: 8px; }
.footer-alert span { color: var(--color-danger); font-size: 28px; font-weight: 700; vertical-align: middle; }
.counter {
display: inline-block;
height: 31px;
position: absolute;
right: 20px;
bottom: 24px;
opacity: 0.75;
transition: opacity 0.2s;
}
.counter:hover { opacity: 1; }
/* Bottom Pagination */
.bottom-nav { line-height: 38px; text-align: center; padding: 24px 0 0 0; }
.pagi-nav { max-width: 100%; display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagi-nav > span { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.navigation { text-align: center; }
.navigation a, .navigation span, .pnext a, .pprev a, .pprev > span, .pnext > span {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 12px;
min-width: 38px;
height: 38px;
background-color: var(--bg-surface);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
color: var(--text-main);
font-size: 14px;
font-weight: 600;
transition: var(--transition);
}
.navigation span, .pagi-nav a:hover, .navigation a:hover {
background: var(--gradient-brand);
border-color: transparent;
color: #ffffff;
box-shadow: var(--shadow-glow);
}
.navigation span.nav_ext {
background-color: transparent;
border-color: transparent;
box-shadow: none;
color: var(--text-dim);
}
.dle-comments-navigation .pagi-nav { margin-bottom: 0; }
css
/* ==========================================================================
   10. FULL STORY PAGE (.full-in), PLAYER & RATING BAR
   ========================================================================== */
.full-in {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.player-box {
  background-color: #050608;
  border-bottom: 1px solid var(--border-subtle);
}

.player-box .video-box {
  max-width: 820px;
  margin: 0 auto;
}

.full-in h1 {
  font-size: 22px;
  font-weight: 700;
  padding: 18px 22px;
  background-color: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  color: #ffffff;
  letter-spacing: -0.01em;
}

.full h1 a {
  color: var(--accent-primary);
  margin-left: 10px;
}

.full-meta {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   ПРЕМИАЛЬНЫЙ МИНИМАЛИЗМ: КАТЕГОРИИ И ТЕГИ (100% РАБОЧИЙ СЕЛЕКТОР)
   ========================================================================== */
.full-tags {
  display: block;
  padding: 14px 22px 10px 22px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

/* --- 1. ПЕРВЫЙ БЛОК: КАТЕГОРИИ (.full-tags a) — Объемный графит с точкой --- */
.full-tags a {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  height: 30px;
  padding: 0 14px;
  margin: 0 6px 4px 6px !important;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 8px;
  background: linear-gradient(180deg, #252b3b 0%, #191d28 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.full-tags a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
  margin-right: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.full-tags a:hover {
  background: linear-gradient(180deg, #2d3447 0%, #202533 100%);
  border-color: rgba(225, 29, 116, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.5);
}

.full-tags a:hover::before {
  transform: scale(1.25);
}

/* --- 2. ВТОРОЙ БЛОК: ТЕГИ (.full-tags + .full-tags a) — Воздушные пилюли --- */
.full-tags + .full-tags {
  padding-top: 12px;
  border-bottom: none;
}

.full-tags + .full-tags a {
  height: 28px;
  padding: 0 12px;
  margin: 0 5px 4px 5px !important;
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1 !important;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.full-tags + .full-tags a::before {
  content: "#";
  width: auto;
  height: auto;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  color: var(--accent-primary);
  opacity: 0.85;
  margin-right: 4px;
  font-weight: 700;
}

.full-tags + .full-tags a:hover {
  background: rgba(225, 29, 116, 0.14);
  border-color: rgba(225, 29, 116, 0.5);
  color: #ffffff !important;
  box-shadow: none;
}


/* --- 2. ТЕГИ (.full-taglist a) — Легкие стеклянные пилюли --- */
.full-taglist a {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  height: 28px;
  padding: 0 12px;
  margin: 0 6px 6px 2px !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #d1d5db !important;
  text-decoration: none !important;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.full-taglist a:hover {
  background-color: rgba(225, 29, 116, 0.12);
  border-color: rgba(225, 29, 116, 0.45);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.full-taglist span:not(.fa):not(:last-child)::after {
  content: none !important;
  display: none !important;
}



/* Screenshots Gallery */
.f-screens {
  padding: 16px 10px 6px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
  text-align: center;
  margin: 0 22px 16px 22px;
  display: none;
}

.f-screens a, .f-screens > img {
  display: inline-block;
  vertical-align: top;
  margin: 0 6px 12px 6px;
  max-width: 240px;
  max-height: 145px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: var(--transition);
}

.f-screens a:hover {
  border-color: var(--accent-primary);
  transform: scale(1.03);
}

.f-screens a img { display: block; }
.f-screens br { display: none; }

/* Download Dropdown */
.btn-dl ul {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 100;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  color: var(--text-main);
  width: 210px;
  padding: 6px;
  display: none;
}

.btn-dl ul li {
  padding: 6px 12px;
  line-height: 1.4;
  text-transform: none;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-dl ul li a { color: var(--text-main); display: block; }
.btn-dl li:hover { background-color: rgba(225, 29, 116, 0.16); }
.btn-dl li:hover a { color: #ffffff; }

/* Rating Widget (.f-rate) */
.f-rate {
  float: left;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-align: center;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  width: 250px;
  height: 40px;
}

.rate-plus, .rate-minus, .rate-counts { display: inline-block; vertical-align: middle; }
.rate-data { display: none; }

.rate-counts {
  flex: 1;
  padding: 4px 12px 0 12px;
  height: 40px;
}

.rate-plus, .rate-minus {
  cursor: pointer;
  width: 42px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  background: transparent;
  transition: var(--transition);
}

.rate-plus {
  color: var(--color-success);
  border-right: 1px solid var(--border-subtle);
}

.rate-minus {
  color: var(--color-danger);
  border-left: 1px solid var(--border-subtle);
}

.rate-plus:hover {
  background-color: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.rate-minus:hover {
  background-color: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

.rate-bar {
  width: 100%;
  min-height: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
  background-color: rgba(239, 68, 68, 0.35);
}

.rate-fill {
  width: 50%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: var(--radius-pill);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.rate-perc {
  margin-right: 5px;
  font-size: 15px;
  font-weight: 700;
  color: #34d399;
}

.rels-t {
  margin: 24px 0 14px 0;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.full .thumb { padding: 10px 8px 0 8px; }

/* ==========================================================================
   11. FULL STORY TEXT & TAGLIST
   ========================================================================== */
.video-box embed, .video-box object, .video-box video, .video-box iframe, .video-box frame {
  max-width: 100% !important;
  display: block;
  width: 100%;
  height: 440px;
}

.mejs-container { max-width: 100% !important; }

.full-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
}

.full-text img:not(.emoji) {
  max-width: 100%;
  margin: 14px 0;
  border-radius: var(--radius-md);
}

.full-text > img[style*="left"], .full-text > .highslide img[style*="left"] { margin: 0 16px 12px 0; }
.full-text > img[style*="right"], .full-text > .highslide img[style*="right"] { margin: 0 0 12px 16px; }

.full-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--accent-primary);
}

.full-text a:hover {
  text-decoration: none;
  color: #f43f8e;
}

.full-text h2, .full-text h3, .full-text h4, .full-text h5 {
  margin: 18px 0 10px 0;
  font-size: 19px;
  font-weight: 700;
}

.full-text p { margin-bottom: 12px; }
.full-text ul, .full-text ol { margin: 10px 0; }
.full-text ul li { list-style: disc; margin-left: 28px; margin-bottom: 4px; }
.full-text ol li { list-style: decimal; margin-left: 28px; margin-bottom: 4px; }



/* ==========================================================================
   12. COMMENTS SECTION (.full-comms)
   ========================================================================== */
.full-comms {
  padding: 22px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.comms-title { line-height: 40px; }
.comms-title > span { font-size: 18px; font-weight: 600; color: #ffffff; }

.add-comm-form {
  position: relative;
  margin: 20px 0;
  padding: 20px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: none;
}

.ac-soc { position: absolute; right: 20px; top: 18px; }
.ac-soc::before {
  content: attr(data-label);
  display: inline-block;
  vertical-align: top;
  line-height: 30px;
  margin-right: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.ac-soc a {
  display: inline-block;
  margin: 0 0 0 4px;
  vertical-align: top;
  transition: transform 0.2s;
}
.ac-soc a:hover { transform: translateY(-2px); }
.ac-soc img { display: block; width: 28px; border-radius: 50%; }

.ac-inputs, .ac-textarea { margin-bottom: 16px; }

.ac-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  float: left;
  margin-right: 12px;
  background: var(--bg-input) url(../dleimages/noavatar.png) center/cover no-repeat;
  border: 1px solid var(--border-strong);
}

.ac-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.ac-inputs input { width: 49%; }
.ac-textarea textarea { height: 95px; }
.sec-answer + .sec-label { margin-top: 10px; }
.ac-protect { margin-top: -8px; display: none; }
.ac-protect .label { font-size: 12px; color: var(--text-muted); }
.ac-protect .sep-input { padding: 10px 10px 10px 160px; }

.mass_comments_action {
  text-align: right;
  padding: 10px 16px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin: 20px 0 0 0;
}

.last-comm-link { font-size: 15px; margin-bottom: 12px; }
.last-comm-link a { text-decoration: underline; color: var(--accent-primary); }

.comm {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px 16px 68px;
  margin-top: 12px;
  transition: var(--transition);
}

.comm:hover {
  border-color: var(--border-strong);
}

.comm-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  float: left;
  margin-left: -52px;
  border: 1px solid var(--border-strong);
}

.comm-meta {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.comm-meta span + span { margin-left: 10px; }
.comm-author { font-weight: 600; color: #ffffff; }
.comm-text { font-size: 14px; line-height: 1.6; color: var(--text-main); }

Verwende Code mit Vorsicht.
/* ==========================================================================
13. LOGIN MODAL & USER PANEL
========================================================================== */
.login-box {
background-color: var(--bg-surface);
border: 1px solid var(--border-strong);
border-radius: var(--radius-lg);
padding: 24px;
box-shadow: var(--shadow-md);
display: none;
}
.lb-user {
margin: -24px -24px 20px -24px;
padding: 24px;
background: linear-gradient(180deg, rgba(225, 29, 116, 0.14) 0%, rgba(20, 23, 32, 0) 100%);
border-bottom: 1px solid var(--border-subtle);
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
.lb-ava {
width: 76px;
height: 76px;
border-radius: 50%;
margin-right: 18px;
border: 2px solid var(--accent-primary);
box-shadow: 0 0 15px var(--accent-glow);
object-fit: cover;
}
.lb-name div { font-size: 18px; font-weight: 600; color: #ffffff; }
.lb-name a { margin-top: 8px; }
.lb-menu a {
display: flex;
align-items: center;
height: 38px;
padding: 0 14px;
margin-bottom: 4px;
border-radius: var(--radius-sm);
background-color: rgba(255, 255, 255, 0.03);
color: var(--text-main);
}
.lb-menu a .fa {
color: var(--accent-primary);
margin-right: 10px;
transition: var(--transition);
}
.lb-menu a:hover {
background: var(--gradient-brand);
color: #ffffff;
}
.lb-menu a:hover .fa { color: #ffffff; }
.login-box input[type="text"],
.login-box input[type="password"],
.login-box button,
.lb-check {
display: block;
margin-bottom: 16px;
width: 100%;
}
.lb-check input { display: none; }
.lb-check input + label { cursor: pointer; color: var(--text-muted); display: inline-flex; align-items: center; }
.lb-check input + label::before {
width: 16px;
height: 16px;
margin-right: 8px;
border-radius: 4px;
border: 1px solid var(--border-strong);
content: "";
background-color: var(--bg-input);
display: inline-block;
transition: var(--transition);
}
.lb-check input:checked + label::before {
background-color: var(--accent-primary);
border-color: var(--accent-primary);
background-image: url("data:image/svg+xml,%3csvg xmlns='w3.org' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
background-size: 12px;
background-position: center;
background-repeat: no-repeat;
}
.lb-soc {
margin: 20px -24px -24px -24px;
padding: 18px 24px;
background-color: rgba(0, 0, 0, 0.25);
border-top: 1px solid var(--border-subtle);
border-radius: 0 0 var(--radius-lg) var(--radius-lg);
text-align: center;
}
.lb-soc a { display: inline-block; margin: 8px 4px 0 4px; transition: transform 0.2s ease; }
.lb-soc a:hover { transform: translateY(-2px); }
.lb-soc img { display: block; width: 32px; border-radius: 50%; }
/* ==========================================================================
14. RATING SLIDERS, DLE UPGRADE, PUSH & PM (DARK THEME)
========================================================================== */
.main-sliders-rate {
display: flex;
height: 42px;
border-radius: var(--radius-md);
overflow: hidden;
border: 1px solid var(--border-subtle);
background-color: var(--bg-surface-elevated);
}
.main-sliders-rate a {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 50%;
height: 42px;
font-size: 13px;
font-weight: 600;
text-decoration: none;
transition: var(--transition);
}
.main-sliders-rate a span {
position: relative;
display: inline-flex;
align-items: center;
padding-left: 22px;
}
.main-sliders-rate a svg {
position: absolute;
width: 17px;
height: 17px;
left: 0;
top: 50%;
transform: translateY(-50%);
transition: var(--transition);
}
.main-sliders-rate a:nth-of-type(1) {
background: rgba(16, 185, 129, 0.12);
color: #34d399;
border-right: 1px solid var(--border-subtle);
}
.main-sliders-rate a:nth-of-type(1) svg { fill: #34d399; }
.main-sliders-rate a:nth-of-type(1):hover { background: var(--color-success); color: #ffffff; }
.main-sliders-rate a:nth-of-type(1):hover svg { fill: #ffffff; }
.main-sliders-rate a:nth-of-type(2) {
background: rgba(239, 68, 68, 0.12);
color: #f87171;
}
.main-sliders-rate a:nth-of-type(2) svg { fill: #f87171; }
.main-sliders-rate a:nth-of-type(2):hover { background: var(--color-danger); color: #ffffff; }
.main-sliders-rate a:nth-of-type(2):hover svg { fill: #ffffff; }
/* Editor & Upgrade Elements */
figure { margin: 0 0 16px 0; }
figure.align-left { float: left; margin-right: 16px; }
figure.align-right { float: right; margin-left: 16px; }
figure.image.align-center { display: table; margin-left: auto; margin-right: auto; }
figure.image figcaption {
padding: 10px 14px;
background-color: var(--bg-surface-elevated);
color: var(--text-muted);
border-top: 1px solid var(--border-subtle);
font-size: 12px;
caption-side: bottom;
word-break: break-word;
text-align: center;
}
figure.image.align-center figcaption { display: table-caption; }
.comments-image-gallery {
margin: 10px 0;
padding: 0;
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 8px;
clear: both;
}
.comments-image-gallery li img {
width: 96px;
height: 96px;
object-fit: cover;
border-radius: var(--radius-sm);
border: 2px solid var(--border-strong);
transition: var(--transition);
}
.comments-image-gallery li img:hover {
border-color: var(--accent-primary);
transform: scale(1.04);
box-shadow: var(--shadow-glow);
}
.mce-toc {
background-color: var(--bg-surface-elevated);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-md);
padding: 16px 20px;
margin: 0 0 16px 0;
}
.mce-toc h2 { margin-bottom: 8px; font-size: 16px; }
.mce-toc ul { padding-left: 18px; margin: 6px 0; }
.mce-toc ul ul { padding-left: 18px; margin: 0; }
.image-bordered { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.image-shadows { box-shadow: var(--shadow-md); }
.image-padded { padding: 8px; background-color: var(--bg-surface-elevated); border-radius: var(--radius-sm); }
.comments-user-profile { font-weight: 600; cursor: pointer; color: var(--accent-blue); transition: var(--transition); }
.comments-user-profile:hover { color: var(--accent-primary); }
.title_spoiler svg { vertical-align: middle; margin-top: -3px; margin-right: 7px; height: 16px; width: 16px; }
.mce-accordion summary { cursor: pointer; }
.quote_link { float: right; }
.quote_link svg, .clipboard-copy-link svg { color: var(--text-muted); vertical-align: middle; transition: var(--transition); }
.quote_link:hover svg, .clipboard-copy-link:hover svg { color: var(--accent-primary); }
.clipboard-copy-link svg { margin-top: -3px; }
/* DLE Push Notifications */
.DLEPush { z-index: 2001; position: fixed; right: 20px; top: 20px; }
@keyframes DLEPush-show {
0% { transform: translateX(30px); opacity: 0; }
100% { transform: translateX(0); opacity: 1; }
}
.DLEPush-notification.wrapper {
animation: DLEPush-show 0.35s cubic-bezier(0.16, 1, 0.3, 1);
position: relative;
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
color: var(--text-main);
margin-bottom: 12px;
width: 100%;
max-width: 400px;
background: var(--bg-glass);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid var(--border-strong);
box-shadow: var(--shadow-md);
border-radius: var(--radius-md);
overflow: hidden;
}
.DLEPush-notification .DLEPush-icon {
grid-column: 1;
grid-row: 1 / span 2;
display: flex;
align-items: center;
justify-content: center;
color: #ffffff;
width: 46px;
height: 100%;
}
.DLEPush-notification .DLEPush-icon svg { transform: scale(0.85); }
.DLEPush-notification .DLEPush-header {
font-weight: 600;
grid-column: 2;
grid-row: 1;
font-size: 14px;
margin: 12px 28px 0 14px;
color: #ffffff;
}
.DLEPush-notification .DLEPush-header:empty { margin-top: 0; }
.DLEPush-notification .DLEPush-message {
grid-column: 2;
grid-row: 2;
font-size: 13px;
color: var(--text-muted);
margin: 6px 14px 12px 14px;
}
.DLEPush-notification .DLEPush-close {
position: absolute;
top: 8px;
right: 10px;
background: none;
border: 0;
font-size: 18px;
cursor: pointer;
line-height: 1;
padding: 2px;
color: var(--text-muted);
}
.DLEPush-notification .DLEPush-close:hover { color: #ffffff; }
.DLEPush-notification.wrapper.push-success .DLEPush-icon { background-color: var(--color-success); }
.DLEPush-notification.wrapper.push-warning .DLEPush-icon { background-color: var(--color-warning); }
.DLEPush-notification.wrapper.push-error .DLEPush-icon { background-color: var(--color-danger); }
/* Personal Messages (PM) */
.pm th { text-align: left; font-weight: 600; color: var(--text-muted); white-space: nowrap; padding: 12px; border-bottom: 1px solid var(--border-strong); }
.pm th.pm_checkbox { text-align: center; }
.pm td { padding: 12px; border-bottom: 1px solid var(--border-subtle); }
.pm_list.pm_subj, .pm_list.pm_icon, .pm_list.pm_last_user { cursor: pointer; }
.pm_list.pm_icon svg { width: 20px; height: 20px; vertical-align: middle; }
.pm_list.pm_icon.pm-unread-image { color: var(--accent-blue); }
.pm_list.pm_icon.pm-reply-image { color: var(--color-success); }
.pm_list.pm_icon.pm-read-image { color: var(--text-dim); }
.pm td.pm_list.pm_icon, .userstop td, th.pm_head.pm_icon { border-bottom: none; }
.pm_list .pm_last_message, .pm_list .pm_last_date, .pm_list .pm_with_user { color: var(--text-muted); font-size: 12px; }
.pm tbody > tr { transition: background-color 0.2s ease; }
.pm tbody > tr:hover { background-color: rgba(255, 255, 255, 0.04); }
.pm_navigation { margin-top: 18px; }
.pm_navigation .navigation {
display: inline-flex;
gap: 4px;
background-color: var(--bg-surface-elevated);
border: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
padding: 4px;
}
.pm_navigation .navigation a, .pm_navigation .navigation span {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 6px 12px;
min-width: 34px;
border-radius: 6px;
font-size: 13px;
}
.pm_navigation .navigation span { background: var(--gradient-brand); color: #ffffff; font-weight: 600; }
.pm_navigation .navigation a { color: var(--text-main); }
.pm_navigation .navigation a:hover { background-color: rgba(255, 255, 255, 0.08); color: #ffffff; }

/* ==========================================================================
   МОДАЛЬНЫЕ ОКНА JQUERY UI (.ui-dialog) И КНОПКА ЗАКРЫТИЯ (КАБИНЕТ / ВХОД)
   ========================================================================== */
.ui-widget-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.78) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999 !important;
}

.ui-dialog {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  padding: 0 !important;
  color: var(--text-main) !important;
  overflow: hidden !important;
  z-index: 1000 !important;
}

/* Шапка модального окна */
.ui-dialog .ui-dialog-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px !important;
  background: var(--bg-surface-elevated) !important;
  border: none !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.ui-dialog .ui-dialog-title {
  margin: 0 !important;
  float: none !important;
  color: #ffffff !important;
}

/* Аккуратная круглая кнопка "Закрыть" (крестик) */
.ui-dialog .ui-dialog-titlebar-close {
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-muted) !important;
  font-size: 0 !important; /* Прячем кривой текст "close" или старую иконку */
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  transition: var(--transition) !important;
}

/* Прячем стандартный спрайт-иконку jQuery UI */
.ui-dialog .ui-dialog-titlebar-close .ui-icon,
.ui-dialog .ui-dialog-titlebar-close .ui-button-icon {
  display: none !important;
}

/* Рисуем идеальный векторный крестик на чистом CSS */
.ui-dialog .ui-dialog-titlebar-close::before,
.ui-dialog .ui-dialog-titlebar-close::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  background-color: var(--text-muted);
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.ui-dialog .ui-dialog-titlebar-close::before { transform: rotate(45deg); }
.ui-dialog .ui-dialog-titlebar-close::after { transform: rotate(-45deg); }

.ui-dialog .ui-dialog-titlebar-close:hover {
  background: rgba(225, 29, 116, 0.2) !important;
  border-color: rgba(225, 29, 116, 0.5) !important;
  transform: translateY(-50%) rotate(90deg) !important;
}

.ui-dialog .ui-dialog-titlebar-close:hover::before,
.ui-dialog .ui-dialog-titlebar-close:hover::after {
  background-color: #ffffff;
}

/* Внутренний отступ контента окна без полос прокрутки */
.ui-dialog .ui-dialog-content {
  padding: 20px 22px !important;
  background: transparent !important;
  color: var(--text-main) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  width: 100% !important;
}

/* Если внутри окна лежит .login-box, убираем двойные рамки и отступы */
.ui-dialog .login-box {
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: hidden !important;
}

.ui-dialog .lb-user {
  margin: -20px -22px 20px -22px !important;
  padding: 20px 22px !important;
  border-radius: 0 !important;
}

.ui-dialog .lb-soc {
  margin: 20px -22px -20px -22px !important;
  padding: 18px 22px !important;
  border-radius: 0 !important;
}

/* Нижняя панель кнопок в диалогах (если есть) */
.ui-dialog .ui-dialog-buttonpane {
  margin: 0 !important;
  padding: 14px 22px !important;
  background: var(--bg-surface-elevated) !important;
  border-top: 1px solid var(--border-subtle) !important;
}

/* ==========================================================================
15. GO TOP, MOBILE DRAWER & RESPONSIVE
========================================================================== */
#gotop {
position: fixed;
width: 44px;
height: 44px;
line-height: 44px;
right: 20px;
bottom: 20px;
cursor: pointer;
font-size: 18px;
z-index: 9998;
display: none;
background: var(--bg-glass);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--border-strong);
color: #ffffff;
border-radius: 50%;
text-align: center;
box-shadow: var(--shadow-md);
transition: var(--transition);
}
#gotop:hover {
background: var(--gradient-brand);
border-color: transparent;
transform: translateY(-3px);
box-shadow: var(--shadow-glow);
}
.btn-menu { display: none; }
.side-panel {
width: 280px;
height: 100%;
overflow-x: hidden;
overflow-y: auto;
background: rgba(15, 18, 25, 0.96);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-right: 1px solid var(--border-strong);
padding: 16px;
z-index: 888;
position: fixed;
left: -280px;
top: 0;
transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.side-panel.active { left: 0; }
.close-overlay {
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.75);
backdrop-filter: blur(4px);
position: fixed;
left: 0;
top: 0;
z-index: 887;
display: none;
}
.side-panel li { position: relative; }
.side-panel a {
display: block;
padding: 12px 45px 12px 12px;
color: var(--text-main);
font-size: 14px;
border-bottom: 1px solid var(--border-subtle);
border-radius: var(--radius-sm);
}
.side-panel a:hover {
background-color: rgba(225, 29, 116, 0.14);
color: #ffffff;
}
.side-panel li span {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
font-size: 12px;
color: var(--text-muted);
}
@media only screen and (min-width: 601px) {
.DLEPush-notification.wrapper { min-width: 380px; }
}
@media screen and (max-width: 1220px) {
.center { max-width: 1040px; }
.thumb { width: 33.33%; }
.search-box {
position: static;
transform: none;
float: left;
margin-top: 15px;
width: 320px;
}
.f-fav, .btn-scr, .btn-dl, .f-time, .f-views { margin: 0 0 0 12px; }
}
@media screen and (max-width: 950px) {
.center { max-width: 768px; }
.search-box { width: 240px; }
.btns-log a, .h-menu, .side { display: none; }
.sorter { float: right; margin-right: 0; }
.main { width: 100%; padding-right: 0; }
.counter { position: static; margin: 12px 0 0 0; }
.btn-menu {
background: var(--gradient-brand);
color: #ffffff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
float: left;
width: 44px;
height: 44px;
margin-top: 4px;
border-radius: var(--radius-sm);
font-size: 18px;
}
}
@media screen and (max-width: 760px) {
  .center { max-width: 640px; }
  .thumb { width: 50%; }

  /* Жестко фиксируем 2 этажа в шапке через position: relative/absolute */
  .h-one {
    height: 118px;
    position: relative;
  }
  .h-one .center {
    display: block;
    position: relative;
    height: 100%;
  }
  .logo {
    float: none;
    height: 60px;
    width: auto;
    max-width: 170px;
    margin: 0;
  }
  .btns-log {
    float: none;
    position: absolute;
    top: 0;
    right: 20px;
    height: 60px;
    display: flex;
    align-items: center;
  }
  .search-box {
    position: absolute;
    top: 66px;
    left: 20px;
    right: 20px;
    width: auto;
    float: none;
    transform: none;
    margin: 0;
  }
  .search-field input, .search-field input:focus { height: 38px; }
  .search-box button { width: 36px; height: 36px !important; }

  .site-desc h1, .site-desc h2, .site-desc h3 { font-size: 18px; }
  .ac-protect { margin-top: 0; }
  .comments-tree-list .comments-tree-list { padding-left: 0 !important; }
  .comments-tree-list .comments-tree-list::before { display: none; }
  .mass_comments_action { display: none; }
  .sub-title h1 { font-size: 18px; line-height: 24px; }
}



@media screen and (max-width: 590px) {
  .center { max-width: 480px; padding: 0 14px; }
  .full-in h1, .rels-t { font-size: 18px; }
  .full-meta { text-align: center; }
  .f-rate { float: none; margin: 0 auto 12px auto; }
  .f-fav, .btn-scr, .btn-dl, .f-time, .f-views {
    float: none;
    margin: 0 6px;
    line-height: 24px;
    display: inline-block;
    vertical-align: top;
  }
  .video-box embed, .video-box object, .video-box video, .video-box iframe, .video-box frame { height: 300px; }
  .ac-soc { position: static; margin-bottom: 10px; }
  .ac-inputs input { width: 100%; margin-top: 10px; }
  .ac-protect { width: 100%; float: none; margin: 0; }
  .ui-dialog { width: 100% !important; }
  .upop-left, .upop-right { float: none !important; width: 100% !important; margin: 0; padding: 0 20px; }
  .upop-left { margin-bottom: 10px; text-align: center; }
  .ui-dialog-buttonset button { display: block; margin: 0 0 6px 0; width: 100%; }
  #dofullsearch, #searchsuggestions span.seperator { display: none !important; }
  .attach .download-link { margin: 0; float: none; display: block; padding: 0 10px; }
  .attach-info { float: none; }
}

@media screen and (max-width: 470px) {
  .center2 { max-width: 320px; }
  .logo {
    max-width: 150px;
    overflow: hidden;
    margin: 0;
  }
  .show-login {
    padding: 0 14px;
    height: 34px;
    font-size: 12px;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .thumb { width: 100%; }
  .site-desc { display: none; }
  .add-comm-btn { padding: 0 12px; }
  .comms-title2 { text-align: center; display: block !important; }
  .video-box embed, .video-box object, .video-box video, .video-box iframe, .video-box frame { height: 250px; }
}
