/* ═══════════════════════════════════════════════════════════
   BOOKOUR — Modern Book Theme
   Полностью переработан: тёмная тема, современный UI
   Вся логика jQuery/JS не изменена
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── VARIABLES ──────────────────────────────────────────── */
:root {
  --bg:         #0f1117;
  --bg-2:       #161b27;
  --bg-3:       #1e2535;
  --bg-4:       #252d3d;
  --card:       #1a2030;
  --border:     rgba(255,255,255,0.08);
  --border-2:   rgba(255,255,255,0.14);

  --text:       #e2e8f0;
  --text-2:     #94a3b8;
  --text-3:     #64748b;

  --accent:     #6366f1;
  --accent-h:   #818cf8;
  --accent-2:   #8b5cf6;
  --accent-s:   rgba(99,102,241,0.15);

  --green:      #10b981;
  --red:        #ef4444;
  --orange:     #f59e0b;

  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
}

/* ── RESET ──────────────────────────────────────────────── */
* { background: transparent; margin: 0; padding: 0; outline: none; border: 0; box-sizing: border-box; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
table { border-collapse: collapse; border-spacing: 0; }
input, select { vertical-align: middle; }
article, aside, figure, footer, header, nav, section, main { display: block; }
img { max-width: 100%; }
.clr { clear: both; }
.clearfix:after { content: ""; display: table; clear: both; }

/* ── BASE ───────────────────────────────────────────────── */
body {
  font: 15px 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100%;
  width: 100%;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-h); text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #fff; }
h1, h2, h3, h4, h5 { font-weight: 600; font-size: 20px; line-height: 1.3; }
::selection { background: var(--accent); color: #fff; }
b, strong, .fw700 { font-weight: 600; }

/* ── FORMS ──────────────────────────────────────────────── */
button, textarea, select,
input[type="text"], input[type="password"],
input[type="button"], input[type="submit"] {
  appearance: none; -webkit-appearance: none;
  font-size: 14px; font-family: 'Inter', sans-serif; font-weight: 400;
}

.button, .btn, .pagi-load a, .qq-upload-button,
button:not(.color-btn):not([class*=fr]):not(.search-btn):not([class*=owl-]):not(.tox-tbtn),
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;
  padding: 0 20px; height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 500;
  background: var(--accent); color: #fff;
  font-size: 14px; letter-spacing: 0.01em;
  transition: background .2s, box-shadow .2s, transform .1s;
  white-space: nowrap;
}
.button:hover, .btn:hover,
button:not(.color-btn):not([class*=fr]):not(.search-btn):not([class*=owl-]):not(.tox-tbtn):hover,
html input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover,
.meta-fav a:hover, .usp-btn a:hover {
  background: var(--accent-h); color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
button:active, input[type="button"]:active, input[type="submit"]:active {
  transform: scale(0.98);
}

input[type="text"], input[type="password"] {
  height: 40px; line-height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  padding: 0 14px;
  background: var(--bg-3); color: var(--text);
  font-size: 14px;
}
select {
  height: 40px; border: 1px solid var(--border-2);
  padding: 0 14px; background: var(--bg-3); color: var(--text);
  border-radius: var(--radius-sm);
}
textarea {
  padding: 12px 14px; overflow: auto; resize: vertical;
  background: var(--bg-3); color: var(--text);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
}
input[type="text"], input[type="password"], select, textarea { width: 100%; }
input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: 1; font-size: 14px; }
input:focus::placeholder, textarea:focus::placeholder { color: transparent; }

/* ── UTILS ──────────────────────────────────────────────── */
.img-box, .img-wide, .img-resp, .img-resp-vert, .img-fit { overflow: hidden; position: relative; }
.img-resp { padding-top: 70%; }
.img-resp-vert { padding-top: 150%; }
.img-box img, .img-resp img, .img-resp-vert img { width: 100%; min-height: 100%; display: block; object-fit: cover; }
.img-resp img, .img-resp-vert img { position: absolute; left: 0; top: 0; }
.img-wide img { width: 100%; height: 250px; display: block; object-fit: cover; }
.img-fit img { width: 100%; height: 100%; object-fit: cover; }
.nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fx-row, #dle-content {
  display: flex; flex-wrap: wrap; justify-content: space-between;
}
.fx-col { display: flex; flex-direction: column; }
.fx-center { justify-content: center; }
.fx-middle { align-items: center; }
.fx-start { justify-content: flex-start; }
.fx-first { order: -1; }
.fx-last { order: 10; }
.fx-1 { flex: 1 1 0; max-width: 100%; min-width: 50px; }
.fx-between { justify-content: space-between; }

.hidden, #dofullsearch { display: none; }
.icon-left [class*="fa-"] { margin-right: 8px; }
.icon-right [class*="fa-"] { margin-left: 8px; }

.anim, .btn, button, .short-item a, .sidebar a,
.header-btn, .short-img, .footer a, .side-nav a {
  transition: all .2s;
}
.mtitle, .sub-title h1, .form-wrap h1 {
  margin-bottom: 24px; font-size: 22px; font-weight: 600;
}
#dle-content > * { width: 100%; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.wrap { min-width: 320px; position: relative; padding: 20px; background: var(--bg); }
.wrap-center { max-width: 1260px; margin: 0 auto; position: relative; z-index: 20; }
.wrap-main {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
}

/* ── HEADER ─────────────────────────────────────────────── */
.header {
  padding: 16px 32px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
}

.logo {
  display: flex; align-items: center;
  height: 44px; padding-left: 0;
  font-size: 22px; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em;
  background: none;
  flex-shrink: 0;
}
.logo span { color: var(--accent-h); }
.logo span.logo-domain { color: var(--text-3); font-size: 14px; font-weight: 400; margin-left: 2px; }

.search-wrap { position: relative; flex: 1; margin: 0 16px; }
.search-box { position: relative; }
.search-box input {
  padding: 0 50px 0 16px;
  border-radius: var(--radius);
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  height: 42px; width: 100%;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-s);
}
.search-box input::placeholder { color: var(--text-3); }
.search-box button {
  position: absolute; right: 0; top: 0;
  width: 50px; height: 42px;
  background: none; color: var(--text-3);
  font-size: 16px; cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.search-box button:hover { color: var(--accent-h); background: none; box-shadow: none; }

.header-btn {
  padding: 0 20px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center;
  flex-shrink: 0;
  transition: background .2s, box-shadow .2s;
}
.header-btn:hover { background: var(--accent-h); box-shadow: 0 4px 20px rgba(99,102,241,0.4); }

/* ── COLS ───────────────────────────────────────────────── */
.cols { display: flex; padding: 0; }

/* ── SIDEBAR ────────────────────────────────────────────── */
.sidebar {
  width: 280px; flex-shrink: 0;
  padding: 24px 20px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
}

.side-box { margin-bottom: 32px; }
.side-bt {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-3); margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.nav-col { width: 100%; }
.nav-col + .nav-col { width: 100%; margin-top: 4px; }
.nav-title { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 12px 0 6px; }
.nav-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; font-size: 13px;
  color: var(--text-2); border-radius: var(--radius-sm);
  transition: all .15s;
}
.nav-menu a:hover {
  color: var(--text); background: var(--bg-3);
}
.nav-menu a::before {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-3); flex-shrink: 0;
  transition: background .15s;
}
.nav-menu a:hover::before { background: var(--accent-h); }

/* Sidebar popular */
.side-popular-item { margin-bottom: 16px; display: flex; gap: 12px; align-items: flex-start; }
.side-popular-item-img {
  width: 56px; height: 74px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0; overflow: hidden;
}
.side-popular-item-img img { width: 100%; height: 100%; object-fit: cover; }
.side-popular-item-title { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.4; }
.side-popular-item-title:hover { color: var(--accent-h); }
.side-popular-item-info { color: var(--text-3); font-size: 12px; margin-top: 4px; }
.side-popular-item-date { color: var(--text-3); font-size: 11px; margin-top: 4px; }

.side-recommend-item {
  display: block; margin-bottom: 12px;
  width: calc(50% - 6px);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: opacity .2s, transform .2s;
}
.side-recommend-item:hover { opacity: 0.8; transform: scale(1.02); }
.side-recommend-item-img { border-radius: var(--radius-sm); }

/* Последние комментарии в сайдбаре */
.lcomm { margin-bottom: 16px; padding: 12px; background: var(--bg-3); border-radius: var(--radius-sm); }
.ltitle { display: block; font-size: 12px; font-weight: 500; margin-top: 8px; color: var(--text-2); line-height: 1.4; }
.ltext { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.lmeta { font-size: 11px; margin: 8px 0 0; color: var(--text-3); }
.ldate, .lav, .lname { display: inline-block; vertical-align: middle; margin-right: 6px; }
.lav { width: 18px; height: 18px; border-radius: 50%; }
.lname { color: var(--text-2); font-weight: 500; }

/* ── MAIN ───────────────────────────────────────────────── */
.main { flex: 1; min-width: 0; padding: 28px 32px; min-height: 100vh; }

/* ── SECTION ────────────────────────────────────────────── */
.sect { margin-bottom: 36px; }
.sect:last-child { margin-bottom: 0; }
.sect-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.sect-title {
  font-weight: 700; font-size: 18px; color: var(--text);
  display: flex; align-items: center; gap: 10px; flex: 1;
}
.sect-title [class*=fa-], .side-bt [class*=fa-],
.speedbar [class*=fa-], .carou-title [class*=fa-] { color: var(--accent-h); }

.sorter, .sect-link {
  position: relative; cursor: pointer; height: 32px; line-height: 32px;
  padding: 0 12px; background: var(--bg-3); border-radius: var(--radius-sm);
  font-size: 13px; border: 1px solid var(--border); color: var(--text-2);
}
.sorter:before { content: attr(data-label); display: inline-block; vertical-align: top; }
.sorter > span { display: inline-block; vertical-align: top; margin-left: 4px; }
.sorter form {
  display: none; background: var(--bg-3); padding: 12px;
  box-shadow: var(--shadow); position: absolute; right: 0; top: 100%; margin-top: 4px;
  width: 160px; z-index: 999; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.sorter a:hover { color: var(--accent-h); }
.sorter:hover, .sect-link:hover { background: var(--bg-4); color: var(--text); border-color: var(--border-2); }

/* ── BREADCRUMB ─────────────────────────────────────────── */
.speedbar {
  font-size: 13px; color: var(--text-3); margin-bottom: 20px;
  display: flex; align-items: center; gap: 6px;
}
.speedbar .fal { margin-right: 6px; color: var(--accent-h); }
.speedbar a { color: var(--text-2); }
.speedbar a:hover { color: var(--accent-h); }

/* ── SHORT ITEM ─────────────────────────────────────────── */
.short-item {
  margin-bottom: 20px; padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.short-item:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
}
.short-item:last-child { margin-bottom: 0; }

.short-cols { display: flex; gap: 20px; align-items: flex-start; }

.short-img {
  width: 130px; height: 190px; flex-shrink: 0;
  display: block; border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform .2s, box-shadow .2s;
}
.short-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.short-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.short-desc { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.short-header { display: flex; align-items: flex-start; gap: 12px; }
.short-title {
  display: block; font-size: 17px; font-weight: 600;
  color: var(--text); line-height: 1.4;
}
.short-title:hover { color: var(--accent-h); }

.short-list { display: flex; flex-direction: column; gap: 4px; }
.short-list li {
  font-size: 13px; color: var(--text-2); line-height: 1.5;
  display: flex; gap: 8px; align-items: baseline;
  padding-left: 0; margin: 0;
}
.short-list li > span:first-child {
  position: static; color: var(--text-3);
  font-size: 12px; white-space: nowrap; min-width: 70px;
}
.short-list a { color: var(--accent-h); }
.short-list a:hover { color: #fff; }

.short-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: auto;
}
.short-meta-item { color: var(--text-3); font-size: 12px; }

.short-rating {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; font-size: 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text-2);
}
.short-rating .fa-thumbs-up { color: var(--green); }
.short-rating .fa-thumbs-down { color: var(--red); }

.short-label {
  background: var(--accent); padding: 3px 8px; border-radius: 6px;
  position: absolute; left: 8px; top: 8px; z-index: 10;
  font-size: 11px; font-weight: 600; color: #fff; letter-spacing: .02em;
}

.short-btn {
  height: 38px; padding: 0 16px; font-size: 14px;
  border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center;
  transition: background .2s, box-shadow .2s;
}
.short-btn:hover { background: var(--accent-h); box-shadow: 0 4px 16px rgba(99,102,241,0.4); color: #fff; }

.short-rate-in {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600;
}
.short-rate-in:before { content: attr(data-text); margin-right: 4px; text-transform: uppercase; }
.short-rate-kp { background: var(--orange); color: #000; }
.short-rate-imdb { background: #f5c518; color: #000; }

/* ── FULL STORY ─────────────────────────────────────────── */
.fleft { width: 180px; margin-right: 24px; flex-shrink: 0; }
.fimg {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.fimg img { width: 100%; display: block; border-radius: var(--radius); }
.ftext { margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--border); line-height: 1.7; }

h1 a { margin-left: 10px; font-size: 14px; color: var(--text-3); }
h1 a:hover { color: var(--accent-h); }
.fsubtitle { text-align: center; font-size: 17px; font-weight: 600; margin-bottom: 20px; }

.fplayer { background: var(--bg-3); border-radius: var(--radius); overflow: hidden; }
.fctrl { padding-right: 16px; }
.fplayer .tabs-sel span {
  display: inline-flex; align-items: center;
  padding: 0 20px; height: 42px; cursor: pointer;
  background: var(--bg-4); color: var(--text-2); font-weight: 500; font-size: 14px;
  transition: background .2s, color .2s;
}
.fplayer .tabs-sel span.current { background: var(--accent); color: #fff; }
.fplayer .tabs-sel span:hover { background: var(--bg-3); color: var(--text); }
.js .tabs-b { display: none; }
.js .tabs-b.visible { display: block; }
.fcompl a, .ffav a { color: var(--text-2); }
.fcompl a:hover, .ffav a:hover { color: var(--accent-h); }
.fcompl, .ffav { margin-left: 16px; }

/* Share */
.fshare { padding: 12px; text-align: center; }
.fshare .fab, .fshare .fas {
  width: 44px; height: 32px; border-radius: var(--radius-sm);
  text-align: center; line-height: 32px;
  background: var(--bg-4); color: var(--text-2); font-size: 14px;
  margin: 0 3px; cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.fshare .fab:hover, .fshare .fas:hover { background: var(--accent); color: #fff; }

/* ── FULL TEXT ──────────────────────────────────────────── */
.video-box embed, .video-box object, .video-box video,
.video-box iframe, .video-box frame {
  max-width: 100%; display: block; width: 100%; height: 400px;
  border-radius: var(--radius-sm);
}
.full-text {
  line-height: 1.8; font-size: 15px; color: var(--text-2);
}
.full-text img:not(.emoji) { max-width: 100%; margin: 12px 0; border-radius: var(--radius-sm); }
.full-text a { color: var(--accent-h); text-decoration: underline; text-underline-offset: 3px; }
.full-text a:hover { color: #fff; }
.full-text h2, .full-text h3, .full-text h4, .full-text h5 { margin: 16px 0 8px; color: var(--text); }
.full-text p { margin-bottom: 12px; }
.full-text ul li { list-style: disc; margin-left: 24px; }
.full-text ol li { list-style: decimal; margin-left: 24px; }

/* ── SEO ────────────────────────────────────────────────── */
.site-desc { line-height: 1.7; color: var(--text-3); font-size: 14px; padding-top: 32px; }
.site-desc h1, .site-desc h2 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text-2); }
.site-desc li { list-style: disc; margin-left: 24px; }
.site-desc p { margin-bottom: 8px; }
.site-desc a { color: var(--accent-h); text-decoration: underline; }

/* ── PAGINATION ─────────────────────────────────────────── */
.bottom-nav { text-align: center; margin-bottom: 0; }
.navigation a, .navigation span,
.pnext a, .pprev a, .pprev > span, .pnext > span {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px; margin: 0 4px 8px 0;
  height: 40px; min-width: 40px;
  background: var(--bg-3); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-weight: 500; font-size: 14px;
  color: var(--text-2); transition: all .2s;
}
.navigation a:hover, .pnext a:hover, .pprev a:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.navigation span:not(.nav_ext) {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ── COMMENTS ───────────────────────────────────────────── */
.add-comms {
  margin-bottom: 24px; padding: 20px;
  background: var(--bg-3); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.ac-inputs input { width: calc(50% - 6px); margin-bottom: 12px; }
.ac-textarea textarea { height: 90px; margin-bottom: 12px; }
.ac-protect, .ac-textarea .bb-editor + br { display: none; }
.comments_subscribe { display: block; }
.mass_comments_action { display: none; }
.last-comm-link { display: inline-block; padding-bottom: 16px; color: var(--accent-h); font-size: 16px; }

.comm-avatar { position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; }
.comm-letter {
  position: absolute; inset: 0; line-height: 38px; text-align: center;
  font-size: 16px; font-weight: 700; text-transform: uppercase;
  color: #fff; border-radius: 50%;
}
.comm-item {
  font-size: 14px; padding-left: 52px; position: relative;
  min-height: 38px; margin-bottom: 20px;
}
.comm-two { margin: 6px 0 8px 0; color: var(--text-2); line-height: 1.6; }
.comm-one > span { margin-right: 12px; color: var(--text-3); font-size: 13px; }
.comm-one > span.comm-author, .comm-one > span.comm-author a { color: var(--text); font-weight: 600; }
.comm-three-right li { display: inline-block; margin-left: 12px; }
.comm-three-right li a { color: var(--text-3); font-size: 13px; opacity: 0.7; transition: opacity .2s; }
.comm-three-right li a:hover { opacity: 1; color: var(--accent-h); }
.comm-three-left > a { color: var(--accent-h); font-size: 13px; border-bottom: 1px dotted var(--accent-h); }
.comm-rate3 { display: inline-flex; align-items: center; gap: 4px; vertical-align: top; }
.comm-rate3 a { display: inline-flex; align-items: center; opacity: 0.5; transition: opacity .2s; }
.comm-rate3 a:hover { opacity: 1; }
.comm-rate3 > span { margin: 0 2px; font-size: 13px; }
.comm-rate3 > span > span.ratingtypeplus { color: var(--green); }
.comm-rate3 > span > span.ratingplus { color: #6ee7b7; }
.comm-rate3 > span > span.ratingminus { color: var(--red); }

/* ── LOGIN ──────────────────────────────────────────────── */
.overlay-box {
  position: fixed; z-index: 998; inset: 0;
  background: rgba(0,0,0,0.7); cursor: pointer;
  backdrop-filter: blur(4px);
}
.login-box {
  position: fixed; z-index: 999;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--bg-2); padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  width: 400px; max-width: calc(100vw - 40px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  max-height: calc(100vh - 40px); overflow-y: auto;
}
.login-close {
  width: 32px; height: 32px; line-height: 32px; text-align: center;
  font-size: 18px; cursor: pointer;
  position: absolute; top: 12px; right: 12px;
  color: var(--text-3); border-radius: var(--radius-sm);
  background: var(--bg-3); transition: all .2s;
}
.login-close:hover { background: var(--red); color: #fff; }
.login-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.login-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  margin: 0 auto 16px; text-align: center; line-height: 56px;
  font-size: 24px; background: var(--bg-3); color: var(--text-3);
}
.login-input { margin-bottom: 12px; }
.login-btn button { width: 100%; margin: 12px 0; height: 44px; }
.login-btm a { color: var(--accent-h); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.login-btm { display: flex; justify-content: space-between; margin-top: 4px; }

.login-check { position: relative; font-size: 14px; }
.login-check input { opacity: 0; position: absolute; cursor: pointer; }
.login-check span { display: block; padding-left: 36px; height: 30px; line-height: 30px; color: var(--text-3); }
.login-check span:before, .login-check span:after { content: ''; position: absolute; top: 50%; transition: .3s; }
.login-check span:before {
  left: 0; height: 10px; margin-top: -5px; width: 26px; border-radius: 5px;
  background: var(--bg-4); box-shadow: inset 0 1px 4px rgba(0,0,0,0.4);
}
.login-check span:after {
  left: 1px; height: 12px; width: 12px; margin-top: -6px;
  background: var(--accent); border-radius: 6px;
}
.login-check input:checked + span:after { left: 13px; }

.login-menu {
  border-top: 1px solid var(--border); border-left: 1px solid var(--border);
  margin-top: 16px; border-radius: var(--radius-sm); overflow: hidden;
}
.login-menu li {
  text-align: center; border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border); width: 50%;
}
.login-menu a {
  display: block; padding: 10px 5px; font-size: 13px; color: var(--text-2);
  transition: all .2s;
}
.login-menu a:hover { color: var(--accent-h); background: var(--bg-3); }
.login-menu li .fa { display: none; }
.login-admin { text-align: center; margin: -8px 0 20px; }
.login-admin a { color: var(--accent-h); font-size: 13px; }

.login-soc-title {
  display: flex; align-items: center; margin: 24px 0 12px;
  font-size: 12px; color: var(--text-3);
}
.login-soc-title:before, .login-soc-title:after { content: ''; height: 1px; background: var(--border); flex: 1; }
.login-soc-title:before { margin-right: 12px; }
.login-soc-title:after { margin-left: 12px; }
.login-soc-btns { text-align: center; }
.login-soc-btns a { display: inline-block; margin: 0 4px; vertical-align: top; }
.login-soc-btns img { display: block; width: 32px; height: 32px; border-radius: 50%; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  padding: 20px 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  color: var(--text-3);
  display: flex; align-items: center; justify-content: space-between;
}
.footer a { color: var(--text-3); transition: color .2s; }
.footer a:hover { color: var(--accent-h); }
.footer-copyright { font-size: 13px; }

/* ── SCROLL TOP ─────────────────────────────────────────── */
#gotop {
  position: fixed; width: 44px; height: 44px; right: 16px; bottom: 16px;
  z-index: 990; display: none;
  background: var(--accent); color: #fff; cursor: pointer;
  font-size: 18px; border-radius: var(--radius-sm);
  text-align: center; line-height: 44px;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
  transition: background .2s, box-shadow .2s;
}
#gotop:hover { background: var(--accent-h); box-shadow: 0 8px 24px rgba(99,102,241,0.5); }

/* ── MOBILE MENU ────────────────────────────────────────── */
.btn-menu {
  display: none; font-size: 22px;
  margin-left: 8px; cursor: pointer;
  color: var(--text-2); padding: 8px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  flex-shrink: 0;
}
.btn-menu:hover { color: var(--text); background: var(--bg-3); }

.side-panel {
  width: 280px; height: 100%; overflow-x: hidden; overflow-y: auto;
  background: var(--bg-2); padding: 20px;
  z-index: 9999; position: fixed; left: -300px; top: 0;
  transition: left .35s cubic-bezier(.22,1,.36,1);
  border-right: 1px solid var(--border);
}
.side-panel.active { left: 0; }
.close-overlay {
  width: 100%; height: 100%; background: rgba(0,0,0,0.6);
  position: fixed; left: 0; top: 0; z-index: 9998; display: none;
  backdrop-filter: blur(4px);
}
.btn-close {
  cursor: pointer; display: block; left: 280px; top: -44px;
  position: fixed; z-index: 9999;
  width: 44px; height: 44px; line-height: 44px; text-align: center;
  font-size: 18px; background: var(--red); color: #fff;
  transition: top .35s cubic-bezier(.22,1,.36,1);
}
.btn-close.active { top: 0; }
body.opened-menu { overflow: hidden; }

/* ── OWL CAROUSEL ───────────────────────────────────────── */
.owl-carousel { display: none; opacity: 0; transition: opacity .3s; width: 100%; position: relative; z-index: 10; }
.owl-carousel .owl-stage { position: relative; display: flex; justify-content: flex-start; }
.owl-carousel .owl-stage-outer { position: relative; overflow: hidden; transform: translate3d(0px,0px,0px); }
.owl-carousel .owl-item { position: relative; min-height: 1px; }
.owl-carousel .owl-nav.disabled, .owl-carousel .owl-dots.disabled,
.owl-carousel.owl-refresh .owl-item { display: none; }
.owl-carousel.owl-loaded, .owl-carousel.owl-loading, .no-js .owl-carousel { display: block; opacity: 1; }
.owl-carousel.owl-loading, .owl-carousel.owl-hidden { opacity: 0; }
.owl-carousel.owl-drag .owl-item { user-select: none; }
.owl-carousel.owl-grab { cursor: grab; }
.owl-carousel .animated { animation-duration: 1000ms; animation-fill-mode: both; }
.owl-carousel .owl-animated-in { z-index: 0; }
.owl-carousel .owl-animated-out { z-index: 1; }
.owl-carousel .fadeOut { animation-name: fadeOut; }
@keyframes fadeOut { 0% { opacity: 1; } 100% { opacity: 0; } }
.owl-height { transition: height 500ms ease-in-out; }
.owl-carousel .owl-item .owl-lazy { opacity: 0; transition: opacity 400ms ease; }
.owl-nav { position: absolute; right: 0; top: 0; z-index: 1; }
.owl-prev, .owl-next {
  display: block; cursor: pointer; background: none; color: var(--accent-h);
  height: 24px; line-height: 24px; position: absolute; top: -50px;
  box-shadow: none; font-size: 24px; border: 0;
}
.owl-prev { right: 36px; }
.owl-next { right: 0; }
.owl-prev:hover, .owl-next:hover { color: #fff; }

/* ── CAROUSEL SECTION ───────────────────────────────────── */
.carou-sect {
  padding: 20px 32px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.carou-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--text); }

.popular-item-img {
  display: block; border-radius: var(--radius-sm);
  height: 180px; overflow: hidden;
}
.popular-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.popular-item-title {
  position: absolute; z-index: 10; left: 0; bottom: 0; right: 0;
  padding: 12px; color: #fff; font-weight: 500; font-size: 13px;
  word-wrap: break-word; line-height: 1.3;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}
.popular-item-img:before {
  content: ''; position: absolute; z-index: 5; left: 0; right: 0; bottom: 0;
  height: 60%; opacity: 0;
  background: rgba(99,102,241,0.2);
  transition: opacity .2s;
}
.popular-item:hover .popular-item-img:before { opacity: 1; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media screen and (max-width: 1220px) {
  .wrap { padding: 0; }
  .wrap-main { border-radius: 0; border: none; }
  .header, .footer, .cols, .carou-sect { padding-left: 20px; padding-right: 20px; }
  .wrap-center { border-radius: 0; }
  .sidebar { display: none; }
  .btn-menu { display: flex; align-items: center; }
  .main { padding: 20px; }
  .cols { padding: 0; }
}

@media screen and (max-width: 950px) {
  .wrap-center { max-width: 100%; }
  .short-meta-item:not(.mrating-count) { display: none; }
  .footer { display: block; text-align: center; padding: 16px 20px; }
  .footer-copyright { margin: 0; }
}

@media screen and (max-width: 760px) {
  .not-logged .login-avatar { display: none; }
  .login-close { top: 12px; right: 12px; }
  .login-title { font-size: 18px; }
  .login-box { max-width: calc(100% - 40px); padding: 20px; }
  .search-wrap { order: 10; min-width: 100%; margin: 12px 0 0; }
  .header { flex-wrap: wrap; }
  .header-btn { padding: 0 14px; }
  .fcols { display: block; }
  .fleft { margin: 0 auto 16px; }
  .short-rates { width: 100%; margin: 8px 0 0; justify-content: flex-start; }
  .fcols .short-list li { padding-left: 0; }
  .ffav, .fcompl { display: none; }
  .fplayer .tabs-sel > span { width: 50%; text-align: center; }
  .fctrl { padding: 0; }
}

@media screen and (max-width: 590px) {
  .sect-content {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  }
  .short-item { width: calc(50% - 6px); margin-bottom: 0; padding: 10px; border: 1px solid var(--border); }
  .short-item .short-img { width: 100%; height: auto; padding-top: 150%; margin: 0 0 10px 0; }
  .short-item .short-img img { position: absolute; left: 0; top: 0; }
  .short-item .short-meta, .short-item .short-list, .short-item .short-rates { display: none; }
  .short-item .short-title { font-size: 13px; }
  .short-item .short-cols { flex-direction: column; gap: 0; }
  .navigation { justify-content: center; }
  .sect-title, .logo { font-size: 16px; }
  .ac-inputs input { width: 100%; }
  .video-box iframe, .video-box embed, .video-box object { height: 240px; }
}

@media screen and (max-width: 470px) {
  .fleft { width: 100%; float: none; margin-right: 0; }
  .fimg { max-width: 200px; margin: 0 auto 16px; }
  .video-box iframe { height: 220px; }
}
